WO2022109882A1 - Data packet transmission method and apparatus for cellular internet of things device, and computer device - Google Patents

Data packet transmission method and apparatus for cellular internet of things device, and computer device Download PDF

Info

Publication number
WO2022109882A1
WO2022109882A1 PCT/CN2020/131527 CN2020131527W WO2022109882A1 WO 2022109882 A1 WO2022109882 A1 WO 2022109882A1 CN 2020131527 W CN2020131527 W CN 2020131527W WO 2022109882 A1 WO2022109882 A1 WO 2022109882A1
Authority
WO
WIPO (PCT)
Prior art keywords
count value
receiving platforms
receiving
time base
cellular
Prior art date
Application number
PCT/CN2020/131527
Other languages
French (fr)
Chinese (zh)
Inventor
汪青山
魏科文
郑勇
陈刚
戴志涛
Original Assignee
深圳市沃特沃德股份有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 深圳市沃特沃德股份有限公司 filed Critical 深圳市沃特沃德股份有限公司
Priority to PCT/CN2020/131527 priority Critical patent/WO2022109882A1/en
Publication of WO2022109882A1 publication Critical patent/WO2022109882A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present application relates to the technical field of data processing, and in particular, to a method, apparatus and computer equipment for sending data packets of a cellular Internet of Things device.
  • more and more cellular IoT devices need to connect to multiple cloud platforms at the same time, and need to send different heartbeat packets to multiple cloud platforms or need to send data packets regularly to keep the IP data packet length between the cellular IoT device and the cloud platform. Connect, and let the cloud platform know the status of the device.
  • Existing cellular IoT devices do not systematically manage heartbeat packets or timed data packets sent to different cloud platforms, resulting in repeated wake-up of cellular IoT devices, shorter sleep time and higher power consumption.
  • the main purpose of this application is to provide a data packet sending method, device and computer equipment for cellular IoT devices, which aims to solve the problem that existing cellular IoT devices need to repeat the need to maintain long IP data packet connections with multiple cloud platforms.
  • the present application provides a data packet sending method for a cellular Internet of Things device, including:
  • the count value is initialized, and starts counting continuously with a preset duration corresponding to a basic count value, wherein one count value corresponds to one or more receiving platforms, and the receiving platforms include IoT platforms and A cellular network base station, the basic count value is a value that is incremented once during counting;
  • Wake up the cellular Internet of Things device to send respective data packets of each of the first receiving platforms to each of the first receiving platforms.
  • the present application also provides a data packet sending device for a cellular Internet of Things device, including:
  • the monitoring module is used to monitor whether the cellular network signal is scanned
  • the counting module is used to initialize the count value if a cellular network signal is scanned, and start counting continuously with a preset duration corresponding to a basic count value, wherein one count value corresponds to one or more receiving platforms, and the receiving platform Including the IoT platform and the cellular network base station, the basic count value is a value that is incremented at a single time when counting;
  • an acquisition module configured to acquire several first receiving platforms corresponding to the current count value when monitoring to increase one of the basic count values
  • a wake-up module configured to wake up the cellular Internet of Things device to send the respective data packets of each of the first receiving platforms to each of the first receiving platforms respectively.
  • the present application further provides a computer device, comprising a memory and a processor, wherein a computer program is stored in the memory, wherein the processor implements a data package of a cellular Internet of Things device when the processor executes the computer program sending method;
  • the data packet sending method of the cellular Internet of Things device includes:
  • the count value is initialized, and starts counting continuously with a preset duration corresponding to a basic count value, wherein one count value corresponds to one or more receiving platforms, and the receiving platforms include IoT platforms and A cellular network base station, the basic count value is a value that is incremented once during counting;
  • Wake up the cellular Internet of Things device to send respective data packets of each of the first receiving platforms to each of the first receiving platforms.
  • the present application further provides a computer-readable storage medium on which a computer program is stored, wherein, when the computer program is executed by a processor, a data packet sending method for a cellular Internet of Things device is implemented, and the cellular
  • the data packet sending method of the IoT device includes the following steps:
  • the count value is initialized, and starts counting continuously with a preset duration corresponding to a basic count value, wherein one count value corresponds to one or more receiving platforms, and the receiving platforms include IoT platforms and A cellular network base station, the basic count value is a value that is incremented once during counting;
  • Wake up the cellular Internet of Things device to send respective data packets of each of the first receiving platforms to each of the first receiving platforms.
  • a method, device and computer equipment for sending data packets of a cellular Internet of Things device include: system monitoring whether a cellular network signal is scanned; if a cellular network signal is scanned, initializing a count value and using a pre- Set the duration to start counting continuously corresponding to a basic count value.
  • the system obtains several first receiving platforms corresponding to the current count value; after the system wakes up the cellular IoT device, the system sends the respective data packets of each first receiving platform to each first receiving platform correspondingly at the same time. receiving platform.
  • the present application establishes a unified management for the transmission cycle of the data packets between the cellular IoT device and each receiving platform.
  • each first receiving platform corresponding to the current count value is acquired, and the cellular network is woken up.
  • the data packets are uniformly sent to the corresponding first receiving platforms, so as to avoid the chaotic and disorderly wake-up of the cellular IoT devices in the sending cycle of the data packets, effectively increase the sleep time of the cellular IoT devices, and reduce the cellular IoT devices. Power consumption of IoT devices.
  • FIG. 1 is a schematic diagram of steps of a data packet sending method of a cellular IoT device in an embodiment of the present application
  • FIG. 2 is an overall structural block diagram of a data packet sending device of a cellular Internet of Things device in an embodiment of the present application
  • FIG. 3 is a schematic structural block diagram of a computer device according to an embodiment of the present application.
  • an embodiment of the present application provides a data packet sending method for a cellular Internet of Things device, including:
  • S1 monitor whether the cellular network signal is scanned
  • S2 If a cellular network signal is scanned, initialize the count value, and start counting continuously with a preset duration corresponding to a basic count value, wherein one count value corresponds to one or more receiving platforms, and the receiving platforms include the Internet of Things A platform and a cellular network base station, the basic count value is a value that is incremented once during counting;
  • S4 Wake up the cellular Internet of Things device to send the respective data packets of each of the first receiving platforms to each of the first receiving platforms correspondingly.
  • the cellular IoT device will wake up periodically and scan the system paging information on the network base station side. If the system paging information on the network base station side can be scanned, it means that the system can scan the cellular network signal. After the system scans the cellular network signal, it initializes the count value of the built-in counting tool and sets it to the initial count value (for example, initializes the count value of the counting tool and sets it to the initial count value 0). In addition, the system controls the counting tool to start counting continuously with a preset duration corresponding to a basic counting value, and the basic counting value refers to a value that is incremented by the counting tool for a single time when counting.
  • the current count value in this embodiment refers to the latest count value after the real-time update
  • each time it monitors that the count value of the counting tool increases by a basic count value it automatically obtains and matches the count value.
  • the receiving platforms in this embodiment include an Internet of Things platform (such as a cloud platform corresponding to each running APP) and a cellular network base station (the first receiving platform is included in the receiving platform).
  • the internal database of the system (which may also be a database in the cloud server) stores a mapping relationship table between receiving platforms and count values, and a count value in the mapping relationship table between receiving platforms and count values corresponds to one or more receiving platforms (which can be is an IoT platform, or a cellular network base station). According to the current count value of the counting tool, the system selects one or more first receiving platforms corresponding to the current counting value from the mapping relationship table between the receiving platform and the counting value.
  • the system wakes up the cellular IoT device, so that the cellular IoT device sends the respective data packets of each first receiving platform to each of the selected first receiving platforms, so as to realize the data between the cellular IoT device and each receiving platform.
  • Packet sending has a unified sending cycle, which is convenient for orderly management of the sending time of data packets, reducing the number of wake-up times for cellular IoT devices, avoiding repeated wake-up of cellular IoT devices, effectively increasing the sleep time of cellular IoT devices, reducing The power consumption of the device.
  • the data packet is used to maintain a long IP data packet connection between the cellular IoT device and the receiving platform and/or to let the receiving platform know the status of the cellular IoT device.
  • the step of obtaining several first receiving platforms corresponding to the current count value includes:
  • S302 call a preset receiving platform and count value mapping relationship table, from the receiving platform and count value mapping relationship table, screen a number of the first receiving platforms corresponding to the first count value, wherein , and a count value in the receiving platform and count value mapping relationship table corresponds to one or more receiving platforms.
  • the timing tool in the system when counting for the first time, after a preset period of time elapses after the start of counting, the timing tool in the system adds a basic count value on the basis of the initialized count value to obtain a first count value, which is the first count value.
  • the value is the updated count value (if another preset time period elapses, a basic count value is added to the first count value, for example, the initial count value is 0, when the first preset time period has passed, the current
  • the count value that is, the first count value in this embodiment is 1; when the second preset time period has passed, the current count value is 2, and so on).
  • the system calls the pre-built receiving platform and count value mapping relationship table, the receiving platform and count value mapping relationship table can be stored in the internal database of the system; it can also be stored in the cloud server, and the system can obtain from the cloud server when needed .
  • the receiving platform and the count value mapping relationship table includes the corresponding relationship between the count value and each receiving platform, and one count value corresponds to one or more receiving platforms. According to the first count value, the system selects one or more first receiving platforms corresponding to the first count value from the mapping relationship table between the receiving platform and the count value.
  • the steps include:
  • S7 Calculate the least common multiple between the durations of each of the data packet sending intervals, and set the value of the least common multiple as the value of the preset duration.
  • the system compares the cellular IoT device with the counting value.
  • the data packet sending frequency detection agreed in the agreement between all receiving platforms (including the IoT platform and the cellular network base station). After obtaining the data packet sending frequency between the cellular Internet of Things device and each receiving platform, the corresponding data packet sending interval time of each receiving platform is obtained through analysis according to each data packet sending frequency.
  • the system calculates the least common multiple of each other to obtain the least common multiple between the transmission intervals of each data packet, and sets the calculated value of the least common multiple as the value of the preset time length, and the least common multiple is the data of each receiving platform.
  • the duration of the co-transmission interval of the packets For example, if the data packet sending interval corresponding to receiving platform A is 2 minutes, the data packet sending interval corresponding to receiving platform B is 6 minutes, and the data packet receiving time corresponding to receiving platform C is 10 minutes, the calculated least common multiple is 30, so The preset duration is 30min.
  • a time base register is set in the cellular Internet of Things device, and 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 of the receiving platforms, The step of initializing the count value if a cellular network signal is scanned, and starting continuous counting with a preset duration corresponding to a basic count value, including:
  • S202 Start continuous timing counting through the time base register, and the count value of the time base register is the timing duration.
  • a time base register is set in the system of the cellular Internet of Things device, and the time base register is based on the time base for sending data packets between the cellular Internet of Things device and each receiving platform (that is, the preset duration in this embodiment).
  • the built timing tool, each count unit of the time base register is 1ms.
  • the time base register will wake up the cellular IoT device by means of timed interrupts.
  • the system scans the cellular network signal, it sets the current time as the time starting point of the time base register, and initializes the count value of the time base register. After initialization, it is the initial count value (ie, it is set to 0).
  • the time base register in the system starts to count continuously and starts to monitor the sending time of the data packet.
  • the count value of the time base register corresponds to the timing duration, and the unit is milliseconds.
  • the step of acquiring a plurality of first receiving platforms corresponding to the current count value when monitoring an increase of one of the basic count values includes:
  • the count value of the time base register is the timing duration
  • the system monitors in real time whether the count value of the time base register is an integer multiple of the preset duration. If the count value of the time base register is an integer multiple of the preset duration, the time base register will generate a timing interrupt, thereby requesting the system to preferentially process the sending action of the data packet.
  • the system automatically obtains several first receiving platforms corresponding to the current count value (ie, the count value updated in real time).
  • the count value is expressed in the form of 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, it is 1T; adding another basic count value is 2T, and so on.
  • the step of waking up the cellular Internet of Things device to send the respective data packets of each of the first receiving platforms to each of the first receiving platforms, respectively includes:
  • S401 Wake up the cellular IoT device according to the timing interrupt generated by the time base register;
  • S402 Send respective data packets of each of the first receiving platforms to each of the first receiving platforms through the cellular Internet of Things device.
  • the system wakes up the cellular IoT device through the timing interrupt generated by the time base register. After the cellular IoT device is woken up, it will automatically send the respective data packets of each first receiving platform to each first receiving platform correspondingly at the same time. Thereby, the sending cycles of data packets corresponding to each receiving platform are managed in an orderly manner, and there is no need to repeatedly wake up the cellular IoT device, effectively prolonging the sleep time of the cellular IoT device, and reducing the power consumption of the device.
  • the steps include:
  • the system after the system starts counting, if it detects that the cellular network signal is lost (ie, the cellular network signal cannot be scanned), the system immediately sets the time base register to be invalid, so that the time base register stops timing counting. If the cellular network signal is rescanned later, the current moment after the cellular network device is re-registered to the cellular network needs to be set as the time starting point of the time base register, and the count value of the time base register is re-initialized, set to 0, and then Continue timing counting while maintaining the network connection.
  • an embodiment of the present application further provides a data packet sending apparatus for a cellular IoT device, including:
  • Monitoring module 1 used to monitor whether a cellular network signal is scanned
  • the counting module 2 is used to initialize the counting value if a cellular network signal is scanned, and start counting continuously with a preset duration corresponding to a basic counting value, wherein one counting value corresponds to one or more receiving platforms, and the receiving
  • the platform includes an Internet of Things platform and a cellular network base station, and the basic count value is a value that is incremented once during counting;
  • Obtaining module 3 is used to obtain several first receiving platforms corresponding to the current count value when monitoring to increase one of the basic count values;
  • the wake-up module 4 is configured to wake up the cellular Internet of Things device and send the respective data packets of each of the first receiving platforms to each of the first receiving platforms correspondingly.
  • the implementation process of the functions and functions of the monitoring module 1, the counting module 2, the acquisition module 3 and the wake-up module 4 in the above-mentioned data packet sending device can be found in the corresponding steps in the above-mentioned data packet sending method of the cellular Internet of Things device for details.
  • the implementation process of S1 to S4 will not be repeated here.
  • the acquisition module 3 includes:
  • a calculation unit for adding a said basic count value on the basis of the initialized count value to obtain a first count value
  • a screening unit configured to retrieve a preset receiving platform and count value mapping relationship table, and from the receiving platform and count value mapping relationship table, filter a number of the first receiving platform corresponding to the first count value. platform, wherein a count value in the receiving platform and the count value mapping relationship table corresponds to one or more receiving platforms.
  • the data packet sending device further includes:
  • the detection module 5 is used to detect the data packet sending frequency agreed by the respective agreements between the cellular Internet of Things device and all the receiving platforms;
  • a calculation module 6 configured to obtain the corresponding data packet transmission interval duration of each of the receiving platforms according to the transmission frequency of each of the data packets;
  • a setting module 7 is configured to calculate the least common multiple between the durations of each of the data packet sending intervals, and set the value of the least common multiple as the value of the preset duration.
  • the implementation process of the functions and functions of the detection module 5, the calculation module 6, and the setting module 7 in the above-mentioned data packet sending device can be found in the corresponding steps S5 to S7 in the data packet sending method of the above-mentioned cellular Internet of Things device for details. The implementation process is not repeated here.
  • a time base register is set in the cellular Internet of Things device, and the time base register is a timing tool constructed according to the data packet transmission time reference between the cellular Internet of Things device and each of the receiving platforms, and the count Module 2, including:
  • a setting unit for if the cellular network signal is scanned, then 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;
  • the counting unit is used for starting continuous timing counting through the time base register, and the count value of the time base register is the timing duration.
  • the acquisition module 3 also includes:
  • a monitoring unit configured to monitor whether the count value of the time base register is an integer multiple of the preset duration
  • an obtaining unit configured to generate a timing interrupt in the time base register if the count value of the time base register is an integer multiple of the preset duration, and obtain several first receiving platforms corresponding to the current count value.
  • the wake-up module 4 includes:
  • a wake-up unit configured to wake up the cellular Internet of Things device according to the timing interrupt generated by the time base register
  • a sending unit configured to send respective data packets of each of the first receiving platforms to each of the first receiving platforms through the cellular Internet of Things device.
  • the data packet sending device further includes:
  • the suspending module 8 is configured to set the time base register to be invalid and stop timing counting if it is detected that the cellular network signal is lost.
  • the implementation process of the function and function of the suspending module 8 in the above-mentioned data packet sending device can be found in the implementation process corresponding to step S8 in the above-mentioned data packet sending method of the above-mentioned cellular Internet of Things device, which will not be repeated here.
  • the device for sending data packets of a cellular Internet of Things device includes: the system monitors whether a cellular network signal is scanned; if a cellular network signal is scanned, the count value is initialized, and a preset duration corresponds to a basic count value Start counting continuously.
  • the system obtains several first receiving platforms corresponding to the current count value; after the system wakes up the cellular IoT device, the system sends the respective data packets of each first receiving platform to each first receiving platform correspondingly at the same time. receiving platform.
  • the present application establishes a unified management for the transmission cycle of data packets between the cellular IoT device and each receiving platform.
  • each first receiving platform corresponding to the current count value is acquired, and the cellular network is woken up.
  • the data packets are uniformly sent to the corresponding first receiving platforms, so as to avoid the chaotic and disorderly wake-up of the cellular IoT devices in the sending cycle of the data packets, effectively increase the sleep time of the cellular IoT devices, and reduce the cellular IoT devices. Power consumption of IoT devices.
  • an embodiment of the present application further provides a computer device.
  • the computer device may be a server, and its internal structure may be as shown in FIG. 3 .
  • the computer device includes a processor, memory, a network interface, and a database connected by a system bus. Among them, the processor of the computer design is used to provide computing and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium, an internal memory.
  • the nonvolatile storage medium stores an operating system, a computer program, and a database.
  • the internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium.
  • the database of the computer equipment is used for storing data such as the mapping relationship table between the receiving platform and the count value.
  • the network interface of the computer device is used to communicate with an external terminal through a network connection.
  • the above-mentioned processor executes the steps of the above-mentioned method for sending data packets of the cellular Internet of Things device:
  • S1 monitor whether the cellular network signal is scanned
  • S2 If a cellular network signal is scanned, initialize the count value, and start counting continuously with a preset duration corresponding to a basic count value, wherein one count value corresponds to one or more receiving platforms, and the receiving platforms include the Internet of Things A platform and a cellular network base station, the basic count value is a value that is incremented once during counting;
  • S4 Wake up the cellular Internet of Things device to send the respective data packets of each of the first receiving platforms to each of the first receiving platforms correspondingly.
  • An embodiment of the present application further provides a computer-readable storage medium.
  • the storage medium may be a non-volatile storage medium or a volatile storage medium, on which a computer program is stored.
  • the computer program is executed by a processor
  • a data packet sending method for a cellular Internet of Things device in any of the above-mentioned embodiments is implemented, and the method is specifically:
  • S1 monitor whether the cellular network signal is scanned
  • S2 If a cellular network signal is scanned, initialize the count value, and start counting continuously with a preset duration corresponding to a basic count value, wherein one count value corresponds to one or more receiving platforms, and the receiving platforms include the Internet of Things A platform and a cellular network base station, the basic count value is a value that is incremented once during counting;
  • S4 Wake up the cellular Internet of Things device to send the respective data packets of each of the first receiving platforms to each of the first receiving platforms correspondingly.
  • Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double-rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Provided in the present application are a data packet transmission method and apparatus for a cellular Internet of Things device, and a computer device. Unified management is established for transmission cycles of data packets between the cellular Internet of Things device and receiving platforms. Whenever one basic count value is added, the cellular Internet of Things device is awakened to transmit data packets in a unified manner to corresponding first receiving platforms, thus preventing the cellular Internet of Things device from being awakened repeatedly, effectively increasing the hibernation time of the cellular Internet of Things device, and reducing the power consumption of the device.

Description

蜂窝物联网设备的数据包发送方法、装置和计算机设备Data packet transmission method, device and computer equipment for cellular Internet of Things equipment 技术领域technical field
本申请涉及数据处理技术领域,特别涉及一种蜂窝物联网设备的数据包发送方法、装置和计算机设备。The present application relates to the technical field of data processing, and in particular, to a method, apparatus and computer equipment for sending data packets of a cellular Internet of Things device.
背景技术Background technique
目前,越来越多的蜂窝物联网设备要求同时连接多个云平台,需要向多个云平台发送不同心跳包或者需要定时发送数据包,才能保持蜂窝物联网设备与云平台间IP数据包长连接,以及让云平台知道设备状况。现有的蜂窝物联网设备对发送给不同云平台的心跳包或者定时数据包没有系统的管理,导致蜂窝物联网设备需要反复唤醒,休眠时间变短,功耗较大。At present, more and more cellular IoT devices need to connect to multiple cloud platforms at the same time, and need to send different heartbeat packets to multiple cloud platforms or need to send data packets regularly to keep the IP data packet length between the cellular IoT device and the cloud platform. Connect, and let the cloud platform know the status of the device. Existing cellular IoT devices do not systematically manage heartbeat packets or timed data packets sent to different cloud platforms, resulting in repeated wake-up of cellular IoT devices, shorter sleep time and higher power consumption.
技术问题technical problem
本申请的主要目的为提供一种蜂窝物联网设备的数据包发送方法、装置和计算机设备,旨在解决现有蜂窝物联网设备为了保持与多个云平台之间的IP数据包长连接需要反复唤醒、功耗较大的弊端。The main purpose of this application is to provide a data packet sending method, device and computer equipment for cellular IoT devices, which aims to solve the problem that existing cellular IoT devices need to repeat the need to maintain long IP data packet connections with multiple cloud platforms. The disadvantages of wake-up and high power consumption.
技术解决方案technical solutions
为实现上述目的,第一方面,本申请提供了一种蜂窝物联网设备的数据包发送方法,包括:In order to achieve the above object, in the first aspect, the present application provides a data packet sending method for a cellular Internet of Things device, including:
监测是否扫描到蜂窝网络信号;Monitor whether a cellular network signal is scanned;
若扫描到蜂窝网络信号,则将计数值初始化,并以一个预设时长对应一个基础计数值开始持续计数,其中,一个计数值对应一个或多个接收平台,所述接收平台包括物联网平台和蜂窝网络基站,所述基础计数值为计数时单次增加的值;If a cellular network signal is scanned, the count value is initialized, and starts counting continuously with a preset duration corresponding to a basic count value, wherein one count value corresponds to one or more receiving platforms, and the receiving platforms include IoT platforms and A cellular network base station, the basic count value is a value that is incremented once during counting;
在监测到增加一个所述基础计数值时,获取与当前计数值相对应的若干个第一接收平台;When monitoring to increase the basic count value by one, obtain several first receiving platforms corresponding to the current count value;
唤醒所述蜂窝物联网设备将各所述第一接收平台各自的数据包分别对应发送给各所述第一接收平台。Wake up the cellular Internet of Things device to send respective data packets of each of the first receiving platforms to each of the first receiving platforms.
第二方面,本申请还提供了一种蜂窝物联网设备的数据包发送装置,包括:In a second aspect, the present application also provides a data packet sending device for a cellular Internet of Things device, including:
监测模块,用于监测是否扫描到蜂窝网络信号;The monitoring module is used to monitor whether the cellular network signal is scanned;
计数模块,用于若扫描到蜂窝网络信号,则将计数值初始化,并以一个预设时长对应一个基础计数值开始持续计数,其中,一个计数值对应一个或多个接收平台,所述接收平台包括物联网平台和蜂窝网络基站,所述基础计数值为计数时单次增加的值;The counting module is used to initialize the count value if a cellular network signal is scanned, and start counting continuously with a preset duration corresponding to a basic count value, wherein one count value corresponds to one or more receiving platforms, and the receiving platform Including the IoT platform and the cellular network base station, the basic count value is a value that is incremented at a single time when counting;
获取模块,用于在监测到增加一个所述基础计数值时,获取与当前计数值相对应的若干个第一接收平台;an acquisition module, configured to acquire several first receiving platforms corresponding to the current count value when monitoring to increase one of the basic count values;
唤醒模块,用于唤醒所述蜂窝物联网设备将各所述第一接收平台各自的数据包分别对应发送给各所述第一接收平台。A wake-up module, configured to wake up the cellular Internet of Things device to send the respective data packets of each of the first receiving platforms to each of the first receiving platforms respectively.
第三方面,本申请还提供一种计算机设备,包括存储器和处理器,所述存储器中存储有计算机程序,其中,所述处理器执行所述计算机程序时实现一种蜂窝物联网设备的数据包发送方法;In a third aspect, the present application further provides a computer device, comprising a memory and a processor, wherein a computer program is stored in the memory, wherein the processor implements a data package of a cellular Internet of Things device when the processor executes the computer program sending method;
其中,所述蜂窝物联网设备的数据包发送方法包括:Wherein, the data packet sending method of the cellular Internet of Things device includes:
监测是否扫描到蜂窝网络信号;Monitor whether a cellular network signal is scanned;
若扫描到蜂窝网络信号,则将计数值初始化,并以一个预设时长对应一个基础计数值开始持续计数,其中,一个计数值对应一个或多个接收平台,所述接收平台包括物联网平台和蜂窝网络基站,所述基础计数值为计数时单次增加的值;If a cellular network signal is scanned, the count value is initialized, and starts counting continuously with a preset duration corresponding to a basic count value, wherein one count value corresponds to one or more receiving platforms, and the receiving platforms include IoT platforms and A cellular network base station, the basic count value is a value that is incremented once during counting;
在监测到增加一个所述基础计数值时,获取与当前计数值相对应的若干个第一接收平台;When monitoring to increase the basic count value by one, obtain several first receiving platforms corresponding to the current count value;
唤醒所述蜂窝物联网设备将各所述第一接收平台各自的数据包分别对应发送给各所述第一接收平台。Wake up the cellular Internet of Things device to send respective data packets of each of the first receiving platforms to each of the first receiving platforms.
第四方面,本申请还提供一种计算机可读存储介质,其上存储有计算机程序,其中,所述计算机程序被处理器执行时实现一种蜂窝物联网设备的数据包发送方法,所述蜂窝物联网设备的数据包发送方法包括以下步骤:In a fourth aspect, the present application further provides a computer-readable storage medium on which a computer program is stored, wherein, when the computer program is executed by a processor, a data packet sending method for a cellular Internet of Things device is implemented, and the cellular The data packet sending method of the IoT device includes the following steps:
监测是否扫描到蜂窝网络信号;Monitor whether a cellular network signal is scanned;
若扫描到蜂窝网络信号,则将计数值初始化,并以一个预设时长对应一个基础计数值开始持续计数,其中,一个计数值对应一个或多个接收平台,所述接收平台包括物联网平台和蜂窝网络基站,所述基础计数值为计数时单次增加的值;If a cellular network signal is scanned, the count value is initialized, and starts counting continuously with a preset duration corresponding to a basic count value, wherein one count value corresponds to one or more receiving platforms, and the receiving platforms include IoT platforms and A cellular network base station, the basic count value is a value that is incremented once during counting;
在监测到增加一个所述基础计数值时,获取与当前计数值相对应的若干个第一接收平台;When monitoring to increase the basic count value by one, obtain several first receiving platforms corresponding to the current count value;
唤醒所述蜂窝物联网设备将各所述第一接收平台各自的数据包分别对应发送给各所述第一接收平台。Wake up the cellular Internet of Things device to send respective data packets of each of the first receiving platforms to each of the first receiving platforms.
有益效果beneficial effect
本申请中提供的一种蜂窝物联网设备的数据包发送方法、装置和计算机设备,包括:系统监测是否扫描到蜂窝网络信号;若扫描到蜂窝网络信号,则将计数值初始化,并以一个预设时长对应一个基础计数值开始持续计数。系统在监测到增加一个基础计数值时,获取与当前计数值相对应的若干个第一接收平台;系统唤醒蜂窝物联网设备后将各第一接收平台各自的数据包同时对应发送给各第一接收平台。本申请对蜂窝物联网设备与各接收平台之间的数据包的发送周期建立统一的管理,在每次增加一个基础计数值时,获取与当前计数值对应的各个第一接收平台,并唤醒蜂窝物联网设备后,将数据包统一发送给对应的各个第一接收平台,从而避免数据包的发送周期混乱、无序地唤醒蜂窝物联网设备,有效增加蜂窝物联网设备的休眠时间,降低了蜂窝物联网设备的功耗。A method, device and computer equipment for sending data packets of a cellular Internet of Things device provided in this application include: system monitoring whether a cellular network signal is scanned; if a cellular network signal is scanned, initializing a count value and using a pre- Set the duration to start counting continuously corresponding to a basic count value. When monitoring to increase a basic count value, the system obtains several first receiving platforms corresponding to the current count value; after the system wakes up the cellular IoT device, the system sends the respective data packets of each first receiving platform to each first receiving platform correspondingly at the same time. receiving platform. The present application establishes a unified management for the transmission cycle of the data packets between the cellular IoT device and each receiving platform. Each time a basic count value is added, each first receiving platform corresponding to the current count value is acquired, and the cellular network is woken up. After the IoT devices, the data packets are uniformly sent to the corresponding first receiving platforms, so as to avoid the chaotic and disorderly wake-up of the cellular IoT devices in the sending cycle of the data packets, effectively increase the sleep time of the cellular IoT devices, and reduce the cellular IoT devices. Power consumption of IoT devices.
附图说明Description of drawings
图1是本申请一实施例中蜂窝物联网设备的数据包发送方法的步骤示意图;1 is a schematic diagram of steps of a data packet sending method of a cellular IoT device in an embodiment of the present application;
图2是本申请一实施例中蜂窝物联网设备的数据包发送装置的整体结构框图;FIG. 2 is an overall structural block diagram of a data packet sending device of a cellular Internet of Things device in an embodiment of the present application;
图3是本申请一实施例的计算机设备的结构示意框图。FIG. 3 is a schematic structural block diagram of a computer device according to an embodiment of the present application.
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional characteristics and advantages of the purpose of the present application will be further described with reference to the accompanying drawings in conjunction with the embodiments.
本发明的最佳实施方式BEST MODE FOR CARRYING OUT THE INVENTION
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.
参照图1,本申请一实施例中提供了一种蜂窝物联网设备的数据包发送方法,包括:Referring to FIG. 1, an embodiment of the present application provides a data packet sending method for a cellular Internet of Things device, including:
S1:监测是否扫描到蜂窝网络信号;S1: monitor whether the cellular network signal is scanned;
S2:若扫描到蜂窝网络信号,则将计数值初始化,并以一个预设时长对应一个基础计数值开始持续计数,其中,一个计数值对应一个或多个接收平台,所述接收平台包括物联网平台和蜂窝网络基站,所述基础计数值为计数时单次增加的值;S2: If a cellular network signal is scanned, initialize the count value, and start counting continuously with a preset duration corresponding to a basic count value, wherein one count value corresponds to one or more receiving platforms, and the receiving platforms include the Internet of Things A platform and a cellular network base station, the basic count value is a value that is incremented once during counting;
S3:在监测到增加一个所述基础计数值时,获取与当前计数值相对应的若干个第一接收平台;S3: when monitoring to increase a described basic count value, obtain several first receiving platforms corresponding to the current count value;
S4:唤醒所述蜂窝物联网设备将各所述第一接收平台各自的数据包分别对应发送给各所述第一接收平台。S4: Wake up the cellular Internet of Things device to send the respective data packets of each of the first receiving platforms to each of the first receiving platforms correspondingly.
本实施例中,蜂窝物联网设备会定时唤醒,扫描网络基站侧的系统寻呼信息,若能扫描到网络基站侧的系统寻呼信息,则说明系统能够扫描到蜂窝网络信号。系统在扫描到蜂窝网络信号后,将内置的计数工具的计数值初始化,设定为初始计数值(比如将计数工具的计数值初始化后设定为初始计数值0)。并且,系统控制计数工具以一个预设时长对应一个基础计数值开始持续计数,基础计数值是指计数工具计数时单次增加的值。比如,预设时长设置为5min,基础计数值为1,则每过5分钟,计数工具的当前计数值加1。系统实时监测计数工具的当前计数值(本实施例中的当前计数值是指实时更新后最新的计数值),每次在监测到计数工具的计数值增加一个基础计数值时,则自动获取与当前计数值相对应的若干个第一接收平台。其中,每一个计数值对应一个或多个接收平台,本实施例中的接收平台包括物联网平台(比如各个运行的APP所对应的云平台)和蜂窝网络基站(第一接收平台包含于接收平台中,表征当前次从所有接收平台中筛选的部分或全部平台)。具体地,系统的内部数据库(也可以是云端服务器内的数据库)中存储有接收平台与计数值映射关系表,接收平台与计数值映射关系表中一个计数值对应一个或多个接收平台(可以是物联网平台,也可以是蜂窝网络基站)。系统根据计数工具的当前计数值,从接收平台与计数值映射关系表中筛选得到与当前计数值相对应的一个或多个第一接收平台。最后,系统唤醒蜂窝物联网设备,使得蜂窝物联网设备将各个第一接收平台各自的数据包分别对应发送给筛选得到的各个第一接收平台,实现蜂窝物联设备与各接收平台之间的数据包发送具有统一的发送周期,便于对数据包的发送时间进行有序管理,减少对蜂窝物联网设备的唤醒次数,避免反复唤醒蜂窝物联网设备,有效增大蜂窝物联网设备的休眠时间,减少设备的功耗。本实施例中,数据包用于保持蜂窝物联网设备与接收平台之间IP数据包长连接和/或让接收平台知道蜂窝物联网设备的状况。In this embodiment, the cellular IoT device will wake up periodically and scan the system paging information on the network base station side. If the system paging information on the network base station side can be scanned, it means that the system can scan the cellular network signal. After the system scans the cellular network signal, it initializes the count value of the built-in counting tool and sets it to the initial count value (for example, initializes the count value of the counting tool and sets it to the initial count value 0). In addition, the system controls the counting tool to start counting continuously with a preset duration corresponding to a basic counting value, and the basic counting value refers to a value that is incremented by the counting tool for a single time when counting. For example, if the preset duration is set to 5min and the basic count value is 1, then every 5 minutes, the current count value of the counting tool will increase by 1. The system monitors the current count value of the counting tool in real time (the current count value in this embodiment refers to the latest count value after the real-time update), and each time it monitors that the count value of the counting tool increases by a basic count value, it automatically obtains and matches the count value. Several first receiving platforms corresponding to the current count value. Wherein, each count value corresponds to one or more receiving platforms, and the receiving platforms in this embodiment include an Internet of Things platform (such as a cloud platform corresponding to each running APP) and a cellular network base station (the first receiving platform is included in the receiving platform). , characterizes some or all of the platforms currently screened from all receiving platforms). Specifically, the internal database of the system (which may also be a database in the cloud server) stores a mapping relationship table between receiving platforms and count values, and a count value in the mapping relationship table between receiving platforms and count values corresponds to one or more receiving platforms (which can be is an IoT platform, or a cellular network base station). According to the current count value of the counting tool, the system selects one or more first receiving platforms corresponding to the current counting value from the mapping relationship table between the receiving platform and the counting value. Finally, the system wakes up the cellular IoT device, so that the cellular IoT device sends the respective data packets of each first receiving platform to each of the selected first receiving platforms, so as to realize the data between the cellular IoT device and each receiving platform. Packet sending has a unified sending cycle, which is convenient for orderly management of the sending time of data packets, reducing the number of wake-up times for cellular IoT devices, avoiding repeated wake-up of cellular IoT devices, effectively increasing the sleep time of cellular IoT devices, reducing The power consumption of the device. In this embodiment, the data packet is used to maintain a long IP data packet connection between the cellular IoT device and the receiving platform and/or to let the receiving platform know the status of the cellular IoT device.
进一步的,所述获取与当前计数值相对应的若干个第一接收平台的步骤,包括:Further, the step of obtaining several first receiving platforms corresponding to the current count value includes:
S301:在初始化后的计数值的基础上增加一个所述基础计数值,得到第一计数值;S301: on the basis of the initialized count value, add a described basic count value to obtain the first count value;
S302:调取预设的接收平台与计数值映射关系表,从所述接收平台与计数值映射关系表中,筛选与所述第一计数值相对应的若干个所述第一接收平台,其中,所述接收平台与计数值映射关系表中一个计数值对应一个或多个接收平台。S302: call a preset receiving platform and count value mapping relationship table, from the receiving platform and count value mapping relationship table, screen a number of the first receiving platforms corresponding to the first count value, wherein , and a count value in the receiving platform and count value mapping relationship table corresponds to one or more receiving platforms.
本实施例中,在首次计数时,开始计数后过去一个预设时长后,系统内的计时工具在初始化后的计数值的基础上增加一个基础计数值,得到第一计数值,该第一计数值则为更新后的计数值(如果再过去一个预设时长,则是在第一计数值的基础上增加一个基础计数值,比如初始计数值为0,过去第一个预设时长时,当前计数值,即本实施例中的第一计数值为1;过去第二个预设时长时,当前计数值为2,以此类推)。然后,系统调取预先构建的接收平台与计数值映射关系表,该接收平台与计数值映射关系表可以存储在系统内部的数据库中;也可以存储在云服务器,需要时系统从云服务器进行获取。接收平台与计数值映射关系表包括计数值与各个接收平台之间的对应关系,一个计数值对应一个或多个接收平台。系统根据第一计数值,从接收平台与计数值映射关系表中,筛选得到与第一计数值对应的一个或多个第一接收平台。In this embodiment, when counting for the first time, after a preset period of time elapses after the start of counting, the timing tool in the system adds a basic count value on the basis of the initialized count value to obtain a first count value, which is the first count value. The value is the updated count value (if another preset time period elapses, a basic count value is added to the first count value, for example, the initial count value is 0, when the first preset time period has passed, the current The count value, that is, the first count value in this embodiment is 1; when the second preset time period has passed, the current count value is 2, and so on). Then, the system calls the pre-built receiving platform and count value mapping relationship table, the receiving platform and count value mapping relationship table can be stored in the internal database of the system; it can also be stored in the cloud server, and the system can obtain from the cloud server when needed . The receiving platform and the count value mapping relationship table includes the corresponding relationship between the count value and each receiving platform, and one count value corresponds to one or more receiving platforms. According to the first count value, the system selects one or more first receiving platforms corresponding to the first count value from the mapping relationship table between the receiving platform and the count value.
进一步的,所述监测是否扫描到蜂窝网络信号的步骤之前,包括:Further, before the step of monitoring whether a cellular network signal is scanned, the steps include:
S5:检测所述蜂窝物联网设备与全部的接收平台分别协议约定的数据包发送频率;S5: Detect the data packet sending frequency agreed by the agreement of the cellular Internet of Things device and all the receiving platforms respectively;
S6:根据各所述数据包发送频率得到各所述接收平台分别对应的数据包发送间隔时长;S6: obtain the corresponding data packet transmission interval duration of each described receiving platform according to each described data packet transmission frequency;
S7:计算各所述数据包发送间隔时长之间的最小公倍数,并将所述最小公倍数的值设置为所述预设时长的值。S7: Calculate the least common multiple between the durations of each of the data packet sending intervals, and set the value of the least common multiple as the value of the preset duration.
本实施例中,在未构建接收平台与计数值映射关系表之前(即系统还未建立蜂窝物联网设备与各个接收平台之间的数据包统一的发送周期之前),系统对蜂窝物联网设备与全部的接收平台(包括物联网平台和蜂窝网络基站)之间协议约定的数据包发送频率检测。在得到蜂窝物联网设备与各接收平台之间的数据包发送频率后,根据各数据包发送频率解析得到各接收平台各自对应的数据包发送间隔时长。然后,系统通过相互最小公倍数的计算,得到各数据包发送间隔时长之间的最小公倍数,并将计算得到的最小公倍数的值设置为预设时长的值,该最小公倍数即为各接收平台的数据包的共同发送间隔时长。比如,接收平台A对应的数据包发送间隔时长为2min,接收平台B对应的数据包发送间隔时长为6min,接收平台C对应的数据包接收时长为10min,则计算得到的最小公倍数为30,因此预设时长为30min。In this embodiment, before the mapping relationship table between the receiving platform and the count value has not been constructed (that is, before the system has established a unified data packet sending cycle between the cellular IoT device and each receiving platform), the system compares the cellular IoT device with the counting value. The data packet sending frequency detection agreed in the agreement between all receiving platforms (including the IoT platform and the cellular network base station). After obtaining the data packet sending frequency between the cellular Internet of Things device and each receiving platform, the corresponding data packet sending interval time of each receiving platform is obtained through analysis according to each data packet sending frequency. Then, the system calculates the least common multiple of each other to obtain the least common multiple between the transmission intervals of each data packet, and sets the calculated value of the least common multiple as the value of the preset time length, and the least common multiple is the data of each receiving platform. The duration of the co-transmission interval of the packets. For example, if the data packet sending interval corresponding to receiving platform A is 2 minutes, the data packet sending interval corresponding to receiving platform B is 6 minutes, and the data packet receiving time corresponding to receiving platform C is 10 minutes, the calculated least common multiple is 30, so The preset duration is 30min.
另一实施例中,所述蜂窝物联网设备内设置有时基寄存器,所述时基寄存器为根据所述蜂窝物联网设备与各所述接收平台之间的数据包发送时间基准构建的计时工具,所述若扫描到蜂窝网络信号,则将计数值初始化,并以一个预设时长对应一个基础计数值开始持续计数的步骤,包括:In another embodiment, a time base register is set in the cellular Internet of Things device, and 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 of the receiving platforms, The step of initializing the count value if a cellular network signal is scanned, and starting continuous counting with a preset duration corresponding to a basic count value, including:
S201:若扫描到蜂窝网络信号,则将当前时刻设置为所述时基寄存器的时间起点,并将所述时基寄存器的计数值初始化;S201: if the cellular network signal is scanned, then 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;
S202:通过所述时基寄存器开始持续地定时计数,所述时基寄存器的计数值为计时时长。S202: Start continuous timing counting through the time base register, and the count value of the time base register is the timing duration.
本实施例中,蜂窝物联网设备的系统内设置有时基寄存器,该时基寄存器为根据蜂窝物联网设备与各接收平台之间的数据包发送时间基准(即本实施例中的预设时长)构建的计时工具,时基寄存器的每个计数单位为1ms。通过对时基寄存器的软件设置,时基寄存器会采取定时中断的方式唤醒蜂窝物联网设备。系统在扫描到蜂窝网络信号后,将当前时刻设置为时基寄存器的时间起点,并将时基寄存器的计数值初始化,初始化后为初始计数值(即设置为0)。然后,系统内的时基寄存器开始持续地定时计数,对数据包的发送时间开始监控。其中,时基寄存器的计数值对应计时时长,单位为毫秒。In this embodiment, a time base register is set in the system of the cellular Internet of Things device, and the time base register is based on the time base for sending data packets between the cellular Internet of Things device and each receiving platform (that is, the preset duration in this embodiment). The built timing tool, each count unit of the time base register is 1ms. Through the software setting of the time base register, the time base register will wake up the cellular IoT device by means of timed interrupts. After the system scans the cellular network signal, it sets the current time as the time starting point of the time base register, and initializes the count value of the time base register. After initialization, it is the initial count value (ie, it is set to 0). Then, the time base register in the system starts to count continuously and starts to monitor the sending time of the data packet. Among them, the count value of the time base register corresponds to the timing duration, and the unit is milliseconds.
另一实施例中,所述在监测到增加一个所述基础计数值时,获取与当前计数值相对应的若干个第一接收平台的步骤,包括:In another embodiment, the step of acquiring a plurality of first receiving platforms corresponding to the current count value when monitoring an increase of one of the basic count values includes:
S303:监测所述时基寄存器的计数值是否为所述预设时长的整数倍;S303: monitor whether the count value of the time base register is an integer multiple of the preset duration;
S304:若所述时基寄存器的计数值为所述预设时长的整数倍,则所述时基寄存器产生定时中断,并获取与当前计数值相对应的若干个第一接收平台。S304: 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 several first receiving platforms corresponding to the current count value.
本实施例中,由上可知,时基寄存器的计数值为计时时长,系统实时监测时基寄存器的计数值是否为预设时长的整数倍。如果时基寄存器的计数值为预设时长的整数倍,则时基寄存器会产生定时中断,从而请求系统优先处理数据包的发送动作。系统根据时基寄存器的请求,自动获取与当前计数值(即实时更新后的计数值)相对应的若干个第一接收平台。本实施例中,计数值以数字加上预设时长的形式进行表示,比如预设时长为T,则初始计数值为0,增加一个基础计数值后为1T;再次增加一个基础计数值则为2T,以此类推。In this embodiment, it can be seen from the above that the count value of the time base register is the timing duration, and the system monitors in real time whether the count value of the time base register is an integer multiple of the preset duration. If the count value of the time base register is an integer multiple of the preset duration, the time base register will generate a timing interrupt, thereby requesting the system to preferentially process the sending action of the data packet. According to the request of the time base register, the system automatically obtains several first receiving platforms corresponding to the current count value (ie, the count value updated in real time). In this embodiment, the count value is expressed in the form of 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, it is 1T; adding another basic 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 each of the first receiving platforms to each of the first receiving platforms, respectively, includes:
S401:根据所述时基寄存器产生的定时中断唤醒所述蜂窝物联网设备;S401: Wake up the cellular IoT device according to the timing interrupt generated by the time base register;
S402:通过所述蜂窝物联网设备将各所述第一接收平台各自的数据包分别对应发送给各所述第一接收平台。S402: Send respective data packets of each of the first receiving platforms to each of the first receiving platforms through the cellular Internet of Things device.
本实施例中,系统通过时基寄存器产生的定时中断唤醒蜂窝物联网设备,蜂窝物联网设备被唤醒后,会自动将各个第一接收平台各自的数据包同时对应发送给各个第一接收平台,从而实现有序的管理各个接收平台分别对应的数据包的发送周期,不需要反复唤醒蜂窝物联网设备,有效延长蜂窝物联网设备的休眠时间,降低设备的电量消耗。In this embodiment, the system wakes up the cellular IoT device through the timing interrupt generated by the time base register. After the cellular IoT device is woken up, it will automatically send the respective data packets of each first receiving platform to each first receiving platform correspondingly at the same time. Thereby, the sending cycles of data packets corresponding to each receiving platform are managed in an orderly manner, and there is no need to repeatedly wake up the cellular IoT device, effectively prolonging the sleep time of the cellular IoT device, and reducing the power consumption of the device.
进一步的,所述若扫描到蜂窝网络信号,则将计数值初始化,并以一个预设时长对应一个基础计数值开始持续计数的步骤之后,包括:Further, after the step of initializing the count value if the cellular network signal is scanned, and starting continuous counting with a preset duration corresponding to a basic count value, the steps include:
S8:若监测到所述蜂窝网络信号丢失,则将所述时基寄存器设置为无效,停止定时计数。S8: If it is detected that the cellular network signal is lost, set the time base register to be invalid, and stop timing counting.
本实施例中,系统在开始计数后,如果监测到蜂窝网络信号丢失(即扫描不到蜂窝网络信号),则即时将时基寄存器设置为无效,从而使得时基寄存器停止定时计数。后续如果重新扫描到蜂窝网络信号,则需要将蜂窝网络设备重新注册到蜂窝网络后的当前时刻设置为时基寄存器的时间起点,并重新将时基寄存器的计数值初始化,设置为0,然后在保持网络连接的情况下继续定时计数。In this embodiment, after the system starts counting, if it detects that the cellular network signal is lost (ie, the cellular network signal cannot be scanned), the system immediately sets the time base register to be invalid, so that the time base register stops timing counting. If the cellular network signal is rescanned later, the current moment after the cellular network device is re-registered to the cellular network needs to be set as the time starting point of the time base register, and the count value of the time base register is re-initialized, set to 0, and then Continue timing counting while maintaining the network connection.
参照图2,本申请一实施例中还提供了一种蜂窝物联网设备的数据包发送装置,包括:Referring to FIG. 2, an embodiment of the present application further provides a data packet sending apparatus for a cellular IoT device, including:
监测模块1,用于监测是否扫描到蜂窝网络信号;Monitoring module 1, used to monitor whether a cellular network signal is scanned;
计数模块2,用于若扫描到蜂窝网络信号,则将计数值初始化,并以一个预设时长对应一个基础计数值开始持续计数,其中,一个计数值对应一个或多个接收平台,所述接收平台包括物联网平台和蜂窝网络基站,所述基础计数值为计数时单次增加的值;The counting module 2 is used to initialize the counting value if a cellular network signal is scanned, and start counting continuously with a preset duration corresponding to a basic counting value, wherein one counting value corresponds to one or more receiving platforms, and the receiving The platform includes an Internet of Things platform and a cellular network base station, and the basic count value is a value that is incremented once during counting;
获取模块3,用于在监测到增加一个所述基础计数值时,获取与当前计数值相对应的若干个第一接收平台;Obtaining module 3 is used to obtain several first receiving platforms corresponding to the current count value when monitoring to increase one of the basic count values;
唤醒模块4,用于唤醒所述蜂窝物联网设备将各所述第一接收平台各自的数据包分别对应发送给各所述第一接收平台。The wake-up module 4 is configured to wake up the cellular Internet of Things device and send the respective data packets of each of the first receiving platforms to each of the first receiving platforms correspondingly.
本实施例中,上述数据包发送装置中的监测模块1、计数模块2、获取模块3和唤醒模块4的功能和作用的实现过程具体详见上述蜂窝物联网设备的数据包发送方法中对应步骤S1至S4的实现过程,在此不再赘述。In this embodiment, the implementation process of the functions and functions of the monitoring module 1, the counting module 2, the acquisition module 3 and the wake-up module 4 in the above-mentioned data packet sending device can be found in the corresponding steps in the above-mentioned data packet sending method of the cellular Internet of Things device for details. The implementation process of S1 to S4 will not be repeated here.
进一步的,所述获取模块3,包括:Further, the acquisition module 3 includes:
计算单元,用于在初始化后的计数值的基础上增加一个所述基础计数值,得到第一计数值;a calculation unit, for adding a said basic count value on the basis of the initialized count value to obtain a first count value;
筛选单元,用于调取预设的接收平台与计数值映射关系表,从所述接收平台与计数值映射关系表中,筛选与所述第一计数值相对应的若干个所述第一接收平台,其中,所述接收平台与计数值映射关系表中一个计数值对应一个或多个接收平台。A screening unit, configured to retrieve a preset receiving platform and count value mapping relationship table, and from the receiving platform and count value mapping relationship table, filter a number of the first receiving platform corresponding to the first count value. platform, wherein a count value in the receiving platform and the count value mapping relationship table corresponds to one or more receiving platforms.
本实施例中,上述数据包发送装置中的计算单元和筛选单元的功能和作用的实现过程具体详见上述蜂窝物联网设备的数据包发送方法中对应步骤S301至S302的实现过程,在此不再赘述。In this embodiment, for the implementation process of the functions and functions of the computing unit and the screening unit in the above-mentioned data packet sending device, please refer to the implementation process corresponding to steps S301 to S302 in the above-mentioned data packet sending method of the cellular Internet of Things device. Repeat.
进一步的,所述数据包发送装置,还包括:Further, the data packet sending device further includes:
检测模块5,用于检测所述蜂窝物联网设备与全部的接收平台分别协议约定的数据包发送频率;The detection module 5 is used to detect the data packet sending frequency agreed by the respective agreements between the cellular Internet of Things device and all the receiving platforms;
计算模块6,用于根据各所述数据包发送频率得到各所述接收平台分别对应的数据包发送间隔时长;A calculation module 6, configured to obtain the corresponding data packet transmission interval duration of each of the receiving platforms according to the transmission frequency of each of the data packets;
设置模块7,用于计算各所述数据包发送间隔时长之间的最小公倍数,并将所述最小公倍数的值设置为所述预设时长的值。A setting module 7 is configured to calculate the least common multiple between the durations of each of the data packet sending intervals, and set the value of the least common multiple as the value of the preset duration.
本实施例中,上述数据包发送装置中的检测模块5、计算模块6和设置模块7的功能和作用的实现过程具体详见上述蜂窝物联网设备的数据包发送方法中对应步骤S5至S7的实现过程,在此不再赘述。In this embodiment, the implementation process of the functions and functions of the detection module 5, the calculation module 6, and the setting module 7 in the above-mentioned data packet sending device can be found in the corresponding steps S5 to S7 in the data packet sending method of the above-mentioned cellular Internet of Things device for details. The implementation process is not repeated here.
进一步的,所述蜂窝物联网设备内设置有时基寄存器,所述时基寄存器为根据所述蜂窝物联网设备与各所述接收平台之间的数据包发送时间基准构建的计时工具,所述计数模块2,包括:Further, a time base register is set in the cellular Internet of Things device, and the time base register is a timing tool constructed according to the data packet transmission time reference between the cellular Internet of Things device and each of the receiving platforms, and the count Module 2, including:
设置单元,用于若扫描到蜂窝网络信号,则将当前时刻设置为所述时基寄存器的时间起点,并将所述时基寄存器的计数值初始化;A setting unit, for if the cellular network signal is scanned, then 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;
计数单元,用于通过所述时基寄存器开始持续地定时计数,所述时基寄存器的计数值为计时时长。The counting unit is used for starting continuous timing counting through the time base register, and the count value of the time base register is the timing duration.
本实施例中,上述计数模块2中的设置单元和计数单元的功能和作用的实现过程具体详见上述蜂窝物联网设备的数据包发送方法中对应步骤S201至S202的实现过程,在此不再赘述。In this embodiment, for the implementation process of the functions and functions of the setting unit and the counting unit in the above-mentioned counting module 2, please refer to the implementation process corresponding to steps S201 to S202 in the data packet sending method of the above-mentioned cellular Internet of Things device, which is not repeated here. Repeat.
进一步的,所述获取模块3,还包括:Further, the acquisition module 3 also includes:
监测单元,用于监测所述时基寄存器的计数值是否为所述预设时长的整数倍;a monitoring unit, configured to monitor whether the count value of the time base register is an integer multiple of the preset duration;
获取单元,用于若所述时基寄存器的计数值为所述预设时长的整数倍,则所述时基寄存器产生定时中断,并获取与当前计数值相对应的若干个第一接收平台。an obtaining unit, configured to generate a timing interrupt in the time base register if the count value of the time base register is an integer multiple of the preset duration, and obtain several first receiving platforms corresponding to the current count value.
本实施例中,上述获取模块3中的监测单元和获取单元的功能和作用的实现过程具体详见上述蜂窝物联网设备的数据包发送方法中对应步骤S303至S304的实现过程,在此不再赘述。In this embodiment, for the implementation process of the functions and functions of the monitoring unit and the acquisition unit in the above acquisition module 3, please refer to the implementation process corresponding to steps S303 to S304 in the data packet sending method of the above-mentioned cellular Internet of Things device, which is not repeated here. Repeat.
进一步的,所述唤醒模块4,包括:Further, the wake-up module 4 includes:
唤醒单元,用于根据所述时基寄存器产生的定时中断唤醒所述蜂窝物联网设备;a wake-up unit, configured to wake up the cellular Internet of Things device according to the timing interrupt generated by the time base register;
发送单元,用于通过所述蜂窝物联网设备将各所述第一接收平台各自的数据包分别对应发送给各所述第一接收平台。A sending unit, configured to send respective data packets of each of the first receiving platforms to each of the first receiving platforms through the cellular Internet of Things device.
本实施例中,上述唤醒模块4中的唤醒单元和发送单元的功能和作用的实现过程具体详见上述蜂窝物联网设备的数据包发送方法中对应步骤S401至S402的实现过程,在此不再赘述。In this embodiment, for the implementation process of the functions and functions of the wake-up unit and the sending unit in the above-mentioned wake-up module 4, please refer to the implementation process corresponding to steps S401 to S402 in the data packet sending method of the above-mentioned cellular Internet of Things device, which is not repeated here. Repeat.
进一步的,所述数据包发送装置,还包括:Further, the data packet sending device further includes:
暂停模块8,用于若监测到所述蜂窝网络信号丢失,则将所述时基寄存器设置为无效,停止定时计数。The suspending module 8 is configured to set the time base register to be invalid and stop timing counting if it is detected that the cellular network signal is lost.
本实施例中,上述数据包发送装置中的暂停模块8的功能和作用的实现过程具体详见上述蜂窝物联网设备的数据包发送方法中对应步骤S8的实现过程,在此不再赘述。In this embodiment, the implementation process of the function and function of the suspending module 8 in the above-mentioned data packet sending device can be found in the implementation process corresponding to step S8 in the above-mentioned data packet sending method of the above-mentioned cellular Internet of Things device, which will not be repeated here.
本实施例提供的蜂窝物联网设备的数据包发送装置,包括:系统监测是否扫描到蜂窝网络信号;若扫描到蜂窝网络信号,则将计数值初始化,并以一个预设时长对应一个基础计数值开始持续计数。系统在监测到增加一个基础计数值时,获取与当前计数值相对应的若干个第一接收平台;系统唤醒蜂窝物联网设备后将各第一接收平台各自的数据包同时对应发送给各第一接收平台。本申请对蜂窝物联网设备与各接收平台之间的数据包的发送周期建立统一的管理,在每次增加一个基础计数值时,获取与当前计数值对应的各个第一接收平台,并唤醒蜂窝物联网设备后,将数据包统一发送给对应的各个第一接收平台,从而避免数据包的发送周期混乱、无序地唤醒蜂窝物联网设备,有效增加蜂窝物联网设备的休眠时间,降低了蜂窝物联网设备的功耗。The device for sending data packets of a cellular Internet of Things device provided in this embodiment includes: the system monitors whether a cellular network signal is scanned; if a cellular network signal is scanned, the count value is initialized, and a preset duration corresponds to a basic count value Start counting continuously. When monitoring to increase a basic count value, the system obtains several first receiving platforms corresponding to the current count value; after the system wakes up the cellular IoT device, the system sends the respective data packets of each first receiving platform to each first receiving platform correspondingly at the same time. receiving platform. The present application establishes a unified management for the transmission cycle of data packets between the cellular IoT device and each receiving platform. Each time a basic count value is added, each first receiving platform corresponding to the current count value is acquired, and the cellular network is woken up. After the IoT devices, the data packets are uniformly sent to the corresponding first receiving platforms, so as to avoid the chaotic and disorderly wake-up of the cellular IoT devices in the sending cycle of the data packets, effectively increase the sleep time of the cellular IoT devices, and reduce the cellular IoT devices. Power consumption of IoT devices.
参照图3,本申请实施例中还提供一种计算机设备,该计算机设备可以是服务器,其内部结构可以如图3所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设计的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的数据库用于存储接收平台与计数值映射关系表等数据。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现上述的任一实施例蜂窝物联网设备的数据包发送方法的功能。Referring to FIG. 3 , an embodiment of the present application further provides a computer device. The computer device may be a server, and its internal structure may be as shown in FIG. 3 . The computer device includes a processor, memory, a network interface, and a database connected by a system bus. Among them, the processor of the computer design is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium, an internal memory. The nonvolatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium. The database of the computer equipment is used for storing data such as the mapping relationship table between the receiving platform and the count value. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the functions of the data packet sending method of the cellular Internet of Things device in any of the above-mentioned embodiments are realized.
上述处理器执行上述蜂窝物联网设备的数据包发送方法的步骤:The above-mentioned processor executes the steps of the above-mentioned method for sending data packets of the cellular Internet of Things device:
S1:监测是否扫描到蜂窝网络信号;S1: monitor whether the cellular network signal is scanned;
S2:若扫描到蜂窝网络信号,则将计数值初始化,并以一个预设时长对应一个基础计数值开始持续计数,其中,一个计数值对应一个或多个接收平台,所述接收平台包括物联网平台和蜂窝网络基站,所述基础计数值为计数时单次增加的值;S2: If a cellular network signal is scanned, initialize the count value, and start counting continuously with a preset duration corresponding to a basic count value, wherein one count value corresponds to one or more receiving platforms, and the receiving platforms include the Internet of Things A platform and a cellular network base station, the basic count value is a value that is incremented once during counting;
S3:在监测到增加一个所述基础计数值时,获取与当前计数值相对应的若干个第一接收平台;S3: when monitoring to increase a described basic count value, obtain several first receiving platforms corresponding to the current count value;
S4:唤醒所述蜂窝物联网设备将各所述第一接收平台各自的数据包分别对应发送给各所述第一接收平台。S4: Wake up the cellular Internet of Things device to send the respective data packets of each of the first receiving platforms to each of the first receiving platforms correspondingly.
本申请一实施例还提供一种计算机可读存储介质,所述存储介质可以是非易失性存储介质,也可以是易失性存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现上述的任一实施例蜂窝物联网设备的数据包发送方法,所述方法具体为:An embodiment of the present application further provides a computer-readable storage medium. The storage medium may be a non-volatile storage medium or a volatile storage medium, on which a computer program is stored. When the computer program is executed by a processor A data packet sending method for a cellular Internet of Things device in any of the above-mentioned embodiments is implemented, and the method is specifically:
S1:监测是否扫描到蜂窝网络信号;S1: monitor whether the cellular network signal is scanned;
S2:若扫描到蜂窝网络信号,则将计数值初始化,并以一个预设时长对应一个基础计数值开始持续计数,其中,一个计数值对应一个或多个接收平台,所述接收平台包括物联网平台和蜂窝网络基站,所述基础计数值为计数时单次增加的值;S2: If a cellular network signal is scanned, initialize the count value, and start counting continuously with a preset duration corresponding to a basic count value, wherein one count value corresponds to one or more receiving platforms, and the receiving platforms include the Internet of Things A platform and a cellular network base station, the basic count value is a value that is incremented once during counting;
S3:在监测到增加一个所述基础计数值时,获取与当前计数值相对应的若干个第一接收平台;S3: when monitoring to increase a described basic count value, obtain several first receiving platforms corresponding to the current count value;
S4:唤醒所述蜂窝物联网设备将各所述第一接收平台各自的数据包分别对应发送给各所述第一接收平台。S4: Wake up the cellular Internet of Things device to send the respective data packets of each of the first receiving platforms to each of the first receiving platforms correspondingly.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储与一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的和实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可以包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM通过多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双速据率SDRAM(SSRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage In the medium, when the computer program is executed, it may include the processes of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database or other medium provided in this application and used in the embodiments may include non-volatile and/or volatile memory. Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double-rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其它变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、装置、物品或者方法不仅包括那些要素,而且还包括没有明确列出的其它要素,或者是还包括为这种过程、装置、物品或者方法所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、装置、物品或者方法中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, apparatus, article or method comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, apparatus, article or method. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, apparatus, article, or method that includes the element.
以上所述仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其它相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only the preferred embodiments of the present application, and are not intended to limit the scope of the patent of the present application. Any equivalent structure or equivalent process transformation made by using the contents of the description and drawings of the present application, or directly or indirectly applied to other related The technical field is similarly included in the scope of patent protection of this application.

Claims (20)

  1. 一种蜂窝物联网设备的数据包发送方法,其特征在于,包括:A data packet sending method for a cellular Internet of Things device, comprising:
    监测是否扫描到蜂窝网络信号;Monitor whether a cellular network signal is scanned;
    若扫描到蜂窝网络信号,则将计数值初始化,并以一个预设时长对应一个基础计数值开始持续计数,其中,一个计数值对应一个或多个接收平台,所述接收平台包括物联网平台和蜂窝网络基站,所述基础计数值为计数时单次增加的值;If a cellular network signal is scanned, the count value is initialized, and starts counting continuously with a preset duration corresponding to a basic count value, wherein one count value corresponds to one or more receiving platforms, and the receiving platforms include IoT platforms and A cellular network base station, the basic count value is a value that is incremented once during counting;
    在监测到增加一个所述基础计数值时,获取与当前计数值相对应的若干个第一接收平台;When monitoring to increase the basic count value by one, obtain several first receiving platforms corresponding to the current count value;
    唤醒所述蜂窝物联网设备将各所述第一接收平台各自的数据包分别对应发送给各所述第一接收平台。Wake up the cellular Internet of Things device to send respective data packets of each of the first receiving platforms to each of the first receiving platforms.
  2. 根据权利要求1所述的蜂窝物联网设备的数据包发送方法,其特征在于,所述获取与增当前计数值相对应的若干个第一接收平台的步骤,包括:The data packet sending method of a cellular Internet of Things device according to claim 1, wherein the step of acquiring several first receiving platforms corresponding to the incremented current count value comprises:
    在初始化后的计数值的基础上增加一个所述基础计数值,得到第一计数值;adding one of the basic count values on the basis of the initialized count value to obtain the first count value;
    调取预设的接收平台与计数值映射关系表,从所述接收平台与计数值映射关系表中,筛选与所述第一计数值相对应的若干个所述第一接收平台,其中,所述接收平台与计数值映射关系表中一个计数值对应一个或多个接收平台。Calling the preset receiving platform and the count value mapping relationship table, from the receiving platform and the count value mapping relationship table, screening a number of the first receiving platform corresponding to the first count value, wherein, the A count value in the receiving platform and count value mapping relationship table corresponds to one or more receiving platforms.
  3. 根据权利要求1所述的蜂窝物联网设备的数据包发送方法,其特征在于,所述监测是否扫描到蜂窝网络信号的步骤之前,包括:The method for sending data packets of a cellular Internet of Things device according to claim 1, wherein before the step of monitoring whether a cellular network signal is scanned, the method comprises:
    检测所述蜂窝物联网设备与全部的接收平台分别协议约定的数据包发送频率;Detecting the data packet sending frequency agreed upon by the cellular Internet of Things device and all receiving platforms respectively;
    根据各所述数据包发送频率得到各所述接收平台分别对应的数据包发送间隔时长;According to the transmission frequency of each data packet, the corresponding data packet transmission interval duration of each of the receiving platforms is obtained;
    计算各所述数据包发送间隔时长之间的最小公倍数,并将所述最小公倍数的值设置为所述预设时长的值。Calculate the least common multiple between the durations of each of the data packet sending intervals, and set the value of the least common multiple as the value of the preset duration.
  4. 根据权利要求1所述的蜂窝物联网设备的数据包发送方法,其特征在于,所述蜂窝物联网设备内设置有时基寄存器,所述时基寄存器为根据所述蜂窝物联网设备与各所述接收平台之间的数据包发送时间基准构建的计时工具,所述若扫描到蜂窝网络信号,则将计数值初始化,并以一个预设时长对应一个基础计数值开始持续计数的步骤,包括:The method for sending data packets of a cellular Internet of Things device according to claim 1, wherein a time base register is set in the cellular Internet of Things device, and the time base register is based on the relationship between the cellular Internet of Things device and each of the The timing tool constructed by the data packet transmission time base between the receiving platforms, the steps of initializing the count value if the cellular network signal is scanned, and starting continuous counting with a preset duration corresponding to a basic count value, including:
    若扫描到蜂窝网络信号,则将当前时刻设置为所述时基寄存器的时间起点,并将所述时基寄存器的计数值初始化;If the cellular network signal is scanned, 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;
    通过所述时基寄存器开始持续地定时计数,所述时基寄存器的计数值为计时时长。The time base register starts to count continuously, and the count value of the time base register is the timing duration.
  5. 根据权利要求4所的蜂窝物联网设备的数据包发送方法,其特征在于,所述在监测到增加一个所述基础计数值时,获取与当前计数值相对应的若干个第一接收平台的步骤,包括:The method for sending data packets of a cellular Internet of Things device according to claim 4, wherein the step of acquiring a plurality of first receiving platforms corresponding to the current count value when monitoring the increase of one of the basic count values ,include:
    监测所述时基寄存器的计数值是否为所述预设时长的整数倍;Monitoring whether the count value of the time base register is an integer multiple of the preset duration;
    若所述时基寄存器的计数值为所述预设时长的整数倍,则所述时基寄存器产生定时中断,并获取与当前计数值相对应的若干个第一接收平台。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 several first receiving platforms corresponding to the current count value.
  6. 根据权利要求5所述的蜂窝物联网设备的数据包发送方法,其特征在于,所述唤醒所述蜂窝物联网设备将各所述第一接收平台各自的数据包分别对应发送给各所述第一接收平台的步骤,包括:The method for sending data packets of a cellular Internet of Things device according to claim 5, wherein the waking up the cellular Internet of Things device sends corresponding data packets of each of the first receiving platforms to each of the first receiving platforms. - The steps of receiving the platform, including:
    根据所述时基寄存器产生的定时中断唤醒所述蜂窝物联网设备;Wake up the cellular IoT device according to the timing interrupt generated by the time base register;
    通过所述蜂窝物联网设备将各所述第一接收平台各自的数据包分别对应发送给各所述第一接收平台。The respective data packets of each of the first receiving platforms are correspondingly sent to each of the first receiving platforms through the cellular Internet of Things device.
  7. 根据权利要求4所述的蜂窝物联网设备的数据包发送方法,其特征在于,所述若扫描到蜂窝网络信号,则将计数值初始化,并以一个预设时长对应一个基础计数值开始持续计数的步骤之后,包括:The method for sending data packets of a cellular Internet of Things device according to claim 4, wherein if a cellular network signal is scanned, the count value is initialized, and a preset duration corresponding to a basic count value starts to count continuously after the steps, including:
    若监测到所述蜂窝网络信号丢失,则将所述时基寄存器设置为无效,停止定时计数。If it is detected that the cellular network signal is lost, the time base register is set to be invalid, and the timing count is stopped.
  8. 一种计算机设备,包括存储器和处理器,所述存储器中存储有计算机程序,其中,所述处理器执行所述计算机程序时实现一种蜂窝物联网设备的数据包发送方法;A computer device, comprising a memory and a processor, wherein a computer program is stored in the memory, wherein when the processor executes the computer program, a data packet sending method for a cellular Internet of Things device is implemented;
    其中,所述蜂窝物联网设备的数据包发送方法包括:Wherein, the data packet sending method of the cellular Internet of Things device includes:
    监测是否扫描到蜂窝网络信号;Monitor whether a cellular network signal is scanned;
    若扫描到蜂窝网络信号,则将计数值初始化,并以一个预设时长对应一个基础计数值开始持续计数,其中,一个计数值对应一个或多个接收平台,所述接收平台包括物联网平台和蜂窝网络基站,所述基础计数值为计数时单次增加的值;If a cellular network signal is scanned, the count value is initialized, and starts counting continuously with a preset duration corresponding to a basic count value, wherein one count value corresponds to one or more receiving platforms, and the receiving platforms include IoT platforms and A cellular network base station, the basic count value is a value that is incremented once during counting;
    在监测到增加一个所述基础计数值时,获取与当前计数值相对应的若干个第一接收平台;When monitoring to increase the basic count value by one, obtain several first receiving platforms corresponding to the current count value;
    唤醒所述蜂窝物联网设备将各所述第一接收平台各自的数据包分别对应发送给各所述第一接收平台。Wake up the cellular Internet of Things device to send respective data packets of each of the first receiving platforms to each of the first receiving platforms.
  9. 根据权利要求8所述的计算机设备,其中,所述获取与增当前计数值相对应的若干个第一接收平台的步骤,包括:The computer device according to claim 8, wherein the step of acquiring several first receiving platforms corresponding to the incremented current count value comprises:
    在初始化后的计数值的基础上增加一个所述基础计数值,得到第一计数值;adding one of the basic count values on the basis of the initialized count value to obtain the first count value;
    调取预设的接收平台与计数值映射关系表,从所述接收平台与计数值映射关系表中,筛选与所述第一计数值相对应的若干个所述第一接收平台,其中,所述接收平台与计数值映射关系表中一个计数值对应一个或多个接收平台。Calling the preset receiving platform and the count value mapping relationship table, from the receiving platform and the count value mapping relationship table, screening a number of the first receiving platform corresponding to the first count value, wherein, the A count value in the receiving platform and count value mapping relationship table corresponds to one or more receiving platforms.
  10. 根据权利要求8所述的计算机设备,其中,所述监测是否扫描到蜂窝网络信号的步骤之前,包括:The computer device according to claim 8, wherein before the step of monitoring whether a cellular network signal is scanned, the step includes:
    检测所述蜂窝物联网设备与全部的接收平台分别协议约定的数据包发送频率;Detecting the data packet sending frequency agreed upon by the cellular Internet of Things device and all receiving platforms respectively;
    根据各所述数据包发送频率得到各所述接收平台分别对应的数据包发送间隔时长;According to the transmission frequency of each data packet, the corresponding data packet transmission interval duration of each of the receiving platforms is obtained;
    计算各所述数据包发送间隔时长之间的最小公倍数,并将所述最小公倍数的值设置为所述预设时长的值。Calculate the least common multiple between the durations of each of the data packet sending intervals, and set the value of the least common multiple as the value of the preset duration.
  11. 根据权利要求8所述的计算机设备,其中,所述蜂窝物联网设备内设置有时基寄存器,所述时基寄存器为根据所述蜂窝物联网设备与各所述接收平台之间的数据包发送时间基准构建的计时工具,所述若扫描到蜂窝网络信号,则将计数值初始化,并以一个预设时长对应一个基础计数值开始持续计数的步骤,包括:The computer device according to claim 8, wherein a time base register is set in the cellular Internet of Things device, and the time base register is based on the data packet sending time between the cellular Internet of Things device and each of the receiving platforms The timing tool constructed by the benchmark, the step of initializing the count value if a cellular network signal is scanned, and starting continuous counting with a preset duration corresponding to a basic count value, including:
    若扫描到蜂窝网络信号,则将当前时刻设置为所述时基寄存器的时间起点,并将所述时基寄存器的计数值初始化;If the cellular network signal is scanned, 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;
    通过所述时基寄存器开始持续地定时计数,所述时基寄存器的计数值为计时时长。The time base register starts to count continuously, and the count value of the time base register is the timing duration.
  12. 根据权利要求11所述的计算机设备,其中,所述在监测到增加一个所述基础计数值时,获取与当前计数值相对应的若干个第一接收平台的步骤,包括:The computer device according to claim 11, wherein the step of acquiring a plurality of first receiving platforms corresponding to the current count value when monitoring to increase one of the basic count values, comprises:
    监测所述时基寄存器的计数值是否为所述预设时长的整数倍;Monitoring whether the count value of the time base register is an integer multiple of the preset duration;
    若所述时基寄存器的计数值为所述预设时长的整数倍,则所述时基寄存器产生定时中断,并获取与当前计数值相对应的若干个第一接收平台。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 several first receiving platforms corresponding to the current count value.
  13. 根据权利要求12所述的计算机设备,其中,所述唤醒所述蜂窝物联网设备将各所述第一接收平台各自的数据包分别对应发送给各所述第一接收平台的步骤,包括:The computer device according to claim 12, wherein the step of waking up the cellular Internet of Things device to send the respective data packets of each of the first receiving platforms to each of the first receiving platforms, comprising:
    根据所述时基寄存器产生的定时中断唤醒所述蜂窝物联网设备;Wake up the cellular IoT device according to the timing interrupt generated by the time base register;
    通过所述蜂窝物联网设备将各所述第一接收平台各自的数据包分别对应发送给各所述第一接收平台。The respective data packets of each of the first receiving platforms are correspondingly sent to each of the first receiving platforms through the cellular Internet of Things device.
  14. 根据权利要求12所述的计算机设备,其中,所述若扫描到蜂窝网络信号,则将计数值初始化,并以一个预设时长对应一个基础计数值开始持续计数的步骤之后,包括:The computer device according to claim 12, wherein, after the step of initializing the count value and starting continuous counting with a preset duration corresponding to a basic count value if a cellular network signal is scanned, the method comprises:
    若监测到所述蜂窝网络信号丢失,则将所述时基寄存器设置为无效,停止定时计数。If it is detected that the cellular network signal is lost, the time base register is set to be invalid, and the timing count is stopped.
  15. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现一种蜂窝物联网设备的数据包发送方法,所述蜂窝物联网设备的数据包发送方法包括以下步骤:A computer-readable storage medium on which a computer program is stored, characterized in that, when the computer program is executed by a processor, a method for sending data packets of a cellular Internet of Things device is implemented, and a data packet of the cellular Internet of Things device is The sending method includes the following steps:
    监测是否扫描到蜂窝网络信号;Monitor whether a cellular network signal is scanned;
    若扫描到蜂窝网络信号,则将计数值初始化,并以一个预设时长对应一个基础计数值开始持续计数,其中,一个计数值对应一个或多个接收平台,所述接收平台包括物联网平台和蜂窝网络基站,所述基础计数值为计数时单次增加的值;If a cellular network signal is scanned, the count value is initialized, and starts counting continuously with a preset duration corresponding to a basic count value, wherein one count value corresponds to one or more receiving platforms, and the receiving platforms include IoT platforms and A cellular network base station, the basic count value is a value that is incremented once during counting;
    在监测到增加一个所述基础计数值时,获取与当前计数值相对应的若干个第一接收平台;When monitoring to increase the basic count value by one, obtain several first receiving platforms corresponding to the current count value;
    唤醒所述蜂窝物联网设备将各所述第一接收平台各自的数据包分别对应发送给各所述第一接收平台。Wake up the cellular Internet of Things device to send respective data packets of each of the first receiving platforms to each of the first receiving platforms.
  16. 根据权利要求15所述的计算机可读存储介质,其特征在于,所述获取与增当前计数值相对应的若干个第一接收平台的步骤,包括:The computer-readable storage medium according to claim 15, wherein the step of acquiring a plurality of first receiving platforms corresponding to the incremented current count value comprises:
    在初始化后的计数值的基础上增加一个所述基础计数值,得到第一计数值;adding one of the basic count values on the basis of the initialized count value to obtain the first count value;
    调取预设的接收平台与计数值映射关系表,从所述接收平台与计数值映射关系表中,筛选与所述第一计数值相对应的若干个所述第一接收平台,其中,所述接收平台与计数值映射关系表中一个计数值对应一个或多个接收平台。Calling the preset receiving platform and the count value mapping relationship table, from the receiving platform and the count value mapping relationship table, screening a number of the first receiving platform corresponding to the first count value, wherein, the A count value in the receiving platform and count value mapping relationship table corresponds to one or more receiving platforms.
  17. 根据权利要求15所述的计算机可读存储介质,其特征在于,所述监测是否扫描到蜂窝网络信号的步骤之前,包括:The computer-readable storage medium according to claim 15, wherein before the step of monitoring whether a cellular network signal is scanned, the method comprises:
    检测所述蜂窝物联网设备与全部的接收平台分别协议约定的数据包发送频率;Detecting the data packet sending frequency agreed upon by the cellular Internet of Things device and all receiving platforms respectively;
    根据各所述数据包发送频率得到各所述接收平台分别对应的数据包发送间隔时长;According to the transmission frequency of each data packet, the corresponding data packet transmission interval duration of each of the receiving platforms is obtained;
    计算各所述数据包发送间隔时长之间的最小公倍数,并将所述最小公倍数的值设置为所述预设时长的值。Calculate the least common multiple between the durations of each of the data packet sending intervals, and set the value of the least common multiple as the value of the preset duration.
  18. 根据权利要求15所述的计算机可读存储介质,其特征在于,所述蜂窝物联网设备内设置有时基寄存器,所述时基寄存器为根据所述蜂窝物联网设备与各所述接收平台之间的数据包发送时间基准构建的计时工具,所述若扫描到蜂窝网络信号,则将计数值初始化,并以一个预设时长对应一个基础计数值开始持续计数的步骤,包括:The computer-readable storage medium according to claim 15, wherein a time base register is set in the cellular Internet of Things device, and the time base register is based on the relationship between the cellular Internet of Things device and each of the receiving platforms. The timing tool constructed by the data packet sending time reference, if the cellular network signal is scanned, the count value is initialized, and the steps of starting continuous counting with a preset duration corresponding to a basic count value include:
    若扫描到蜂窝网络信号,则将当前时刻设置为所述时基寄存器的时间起点,并将所述时基寄存器的计数值初始化;If the cellular network signal is scanned, 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;
    通过所述时基寄存器开始持续地定时计数,所述时基寄存器的计数值为计时时长。The time base register starts to count continuously, and the count value of the time base register is the timing duration.
  19. 根据权利要求18所述的计算机可读存储介质,其特征在于,所述在监测到增加一个所述基础计数值时,获取与当前计数值相对应的若干个第一接收平台的步骤,包括:The computer-readable storage medium according to claim 18, wherein the step of acquiring a plurality of first receiving platforms corresponding to the current count value when monitoring to increase one of the basic count values, comprises:
    监测所述时基寄存器的计数值是否为所述预设时长的整数倍;Monitoring whether the count value of the time base register is an integer multiple of the preset duration;
    若所述时基寄存器的计数值为所述预设时长的整数倍,则所述时基寄存器产生定时中断,并获取与当前计数值相对应的若干个第一接收平台。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 several first receiving platforms corresponding to the current count value.
  20. 根据权利要求19所述的计算机可读存储介质,其特征在于,所述唤醒所述蜂窝物联网设备将各所述第一接收平台各自的数据包分别对应发送给各所述第一接收平台的步骤,包括:The computer-readable storage medium according to claim 19, wherein the waking up the cellular Internet of Things device sends the respective data packets of each of the first receiving platforms to the corresponding data packets of each of the first receiving platforms. steps, including:
    根据所述时基寄存器产生的定时中断唤醒所述蜂窝物联网设备;Wake up the cellular IoT device according to the timing interrupt generated by the time base register;
    通过所述蜂窝物联网设备将各所述第一接收平台各自的数据包分别对应发送给各所述第一接收平台。The respective data packets of each of the first receiving platforms are correspondingly sent to each of the first receiving platforms through the cellular Internet of Things device.
PCT/CN2020/131527 2020-11-25 2020-11-25 Data packet transmission method and apparatus for cellular internet of things device, and computer device WO2022109882A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/131527 WO2022109882A1 (en) 2020-11-25 2020-11-25 Data packet transmission method and apparatus for cellular internet of things device, and computer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/131527 WO2022109882A1 (en) 2020-11-25 2020-11-25 Data packet transmission method and apparatus for cellular internet of things device, and computer device

Publications (1)

Publication Number Publication Date
WO2022109882A1 true WO2022109882A1 (en) 2022-06-02

Family

ID=81755241

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/131527 WO2022109882A1 (en) 2020-11-25 2020-11-25 Data packet transmission method and apparatus for cellular internet of things device, and computer device

Country Status (1)

Country Link
WO (1) WO2022109882A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298515A (en) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 Awakening control method and device for application program in mobile terminal and mobile terminal
US9648564B1 (en) * 2014-03-26 2017-05-09 Amazon Technologies, Inc. Wake-up management for mobile devices
CN107135518A (en) * 2017-06-09 2017-09-05 深圳市沃特沃德股份有限公司 Maintain method, device and the terminal device of heartbeat connection
US20180299946A1 (en) * 2015-06-04 2018-10-18 Apple Inc. Opportunistic waking of an application processor
CN108768763A (en) * 2018-05-04 2018-11-06 北京小米移动软件有限公司 Heartbeat message sending method and device
CN108958447A (en) * 2017-05-18 2018-12-07 复旦大学 Wake up time alignment interval calculation method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298515A (en) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 Awakening control method and device for application program in mobile terminal and mobile terminal
US9648564B1 (en) * 2014-03-26 2017-05-09 Amazon Technologies, Inc. Wake-up management for mobile devices
US20180299946A1 (en) * 2015-06-04 2018-10-18 Apple Inc. Opportunistic waking of an application processor
CN108958447A (en) * 2017-05-18 2018-12-07 复旦大学 Wake up time alignment interval calculation method and device
CN107135518A (en) * 2017-06-09 2017-09-05 深圳市沃特沃德股份有限公司 Maintain method, device and the terminal device of heartbeat connection
CN108768763A (en) * 2018-05-04 2018-11-06 北京小米移动软件有限公司 Heartbeat message sending method and device

Similar Documents

Publication Publication Date Title
US10104614B2 (en) Method for waking up access point device, device, and system
KR101693565B1 (en) Application heartbeat period adjusting method and apparatus, and terminal
CN109511133B (en) Awakening processing method and device
JP7328449B2 (en) Measurement processing method and terminal
JP7445781B2 (en) SRS transmission, setting and measurement methods, positioning methods and equipment
JP2008301077A (en) Network controller, information processor, and wake-up control method
US20140086121A1 (en) Methods and apparatus for controlling a wireless station
WO2016188282A1 (en) Message processing method, device and system
US10200905B2 (en) Method and apparatus for modification of a reporting interval via a network
WO2018196504A1 (en) Method for transmitting internet of things data, internet of things terminal, and computer readable storage medium
US20130325995A1 (en) Network presence offload
CN112565349B (en) Wireless communication method based on central range hood and related equipment
US20220264696A1 (en) Wake up signal processing method, wake up signal configuration method, and related device
WO2022109882A1 (en) Data packet transmission method and apparatus for cellular internet of things device, and computer device
US10153961B2 (en) Communication device, communication method, and communication system
TWI492577B (en) Server and service mode setting method
US20240049347A1 (en) Discontinuous reception configuration method and apparatus
CN112566075B (en) Data packet sending method and device of cellular internet of things equipment and computer equipment
US10028216B2 (en) Data transceiving method, modem, and terminal device
US10027592B1 (en) System to facilitate data transfer in wireless networks
CN107682231B (en) Method and device for monitoring PD equipment, computer equipment and storage medium
JP7135870B2 (en) DETECTION DEVICE, DETECTION METHOD, AND DETECTION PROGRAM
CN113196864A (en) Method and device for discontinuous reception
EP2963859B1 (en) Idle scheduling method and home network node
WO2021258962A1 (en) Data issuing method, and device and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20962773

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20962773

Country of ref document: EP

Kind code of ref document: A1