Disclosure of Invention
The invention provides a low-power-consumption control method, a system, a device and a storage medium for positioning, which are used for realizing the reduction of positioning power consumption.
In order to solve the above technical problems, the present invention provides a low power consumption control method for positioning, including:
the base station broadcasts a position information message once at intervals of preset time;
The position information message comprises a base station ID and a base station GPS time stamp;
The child node receives the position information message sent by the base station, acquires a child node GPS time stamp, and measures according to the position information message to obtain the position coordinate of the child node at the child node GPS time stamp;
when any child node judges that the child node is in a time window, generating a positioning information message according to the position coordinates and sending the positioning information message to the base station;
the base station receives the positioning information message sent by the child node, generates a confirmation message according to the positioning information message, and triggers a signal transmission module to send the confirmation message;
And the child node receives the confirmation message sent by the base station, adjusts the time window and enters a dormant state, and reports the next positioning information according to the adjusted time window.
In an optional implementation manner, the base station broadcasts the location information message once at intervals of a preset time, including:
the base station comprises a signal transmission module, wherein the signal transmission module is used for broadcasting a position information message at intervals of preset time.
In an optional implementation manner, the method for obtaining the position coordinates of the child node at the child node GPS time stamp by the child node receiving the position information message sent by the base station, obtaining the child node GPS time stamp, and measuring according to the position information message includes:
the child node makes a difference between the base station GPS time stamp and the child node GPS time stamp to obtain a time difference value, and calculates the distance from the child node to the base station according to the time difference value;
and the child node calculates and obtains the position coordinates of the child node at the child node GPS time stamp according to the child node GPS time stamp, the distance between the child node and the base station and the prestored historical child node GPS time stamp reported last time by the child node.
In an optional implementation manner, the child node receives an acknowledgement message sent by the base station, adjusts the time window, and enters a sleep state, and includes:
for the situation that one child node reports, the base station adjusts the time window according to the following formula (1):
;
wherein t1 represents a time window of next report, D represents a distance from the child node to the base station, R represents a broadcasting period of the base station, and M1 represents a random number.
In an optional implementation manner, the child node receives an acknowledgement message sent by the base station, adjusts the time window, and enters a sleep state, and includes:
Aiming at the situation of reporting by a child node, after receiving the positioning information message, the base station acquires the reporting time of this time in the positioning information message, and adjusts the time window according to the following formula (2):
;
Wherein t2 represents a time window of the next report, t4 represents a time of the last report, t5 represents a time of the current report, and M2 represents a random number.
In an optional implementation manner, the child node receives an acknowledgement message sent by the base station, adjusts the time window, and enters a sleep state, and includes:
aiming at the situation that a plurality of child nodes report simultaneously, a base station sorts the received positioning information messages according to the priority of reporting time, acquires the reporting time of the positioning information messages and the sorted positioning information messages, and adjusts the time window according to the following formula (3):
;
Wherein T3 represents a time window of next reporting, T represents a reporting time slot in the received message, T6 represents a time of receiving the message, and M3 represents a random number.
In an optional embodiment, the base station ranks the received positioning information messages according to the priority of the reporting time for the situation that multiple child nodes report simultaneously, including:
making a difference between the reporting time of the positioning information message and the current time to obtain a difference between the reporting time of the positioning information message and the current time;
and the base station sequentially sorts the positioning information messages according to the priority order of the difference values from small to large to obtain the sorted positioning information messages.
In a second aspect, the present invention provides a low power consumption control system for positioning, including:
the base station is used for broadcasting a position information message once at intervals of preset time, wherein the position information message comprises a base station ID and a base station GPS time stamp;
the base station is also used for receiving a positioning information message sent by the child node, generating a confirmation message according to the positioning information message, and triggering a signal transmission module to send the confirmation message;
The child node is used for receiving the position information message sent by the base station, acquiring a child node GPS time stamp, and measuring according to the position information message to obtain the position coordinate of the child node at the child node GPS time stamp;
The child nodes are also used for generating positioning information messages according to the position coordinates and sending the positioning information messages to the base station when any one of the child nodes judges that the child node is in a time window;
the child node is further configured to receive a confirmation message sent by the base station, adjust the time window, and enter a sleep state, so as to report positioning information next time according to the adjusted time window.
In a third aspect, the present invention also provides an electronic device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, the processor implementing a positioning low power consumption control method according to any one of the above when executing the computer program.
In a fourth aspect, the present invention further provides a computer readable storage medium, where the computer readable storage medium includes a stored computer program, where when the computer program runs, the device in which the computer readable storage medium is controlled to execute a positioning low power consumption control method according to any one of the above methods.
Compared with the prior art, the invention has the following beneficial effects:
The invention relates to the technical field of wireless positioning, and discloses a low-power consumption control method, a system, a device and a storage medium for positioning, wherein the method comprises the steps that a base station broadcasts a position information message at intervals of preset time; the method comprises the steps of receiving a position information message sent by a base station, obtaining a child node GPS timestamp by the child node, measuring according to the position information message, obtaining the position coordinate of the child node in the child node GPS timestamp, generating a positioning information message according to the position coordinate and sending the positioning information message to the base station when any child node judges that the child node is in a time window, receiving the positioning information message sent by the child node by the base station, generating a confirmation message according to the positioning information message and triggering a signal transmission module to send the confirmation message by the child node, receiving the confirmation message sent by the base station by the child node, adjusting the time window and entering a dormant state, and reporting the next positioning information according to the adjusted time window.
Compared with the prior art, the invention discloses a low-power consumption control method for positioning, which enables a child node to wake up and report data only in a specific time window by implementing the time window control and random time reporting mechanism, and the rest time is in a low-power consumption mode, thereby obviously reducing the communication times and avoiding network congestion. Meanwhile, the base station dynamically adjusts the reporting time window according to the data reported by the child node, and the communication efficiency is optimized. In addition, the GPS timestamp is utilized for accurate positioning calculation, so that the energy consumption caused by frequent communication is reduced, the validity of each report is ensured through a message confirmation mechanism, the energy consumption caused by invalid communication attempts is further reduced, and the power consumption of the whole positioning system is effectively reduced by integrating the strategies.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Along with the rapid development of positioning technology, relatively accurate positioning can be completed through a high-precision positioning mode of matching satellites and base stations, and the positioning modes on the market at present mainly comprise GPS positioning, beidou positioning, mobile base station positioning, wi-Fi base station positioning and the like, and satellite positioning technology such as GPS and Beidou is the most mainstream positioning mode due to high precision and wide coverage range. However, in specific environments such as indoors or urban canyons, the positioning accuracy can be greatly reduced due to signal shielding or low quality. In addition, the satellite positioning equipment has large power consumption and high cost, and is unfavorable for long-time and large-scale deployment. The development of positioning technology for wireless communication has become an important development direction.
In the existing wireless communication positioning technology, wi-Fi positioning technology has the advantages that Wi-Fi signal transmission speed is high, transmission frequency band is wide, wi-Fi signals can be basically received in places covered by mobile phones, and therefore the Wi-Fi positioning technology is gradually developed. In Wi-Fi positioning technology, a Wi-Fi positioning system is provided, the system is divided into two parts, a base station and a tag, the base station is responsible for broadcasting a positioning ID, and the tag measures signal strength and calculates position coordinates after receiving the ID.
When a large number of sub-nodes work simultaneously, network congestion can be caused, and positioning accuracy is affected. Meanwhile, the child node needs to continuously transmit data, resulting in an increase in power consumption, which brings the trouble of frequent battery replacement or charging to the user. In summary, in the existing Wi-Fi positioning technology, the child node needs to continuously send data, so that the power consumption is increased, and inconvenience is brought to the use of a user.
In order to solve the above technical problems, referring to fig. 1, a first embodiment of the present invention provides a positioning low power consumption control method, which includes the following steps:
s11, broadcasting a position information message once at intervals of preset time by a base station, wherein the position information message comprises a base station ID and a base station GPS time stamp;
s12, the child node receives the position information message sent by the base station, acquires a child node GPS time stamp, and measures according to the position information message to acquire the position coordinate of the child node at the child node GPS time stamp;
S13, when any child node judges that the child node is in a time window, generating a positioning information message according to the position coordinates and sending the positioning information message to the base station;
S14, the base station receives the positioning information message sent by the child node, generates a confirmation message according to the positioning information message, and triggers a signal transmission module to send the confirmation message;
And S15, the child node receives the confirmation message sent by the base station, adjusts the time window and enters a dormant state, and reports the next positioning information according to the adjusted time window.
In step S11, the base station broadcasts a position information message once at intervals of preset time, wherein the position information message comprises a base station ID and a base station GPS time stamp.
The base station comprises a signal transmission module, wherein the signal transmission module is used for broadcasting a position information message at intervals of preset time.
The number of times of broadcasting the position information message is positively correlated with the number of the on-site sub-nodes, the preset time can be dynamically adjusted according to the relative positions of the base station and the sub-nodes, the number of the sub-nodes, the receiving rate and the frame length to adapt to different network environments and communication requirements, the base station and the sub-nodes can reduce energy consumption while maintaining network efficiency by reducing unnecessary communication and optimizing communication time, the purpose is to balance the requirements of network communication load and positioning accuracy, network congestion and unnecessary energy consumption can be caused if the interval is too short, and the real-time performance and accuracy of positioning are affected if the interval is too long.
In step S12, the child node receives the location information message sent by the base station, obtains a child node GPS time stamp, and measures according to the location information message to obtain the location coordinate of the child node at the child node GPS time stamp.
S121, the child node makes a difference between the GPS time stamp of the base station and the GPS time stamp of the child node to obtain a time difference value, and calculates the distance from the child node to the base station according to the time difference value;
and S122, the child node calculates and obtains the position coordinates of the child node at the child node GPS time stamp according to the child node GPS time stamp, the distance between the child node and the base station and the prestored historical child node GPS time stamp reported last time by the child node.
In step S121, the sub-node makes a difference between the base station GPS time stamp and the sub-node GPS time stamp to obtain a time difference value, and calculates a distance from the sub-node to the base station according to the time difference value;
In a specific embodiment, the sub-node makes a difference between the base station GPS time stamp and the sub-node GPS time stamp to obtain a time difference, and calculates a distance from the sub-node to the base station according to the time difference, including:
The time difference is calculated according to the following formula:
;
Wherein,The time difference value is represented by a time difference value,Representing the base station GPS time stamp,Representing a child node GPS timestamp;
The distance between the child node and the base station is calculated according to the following formula:
;
Wherein,Representing the distance of the child node to the base station,Representing the propagation velocity of the signal in air,Representing the time difference.
In another specific embodiment, the sub-node makes a difference between the base station GPS time stamp and the sub-node GPS time stamp to obtain a time difference, and calculates a distance from the sub-node to the base station according to the time difference, including:
The distance between the child node and the base station is calculated according to the following formula:
;
Wherein,Representing the distance of the current time child node to the base station,Indicating the last reported distance from the child node to the base station,Representing the propagation velocity of the signal in air,Representing the current time child node GPS timestamp,And the historical GPS time stamp of the last reported historical child node is shown.
In step S122, the child node calculates and obtains the position coordinates of the child node at the child node GPS time stamp according to the child node GPS time stamp, the distance between the child node and the base station, and the previously stored historical child node GPS time stamp reported last time by the child node.
In a specific embodiment, the calculating, by the child node, the position coordinate of the child node at the child node GPS timestamp according to the child node GPS timestamp, the distance between the child node and the base station, and the previously stored historical child node GPS timestamp reported last time by the child node, includes:
the linear direction vector from the child node to the base station is calculated according to the following formula:
;
Wherein,Representing the straight line direction vector of the child node to the base station,Representing the coordinates of the location of the base station,Representing location coordinates of the child node GPS time stamp;
estimating a new position coordinate of the child node by using the distance from the child node to the base station, the linear direction vector from the child node to the base station and the movement model of the child node;
If the moving speed and direction of the child node are known, the new position coordinate of the child node can be estimated by the following formula:
;
;
Wherein,Representing the location coordinates of the child node GPS time stamp,Representing the pre-stored location coordinates of the last reported historical child node GPS time stamp of the child node,Representing the speed of the child node,Is the angle between the moving direction of the child node and the positive x-axis,Representing the time difference.
In step S13, when any one of the child nodes determines that the child node itself is within the time window, a positioning information message is generated according to the position coordinates and the positioning information message is sent to the base station.
The child node judges whether the current moment is suitable for sending the positioning information according to a preset reported time window, and when any one child node judges that the child node is in the time window, the child node generates a positioning information message based on the position coordinates and other related information of the child node, wherein the time window refers to that the child node is configured to send the positioning information message only in a specific time range;
The process of generating a location information message by a child node typically involves collecting and integrating a plurality of data points including the child node's ID, event number, reporting time, and location coordinates of the child node's GPS timestamp, the child node will use its built-in sensors and signal processing capabilities to measure signal strength, calculate location coordinates, and combine the GPS timestamp to generate such information, and then the child node will encapsulate such information into a location information message that conforms to a specific communication protocol, such as ieee802.15.4, to ensure compatibility and efficient communication with the base station;
By sending the positioning information within a specific time window, the child node can reduce communication conflict with the base station, thereby reducing the risk of network congestion; in addition, the method is also beneficial to reducing the energy consumption of the child node, because the child node wakes up and transmits data only when necessary, and the child node can enter a low-power mode in other time, the design is very beneficial to prolonging the service life of the child node and reducing the maintenance cost, and meanwhile, the base station can receive accurate and timely positioning data, so that the positioning accuracy and the system reliability are improved.
In step S14, the base station receives the positioning information message sent by the child node, generates a confirmation message according to the positioning information message, and triggers the signal transmission module to send the confirmation message.
Firstly, a wireless receiving module of a base station continuously monitors positioning information messages from a child node, wherein the messages comprise the ID of the child node, an event number, reporting time, a GPS time stamp of the child node and position coordinates. The wireless receiving module of the base station has high-efficiency signal capturing capability, can accurately capture weak signals sent by the child nodes, and starts a decoding process;
The decoding process involves parsing the positioning information message to extract the ID, event number, reporting time of the child node, and GPS time stamp and location coordinates of the child node. This process requires a base station with powerful signal processing capabilities to ensure that useful information is accurately extracted from the noise. The decoding algorithm of the base station needs to be capable of processing various signal interferences and guaranteeing the accurate extraction of information;
Once decoding is complete, the positioning module of the base station will acquire local GPS time, which will be used to compare with the GPS time stamp of the child node to calculate the time difference between the child node and the base station. The time difference is one of key factors for calculating the position of the sub-node, the signal processing module of the base station calculates the distance between the sub-node and the base station according to the decoded information, and the calculation involves a complex mathematical model, such as estimating the distance by using the propagation time of the signal.
The base station also performs the position location calculation of the base station or the child nodes according to the position coordinates of the GPS time stamps of the other child nodes, wherein the step is to improve the accuracy of the location, and the location results are cross-verified and calibrated through the information of a plurality of child nodes;
after the calculation is completed, the base station determines a time window for the next report of the child node, wherein the time window is calculated based on the distance between the child node and the base station, the broadcasting period of the base station and a random number, and the random number is introduced to reduce communication conflict between the child nodes and improve the communication efficiency of the network;
After generating a confirmation message, the base station broadcasts the confirmation message on a preset frequency through a wireless transmission module thereof, wherein the confirmation message is a response to the reporting information of the child node and confirms that the positioning information of the child node is successfully received by the base station;
The base station can effectively monitor and manage the sub-nodes in the network in such a way, and ensure that each sub-node can report positioning information according to a preset time table. Meanwhile, the mechanism also keeps the stability of the network and avoids network congestion caused by frequent communication;
In addition, the bidirectional communication mechanism is also beneficial to reducing the energy consumption of the child node, the child node can enter a dormant state after receiving the confirmation message until the next reporting time window comes, and the low-power-consumption operation mode remarkably prolongs the service life of the battery of the child node, reduces the maintenance cost and improves the use convenience of users.
In step S15, the child node receives the acknowledgement message sent by the base station, adjusts the time window and enters into the sleep state, so as to report the next positioning information according to the adjusted time window.
After receiving a confirmation message broadcast by a base station, a child node firstly analyzes information in the confirmation message, obtains the analyzed confirmation message and confirms that a previously sent positioning information message has been successfully received by the base station;
the analyzed confirmation message triggers the child node to adjust the time window of the next report according to the indication of the base station and the current state of the network;
The child node calculates the time window of the next report according to the timestamp in the analyzed confirmation message and the broadcasting period preset by the base station and combining the historical report time and the randomly generated offset. And determining a time window of the next report according to the following formula (1), (2) or (3), thereby reducing communication conflict and energy consumption and simultaneously ensuring effective operation of the network.
After the adjustment of the time window is completed, the child node will enter a sleep state to save energy. During sleep, the energy consumption of the child node is greatly reduced, but the listening capability to the base station broadcast is still maintained. When the child node wakes up again according to the adjusted time window, the child node collects and reports positioning information according to a preset time point. The process involves the wakeup of child nodes, the collection, processing and encapsulation of data into positioning information messages, which are then sent to the base station by the signaling module. This cycle is repeated, ensuring continuous operation of the positioning system and real-time updating of the data.
By the mode, the child node can ensure the positioning accuracy, reduce the energy consumption of the child node to the greatest extent, prolong the service life of the battery and realize low-power-consumption operation.
It should be noted that, for the situation that a child node reports, the base station adjusts the time window according to the following formula (1):
;
wherein t1 represents a time window of next report, D represents a distance from the child node to the base station, R represents a broadcasting period of the base station, and M1 represents a random number.
It should be noted that, for the situation that a child node reports, after receiving the positioning information message, the base station obtains the current reporting time in the positioning information message, and adjusts the time window according to the following formula (2):
;
Wherein t2 represents a time window of the next report, t4 represents a time of the last report, t5 represents a time of the current report, and M2 represents a random number.
It should be noted that, for the situation that multiple child nodes report simultaneously, the base station ranks the received positioning information messages according to the priority of the reporting time, obtains the reporting time of the positioning information messages and the ranked positioning information messages, and adjusts the time window according to the following formula (3):
;
Wherein T3 represents a time window of next reporting, T represents a reporting time slot in the received message, T6 represents a time of receiving the message, and M3 represents a random number.
It should be noted that, in the case that the plurality of child nodes report at the same time, the base station ranks the received positioning information messages according to the priority of the reporting time, including:
S21, the reporting time of the positioning information message is differed from the current time, and the difference value between the reporting time of the positioning information message and the current time is obtained;
S22, the base station sequentially sorts the positioning information messages according to the priority order of the difference values from small to large to obtain the sorted positioning information messages.
In step S21, the reporting time of the positioning information message is differenced from the current time to obtain a difference between the reporting time of the positioning information message and the current time, including;
And calculating to obtain the difference value between the reporting time and the current time of the positioning information message according to the following formula:
;
Wherein,Represent the firstThe time difference of the positioning information messages of the child nodes,Is the current time of the base station,Represent the firstAnd reporting time of the positioning information message of the child node.
In step S22, the base station sequentially sorts the positioning information messages according to the priority order from the small difference to the large difference, so as to obtain a sorted positioning information message, which includes:
the logic of ordering can be described as:
;
Wherein,Representing the ranking function,Representing a set containing all of the positioning information messages,An array of time difference values representing each message;
wherein the ranking function Sort is not a specific mathematical formula, but a general computer science concept, referring to an algorithm or function that ranks a series of elements. In programming, there are a number of different sorting algorithms that can be used to implement this function, such as fast sorting, merge sorting, heap sorting, etc. In the case of the base station prioritizing the positioning information messages, the Sort function will order the messages based on the difference between the time reported by the child node and the current time.
Through the ordering mechanism, the base station can effectively manage and process the positioning information from a plurality of child nodes, so that the timely updating and processing of the positioning data are ensured, and meanwhile, the response speed and accuracy of the whole positioning system are improved. This time priority based ordering strategy is critical to maintaining system stability and efficiency when network loads are high.
The working process of the present invention is described below by taking a more general scenario as an example. The invention relates to a low-power consumption control method for positioning, which comprises the following steps:
the signal transmission module of the base station broadcasts a position information message containing the base station ID and the base station GPS timestamp according to a preset time interval. The preset time interval can be dynamically adjusted according to network environment and communication requirements to adapt to different network conditions and the number of the sub-nodes, for example, in the area with dense sub-nodes or large communication flow, the time interval can be properly shortened to improve the real-time performance of positioning;
After the base station broadcasts the position information messages, the child node receives the messages and acquires the GPS time stamp of the child node. The method comprises the steps that a wireless receiving module of a sub-node is used for capturing a position information message broadcast by a base station and recording a GPS time stamp of the sub-node, and the key of the step is that the signal receiving module of the sub-node can capture the position information message broadcast by the base station and record the GPS time stamp of the sub-node. This timestamp is important data for performing subsequent positioning calculations, as it provides an accurate point of time reference for the child node.
The signal processing module of the child node can calculate the time difference between the child node and the base station by comparing the base station GPS time stamp and the child node GPS time stamp. This time difference is a key factor in estimating the distance between the child node and the base station, and since the propagation speed of the signal in air is known, the distance can be calculated from the time difference;
After the position information message of the base station and the GPS time stamp of the base station are obtained, the child node can measure and calculate the position coordinate of the GPS time stamp of the child node, the child node firstly makes the difference between the GPS time stamp of the base station and the GPS time stamp of the child node to obtain a time difference value, and then the child node calculates the distance between the child node and the base station according to the time difference value and the propagation speed of the signal in the air.
Next, the child node calculates and obtains the position coordinates of the child node at the child node GPS time stamp according to the child node GPS time stamp, the distance between the child node and the base station and the prestored historical child node GPS time stamp reported last time by the child node;
when the child node judges that the child node is in a preset time window, the child node generates a positioning information message according to the calculated position coordinates, wherein the positioning information message generated by the child node comprises key information such as a child node ID, an event number, reporting time and position coordinates of a child node GPS time stamp;
the positioning information message generated by the child node is the basis of the base station for positioning calculation and network management, and the base station can accurately know the position of the child node through the information so as to realize the effective management of the whole network;
After generating the positioning information messages, the child node sends the messages to the base station;
And the base station can perform positioning calculation to determine the position of the child node after receiving the messages, and can manage and monitor the child node according to the information to ensure the stable operation of the network.
After receiving the positioning information message sent by the child node, the base station decodes and processes the positioning information message to extract key information. The positioning module of the base station can acquire the local time and the GPS time of the base station, and the signal processing module can calculate the distance between the child node and the base station according to the decoded positioning information message and perform the position positioning calculation of the base station or the child node;
After the received positioning information message is processed, the base station generates a confirmation message for confirming that the positioning information message sent by the child node is successfully received, and the base station broadcasts the confirmation message on a preset frequency through a wireless transmission module of the base station;
After receiving the confirmation message broadcast by the base station, the child node analyzes the information in the confirmation message, and confirms that the positioning information message sent before the confirmation message is successfully received by the base station;
After the adjustment of the time window is completed, the child node will enter a sleep state to save energy. During sleep, the energy consumption of the child node is greatly reduced, but the listening capability to the base station broadcast is still maintained. When the child node wakes up again according to the adjusted time window, the child node collects and reports positioning information according to a preset time point and then repeats the process;
The realization of the step ensures that the child node reduces the energy consumption of the child node to the greatest extent while maintaining network communication, prolongs the service life of a battery and improves the efficiency of the whole positioning system, and in this way, the child node can reduce the energy consumption and realize low-power-consumption operation while ensuring the positioning precision.
In summary, the present invention is based on a low power consumption control method for positioning, in which a base station periodically broadcasts position information messages, and a child node receives and uses the messages to perform positioning calculation, and then reports positioning information in a specific time window. After the base station receives the information, a confirmation message is broadcast to confirm the receiving, the child node adjusts the next reporting time window according to the confirmation message and enters a dormant state, effective communication and accurate positioning between the child node and the base station are realized, system power consumption is reduced, and the energy consumption caused by frequent communication is effectively reduced by dynamically adjusting the reporting time window and using GPS timestamp to perform accurate positioning calculation. By integrating these strategies, the present invention reduces the power consumption of the overall positioning system.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, magnetic disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations or block diagrams of methods, systems, and computer program products according to embodiments of the application. It will be understood that each flow or block of the flowchart illustrations or block diagrams, and combinations of flows or blocks in the flowchart illustrations or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows or block diagram block or blocks.
The foregoing is merely a preferred embodiment of the present invention, and it should be noted that modifications and variations could be made by those skilled in the art without departing from the technical principles of the present invention, and such modifications and variations should also be regarded as being within the scope of the invention.
Referring to fig. 2, a second embodiment of the present invention provides a low power consumption control system for positioning, including:
the base station is used for broadcasting a position information message once at intervals of preset time, wherein the position information message comprises a base station ID and a base station GPS time stamp;
the base station is also used for receiving a positioning information message sent by the child node, generating a confirmation message according to the positioning information message, and triggering a signal transmission module to send the confirmation message;
The child node is used for receiving the position information message sent by the base station, acquiring a child node GPS time stamp, and measuring according to the position information message to obtain the position coordinate of the child node at the child node GPS time stamp;
The child nodes are also used for generating positioning information messages according to the position coordinates and sending the positioning information messages to the base station when any one of the child nodes judges that the child node is in a time window;
the child node is further configured to receive a confirmation message sent by the base station, adjust the time window, and enter a sleep state, so as to report positioning information next time according to the adjusted time window.
In an alternative embodiment, the base station comprises
The signal transmission module is used for broadcasting a position information message once at intervals of preset time, wherein the position information message comprises a base station ID and a base station GPS time stamp;
and the signal processing module is also used for receiving the positioning information message sent by the child node, generating a confirmation message according to the positioning information message and triggering the signal transmission module to broadcast and send the confirmation message.
In an alternative embodiment, the child node includes:
The signal processing module is used for receiving the position information message sent by the base station, obtaining a child node GPS time stamp, and measuring according to the position information message to obtain the position coordinate of the child node in the child node GPS time stamp;
The signal sending module is used for generating a positioning information message according to the position coordinates and sending the positioning information message to the base station when any child node judges that the child node is in a time window;
and the signal receiving module is used for receiving a confirmation message sent by the base station, adjusting the time window and entering a dormant state so as to report the next positioning information according to the adjusted time window.
It should be noted that, the positioning low power consumption control system provided by the embodiment of the present invention is used for executing all the flow steps of the positioning low power consumption control method in the above embodiment, and the working principles and beneficial effects of the two correspond to each other one by one, so that the description is omitted.
The embodiment of the invention also provides an electronic device. The electronic device comprises a processor, a memory and a computer program stored in the memory and executable on the processor, such as a localized low power control program. The processor executes the computer program to implement the steps in the embodiments of the low power control method for positioning, such as step S11 shown in fig. 1. Or the processor, when executing the computer program, performs the functions of the modules/units in the system embodiments described above, for example, a positioning low-power control module.
The computer program may be divided into one or more modules/units, which are stored in the memory and executed by the processor to accomplish the present invention, for example. The one or more modules/units may be a series of computer program instruction segments capable of performing the specified functions, which instruction segments are used for describing the execution of the computer program in the electronic device.
The electronic device can be a desktop computer, a notebook computer, a palm computer, an intelligent tablet and other computing equipment. The electronic device may include, but is not limited to, a processor, a memory. It will be appreciated by those skilled in the art that the above components are merely examples of electronic devices and are not limiting of the electronic devices, and may include more or fewer components than those described above, or may combine certain components, or different components, e.g., the electronic devices may also include input and output devices, network access devices, buses, etc.
The Processor may be a central processing unit (Central Processing Unit, CPU), other general purpose Processor, digital signal Processor (DIGITAL SIGNAL Processor, DSP), application SPECIFIC INTEGRATED Circuit (ASIC), off-the-shelf Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like that is a control center of the electronic device and that uses various interfaces and lines to connect various parts of the overall electronic device.
The memory may be used to store the computer program and/or modules, and the processor may implement various functions of the electronic device by running or executing the computer program and/or modules stored in the memory and invoking data stored in the memory. The memory may mainly include a storage program area which may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), etc., and a storage data area which may store data created according to the use of the cellular phone (such as audio data, a phonebook, etc.), etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as a hard disk, memory, plug-in hard disk, smart memory card (SMART MEDIA CARD, SMC), secure Digital (SD) card, flash memory card (FLASH CARD), at least one disk storage device, flash memory device, or other volatile solid-state storage device.
Wherein the integrated modules/units of the electronic device may be stored in a computer readable storage medium if implemented in the form of software functional units and sold or used as stand alone products. Based on such understanding, the present invention may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include any entity or system capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the computer readable medium contains content that can be appropriately scaled according to the requirements of jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is subject to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.
It should be noted that the system embodiments described above are merely illustrative, and that the units described as separate units may or may not be physically separate, and that units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in the system embodiment drawings provided by the invention, the connection relation between the modules is represented as communication connection, and the connection relation can be specifically implemented as one or more communication buses or signal lines. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
The foregoing embodiments have been provided for the purpose of illustrating the general principles of the present invention, and are not to be construed as limiting the scope of the invention. It should be noted that any modifications, equivalent substitutions, improvements, etc. made by those skilled in the art without departing from the spirit and principles of the present invention are intended to be included in the scope of the present invention.