Communication terminal position sharing device and sharing method
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a device and a method for sharing a communication terminal location.
Background
The position sharing of the communication terminal is a common requirement in practical application, and for example, under application scenes such as gathering, business meeting, takeaway express delivery and the like, the position sharing of the communication terminal is required.
In a specific application scenario, it is inevitable that a positioning signal is weak or satellite positioning fails, and in such a situation, the effect of the position sharing function is often affected.
For example, in a specific application scenario, a distributor may share a real-time location of a mobile phone of the distributor to a buyer and a seller in real time on a location sharing map provided by a distribution platform during distribution, so that the buyer and the seller know the real-time location of the distributor in real time and estimate a distribution time, that is, the mobile phone of the distributor needs to share positioning information of the distributor to a platform server in real time, however, in an actual process, the positioning information is often not updated for a long time, so that the buyer or the seller cannot know the location information of the distributor in time, and therefore, the distributor or the distribution platform may be asked or complained by a telephone.
Disclosure of Invention
The invention provides a communication terminal position sharing device and a sharing method, aiming at solving the technical problem that position information cannot be updated when satellite positioning signals of a communication terminal are insufficient to obtain accurate position data. The following technical scheme is adopted:
the communication terminal position sharing device comprises a communication terminal body and a positioning module, wherein the positioning module is arranged in the communication terminal body and used for acquiring position information of the communication terminal body from a satellite and transmitting the position information to a main control chip of the communication terminal body;
if the positioning module fails to handshake with the satellite communication, the positioning module transmits a handshake failure result to a positioning mode selection chip, the positioning mode selection chip starts a position information compensation module, the position information compensation module acquires data of the last successful positioning from a main control chip and calculates real-time position data from real-time sensor data of a communication terminal body, the position information compensation module transmits the calculated real-time position data to the main control chip in real time, and the main control chip replaces the positioning module with the real-time position data of the position information compensation module to perform position sharing.
Through the technical scheme, the communication terminal body can be an intelligent terminal with a positioning module, such as an intelligent mobile phone, a logistics intelligent terminal and the like, and the positioning module can be a GPS module or a Beidou positioning module;
under a normal position sharing application scene of the communication terminal body, a main control chip of the communication terminal body sends a positioning position data demand to a positioning module, the positioning module starts communication with a satellite handshake, the positioning module acquires a position data packet every second and transmits the position data packet to the main control chip under the condition of successful handshake, the main control chip marks the position data packet at a specific corresponding position on a shared map and interacts the marked data with a shared server through a wireless network, the shared server transmits the shared map after interactive marking to a communication terminal obtaining sharing authority, and the communication terminal obtaining the sharing authority can know the real-time position of the shared communication terminal body through the shared map;
when satellite signals are poor enough to obtain position information in the moving process of the communication terminal body, the positioning mode selection chip selects whether to start the position information compensation module according to the handshake result of the positioning module and the satellite, the position information compensation module is started under the condition that the positioning module fails to communicate with the satellite continuously for 2-3 times, the position information compensation module reads a real-time data packet of a gyroscope and an acceleration sensor from a main control chip of the communication terminal body, the real-time data comprises the moving direction, the moving speed and the last positioning position data of the communication terminal body, the moving distance of the communication terminal body in the moving direction can be obtained by calculating according to the data packet, the new position data packet is finally converted into a new position data packet according to the calculation result and is transmitted to the main control chip, the main control chip marks the specific corresponding position of the new position data packet on a shared map, and interacts the marked data with a shared server through a wireless network, so that the real-time updating of the shared position in the failure state can be realized, the situation that the communication terminal which cannot obtain the authority of the communication terminal body can be shared is avoided, and the experience of the communication terminal sharing position information can be improved.
Optionally, the positioning mode selection chip is a data selector.
Through the technical scheme, the data selector can select whether to start the position information compensation module according to the handshake failure times of the positioning module and the satellite.
Optionally, the positioning mode selection chip is an SN74HC151DR data selector.
Through the technical scheme, the SN74HC151DR data selector can realize multi-path logic selection.
Optionally, the position information compensation module is an FPGA chip.
Through the technical scheme, the FPGA chip can realize programmable logic operation, can perform logic calculation according to data acquired from each sensor of the main control chip, and has high operation efficiency and low power consumption.
Optionally, the position information compensation module is an XC7VX485T-2FFG1157CFPGA programmable logic device.
By the technical scheme, the XC7VX485T-2FFG1157CFPGA programmable logic device is a sailing artificial intelligence chip, integrates necessary elements required by deep neural network calculation, and ensures that the AI algorithm task required to be performed can be efficiently and quickly completed.
Optionally, the communication terminal body further includes a DSP chip, a signal input end of the DSP chip is in communication connection with the main control chip of the communication terminal body, and a signal output end is in communication connection with the position information compensation module.
Through the technical scheme, the DSP chip can carry out digital processing on the sensor analog signals obtained by the main control chip, and the position information compensation module is convenient to carry out logical operation processing.
Optionally, the communication terminal body further includes a clock chip, and the clock chip is in communication connection with the position information compensation module.
Through the technical scheme, the position information compensation module obtains time data through the clock chip, and time obtaining from the main control chip is avoided.
The communication terminal position sharing method comprises the following specific steps:
step 1, when a main control chip of a communication terminal body receives a shared position request, sending a satellite positioning data acquisition instruction to a positioning module, carrying out handshake communication between the positioning module and a satellite to acquire a position data packet, transmitting the position data packet to the main control chip, carrying out position display of a matched position data packet on a shared map by the main control chip, and carrying out real-time broadcast sharing through a wireless network of the communication terminal body;
step 2, in the moving process of the communication terminal body, the positioning module transmits a handshake result with the satellite to the positioning mode selection chip in real time, and if the number of times of continuous failure of handshake between the positioning module and the satellite is more than or equal to two times, the positioning mode selection chip selects to start the position information compensation module;
step 3, the position information compensation module reads real-time data of a gyroscope, an acceleration sensor and a clock chip from a main control chip of the communication terminal body, the real-time data comprises a moving direction X and a moving speed s of the communication terminal body and a time point t0 at the moment, the position information compensation module acquires a position A successfully positioned for the last time from the main control chip, the position of the communication terminal body at the time point t0 is calculated to be a position B which is deviated by 2s towards the X direction, the position information compensation module transmits a position data packet of the position B to the main control chip, and the main control chip updates the position data packet of the position B to a shared map and carries out real-time broadcast sharing through a wireless network carried by the communication terminal body;
and 4, when the position information compensation module is started, the positioning module continuously tries to shake hands with the satellite, the shaking result is transmitted to the positioning mode selection chip in real time, if the number of times of continuous success of shaking hands between the positioning module and the satellite is more than or equal to two times, the positioning mode selection chip selects to close the position information compensation module, a position data packet obtained by communication between the positioning module and the satellite is transmitted to the main control chip in real time, and the main control chip updates the shared position on a shared map in real time.
Through the technical scheme, the real-time updating of the shared position under the positioning failure state can be realized, the fault state that the communication terminal obtaining the sharing authority cannot obtain the real-time position of the communication terminal body is avoided, the position sharing experience of the communication terminal is improved, although the positioning module fails to obtain the position information from the satellite, the positioning mode selection chip is involved in two seconds, the positioning mode selection chip is started to perform indirect calculation of the position, the position information of the communication terminal body on the shared map is updated in real time according to the indirect calculation result, the positioning module can recover the satellite handshake communication at the first time to obtain the positioning data packet from the positioning module, and the energy consumption is reduced.
Optionally, in step 2 and step 4, the positioning module performs handshake communication with the satellite every second to obtain the position data packet.
Through the technical scheme, handshake communication is carried out with the satellite every other one second, and the shared position is updated once every other one second under normal conditions, so that the shared position is more accurate, and the position sharing experience is better.
Optionally, if the positioning module fails in first handshake communication with the satellite in the step, the positioning mode selection chip notifies the main control chip of the failure information, the main control chip reminds an operator to perform manual positioning on the shared map page, and the operator performs position information marking on the shared map page by clicking a touch screen of the communication terminal body.
Through the technical scheme, if the positioning module fails to perform first handshake communication with the satellite when the position is opened for sharing, the position cannot be shared through the position information compensation module, and auxiliary position positioning needs to be performed manually.
In summary, the present invention includes at least one of the following beneficial effects:
the invention can provide a communication terminal position sharing device and a sharing method, under the state that the satellite positioning of the communication terminal fails, the position information compensation module carries out logic operation on each sensor data of the communication terminal by matching with an AI logic algorithm chip according to the position successfully positioned at the last time to obtain a new position data packet, and marks on a shared map, thereby realizing the real-time updating of the shared position and greatly improving the use experience of the position sharing of the communication terminal.
Drawings
FIG. 1 is a schematic diagram of the electrical device connection principle of the communication terminal position sharing apparatus of the present invention;
fig. 2 is a flowchart illustrating a method for sharing a communication terminal location according to the present invention.
Description of reference numerals: 1. a communication terminal body; 11. a main control chip; 12. a gyroscope; 13. an acceleration sensor; 2. a positioning module; 3. positioning a mode selection chip; 4. a position information compensation module; 5. a DSP chip; 6. and a clock chip.
Detailed Description
The present invention is described in further detail below with reference to fig. 1-2.
The embodiment of the invention discloses a communication terminal position sharing device and a sharing method.
Referring to fig. 1-2, the communication terminal position sharing device includes a communication terminal body 1 and a positioning module 2, the positioning module 2 is disposed inside the communication terminal body 1, and is configured to obtain position information of the communication terminal body 1 from a satellite and transmit the position information to a main control chip 11 of the communication terminal body 1, the communication terminal body 1 further includes a positioning mode selection chip 3 and a position information compensation module 4, the positioning mode selection chip 3 is respectively in communication connection with the main control chip 11, the positioning module 2 and the position information compensation module 4, and the position information compensation module 4 is in communication connection with the main control chip 11 of the communication terminal body 1;
if the positioning module 2 fails to handshake with the satellite communication, the positioning module 2 transmits a handshake failure result to the positioning mode selection chip 3, the positioning mode selection chip 3 starts the position information compensation module 4, the position information compensation module 4 acquires data successfully positioned for the last time from the main control chip 11 and calculates real-time position data from real-time sensor data of the communication terminal body 1, the position information compensation module 4 transmits the calculated real-time position data to the main control chip 11 in real time, and the main control chip 11 replaces the positioning module 2 with the real-time position data of the position information compensation module 4 to perform position sharing.
The communication terminal body 1 can be an intelligent terminal with a positioning module 2, such as an intelligent mobile phone, a logistics intelligent terminal and the like, and the positioning module 2 can be a GPS module or a Beidou positioning module;
under a normal position sharing application scene of the communication terminal body 1, the main control chip 11 of the communication terminal body 1 sends a positioning position data demand to the positioning module 2, the positioning module 2 starts communication with a satellite handshake, under the condition of successful handshake, the positioning module 2 acquires a position data packet every other one second and transmits the position data packet to the main control chip 11, the main control chip 11 marks the position data packet at a specific corresponding position on a sharing map, the marked data is interacted with a sharing server through a wireless network, the sharing server transmits the interactively marked sharing map to a communication terminal obtaining sharing authority, and the communication terminal obtaining the sharing authority can know the real-time position of the shared communication terminal body 1 through the sharing map;
when satellite signals are poor enough to obtain position information in the moving process of the communication terminal body 1, the positioning mode selection chip 3 selects whether to start the position information compensation module 4 according to the handshake result of the positioning module 2 and the satellite, the position information compensation module 4 is started under the condition that the positioning module 2 fails to communicate with the satellite for 2-3 times continuously, the position information compensation module 4 reads a real-time data packet of the gyroscope 12 and the acceleration sensor 13 from the main control chip 11 of the communication terminal body 1, the real-time data comprises the moving direction, the moving speed and the last positioning position data of the communication terminal body 1, the distance of the communication terminal body 1 moving on the last position can be obtained through calculation according to the data packet, the moving distance in the moving direction is finally converted into a new position data packet according to the calculation result, the position data packet is transmitted to the main control chip 11, the main control chip 11 marks the specific corresponding position of the new position data packet on a shared map, the marked data is interacted with a shared server through a wireless network, the real-time updating of the shared position in the positioning failure state can be realized, the situation that the communication terminal cannot obtain the communication terminal sharing position information of the communication terminal body 1 can be improved, and the communication terminal in the communication terminal can be obtained.
The positioning mode selection chip 3 is a data selector.
The data selector can select whether to start the position information compensation module 4 according to the handshake failure times of the positioning module 2 and the satellite.
The positioning mode selection chip 3 is an SN74HC151DR data selector.
The SN74HC151DR data selector can realize the logic selection of multiple paths.
The position information compensation module 4 is an FPGA chip.
The FPGA chip can realize programmable logic operation, can perform logic calculation according to data acquired from each sensor of the main control chip 11, and has high operation efficiency and low power consumption.
The position information compensation module 4 is XC7VX485T-2FFG1157CFPGA programmable logic device.
XC7VX485T-2FFG1157CFPGA programmable logic device is a sailing artificial intelligence chip, integrates necessary elements required by deep neural network calculation, and ensures that the logic device can efficiently and quickly complete AI algorithm tasks required to be carried out.
The communication terminal body 1 further comprises a DSP chip 5, a signal input end of the DSP chip 5 is in communication connection with a main control chip 11 of the communication terminal body 1, and a signal output end is in communication connection with the position information compensation module 4.
The DSP chip 5 can perform digital processing on the sensor analog signal obtained by the main control chip 11, so that the position information compensation module 4 can perform logic operation processing.
The communication terminal body 1 further comprises a clock chip 6, and the clock chip 6 is in communication connection with the position information compensation module 4.
The position information compensation module 4 obtains time data through the clock chip 6, and time is prevented from being obtained from the main control chip 11.
The position sharing method of the communication terminal comprises the following specific steps:
step 1, when a main control chip 11 of a communication terminal body 1 receives a shared position request, an instruction for acquiring satellite positioning data is sent to a positioning module 2, the positioning module 2 and a satellite perform handshake communication to acquire a position data packet and transmit the position data packet to the main control chip 11, the main control chip 11 performs position display of a matched position data packet on a shared map, and the position display is performed through a wireless network of the communication terminal body 1 in real time;
step 2, in the moving process of the communication terminal body 1, the positioning module 2 transmits a handshake result with the satellite to the positioning mode selection chip 3 in real time, and if the number of times of continuous failure of the handshake between the positioning module 2 and the satellite is more than or equal to two times, the positioning mode selection chip 3 selects to start the position information compensation module 4;
step 3, the position information compensation module 4 reads real-time data of the gyroscope 12, the acceleration sensor 13 and the clock chip 6 from a main control chip 11 of the communication terminal body 1, wherein the real-time data comprises a moving direction X and a moving speed s of the communication terminal body 1 and a time point t0 at the moment, the position information compensation module 4 acquires a position A successfully positioned for the last time from the main control chip 11, calculates the position of the communication terminal body 1 at the time point t0 as a position B which is deviated to the X direction for 2s, the position information compensation module 4 transmits a position data packet of the position B to the main control chip 11, and the main control chip 11 updates the position data packet of the position B to a shared map and broadcasts and shares the position data packet in real time through a wireless network of the communication terminal body 1;
and 4, when the position information compensation module 4 is started, the positioning module 2 continuously tries to handshake with the satellite, and transmits a handshake result to the positioning mode selection chip 3 in real time, if the number of times of continuous successful handshake between the positioning module 2 and the satellite is more than or equal to two, the positioning mode selection chip 3 selects to close the position information compensation module 4, a position data packet obtained by communication between the positioning module 2 and the satellite is transmitted to the main control chip 11 in real time, and the main control chip 11 updates the shared position on the shared map in real time.
The method can realize real-time update of the shared position under the positioning failure state, avoid the fault state that the communication terminal obtaining the sharing authority cannot obtain the real-time position of the communication terminal body 1, and improve the communication terminal position sharing experience, although the positioning module 2 fails to obtain the position information from the satellite, the positioning mode selection chip 3 intervenes within two seconds, the positioning mode selection chip 3 is started to carry out indirect calculation of the position, and the position information of the communication terminal body 1 on the shared map is updated in real time according to the indirect calculation result, and after the positioning module 2 recovers in satellite handshake communication, the positioning module 2 can recover to obtain the positioning data packet from the positioning module 2 at the first time, and energy consumption is reduced.
In the step 2 and the step 4, the positioning module 2 performs handshake communication with the satellite every second to obtain a position data packet.
Handshake communication is carried out with the satellite every other second, and normal condition one second is once more to sharing position update for sharing position is more accurate, and position sharing experience is better.
If the positioning module 2 fails to perform first handshake communication with the satellite in the step 1, the positioning mode selection chip 3 notifies the main control chip 11 of the failure information, the main control chip 11 reminds an operator to perform manual positioning on a shared map page, and the operator performs position information marking on the shared map page by clicking a touch screen of the communication terminal body 1.
If the first handshake communication between the positioning module 2 and the satellite fails when the position sharing is started, the position sharing cannot be performed through the position information compensation module 4, and the auxiliary position positioning needs to be performed manually.
The implementation principle of the first embodiment of the invention is as follows:
an express transportation application scene, a worker holds a logistics communication terminal, the position of the logistics communication terminal represents the position of an express, a shared map of an express inquiry page is marked from the position information of the logistics communication terminal in real time and is displayed to an express receiving and sending party through a wireless network, when a main control chip 11 of the logistics communication terminal receives a shared position request, an instruction for obtaining satellite positioning data is sent to a positioning module 2, the positioning module 2 and a satellite perform handshake communication to obtain a position data packet and transmit the position data packet to the main control chip 11, the main control chip 11 performs position display of a matched position data packet on the shared map and performs real-time broadcast sharing through the wireless network carried by a communication terminal body 1;
in the moving process of the logistics communication terminal, the positioning module 2 transmits a handshake result with a satellite to the SN74HC151DR data selector in real time, and if the number of times of continuous failure of handshake between the positioning module 2 and the satellite is more than or equal to two times, the SN74HC151DR data selector selects to open the XC7VX485T-2FFG1157CFPGA programmable logic device;
the XC7VX485T-2FFG1157CFPGA programmable logic device reads real-time data of the gyroscope 12, the acceleration sensor 13 and the clock chip 6 from a main control chip 11 of the logistics communication terminal, the real-time data comprises the moving direction north of the logistics communication terminal, the moving speed 20 m/s and the time point 09 point 05 minutes and 20 seconds at the moment, the position information compensation module 4 acquires the position A successfully positioned at the last time from the main control chip 11, calculates the position of the communication terminal body 1 at the time point T0 as the position B deviated from the north direction by 40 meters, and transmits a position data packet of the position B to the main control chip 11, the main control chip 11 updates the position data packet of the position B to a shared map, and the real-time broadcasts and shares the position data through a 5G network carried by the logistics communication terminal;
when the XC7VX485T-2FFG1157CFPGA programmable logic device is started, the positioning module 2 continuously tries to handshake with a satellite, and transmits a handshake result to the SN74HC151DR data selector in real time, if the continuous successful times of handshake between the positioning module 2 and the satellite is more than or equal to two times, the SN74HC151DR data selector selects to close the XC7VX485T-2FFG1157CFPGA programmable logic device, a position data packet obtained by communication between the positioning module 2 and the satellite is transmitted to the main control chip 11 in real time, and the main control chip 11 updates a shared position on a shared map in real time.
The above are all preferred embodiments of the present invention, and the protection scope of the present invention is not limited thereby, so: equivalent changes made according to the structure, shape and principle of the invention shall be covered by the protection scope of the invention.