CN112566075B - Data packet sending method and device of cellular internet of things equipment and computer equipment - Google Patents
Data packet sending method and device of cellular internet of things equipment and computer equipment Download PDFInfo
- Publication number
- CN112566075B CN112566075B CN202011339531.5A CN202011339531A CN112566075B CN 112566075 B CN112566075 B CN 112566075B CN 202011339531 A CN202011339531 A CN 202011339531A CN 112566075 B CN112566075 B CN 112566075B
- Authority
- CN
- China
- Prior art keywords
- count value
- data packet
- cellular internet
- receiving
- cellular
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/70—Services for machine-to-machine communication [M2M] or machine type communication [MTC]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0203—Power saving arrangements in the radio access network or backbone network of wireless communication networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/20—Manipulation of established connections
- H04W76/28—Discontinuous transmission [DTX]; Discontinuous reception [DRX]
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The application provides a data packet sending method, a device and computer equipment of cellular internet of things equipment, comprising the following steps: the system monitors whether a cellular network signal is scanned; if the cellular network signal is scanned, initializing the count value, and starting to continuously count by a preset time length corresponding to a basic count value. When the system monitors that a basic count value is increased, a plurality of first receiving platforms corresponding to the current count value are obtained; and after the system wakes up the cellular internet of things equipment, the data packets of each first receiving platform are correspondingly sent to each first receiving platform at the same time. According to the method and the device, unified management is established for the sending period of the data packet between the cellular Internet of things equipment and each receiving platform, when a basic count value is increased each time, the cellular Internet of things equipment is awakened to uniformly send the data packet to each corresponding first receiving platform, so that the cellular Internet of things equipment is prevented from being awakened repeatedly, the dormancy time of the cellular Internet of things equipment is effectively prolonged, and the power consumption of the equipment is reduced.
Description
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method and an apparatus for sending a data packet of a cellular internet of things device, and a computer device.
Background
At present, more and more cellular internet of things devices are required to be connected with a plurality of cloud platforms at the same time, different heartbeat packets are required to be sent to the plurality of cloud platforms or data packets are required to be sent regularly, so that long connection of IP data packets between the cellular internet of things devices and the cloud platforms can be maintained, and the cloud platforms can know the conditions of the devices. The existing cellular internet of things equipment does not have system management on heartbeat packets or timing data packets sent to different cloud platforms, so that the cellular internet of things equipment needs to be repeatedly awakened, the dormancy time is shortened, and the power consumption is high.
Disclosure of Invention
The main purpose of the application is to provide a data packet sending method, a data packet sending device and computer equipment of a cellular internet of things device, and aims to solve the defects that the conventional cellular internet of things device needs to be repeatedly awakened and has larger power consumption in order to keep long connection with IP data packets among a plurality of cloud platforms.
In order to achieve the above objective, the present application provides a method for sending a data packet of a cellular internet of things device, including:
monitoring whether a cellular network signal is scanned;
If the cellular network signal is scanned, initializing a count value, and starting continuous counting by a preset time length corresponding to a basic count value, wherein one count value corresponds to one or more receiving platforms, the receiving platforms comprise an Internet of things platform and a cellular network base station, and the basic count value is a value which is increased once during counting;
when the increase of one basic count value is detected, a plurality of first receiving platforms corresponding to the current count value are obtained;
and waking up the cellular internet of things equipment to respectively and correspondingly send the data packets of each first receiving platform to each first receiving platform.
Further, the step of obtaining a plurality of first receiving platforms corresponding to the increment current count value includes:
adding a basic count value on the basis of the initialized count value to obtain a first count value;
and a preset receiving platform and count value mapping relation table is called, and a plurality of first receiving platforms corresponding to the first count value are screened from the receiving platform and count value mapping relation table, wherein one count value in the receiving platform and count value mapping relation table corresponds to one or more receiving platforms.
Further, before the step of monitoring whether the cellular network signal is scanned, the method includes:
detecting the data packet sending frequency agreed by the cellular internet of things equipment and all receiving platforms respectively;
obtaining data packet sending interval duration corresponding to each receiving platform respectively according to each data packet sending frequency;
calculating the least common multiple between the transmission interval durations of the data packets, and setting the value of the least common multiple as the value of the preset duration.
Further, a time base register is provided in the cellular internet of things device, the time base register is a timing tool constructed according to a data packet transmission time reference between the cellular internet of things device and each receiving platform, and if a cellular network signal is scanned, a count value is initialized, and a step of continuously counting is started with a preset time length corresponding to a basic count value, including:
if the cellular network signal is scanned, setting the current moment as the time starting point of the time base register, and initializing the count value of the time base register;
and starting continuously and timing counting through the time base register, wherein the count value of the time base register is a timing duration.
Further, when it is detected that one of the base count values is increased, the step of obtaining a plurality of first receiving platforms corresponding to the current count value includes:
monitoring whether the count value of the time base register is an integer multiple of the preset duration;
and if the count value of the time base register is an integer multiple of the preset duration, the time base register generates a timing interrupt and acquires a plurality of first receiving platforms corresponding to the current count value.
Further, the step of waking up the cellular internet of things device to send the respective data packets of the first receiving platforms to the first receiving platforms respectively, includes:
waking up the cellular internet of things device according to the timed interrupt generated by the time base register;
and respectively and correspondingly transmitting the data packets of each first receiving platform to each first receiving platform through the cellular internet of things equipment.
Further, after initializing the count value and starting to count continuously with a preset duration corresponding to a basic count value if the cellular network signal is scanned, the method includes:
and if the signal loss of the cellular network is detected, setting the time base register to be invalid, and stopping timing counting.
The application also provides a data packet sending device of the cellular internet of things device, which comprises:
the monitoring module is used for monitoring whether the cellular network signal is scanned;
the counting module is used for initializing a counting value if the cellular network signal is scanned, and starting continuous counting by a preset time length corresponding to a basic counting value, wherein the counting value corresponds to one or more receiving platforms, the receiving platforms comprise an Internet of things platform and a cellular network base station, and the basic counting value is a value which is increased once during counting;
the acquisition module is used for acquiring a plurality of first receiving platforms corresponding to the current count value when the increase of one basic count value is monitored;
the awakening module is used for awakening the cellular internet of things equipment to respectively and correspondingly send the data packets of the first receiving platforms to the first receiving platforms.
Further, the obtaining module includes:
the calculating unit is used for increasing a basic count value on the basis of the initialized count value to obtain a first count value;
the screening unit is used for retrieving a preset receiving platform and count value mapping relation table, and screening a plurality of first receiving platforms corresponding to the first count value from the receiving platform and count value mapping relation table, wherein one count value in the receiving platform and count value mapping relation table corresponds to one or more receiving platforms.
Further, the data packet transmitting device further includes:
the detection module is used for detecting the data packet sending frequency agreed by the cellular internet of things equipment and all receiving platforms respectively;
the calculation module is used for obtaining the data packet transmission interval duration corresponding to each receiving platform according to each data packet transmission frequency;
the setting module is used for calculating the least common multiple among the transmission interval durations of the data packets and setting the value of the least common multiple as the value of the preset duration.
Further, a time base register is provided in the cellular internet of things device, the time base register is a timing tool constructed according to a data packet transmission time reference between the cellular internet of things device and each receiving platform, and the counting module includes:
a setting unit, configured to set a current time as a time start point of the time base register and initialize a count value of the time base register if the cellular network signal is scanned;
and the counting unit is used for starting to continuously count in a timing way through the time base register, and the count value of the time base register is a timing duration.
Further, the obtaining module includes:
The monitoring unit is used for monitoring whether the count value of the time base register is an integer multiple of the preset duration;
the acquisition unit is used for generating a timing interrupt by the time base register if the count value of the time base register is an integer multiple of the preset duration, and acquiring a plurality of first receiving platforms corresponding to the current count value.
Further, the wake-up module includes:
the awakening unit is used for awakening the cellular internet of things equipment according to the timed interrupt generated by the time base register;
and the sending unit is used for correspondingly sending the data packets of each first receiving platform to each first receiving platform through the cellular internet of things equipment.
Further, the data packet transmitting device further includes:
and the pause module is used for setting the time base register to be invalid and stopping timing counting if the cellular network signal loss is detected.
The present application also provides a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of any of the methods described above when the computer program is executed.
The present application also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method of any of the above.
The data packet sending method, device and computer equipment of the cellular internet of things equipment provided in the application comprise the following steps: the system monitors whether a cellular network signal is scanned; if the cellular network signal is scanned, initializing the count value, and starting to continuously count by a preset time length corresponding to a basic count value. When the system monitors that a basic count value is increased, a plurality of first receiving platforms corresponding to the current count value are obtained; and after the system wakes up the cellular internet of things equipment, the data packets of each first receiving platform are correspondingly sent to each first receiving platform at the same time. According to the method and the device, unified management is established for the sending period of the data packet between the cellular Internet of things equipment and each receiving platform, when a basic count value is added each time, each first receiving platform corresponding to the current count value is obtained, after the cellular Internet of things equipment is awakened, the data packet is uniformly sent to each corresponding first receiving platform, so that the cellular Internet of things equipment is awakened in a disordered mode in the sending period of the data packet, the sleep time of the cellular Internet of things equipment is effectively increased, and the power consumption of the cellular Internet of things equipment is reduced.
Drawings
Fig. 1 is a schematic diagram of a data packet sending method of a cellular internet of things device according to an embodiment of the present application;
fig. 2 is a block diagram of the overall structure of a data packet sending device of a cellular internet of things device according to an embodiment of the present application;
fig. 3 is a block diagram schematically illustrating a structure of a computer device according to an embodiment of the present application.
The implementation, functional features and advantages of the present application will be further described with reference to the accompanying drawings in conjunction with the embodiments.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
Referring to fig. 1, in an embodiment of the present application, a method for sending a data packet of a cellular internet of things device is provided, including:
s1, monitoring whether a cellular network signal is scanned;
s2, initializing a count value if a cellular network signal is scanned, and starting continuous counting by a preset time length corresponding to a basic count value, wherein one count value corresponds to one or more receiving platforms, the receiving platforms comprise an Internet of things platform and a cellular network base station, and the basic count value is a value which is increased once during counting;
S3, when the increase of one basic count value is monitored, a plurality of first receiving platforms corresponding to the current count value are obtained;
s4, waking up the cellular internet of things equipment to respectively and correspondingly send the data packets of each first receiving platform to each first receiving platform.
In this embodiment, the cellular internet of things device wakes up at regular time, scans the system paging information of the network base station side, and if the system paging information of the network base station side can be scanned, it is indicated that the system can scan the cellular network signal. After scanning the cellular network signal, the system initializes the count value of the built-in counting tool to an initial count value (for example, initializes the count value of the counting tool to an initial count value of 0). And the system controls the counting tool to start continuously counting with a preset time length corresponding to a basic counting value, wherein the basic counting value is a value which is increased once when the counting tool counts. For example, the preset duration is set to 5min, the basic count value is 1, and every 5min, the current count value of the counting tool is increased by 1. The system monitors the current count value of the counting tool in real time (the current count value in the embodiment refers to the latest count value updated in real time), and when the count value of the counting tool is monitored to be increased by one basic count value, a plurality of first receiving platforms corresponding to the current count value are automatically acquired. Each count value corresponds to one or more receiving platforms, and the receiving platforms in this embodiment include an internet of things platform (for example, a cloud platform corresponding to each running APP) and a cellular network base station (a first receiving platform is included in the receiving platforms, and represents some or all of the platforms screened from all of the receiving platforms at present). Specifically, a mapping relation table of a receiving platform and a count value is stored in an internal database (may also be a database in a cloud server), and one count value in the mapping relation table of the receiving platform and the count value corresponds to one or more receiving platforms (may be an internet of things platform or a cellular network base station). And the system screens one or more first receiving platforms corresponding to the current count value from the receiving platform and count value mapping relation table according to the current count value of the counting tool. Finally, the system wakes up the cellular internet of things equipment, so that the cellular internet of things equipment respectively and correspondingly transmits the data packets of each first receiving platform to each first receiving platform obtained through screening, the data packet transmission between the cellular internet of things equipment and each receiving platform is realized to have a uniform transmission period, the orderly management of the transmission time of the data packets is facilitated, the wake-up times of the cellular internet of things equipment are reduced, the repeated wake-up of the cellular internet of things equipment is avoided, the sleep time of the cellular internet of things equipment is effectively increased, and the power consumption of the equipment is reduced. In this embodiment, the data packet is used to maintain long connection of the IP data packet between the cellular internet of things device and the receiving platform and/or let the receiving platform know the status of the cellular internet of things device.
Further, the step of obtaining a plurality of first receiving platforms corresponding to the current count value includes:
s301, adding a basic count value on the basis of the initialized count value to obtain a first count value;
s302, a preset receiving platform and count value mapping relation table is called, and a plurality of first receiving platforms corresponding to the first count value are screened from the receiving platform and count value mapping relation table, wherein one count value in the receiving platform and count value mapping relation table corresponds to one or more receiving platforms.
In this embodiment, when counting for the first time, after a preset time period has elapsed after counting is started, the timing tool in the system increases a basic count value on the basis of the initialized count value to obtain a first count value, where the first count value is an updated count value (if a preset time period has elapsed, a basic count value is increased on the basis of the first count value, for example, the initial count value is 0, when the first preset time period has elapsed, the current count value is 1, when the second preset time period has elapsed, the current count value is 2, and so on). Then, the system invokes a pre-constructed receiving platform and count value mapping relation table, and the receiving platform and count value mapping relation table can be stored in a database in the system; and the system can also be stored in a cloud server, and the system can acquire from the cloud server when needed. The receiving platform and count value mapping relation table comprises corresponding relations between count values and each receiving platform, and one count value corresponds to one or more receiving platforms. And screening one or more first receiving platforms corresponding to the first count value from the receiving platform and count value mapping relation table according to the first count value by the system.
Further, before the step of monitoring whether the cellular network signal is scanned, the method includes:
s5, detecting data packet transmission frequencies agreed by the cellular Internet of things equipment and all receiving platforms respectively;
s6, obtaining data packet transmission interval duration corresponding to each receiving platform according to each data packet transmission frequency;
s7, calculating the least common multiple among the data packet transmission interval duration, and setting the value of the least common multiple as the value of the preset duration.
In this embodiment, before the mapping relationship table between the receiving platform and the count value is not constructed (i.e., before the system has not established a unified transmission period of the data packet between the cellular internet of things device and each receiving platform), the system detects the transmission frequency of the data packet agreed by the protocol between the cellular internet of things device and all the receiving platforms (including the internet of things platform and the cellular network base station). After the data packet sending frequency between the cellular internet of things equipment and each receiving platform is obtained, analyzing according to the data packet sending frequency to obtain the data packet sending interval duration corresponding to each receiving platform. And then, the system calculates the minimum common multiple of the transmission interval duration of each data packet, and sets the value of the calculated minimum common multiple as the value of the preset duration, wherein the minimum common multiple is the common transmission interval duration of the data packets of each receiving platform. For example, the duration of the transmission interval of the data packet corresponding to the receiving platform a is 2min, the duration of the transmission interval of the data packet corresponding to the receiving platform B is 6min, and the duration of the reception of the data packet corresponding to the receiving platform C is 10min, and the calculated least common multiple is 30, so that the preset duration is 30min.
In another embodiment, a time base register is provided in the cellular internet of things device, the time base register is a timing tool constructed according to a data packet transmission time reference between the cellular internet of things device and each receiving platform, and if a cellular network signal is scanned, initializing a count value, and starting to continuously count with a preset time length corresponding to a basic count value, including:
s201, if the cellular network signal is scanned, setting the current moment as the time starting point of the time base register, and initializing the count value of the time base register;
s202, starting continuously timing counting through the time base register, wherein the count value of the time base register is a timing duration.
In this embodiment, a time base register is provided in a system of the cellular internet of things device, where the time base register is a timing tool constructed according to a data packet transmission time reference (i.e. a preset duration in this embodiment) between the cellular internet of things device and each receiving platform, and each counting unit of the time base register is 1ms. And the time base register wakes up the cellular Internet of things equipment in a timed interrupt mode through software setting of the time base register. After the system scans the cellular network signal, the current moment is set as the time starting point of the time base register, and the count value of the time base register is initialized, and the initialized count value is the initial count value (namely, set to 0). A time base register within the system then begins to continually count the timing and the time of transmission of the data packets begins to be monitored. The count value of the time base register corresponds to the timing duration, and the unit is millisecond.
In another embodiment, the step of obtaining a plurality of first receiving platforms corresponding to the current count value when the step of increasing one base count value is detected includes:
s303, monitoring whether the count value of the time base register is an integer multiple of the preset duration;
s304, if the count value of the time base register is integral multiple of the preset duration, the time base register generates a timing interrupt and acquires a plurality of first receiving platforms corresponding to the current count value.
In this embodiment, as can be seen from the above, the count value of the time-base register is a timing duration, and the system monitors in real time whether the count value of the time-base register is an integer multiple of a preset duration. If the count value of the time base register is an integer multiple of the preset duration, the time base register can generate a timing interrupt, so that the system is requested to process the sending action of the data packet preferentially. The system automatically acquires a plurality of first receiving platforms corresponding to the current count value (namely the count value updated in real time) according to the request of the time base register. In this embodiment, the count value is represented by a number plus a preset duration, for example, if the preset duration is T, the initial count value is 0, and after adding a basic count value, 1T is obtained; again, the increment of one base count value is 2T, and so on.
Further, the step of waking up the cellular internet of things device to send the respective data packets of the first receiving platforms to the first receiving platforms respectively, includes:
s401: waking up the cellular internet of things device according to the timed interrupt generated by the time base register;
s402: and respectively and correspondingly transmitting the data packets of each first receiving platform to each first receiving platform through the cellular internet of things equipment.
In this embodiment, the system wakes up the cellular internet of things device through the timer interrupt generated by the time base register, and after the cellular internet of things device is woken up, the respective data packets of each first receiving platform are automatically and correspondingly sent to each first receiving platform at the same time, so that the sending period of the data packets corresponding to each receiving platform is orderly managed, repeated wake up of the cellular internet of things device is not needed, the sleep time of the cellular internet of things device is effectively prolonged, and the electric consumption of the device is reduced.
Further, after initializing the count value and starting to count continuously with a preset duration corresponding to a basic count value if the cellular network signal is scanned, the method includes:
And S8, if the signal loss of the cellular network is detected, setting the time base register to be invalid, and stopping timing counting.
In this embodiment, after the system starts counting, if it detects that the cellular network signal is lost (i.e. the cellular network signal is not scanned), the time base register is set to be invalid immediately, so that the time base register stops timing counting. If the cellular network signal is scanned again later, the current time after the cellular network device is re-registered to the cellular network is required to be set as the time starting point of the time base register, the count value of the time base register is initialized again to be set as 0, and then the timing counting is continued under the condition that the network connection is maintained.
Referring to fig. 2, in an embodiment of the present application, there is further provided a data packet sending device of a cellular internet of things device, including:
a monitoring module 1 for monitoring whether a cellular network signal is scanned;
the counting module 2 is used for initializing a counting value if the cellular network signal is scanned, and starting continuous counting by a preset time length corresponding to a basic counting value, wherein the one counting value corresponds to one or more receiving platforms, the receiving platforms comprise an internet of things platform and a cellular network base station, and the basic counting value is a value which is increased once during counting;
The acquisition module 3 is used for acquiring a plurality of first receiving platforms corresponding to the current count value when the increase of one basic count value is detected;
and the awakening module 4 is used for awakening the cellular internet of things equipment to respectively and correspondingly send the data packets of the first receiving platforms to the first receiving platforms.
In this embodiment, the cellular internet of things device wakes up at regular time, scans the system paging information of the network base station side, and if the system paging information of the network base station side can be scanned, it is indicated that the system can scan the cellular network signal. After scanning the cellular network signal, the system initializes the count value of the built-in counting tool to an initial count value (for example, initializes the count value of the counting tool to an initial count value of 0). And the system controls the counting tool to start continuously counting with a preset time length corresponding to a basic counting value, wherein the basic counting value is a value which is increased once when the counting tool counts. For example, the preset duration is set to 5min, the basic count value is 1, and every 5min, the current count value of the counting tool is increased by 1. The system monitors the current count value of the counting tool in real time (the current count value in the embodiment refers to the latest count value updated in real time), and when the count value of the counting tool is monitored to be increased by one basic count value, a plurality of first receiving platforms corresponding to the current count value are automatically acquired. Each count value corresponds to one or more receiving platforms, and the receiving platforms in this embodiment include an internet of things platform (for example, a cloud platform corresponding to each running APP) and a cellular network base station (a first receiving platform is included in the receiving platforms, and represents some or all of the platforms screened from all of the receiving platforms at present). Specifically, a mapping relation table of a receiving platform and a count value is stored in an internal database (may also be a database in a cloud server), and one count value in the mapping relation table of the receiving platform and the count value corresponds to one or more receiving platforms (may be an internet of things platform or a cellular network base station). And the system screens one or more first receiving platforms corresponding to the current count value from the receiving platform and count value mapping relation table according to the current count value of the counting tool. Finally, the system wakes up the cellular internet of things equipment, so that the cellular internet of things equipment respectively and correspondingly transmits the data packets of each first receiving platform to each first receiving platform obtained through screening, the data packet transmission between the cellular internet of things equipment and each receiving platform is realized to have a uniform transmission period, the orderly management of the transmission time of the data packets is facilitated, the wake-up times of the cellular internet of things equipment are reduced, the repeated wake-up of the cellular internet of things equipment is avoided, the sleep time of the cellular internet of things equipment is effectively increased, and the power consumption of the equipment is reduced. In this embodiment, the data packet is used to maintain long connection of the IP data packet between the cellular internet of things device and the receiving platform and/or let the receiving platform know the status of the cellular internet of things device.
Further, the obtaining module 3 includes:
the calculating unit is used for increasing a basic count value on the basis of the initialized count value to obtain a first count value;
the screening unit is used for retrieving a preset receiving platform and count value mapping relation table, and screening a plurality of first receiving platforms corresponding to the first count value from the receiving platform and count value mapping relation table, wherein one count value in the receiving platform and count value mapping relation table corresponds to one or more receiving platforms.
In this embodiment, when counting for the first time, after a preset time period has elapsed after counting is started, the timing tool in the system increases a basic count value on the basis of the initialized count value to obtain a first count value, where the first count value is an updated count value (if a preset time period has elapsed, a basic count value is increased on the basis of the first count value, for example, the initial count value is 0, when the first preset time period has elapsed, the current count value is 1, when the second preset time period has elapsed, the current count value is 2, and so on). Then, the system invokes a pre-constructed receiving platform and count value mapping relation table, and the receiving platform and count value mapping relation table can be stored in a database in the system; and the system can also be stored in a cloud server, and the system can acquire from the cloud server when needed. The receiving platform and count value mapping relation table comprises corresponding relations between count values and each receiving platform, and one count value corresponds to one or more receiving platforms. And screening one or more first receiving platforms corresponding to the first count value from the receiving platform and count value mapping relation table according to the first count value by the system.
Further, the data packet transmitting device further includes:
the detection module 5 is used for detecting the data packet sending frequency agreed by the cellular internet of things equipment and all receiving platforms respectively;
the calculating module 6 is used for obtaining the data packet sending interval duration corresponding to each receiving platform according to each data packet sending frequency;
the setting module 7 is configured to calculate a least common multiple between the transmission interval durations of the data packets, and set a value of the least common multiple as a value of the preset duration.
In this embodiment, before the mapping relationship table between the receiving platform and the count value is not constructed (i.e., before the system has not established a unified transmission period of the data packet between the cellular internet of things device and each receiving platform), the system detects the transmission frequency of the data packet agreed by the protocol between the cellular internet of things device and all the receiving platforms (including the internet of things platform and the cellular network base station). After the data packet sending frequency between the cellular internet of things equipment and each receiving platform is obtained, analyzing according to the data packet sending frequency to obtain the data packet sending interval duration corresponding to each receiving platform. And then, the system calculates the minimum common multiple of the transmission interval duration of each data packet, and sets the value of the calculated minimum common multiple as the value of the preset duration, wherein the minimum common multiple is the common transmission interval duration of the data packets of each receiving platform. For example, the duration of the transmission interval of the data packet corresponding to the receiving platform a is 2min, the duration of the transmission interval of the data packet corresponding to the receiving platform B is 6min, and the duration of the reception of the data packet corresponding to the receiving platform C is 10min, and the calculated least common multiple is 30, so that the preset duration is 30min.
Further, a time base register is provided in the cellular internet of things device, the time base register is a timing tool constructed according to a data packet transmission time reference between the cellular internet of things device and each receiving platform, and the counting module 2 includes:
a setting unit, configured to set a current time as a time start point of the time base register and initialize a count value of the time base register if the cellular network signal is scanned;
and the counting unit is used for starting to continuously count in a timing way through the time base register, and the count value of the time base register is a timing duration.
In this embodiment, a time base register is provided in a system of the cellular internet of things device, where the time base register is a timing tool constructed according to a data packet transmission time reference (i.e. a preset duration in this embodiment) between the cellular internet of things device and each receiving platform, and each counting unit of the time base register is 1ms. And the time base register wakes up the cellular Internet of things equipment in a timed interrupt mode through software setting of the time base register. After the system scans the cellular network signal, the current moment is set as the time starting point of the time base register, and the count value of the time base register is initialized, and the initialized count value is the initial count value (namely, set to 0). A time base register within the system then begins to continually count the timing and the time of transmission of the data packets begins to be monitored. The count value of the time base register corresponds to the timing duration, and the unit is millisecond.
In another embodiment, the obtaining module 3 includes:
the monitoring unit is used for monitoring whether the count value of the time base register is an integer multiple of the preset duration;
the acquisition unit is used for generating a timing interrupt by the time base register if the count value of the time base register is an integer multiple of the preset duration, and acquiring a plurality of first receiving platforms corresponding to the current count value.
In this embodiment, as can be seen from the above, the count value of the time-base register is a timing duration, and the system monitors in real time whether the count value of the time-base register is an integer multiple of a preset duration. If the count value of the time base register is an integer multiple of the preset duration, the time base register can generate a timing interrupt, so that the system is requested to process the sending action of the data packet preferentially. The system automatically acquires a plurality of first receiving platforms corresponding to the current count value (namely the count value updated in real time) according to the request of the time base register. In this embodiment, the count value is represented by a number plus a preset duration, for example, if the preset duration is T, the initial count value is 0, and after adding a basic count value, 1T is obtained; again, the increment of one base count value is 2T, and so on.
Further, the wake-up module 4 includes:
the awakening unit is used for awakening the cellular internet of things equipment according to the timed interrupt generated by the time base register;
and the sending unit is used for correspondingly sending the data packets of each first receiving platform to each first receiving platform through the cellular internet of things equipment.
In this embodiment, the system wakes up the cellular internet of things device through the timer interrupt generated by the time base register, and after the cellular internet of things device is woken up, the respective data packets of each first receiving platform are automatically and correspondingly sent to each first receiving platform at the same time, so that the sending period of the data packets corresponding to each receiving platform is orderly managed, repeated wake up of the cellular internet of things device is not needed, the sleep time of the cellular internet of things device is effectively prolonged, and the electric consumption of the device is reduced.
Further, the data packet transmitting device further includes:
a suspension module 8, configured to set the time base register to be invalid and stop timing counting if the cellular network signal loss is detected.
In this embodiment, after the system starts counting, if it detects that the cellular network signal is lost (i.e. the cellular network signal is not scanned), the time base register is set to be invalid immediately, so that the time base register stops timing counting. If the cellular network signal is scanned again later, the current time after the cellular network device is re-registered to the cellular network is required to be set as the time starting point of the time base register, the count value of the time base register is initialized again to be set as 0, and then the timing counting is continued under the condition that the network connection is maintained.
Referring to fig. 3, a computer device is further provided in the embodiment of the present application, where the computer device may be a server, and the internal structure of the computer device may be as shown in fig. 3. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer equipment is used for storing data such as a receiving platform and a count value mapping relation table. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a method for transmitting data packets of a cellular internet of things device.
The processor executes the steps of the data packet sending method of the cellular internet of things device:
s1, monitoring whether a cellular network signal is scanned;
s2, initializing a count value if a cellular network signal is scanned, and starting continuous counting by a preset time length corresponding to a basic count value, wherein one count value corresponds to one or more receiving platforms, the receiving platforms comprise an Internet of things platform and a cellular network base station, and the basic count value is a value which is increased once during counting;
S3, when the increase of one basic count value is monitored, a plurality of first receiving platforms corresponding to the current count value are obtained;
s4, waking up the cellular internet of things equipment to respectively and correspondingly send the data packets of each first receiving platform to each first receiving platform.
Further, the step of obtaining a plurality of first receiving platforms corresponding to the current count value includes:
s301, adding a basic count value on the basis of the initialized count value to obtain a first count value;
s302, a preset receiving platform and count value mapping relation table is called, and a plurality of first receiving platforms corresponding to the first count value are screened from the receiving platform and count value mapping relation table, wherein one count value in the receiving platform and count value mapping relation table corresponds to one or more receiving platforms.
Further, before the step of monitoring whether the cellular network signal is scanned, the method includes:
s5, detecting data packet transmission frequencies agreed by the cellular Internet of things equipment and all receiving platforms respectively;
s6, obtaining data packet transmission interval duration corresponding to each receiving platform according to each data packet transmission frequency;
S7, calculating the least common multiple among the data packet transmission interval duration, and setting the value of the least common multiple as the value of the preset duration.
In another embodiment, a time base register is provided in the cellular internet of things device, the time base register is a timing tool constructed according to a data packet transmission time reference between the cellular internet of things device and each receiving platform, and if a cellular network signal is scanned, initializing a count value, and starting to continuously count with a preset time length corresponding to a basic count value, including:
s201, if the cellular network signal is scanned, setting the current moment as the time starting point of the time base register, and initializing the count value of the time base register;
s202, starting continuously timing counting through the time base register, wherein the count value of the time base register is a timing duration.
In another embodiment, the step of obtaining a plurality of first receiving platforms corresponding to the current count value when the step of increasing one base count value is detected includes:
s303, monitoring whether the count value of the time base register is an integer multiple of the preset duration;
S304, if the count value of the time base register is integral multiple of the preset duration, the time base register generates a timing interrupt and acquires a plurality of first receiving platforms corresponding to the current count value.
Further, the step of waking up the cellular internet of things device to send the respective data packets of the first receiving platforms to the first receiving platforms respectively, includes:
s401; waking up the cellular internet of things device according to the timed interrupt generated by the time base register;
s402, respectively and correspondingly transmitting the data packets of each first receiving platform to each first receiving platform through the cellular internet of things equipment.
Further, after initializing the count value and starting to count continuously with a preset duration corresponding to a basic count value if the cellular network signal is scanned, the method includes:
and S8, if the signal loss of the cellular network is detected, setting the time base register to be invalid, and stopping timing counting.
An embodiment of the present application further provides a computer readable storage medium, on which a computer program is stored, where the computer program when executed by a processor implements a method for sending a data packet of a cellular internet of things device, where the method for sending a data packet of a cellular internet of things device specifically includes:
S1, monitoring whether a cellular network signal is scanned;
s2, initializing a count value if a cellular network signal is scanned, and starting continuous counting by a preset time length corresponding to a basic count value, wherein one count value corresponds to one or more receiving platforms, the receiving platforms comprise an Internet of things platform and a cellular network base station, and the basic count value is a value which is increased once during counting;
s3, when the increase of one basic count value is monitored, a plurality of first receiving platforms corresponding to the current count value are obtained;
s4, waking up the cellular internet of things equipment to respectively and correspondingly send the data packets of each first receiving platform to each first receiving platform.
Further, the step of obtaining a plurality of first receiving platforms corresponding to the current count value includes:
s301, adding a basic count value on the basis of the initialized count value to obtain a first count value;
s302, a preset receiving platform and count value mapping relation table is called, and a plurality of first receiving platforms corresponding to the first count value are screened from the receiving platform and count value mapping relation table, wherein one count value in the receiving platform and count value mapping relation table corresponds to one or more receiving platforms.
Further, before the step of monitoring whether the cellular network signal is scanned, the method includes:
s5, detecting data packet transmission frequencies agreed by the cellular Internet of things equipment and all receiving platforms respectively;
s6, obtaining data packet transmission interval duration corresponding to each receiving platform according to each data packet transmission frequency;
s7, calculating the least common multiple among the data packet transmission interval duration, and setting the value of the least common multiple as the value of the preset duration.
In another embodiment, a time base register is provided in the cellular internet of things device, the time base register is a timing tool constructed according to a data packet transmission time reference between the cellular internet of things device and each receiving platform, and if a cellular network signal is scanned, initializing a count value, and starting to continuously count with a preset time length corresponding to a basic count value, including:
s201, if the cellular network signal is scanned, setting the current moment as the time starting point of the time base register, and initializing the count value of the time base register;
s202, starting continuously timing counting through the time base register, wherein the count value of the time base register is a timing duration.
In another embodiment, the step of obtaining a plurality of first receiving platforms corresponding to the current count value when the step of increasing one base count value is detected includes:
s303, monitoring whether the count value of the time base register is an integer multiple of the preset duration;
s304, if the count value of the time base register is integral multiple of the preset duration, the time base register generates a timing interrupt and acquires a plurality of first receiving platforms corresponding to the current count value.
Further, the step of waking up the cellular internet of things device to send the respective data packets of the first receiving platforms to the first receiving platforms respectively, includes:
s401; waking up the cellular internet of things device according to the timed interrupt generated by the time base register;
s402, respectively and correspondingly transmitting the data packets of each first receiving platform to each first receiving platform through the cellular internet of things equipment.
Further, after initializing the count value and starting to count continuously with a preset duration corresponding to a basic count value if the cellular network signal is scanned, the method includes:
and S8, if the signal loss of the cellular network is detected, setting the time base register to be invalid, and stopping timing counting.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by hardware associated with a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium provided herein and used in embodiments may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, apparatus, article or method that comprises the element.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the scope of the claims, and all equivalent structures or equivalent processes using the descriptions and drawings of the present application, or direct or indirect application in other related technical fields are included in the scope of the claims of the present application.
Claims (10)
1. The data packet sending method of the cellular internet of things device is characterized by comprising the following steps of:
monitoring whether a cellular network signal is scanned;
if the cellular network signal is scanned, initializing a count value, and starting continuous counting by a preset time length corresponding to a basic count value, wherein one count value corresponds to one or more receiving platforms, the receiving platforms comprise an Internet of things platform and a cellular network base station, and the basic count value is a value which is increased once during counting;
When the increase of one basic count value is detected, a plurality of first receiving platforms corresponding to the current count value are obtained;
waking up the cellular internet of things equipment to correspondingly send respective data packets of the first receiving platforms to the first receiving platforms respectively;
the data packet is used for maintaining the connection of the IP data packet between the cellular internet of things equipment and the receiving platform and/or enabling the receiving platform to know the condition of the cellular internet of things equipment.
2. The method for sending a data packet of a cellular internet of things device according to claim 1, wherein the step of obtaining a plurality of first receiving platforms corresponding to the incremented current count value includes:
adding a basic count value on the basis of the initialized count value to obtain a first count value;
and a preset receiving platform and count value mapping relation table is called, and a plurality of first receiving platforms corresponding to the first count value are screened from the receiving platform and count value mapping relation table, wherein one count value in the receiving platform and count value mapping relation table corresponds to one or more receiving platforms.
3. The method for transmitting data packets of a cellular internet of things device according to claim 1, wherein the step of monitoring whether a cellular network signal is scanned comprises:
Detecting the data packet sending frequency agreed by the cellular internet of things equipment and all receiving platforms respectively;
obtaining data packet sending interval duration corresponding to each receiving platform respectively according to each data packet sending frequency;
calculating the least common multiple between the transmission interval durations of the data packets, and setting the value of the least common multiple as the value of the preset duration.
4. The method for sending a data packet of a cellular internet of things device according to claim 1, wherein a time base register is provided in the cellular internet of things device, the time base register is a timing tool constructed according to a data packet sending time reference between the cellular internet of things device and each receiving platform, and if a cellular network signal is scanned, initializing a count value and starting to count continuously with a preset duration corresponding to a basic count value, the method comprises the steps of:
if the cellular network signal is scanned, setting the current moment as the time starting point of the time base register, and initializing the count value of the time base register;
and starting continuously and timing counting through the time base register, wherein the count value of the time base register is a timing duration.
5. The method for sending a data packet of a cellular internet of things device according to claim 4, wherein the step of obtaining a plurality of first receiving platforms corresponding to a current count value when it is detected to increase one of the base count values comprises:
monitoring whether the count value of the time base register is an integer multiple of the preset duration;
and if the count value of the time base register is an integer multiple of the preset duration, the time base register generates a timing interrupt and acquires a plurality of first receiving platforms corresponding to the current count value.
6. The method for sending a data packet of a cellular internet of things device according to claim 5, wherein the step of waking up the cellular internet of things device to send the data packet of each of the first receiving platforms to each of the first receiving platforms respectively, includes:
waking up the cellular internet of things device according to the timed interrupt generated by the time base register;
and respectively and correspondingly transmitting the data packets of each first receiving platform to each first receiving platform through the cellular internet of things equipment.
7. The method for sending a data packet of a cellular internet of things device according to claim 4, wherein after the step of initializing a count value and starting continuous counting with a base count value corresponding to a preset duration if the cellular internet of things signal is scanned, the method comprises:
And if the signal loss of the cellular network is detected, setting the time base register to be invalid, and stopping timing counting.
8. A data packet sending device of a cellular internet of things device, the data packet sending device of the cellular internet of things device being configured to perform the data packet sending method of the cellular internet of things device according to any one of claims 1 to 7, comprising:
the monitoring module is used for monitoring whether the cellular network signal is scanned;
the counting module is used for initializing a counting value if the cellular network signal is scanned, and starting continuous counting by a preset time length corresponding to a basic counting value, wherein the counting value corresponds to one or more receiving platforms, the receiving platforms comprise an Internet of things platform and a cellular network base station, and the basic counting value is a value which is increased once during counting;
the acquisition module is used for acquiring a plurality of first receiving platforms corresponding to the current count value when the increase of one basic count value is monitored;
the awakening module is used for awakening the cellular internet of things equipment to respectively and correspondingly send the data packets of the first receiving platforms to the first receiving platforms.
9. A computer device comprising a memory and a processor, the memory having stored therein a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011339531.5A CN112566075B (en) | 2020-11-25 | 2020-11-25 | Data packet sending method and device of cellular internet of things equipment and computer equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011339531.5A CN112566075B (en) | 2020-11-25 | 2020-11-25 | Data packet sending method and device of cellular internet of things equipment and computer equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112566075A CN112566075A (en) | 2021-03-26 |
CN112566075B true CN112566075B (en) | 2023-07-28 |
Family
ID=75044997
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011339531.5A Active CN112566075B (en) | 2020-11-25 | 2020-11-25 | Data packet sending method and device of cellular internet of things equipment and computer equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112566075B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102740427A (en) * | 2012-06-15 | 2012-10-17 | 无锡必创传感科技有限公司 | Method for awakening wireless sensor, wireless sensor and wireless sensor system |
CN106413061A (en) * | 2016-10-25 | 2017-02-15 | 罗伟坚 | Cell-based narrowband Internet of things communication system |
CN207910817U (en) * | 2018-01-11 | 2018-09-25 | 广州市正成信息科技有限公司 | A kind of remote monitoring system based on narrowband Internet of Things |
CN111522587A (en) * | 2019-02-01 | 2020-08-11 | 新唐科技股份有限公司 | Electronic device and device wake-up method |
CN111901853A (en) * | 2020-05-08 | 2020-11-06 | 广州技象科技有限公司 | Low-power-consumption operation method and device for narrow-band Internet of things terminal |
-
2020
- 2020-11-25 CN CN202011339531.5A patent/CN112566075B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102740427A (en) * | 2012-06-15 | 2012-10-17 | 无锡必创传感科技有限公司 | Method for awakening wireless sensor, wireless sensor and wireless sensor system |
CN106413061A (en) * | 2016-10-25 | 2017-02-15 | 罗伟坚 | Cell-based narrowband Internet of things communication system |
CN207910817U (en) * | 2018-01-11 | 2018-09-25 | 广州市正成信息科技有限公司 | A kind of remote monitoring system based on narrowband Internet of Things |
CN111522587A (en) * | 2019-02-01 | 2020-08-11 | 新唐科技股份有限公司 | Electronic device and device wake-up method |
CN111901853A (en) * | 2020-05-08 | 2020-11-06 | 广州技象科技有限公司 | Low-power-consumption operation method and device for narrow-band Internet of things terminal |
Non-Patent Citations (1)
Title |
---|
基于蜂窝物联网技术的业务续航研究;孔露婷等;《移动通信》;20180515(第05期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN112566075A (en) | 2021-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10104614B2 (en) | Method for waking up access point device, device, and system | |
CN110913462B (en) | Channel monitoring and energy-saving signal processing device, terminal and network side equipment | |
CN109041181B (en) | Wireless communication method, system and gateway equipment | |
CN109511133B (en) | Awakening processing method and device | |
CN106789431B (en) | Overtime monitoring method and device | |
EP3500031A1 (en) | Dynamic scheduling method and apparatus | |
US9001694B2 (en) | Methods and apparatus for controlling a wireless station | |
CN110475391B (en) | Control method, device, terminal and base station of discontinuous reception timer | |
US20200120638A1 (en) | Method for transmitting paging message, device, and storage medium | |
CN114698071B (en) | Energy supply method and device and communication equipment | |
CN110493075B (en) | Method, device and system for monitoring online duration of equipment | |
US10200905B2 (en) | Method and apparatus for modification of a reporting interval via a network | |
CN107027161B (en) | Method, access point and station for data transmission in wireless local area network | |
CN112566075B (en) | Data packet sending method and device of cellular internet of things equipment and computer equipment | |
US20220191797A1 (en) | Processing method and device | |
CN109005509B (en) | Terminal positioning method, device, terminal and storage medium | |
CN111211925B (en) | Alarm information synchronization method and device, computer equipment and storage medium | |
CN113207160A (en) | Terminal wake-up method and device, computer equipment and storage medium | |
CN110928586B (en) | APP background keep-alive method and device | |
CN116319712A (en) | Wireless upgrading method and device for slave nodes of power equipment body area network | |
EP3110211A1 (en) | Data transceiving method, modem and terminal device | |
CN113196864B (en) | Method and apparatus for discontinuous reception | |
US20180049121A1 (en) | Radio communication system, radio communication network, radio terminal, and radio communication method | |
CN116455964B (en) | Device registration method, system and medium | |
CN113778530B (en) | Equipment awakening method and device, remote system and system server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20230705 Address after: 518000 floor 1, building 3, Dexin Chang wisdom Park, No. 23 Heping Road, Qinghua community, Longhua street, Longhua District, Shenzhen, Guangdong Applicant after: Shenzhen waterward Information Co.,Ltd. Address before: 518000 B, 503, 602, digital city building, garden city, 1079 Shekou Road, Shekou, Nanshan District, Shenzhen, Guangdong. Applicant before: SHENZHEN WATER WORLD Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |