Real programmers are clouds, big data, high load ... And we have almost DIY. 2 installations - already replicating, 100 pieces - production ... But then nuclear icebreakers, shunting locomotives, tractors, locks, bridges, descending from excess asphalt, drones the size of a house, 50 people of staff per shop more than two kilometers long ... and reliability, reliability , reliability ... And heels of general directors in suits right on the field while demonstrating the system on a tractor ...
Normal end of debugging - we remove the antennas from the trackerSo ... there was a request from colleagues to write a TKP (technical and commercial proposal) to a tricky GPS tracker. And the comments that big and real refused to do.
Hmm ... we, of course, are engaged in GPS, but to put it mildly quite different. Not trackers, and high-precision. Well, as the bridge moves, we can measure it. Or make a satellite compass. And the trackers are not ours. But it is interesting to try where the real ones refused!
')
The main purpose of the work is to comply with paragraph 597 of the Federal norms and rules in the field of industrial safety “ Safety rules for mining and processing of solid minerals ”There is a quarry. It is driven by mining excavators and trucks. And people work. Who does not know - career cars are big. From the cab - people are not visible. In recent years, customers have a couple of accidents with human victims. Therefore, we need a system to prevent collisions. That is smart GPS trackers.
It is clear how big and real they do it. GPS tracker for mobile communications (GPRS, 3G) sends the coordinates to the database server. The database server provides the coordinates of the application server, it determines the possibility of a collision and sends warnings to the control room via the Internet. From the control room, they are somehow (SMS? Pager? Radio call?) Transferred to the staff. We start to think why the big ones refused.
We read paragraph 597597. When using positioning equipment to ensure the safe operation of technological transport and mining equipment, control of speed limits and the mutual arrangement of mountain vehicles and actuators, the following conditions are met:
continuous transfer of coordinates and speeds to the control tower with display of navigation parameters on the terminals of operators;
positioning accuracy.
The positioning accuracy should be:
for career road transport and bulldozers - no more than 3 m;
for railway transport - no more than 1 m;
for actuators of drilling rigs and mining equipment - no more than 0.1 m;
for staff - no more than 3 m.
Personnel located at the mining site must be equipped with individual positioning tools with continuous transfer of personnel location to the control room.
The software should provide timely alarm and alert personnel about the danger of collisions, possible attacks, approaching danger zones, violations of technological parameters and modes of operation of mining and transport equipment.
Yeah, it's already clear. The accuracy of household GPS and GNSS receivers is 3 meters
KVO-50 . That is, 50% of the time - they give an accuracy of 3 meters, 49.8% - from 3 to 9 meters and 0.2% further. And in the TZ most likely it means 3 meters
KVO-95 . That is, 95% of the time the error should fit into a circle with a radius of 3 meters. Well, this is understandable as solved. Instead of a household one, we take a semi-professional receiver supporting
DGNSS . This is such a system when there is a fixed receiver with known coordinates. It calculates the reception error for each satellite and transmits this error to other receivers - mobile ones. And those already consider taking into account a known error (first of all ionospheric). CSO! The project already has a
base station and a
base station communication channel with receivers.
We take the receiver Russian-Ukrainian
NV08C-CSM from
KB Navis. Well, simply because the authors are friends. So - if you have problems, get advice. We look at the parameters - in the DGNSS mode, the accuracy is 1 meter of the standard
deviation , that is, 1.7 meters KVO-95. Fulfilled. And the sergeant gap is good.
What is next? Transfer by GPRS / 3G. We read the
statement of work : The
remoteness of the camera clay from the quarry of cement clays is 7 km., From the limestone quarry - 100 km. . We look at the map - what about the coverage of cellular operators? And the devil knows what's in the career. On the surface, maybe 3G will be, but down in the quarry ... So the link between the trackers and the base station is via radio.
Choosing LoRa ,
well, I want our electronics engineer to play with this technology because it is cheap and productive. At the same time - we save the customer on operating costs. Pay for 3 SIM cards is cheaper than 40.
We learn about the Internet - have not seen it in these careers. But what about the connection with the control room? So you need a GSM antenna on the mast. And not just an antenna, but with an amplifier. We recall Sochi and 1 package once every 20 minutes via GPRS. Although it was not a season, in the evening the cell was filled with voice communication and there were no slots left on the GPRS. Then we remember how the
entire Fora network was put up for a day by updating the software in St. Petersburg. No, one operator is not enough for us. We make 3 towers - each for its own operator.
And once 3 towers means 3 base stations DGNSS and 3 channels LoRa. Just climbed into the range with frequency division. However, the temporary separation is probably better?
What's next for the big ones? Application server defining a dangerous approximation? Do you need him? And if the Internet is not? No,
we are paranoid . We have connection of trackers with base stations. Coordinates broadcast trackers transmit. Trackers listen to each other. So the tracker itself can determine if there is anyone nearby. And who is this person or car? And if not? Well, a radio signal can go bad through a mining truck. So the safety system - at base stations. They also analyze the approximations and give an alarm to the tracker.
DB server? Oh his
to the demon in the control room. Mnemoschemu control room - draw on the
Master Scud , from it is also the server. But the colleagues and the mnemonic colleagues will cope better than us - this is their part in the overall project. And ours - trackers and base stations.

The concept is already clear. We go further. Next we have power. With base stations, all is well. We feed 220 volts on a cable. The cable will disconnect - not scary, there are two more. There will be no electricity at all - well,
somehow ,
hrum-hrum-hrum , but the trackers will work. The control room will turn off, but detection of people's dangerous proximity to the technology will remain. With loss of accuracy - but it will remain.
And what about the power trackers? Lithium battery like a big one? And how to change it when it is discharged? Real trackers do not send data once a second, their tracker basically works in sleep mode. No, we do power on two 18650 batteries. And first we eat from one, and after its full discharge from the other. To check the power - put a button and a LED. Pressed - lit, then the norm. Flashing long - right battery discharged. Blinking short - discharged both. Well, the charging station - to charge everything together at night. The quarry works in 1-2 shifts, so there is a night of charging. And there will be no night - just increase the number of batteries and change them between shifts.
And what about the trackers on cars? And here the oscilloscope is needed. It is not clear whether they, too, from the batteries to power, or whether it is possible from the onboard network + ionistor. The problem is that when the vehicle goes from power supply to batteries to diesel power supply, there is a surge in voltage and our devices hang. It is necessary to relax with an oscilloscope, to understand what kind of throw. But for now, we decide that the onboard network is better.
And what about the car with the antenna? UPS, the antenna built into the tracker will not work in the iron case. Well, or will be, but the signal will give a weak and accuracy will decrease. It means that the antenna on the car is external, and to have a common device for pedestrians and cars will not work.
Accordingly, we have three devices: a base station, a wearable tracker on batteries with a built-in antenna and a car tracker with power from the on-board network and an antenna on the roof.
Next we have drivers. Does the driver need a tracker? Yes, it seems that we need. If the driver got out of the car - it should be warned about the movement of other cars. And what to do when landing in the car? It will always ring. So you need a function to turn off the ringing by clicking on the button. At the same time solve the problem with the supply by car. Came to the car, the tracker rings. I pressed the button - the tracker was silent until the exit from the 3-meter zone.
Do you need to track a dump truck on the way from the quarry to the railway station or factory? Yes, it seems necessary, but this is already an option. We put 3G modems in car trackers, but as an option. We give a higher price - here the “big ones” can do better than us, let the customer buy a separate system from them.
Well, the compositions of the devices are clear.
- Base station: GNSS receiver, 3G modem, mast, GNSS antenna, 3G antenna, 3G amplifier, power supply (220 by 5 and 12 volts), LoRa radio transmitter, LoRa antenna, Renesas processor , linux OS.
- Wearable tracker: GNSS receiver, GNSS antenna, LoRa radio transmitter, LoRa antenna, STM32 processor , FreeRTOS , buzzer, button, LED, 2 batteries.
- Automobile tracker: GNSS receiver, LoRa radio transmitter, 3G modem STM32 processor , FreeRTOS , buzzer, button, LED, 2 batteries.
- Carried out part of the car tracker on the roof: GNSS antenna, 3G antenna, LoRa antenna.
- In the house at the checkpoint: charging station and night storage of wearable trackers. In the same place - a double of the dispatcher's console, receiving data through the Internet from a scud.
Next buns, that is, what we did not order, but that
can easily be done as an option:
- SOS signal from wearable and mobile trackers;
- Reception of radio call signals (up to 4 signal variants);
- Scanner to determine the direction of people falling asleep;
- Geomonitoring landslides on the sides of the quarry;
- Geomonitoring the edges of the career;
- Adaptive polling frequency (from 1 time per second to 1 time per minute) in the wearable tracker, depending on the possibility of collisions. Including - while in the car;
- Router for the distribution of the Internet in the shelter house;
- Providing multiple operator workplaces by installing a data multiplier;
- Analysis of historical data (tracks and accidents).
What is behind the scenes? The budget of the radio channel. Here, first of all, studies on career are needed. But one way or another, we will provide the connection. And the connection of trackers among themselves and base stations with trackers and base stations among themselves. At the very least, the base stations will transmit in a circle, every 3 seconds each. And rovers - at every second. This is due to the fact that there is a stream from the base station 25 times more than from the rover: coordinates of all 20 rovers + DGNSS corrections.
PS As it happens in 80% of cases, the tender won the customer's own design bureau. Well, yes, they are in Bryansk, their salaries are lower and office rent is cheaper. Well, we are not mad. A couple of days you can on an interesting project and work for free.
UPD1: On a tip,
Wicron clarifies that the warning to both pedestrians and drivers is done by beeping (ringing) through a buzzer.
UPD2: In the comments, it was noted many people who wanted to make a collision and collision avoidance system based on RFID. Alas, we were not ordered a "collision warning system", we were ordered to
comply with paragraph 597 of the Federal rules and regulations in the field of industrial safety " Safety rules for mining and processing solid minerals " . A violation of these rules entails responsibility up to the criminal. Speech on Article 216. "
Violation of safety rules in the conduct of mining, construction or other works "
Basic requirements of the rules:
- continuous transfer of coordinates and speeds to the control tower with display of navigation parameters on the terminals of operators;
- 3 meter positioning accuracy
- The personnel located at the mining site must be equipped with individual positioning tools with the continuous transfer of personnel location to the control room.
- The software should provide timely alarm and alert personnel about the danger of collisions, possible attacks, approaching danger zones, violations of technological parameters and modes of operation of mining and transport equipment.
The rules do not prohibit making the system on the basis of
radio equipment , ultrasound, infrared sensors, but the transfer of information about the position must go throughout the entire area of the quarry. This is about 2.5 to 1.5 kilometers.
UPD3. At the request of
TheShock I write more about the budget of the radio channel LoRa. About the very
separation of channels in LoRa I will not tell a lot, but it happens to be frequency, code, and temporary.
The problem is this. Each tracker transmits 37 bits: 23 bits of coordinates, 8 bits of speed, 1 bit - SOS button, 5 bits - tracker number. The base station transmits the coordinates and speeds of all 20 trackers, that is, 620 bits + 30 bits of corrections DGNSS + 5 bits to the station number, a total of 655 bits. If everyone is sitting on the same frequency channel, then only 2035 bits are transmitted. Between transfers - protective gaps. As a result, it will be necessary to transmit at speeds of the order of 7 kilobits, if not more. But - the widest transmission band - 500 kilohertz.
There is another option. Each base station broadcasts on its own frequency. Those receivers that are closer to it broadcast on the same frequency. Then, on average, we have 37 * 7 + 655 = 914 bits, and at worst, 37 * 20 + 655 = 1295 bits. But the receiver has a code for selecting a frequency channel, and for base stations, the second and third LoRa receiver to listen to each other's channels. And the channels in this case are 125 or 250 kilohertz.
There is another option. Base stations operate on one channel, but each transmits 1 time in 3 seconds. Then we will have 1295 bits.
And which option is better - we will find out when we sign the contract, we get accurate topographic maps of the quarries and carry out a computer simulation of visibility with different placement of the towers. More precisely we will not know.