Disclosure of Invention
The purpose of the disclosure is to provide a chip acquisition and positioning control method, a chip acquisition and positioning control device and a chip, wherein the method can enable the chip to perform both narrowband internet of things communication and GPS positioning, and realizes that a single chip internet of things chip supports both positioning and narrowband internet of things communication.
In order to achieve the above object, the present disclosure provides a method for controlling chip acquisition and positioning, where the method is applied to a dual-mode baseband processing chip that supports both narrowband internet of things communication and GPS positioning, and the method includes:
receiving a positioning request;
decomposing the positioning request into positioning time slices;
when the communication state of the narrowband Internet of things is in an idle state and when an idle interval in the narrowband Internet of things communication is larger than or equal to a preset threshold value, the positioning time slice is inserted into the idle interval in the narrowband Internet of things communication to control a GPS data processing module to acquire current positioning information.
Optionally, the method further comprises:
and storing the current positioning information acquired by the GPS data processing module in a first database.
Optionally, the method further comprises:
and when the positioning request is received and the narrowband Internet of things communication is in a non-idle state, taking the latest positioning information in the first database as the current positioning information.
Optionally, the method further comprises:
and when the positioning request is received and the idle interval in the narrowband Internet of things communication is smaller than a preset threshold value, taking the latest positioning information in the first database as the current positioning information.
Optionally, the method further comprises:
and when a narrow-band Internet of things data receiving and sending request is received in the process of acquiring the current positioning information by the GPS data processing module, stopping the work of the GPS data processing module.
Optionally, the method further comprises:
and when the process of acquiring the current positioning information by the GPS data processing module is stopped midway, storing the GPS capture data acquired by the GPS data processing module in a second database.
Optionally, the method further comprises:
and when the positioning request is received, and when the narrow-band Internet of things communication state is an idle state, an idle interval in the narrow-band Internet of things communication is greater than or equal to a preset threshold value, and the GPS capturing data meeting preset conditions exist in the second database, controlling the GPS data processing module to acquire the current positioning information according to the GPS capturing data.
The present disclosure also provides a control device for chip acquisition positioning, the device comprising:
a request receiving module, configured to receive a positioning request;
the decomposition module is used for decomposing the positioning request received by the request receiving module into positioning time slices;
and the time sequence management module is used for inserting the positioning time slices decomposed by the decomposition module into the idle intervals in the communication of the narrowband Internet of things to control the GPS data processing module to acquire the current positioning information when the communication state of the narrowband Internet of things is in an idle state and when the idle intervals in the communication of the narrowband Internet of things are greater than or equal to a preset threshold value.
Optionally, the apparatus further comprises:
and the first storage module is used for storing the current positioning information acquired by the GPS data processing module in a first database.
Optionally, the apparatus further comprises:
a current positioning information determining module, configured to, when the request receiving module receives the positioning request and the narrowband internet of things communication is in a non-idle state, use the latest positioning information in the first database as the current positioning information.
Optionally, the apparatus further comprises:
a current positioning information determining module, configured to, when the request receiving module receives the positioning request and an idle interval in the narrowband internet of things communication is smaller than a preset threshold, use the latest positioning information in the first database as the current positioning information.
Optionally, the apparatus further comprises:
and the positioning stopping module is used for stopping the work of the GPS data processing module when the request receiving module receives a narrow-band Internet of things data receiving and sending request in the process of acquiring the current positioning information by the GPS data processing module.
Optionally, the apparatus further comprises:
and the second storage module is used for storing the GPS capture data acquired by the GPS data processing module in a second database when the positioning stopping module stops the work of the GPS data processing module in the process of acquiring the current positioning information by the GPS data processing module.
Optionally, the timing management module is further configured to:
and when the request receiving module receives the positioning request, and when the narrow-band Internet of things communication state is an idle state, an idle interval in the narrow-band Internet of things communication is greater than or equal to a preset threshold value, and the second database contains the GPS capturing data meeting preset conditions, controlling the GPS data processing module to acquire the current positioning information according to the GPS capturing data.
The present disclosure also provides a chip, the chip comprising:
the control device for obtaining and positioning the chip;
the GPS data processing module is used for acquiring the current positioning information under the control of the control device;
and the narrow-band Internet of things communication module is used for carrying out narrow-band Internet of things communication under the control of the control device.
According to the technical scheme, the positioning request is received in the chip supporting the narrow-band Internet of things communication, and the positioning request is decomposed into the time slices which are inserted into the discontinuous receiving affairs in the narrow-band Internet of things communication to control the GPS data processing module to acquire the positioning information.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Detailed Description
The following detailed description of specific embodiments of the present disclosure is provided in connection with the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present disclosure, are given by way of illustration and explanation only, not limitation.
Fig. 1 is a diagram illustrating a method for controlling chip acquisition and positioning according to an exemplary embodiment of the present disclosure, where the chip may include a chip based on narrowband internet of things communication, and the method may be applied to a dual-mode baseband processing chip that supports both narrowband internet of things communication and GPS positioning. As shown in fig. 1, the method includes steps 101 to 103.
In step 101, a positioning request is received. The positioning request may be a positioning request from a user, or a positioning request from another location, as long as the positioning request is a request for requesting positioning information.
In step 102, the positioning request is decomposed into positioning time slices. The method of splitting the request into time slices is well known to those skilled in the art, and for example, the TDD technology in the 3G field uses time slice division, so the method of splitting the request into time slices is not described herein again.
In step 103, when the narrowband internet of things communication state is an idle state and an idle interval in the narrowband internet of things communication is greater than or equal to a preset threshold, the positioning time slice is inserted into the idle interval in the narrowband internet of things communication to control the GPS data processing module to acquire the current positioning information.
The GPS data processing module may be, for example, a programmable processor or a digital logic circuit, and is capable of performing demodulation of GPS signals, C/a code acquisition, P code acquisition, tracking loop, and the like to acquire positioning signals.
The narrow-band internet of things communication state can be, for example, the state of a narrow-band internet of things communication module, and the narrow-band internet of things communication module can be, for example, a programmable processor or a digital logic circuit, and can complete receiving, demodulating, decoding and other works of a narrow-band internet of things signal so as to complete narrow-band internet of things communication. The narrowband internet of things communication state can be, for example, a standby state, an idle state, a connection state, and the like. When the narrowband internet of things communication state is an idle state, discontinuous receiving actions such as paging can be performed, the discontinuous receiving actions can be completed by the narrowband internet of things communication module, for example, the narrowband internet of things communication module is enabled to perform communication for time K at intervals of time T, wherein K < T, the length of time T is determined by setting of a base station side of the narrowband internet of things, and the value of time K is as short as possible in a range shorter than time T. The idle interval may be the time T, and the preset threshold is a self-defined time threshold, where the time threshold is used to ensure that the time T is sufficient for the GPS data processing module to complete one or part of the acquisition of the GPS positioning information. For example, when the narrowband internet-of-things communication module is enabled to perform communication at time K every time T, and when the time T is greater than or equal to the preset threshold, the positioning time slice is inserted into the idle interval T, the GPS data processing module is enabled to operate in the time period of the time T, and the narrowband internet-of-things communication module operates in the time period of the time K, which are alternated, so that the GPS positioning information can be acquired in the idle interval during which narrowband internet-of-things communication is performed.
In a possible implementation manner, the method further includes receiving a data transceiving request from a user, decomposing the data transceiving request into data transceiving time slices, and controlling a narrowband internet of things communication module to perform narrowband internet of things communication according to the data transceiving time slices.
According to the technical scheme, the positioning request is received in the chip supporting the narrow-band Internet of things communication, the positioning request is decomposed into the time slices which are inserted into the idle intervals in the narrow-band Internet of things communication to control the GPS data processing module to acquire the positioning information, the control method can enable the chip to carry out both the narrow-band Internet of things communication and the GPS positioning, the single chip Internet of things chip can support both the positioning and the narrow-band Internet of things communication, and because the GPS positioning and the narrow-band Internet of things communication can not be carried out simultaneously, the narrow-band Internet of things communication and the GPS positioning can use the same antenna and radio frequency transceiver, and the hardware cost is relatively saved.
In one possible embodiment, the method further comprises: and storing the current positioning information acquired by the GPS data processing module in a first database. The first database may be a memory space located on the chip. The GPS data processing module acquires the current positioning information and then stores the current positioning information in the first database, so that the first database can provide the latest positioning information as the current positioning information when the GPS data processing module cannot perform real-time positioning.
In one possible embodiment, the method further comprises: and identifying the credibility of the positioning information in the first database according to the switching record of the resident cell in the narrow-band Internet of things communication process. For example, the confidence level may be identified according to the number of times the camped cell has been switched after the positioning information is acquired, for example, if the camped cell has been switched 1 time after the positioning information is acquired, the confidence level is identified as level a, and if the camped cell has been switched 2 times after the positioning information is acquired, the confidence level is identified as level B; the confidence level may also be identified according to a range interval in which the number of times of the handover of the camping cell after the acquisition of the positioning information is located, for example, when the number of times of the handover of the camping cell after the acquisition of the positioning information is within 1 to 3, the confidence level is identified as a level a, and when the number of times of the handover of the camping cell after the acquisition of the positioning information is within 4 to 6, the confidence level is identified as a level B. This allows the identification to indicate the reliability of the location information when reporting on the basis of the location information stored in the first database.
In one possible embodiment, the method further comprises: and after the GPS data processing module finishes one or more times of acquisition of the positioning information according to the positioning request, setting the GPS positioning state to be a standby state. Because network interaction with the outside cannot be performed when the narrow-band internet of things is in sleep for a long time, reporting of GPS positioning information on a server or other nodes on the network is not needed, and the GPS data processing module only needs to acquire the current positioning information when receiving a positioning request of a user. The positioning request can be a single positioning request or a continuous positioning request, but no matter the positioning request is the single positioning request or the continuous positioning request, the GPS data processing module does not keep the starting state any more as long as the GPS data processing module finishes one or more times of acquisition of positioning information required by the positioning request in the idle interval of the narrow-band Internet of things communication, and thus the power consumption of the GPS data processing module can be saved.
In one possible embodiment, the method further comprises: and when a narrow-band Internet of things data receiving and sending request is received in the process of acquiring the current positioning information by the GPS data processing module, stopping the work of the GPS data processing module. In the chip positioning obtaining method provided by the disclosure, the priority of the narrowband internet of things communication is higher than that of the GPS positioning, and therefore, when the positioning request is received, it is necessary to determine whether the idle interval of the narrowband internet of things communication is sufficient for GPS positioning, and even if the idle interval meets a preset condition, for example, is greater than or equal to the preset threshold, the positioning time slice has been inserted into the idle interval to obtain the current positioning information, and as long as the data transceiving request of the narrowband internet of things communication is received at this time, the operation of the GPS data processing module is stopped at any time, and the data transceiving request of the current narrowband internet of things communication is preferentially processed. Just so can realize under the prerequisite that single chip thing networking chip supported location and narrowband thing networking communication simultaneously, can also guarantee that narrowband thing networking communication's function does not receive GPS locate function's influence, and because GPS location can not go on simultaneously with narrowband thing networking communication, can also make narrowband thing networking communication and GPS location use same antenna and radio frequency transceiver like this, practiced thrift the hardware cost relatively.
In one possible embodiment, the method further comprises: and when the process of acquiring the current positioning information by the GPS data processing module is stopped midway, storing the GPS capture data acquired by the GPS data processing module in a second database. The second database may be provided in the chip. The GPS acquisition data may include data such as the position, velocity, doppler shift, etc. of the satellites in view in the current sky. Since the priority of the narrowband internet of things communication is higher than that of the GPS positioning, a situation that the GPS positioning needs to be interrupted immediately to process a data transceiving request when the data transceiving request of the narrowband internet of things communication is received in the process of acquiring the current positioning information in the GPS positioning time slice. Therefore, in the process of acquiring the positioning information by the GPS data processing module, the acquired GPS capturing data is stored in the second database, so that the positioning and tracking can be quickly restored according to the GPS capturing data stored in the second database when the work of the GPS data processing module is started again after being interrupted, and the desynchronization of the GPS positioning is reduced to a certain extent.
Fig. 2 is a diagram illustrating a method for controlling chip acquisition positioning according to yet another exemplary embodiment of the present disclosure. As shown in fig. 2, the method includes steps 201 to 206 in addition to steps 101 and 102 shown in fig. 1.
In step 201, it is determined whether the narrowband internet of things communication state is an idle state, if so, the process goes to step 203, and if not, the process goes to step 202.
In step 202, the latest positioning information in the first database is used as the current positioning information. When the communication state of the narrowband internet of things is in a non-idle state, namely the communication state of the narrowband internet of things is in a standby state or a connection state and the like, the GPS data processing module is not controlled to carry out GPS positioning, and the latest positioning information in the first database is used as the current positioning information. Therefore, the current positioning information reported when the narrow-band internet of things is communicated for data interaction is the latest positioning information in the first database.
In step 203, it is determined whether an idle interval in the narrowband internet of things communication is greater than or equal to a preset threshold, if so, the process goes to step 204, and if not, the process goes to step 202. The idle interval in the narrowband internet of things communication is a time interval in which the positioning time slice can be inserted, the preset threshold is used for ensuring that the time T is enough for the GPS data processing module to finish one-time or partial GPS positioning information acquisition, and the preset threshold is a self-defined time threshold and is not limited by a specific numerical value. If the idle interval in the narrowband internet of things communication is judged to be smaller than the preset threshold, it indicates that the positioning time slice cannot be inserted into the current narrowband internet of things communication, that is, the GPS positioning information cannot be acquired, so step 202 is executed to use the latest positioning information in the first database as the current positioning information.
In step 204, it is determined whether there is GPS capture data in the second database that meets a predetermined condition. If yes, go to step 206, if not, go to step 205. The preset condition may be, for example, that the acquisition time is within a preset time, for example, GPS acquisition data whose acquisition time is within two hours.
In step 205, the positioning time slice is inserted into an idle interval in the narrowband internet of things communication to control the GPS data processing module to acquire the current positioning information. When the second database does not have available GPS capture data, the positioning time slice is directly inserted into an idle interval in the narrow-band Internet of things communication so as to control the GPS data processing module to acquire the current positioning information.
In step 206, the positioning time slice is inserted into an idle interval in the narrowband internet of things communication to control the GPS data processing module to acquire the current positioning information according to the GPS capture data in the second database. When available GPS capture data exists in the second database, the positioning time slice is inserted into an idle interval in the narrow-band Internet of things communication to control the GPS data processing module to acquire current positioning information according to the GPS capture data in the second database, and the GPS data processing module can recover positioning and tracking more quickly when the GPS data processing module starts to work again through the GPS capture data in the second database, so that the step-out of GPS positioning is reduced to a certain extent.
Through the technical scheme, when the idle interval of narrow-band internet of things communication is not enough to meet the requirement of obtaining the GPS positioning time, the last positioning information stored in the first database is used as the current positioning information, so that the problem that the positioning information cannot be reported after a user sends a positioning request is solved, and after the work of the GPS data processing module is interrupted, the work is started again, the positioning and tracking can be quickly restored again according to the GPS capturing data which is stored in the second database and meets the preset condition, so that the desynchronization of the GPS positioning is reduced to a certain extent. In addition, the narrow-band Internet of things communication module is aligned with the working time of the GPS data processing module, so that the time of the GPS in a tracking state for a long time can be reduced, and compared with the independent GPS module, the CPS data processing module is lower in power consumption. The control method can enable the chip to carry out GPS positioning in the idle interval during narrow-band Internet of things communication, not only realizes that the single chip Internet of things chip supports positioning and can also carry out narrow-band Internet of things communication, but also avoids the situation that the narrow-band Internet of things communication and the GPS positioning are carried out simultaneously because the GPS positioning is finished in the idle interval during the narrow-band Internet of things communication, thereby greatly reducing the peak value requirement of storage resources, reducing the area requirement and the power consumption of storage space in the chip, enabling the narrow-band Internet of things communication and the GPS positioning to use the same antenna and radio frequency transceiver, and relatively saving the hardware cost.
The present disclosure further provides a control device 100 for chip acquisition and positioning based on narrowband internet of things communication, as shown in fig. 3, the device 100 includes:
a request receiving module 10, configured to receive a positioning request.
A decomposition module 20, configured to decompose the positioning request received by the request receiving module 10 into positioning time slices.
And the time sequence management module 30 is configured to insert the positioning time slice decomposed by the decomposition module 20 into an idle interval in the narrowband internet of things communication to control the GPS data processing module to acquire current positioning information when the narrowband internet of things communication state is an idle state and the idle interval in the narrowband internet of things communication is greater than or equal to a preset threshold.
Through the technical scheme, the request receiving module 10 receives the positioning request, the decomposing module 20 decomposes the positioning request into positioning time slices, the timing sequence management module 30 inserts the positioning time slices decomposed by the decomposing module 20 into idle intervals in the narrow-band internet of things communication to control the GPS data processing module to acquire the positioning information, the control device can enable the chip to carry out both narrow-band Internet of things communication and GPS positioning, realizes that the single chip Internet of things chip supports both positioning and narrow-band Internet of things communication, and because the GPS positioning and the narrow-band Internet of things communication can not be carried out at the same time, the narrow-band Internet of things communication and the GPS positioning can use the same antenna and radio frequency transceiver, the hardware cost is relatively saved, and the time sequence management module 30 controls both the GPS positioning and the narrow-band internet of things communication, so that the circuit area and power consumption for control in the baseband chip can be saved.
Fig. 4 is a control apparatus 100 for chip acquisition positioning according to yet another exemplary embodiment of the present disclosure. As shown in fig. 4, the apparatus 100 further includes: a first storage module 40, configured to store the current positioning information acquired by the GPS data processing module in a first database (not shown).
In a possible embodiment, as shown in fig. 4, the apparatus 100 further comprises: a current positioning information determining module 50, configured to, when the request receiving module 10 receives the positioning request and the narrowband internet of things communication is in a non-idle state, use the latest positioning information in the first database as current positioning information. The current positioning information determining module 50 may be further configured to use the latest positioning information in the first database as the current positioning information when the request receiving module 10 receives the positioning request and an idle interval in the narrowband internet of things communication is smaller than a preset threshold.
In a possible embodiment, as shown in fig. 4, the apparatus 100 further comprises: a positioning stop module 60, configured to stop the operation of the GPS data processing module when the request receiving module 10 receives a narrowband internet of things data transceiving request in a process of acquiring the current positioning information by the GPS data processing module.
In a possible embodiment, as shown in fig. 4, the apparatus 100 further comprises: a second storage module 70, configured to store the GPS capture data acquired by the GPS data processing module in a second database (not shown) when the positioning stop module 60 stops the GPS data processing module from operating during the process of acquiring the current positioning information by the GPS data processing module.
In a possible implementation, the timing management module 30 is further configured to: when the request receiving module 10 receives the positioning request, and when the narrowband internet of things communication state is an idle state, an idle interval in the narrowband internet of things communication is greater than or equal to a preset threshold, and the second database has the GPS capture data meeting a preset condition, the GPS data processing module is controlled to obtain the current positioning information according to the GPS capture data.
In a possible implementation manner, the request receiving module 10 is further configured to receive a data transceiving request from a user, the decomposing module 20 is further configured to decompose the data transceiving request into data transceiving time slices, and the timing management module 30 is further configured to control the narrowband internet of things communication module to perform narrowband internet of things communication according to the data transceiving time slices.
In a possible implementation, the apparatus 100 further comprises: an identification module (not shown) configured to identify a reliability of the positioning information in the first database according to a handover record of a cell residing in a narrowband internet of things communication process.
In a possible implementation, the apparatus 100 further comprises: and a GPS state control module (not shown) configured to set the GPS positioning state to a standby state after the GPS data processing module completes one or more times of acquiring the positioning information according to the positioning request.
It is obvious to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the above described functions. For the specific working process of the functional module, reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
The present disclosure also provides a chip, as shown in fig. 5, the chip includes: the control device 100 for acquiring and positioning the chip; the GPS data processing module 200 is configured to obtain positioning information under the control of the control device; the narrowband internet of things communication module 300 is configured to perform narrowband internet of things communication under the control of the control device 100.
The preferred embodiments of the present disclosure are described in detail with reference to the accompanying drawings, however, the present disclosure is not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solution of the present disclosure within the technical idea of the present disclosure, and these simple modifications all belong to the protection scope of the present disclosure.
It should be noted that the various features described in the above embodiments may be combined in any suitable manner without departing from the scope of the invention. In order to avoid unnecessary repetition, various possible combinations will not be separately described in this disclosure.
In addition, any combination of various embodiments of the present disclosure may be made, and the same should be considered as the disclosure of the present disclosure, as long as it does not depart from the spirit of the present disclosure.