CN112367409B - Internet of things node data transmission control method and device - Google Patents

Internet of things node data transmission control method and device Download PDF

Info

Publication number
CN112367409B
CN112367409B CN202110044308.6A CN202110044308A CN112367409B CN 112367409 B CN112367409 B CN 112367409B CN 202110044308 A CN202110044308 A CN 202110044308A CN 112367409 B CN112367409 B CN 112367409B
Authority
CN
China
Prior art keywords
message
internet
things
real
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110044308.6A
Other languages
Chinese (zh)
Other versions
CN112367409A (en
Inventor
郑凛
李玮棠
刘毅
马凤鸣
王鑫
陈名峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Jixiang Technology Co Ltd
Original Assignee
Guangzhou Jixiang Technology Co Ltd
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 Guangzhou Jixiang Technology Co Ltd filed Critical Guangzhou Jixiang Technology Co Ltd
Priority to CN202110044308.6A priority Critical patent/CN112367409B/en
Publication of CN112367409A publication Critical patent/CN112367409A/en
Application granted granted Critical
Publication of CN112367409B publication Critical patent/CN112367409B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y10/00Economic sectors
    • G16Y10/75Information technology; Communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • H04L67/1078Resource delivery mechanisms
    • H04L67/108Resource delivery mechanisms characterised by resources being split in blocks or fragments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/62Establishing a time schedule for servicing the requests

Abstract

The embodiment of the application discloses a method and a device for controlling data transmission of nodes of an Internet of things. According to the technical scheme provided by the embodiment of the application, the real-time messages are segmented according to the message capacity of single message information to obtain a plurality of real-time message fragments, the residual capacity of the message information added with each real-time message fragment is determined, the regular message fragments are intercepted from the regular messages according to the residual capacity, the regular message fragments are added to the tail ends of the corresponding message information, the message information is sequentially sent to the gateway of the Internet of things, the regular message fragments are carried by utilizing the residual capacity of the message information, uploading of the regular messages is realized under the condition that new message transmission is not increased, the consumption of electric energy is effectively reduced, and the cruising ability of the battery is optimized.

Description

Internet of things node data transmission control method and device
Technical Field
The embodiment of the application relates to the technical field of Internet of things, in particular to a method and a device for controlling data transmission of nodes of the Internet of things.
Background
With the rapid development of the internet of things, a large number of internet of things devices appear in the schedule life. The internet of things equipment serving as a node in the internet of things network is generally connected with the internet of things gateway through a wireless channel provided by the internet of things gateway, is accessed into the internet of things network through the internet of things gateway, and is communicated with the cloud server through the internet of things gateway. Generally, when the internet of things equipment works, real-time messages are uploaded to the internet of things gateway in real time, regular messages are uploaded to the internet of things gateway regularly, and the internet of things gateway sends the real-time messages and the regular messages to the cloud server. For the internet of things equipment powered by the battery, more electric quantity can be consumed by frequent data transmission, and the electric quantity endurance of the equipment is influenced.
Disclosure of Invention
The embodiment of the application provides a method and a device for controlling data transmission of nodes of an Internet of things, so as to improve the cruising ability of equipment of the Internet of things.
In a first aspect, an embodiment of the present application provides a method for controlling data transmission of a node in an internet of things, including:
determining the message length of a real-time message to be sent to an Internet of things gateway, determining the message capacity of single message information, and segmenting the real-time message according to the message capacity and the message length to obtain a plurality of real-time message segments;
adding the real-time message fragments into message information respectively, and calculating the residual capacity of the corresponding message information according to the fragment length of each real-time message fragment, wherein one real-time message fragment corresponds to one message information;
and intercepting a regular message according to the residual capacity of each message information to obtain regular message fragments, adding the regular message fragments to the tail of the corresponding message information, and sequentially sending the message information to the gateway of the Internet of things.
Further, before determining the message length of the real-time message to be sent to the internet of things gateway, the method further includes:
determining a current power supply mode, wherein the power supply mode comprises an external power supply mode and a battery power supply mode;
and determining a data reporting strategy based on the current power supply mode, wherein the data reporting strategy comprises an efficiency priority strategy and an energy-saving priority strategy which respectively correspond to the external power supply mode and the battery power supply mode.
Further, before calculating the remaining capacity of the corresponding message information according to the fragment length of each real-time message fragment, the method further includes:
and determining whether a regular message which needs to be sent to the gateway of the Internet of things exists or not, and if not, directly and sequentially sending the message information to the gateway of the Internet of things.
Further, the determining the message capacity of the single message information includes:
and determining the signal strength information of the currently connected Internet of things gateway, and determining the message capacity of the single message information based on the signal strength information.
Further, the determining the message capacity of the single message information based on the signal strength information includes:
determining a corresponding signal key value according to a signal strength range corresponding to the signal strength information, determining a corresponding capacity value in a signal capacity linked list based on the signal key value, and determining the message capacity of single message information based on the capacity value, wherein the signal capacity linked list records the corresponding relation between different signal key values and the capacity value in a key value pair mode.
Further, before determining the message capacity of a single message, the method further includes:
judging whether the signal intensity information corresponding to the currently connected Internet of things gateway meets the set signal intensity requirement or not; if not, switching the Internet of things gateways according to the currently detected signal intensity information corresponding to each Internet of things gateway.
Further, before switching the internet of things gateway according to the currently detected signal strength information corresponding to each internet of things gateway, the method further includes:
and sending a gateway switching instruction pointing to the to-be-switched Internet of things gateway to the currently connected Internet of things gateway so that the Internet of things gateway sends downlink data to the to-be-switched Internet of things gateway, and the downlink data is sent by the to-be-switched Internet of things gateway.
In a second aspect, an embodiment of the present application provides an internet of things node data transmission control apparatus, including: the system comprises a message segmentation module, a capacity determination module and an information sending module, wherein:
the message segmentation module is used for determining the message length of a real-time message to be sent to the gateway of the Internet of things, determining the message capacity of single message information, and segmenting the real-time message according to the message capacity and the message length to obtain a plurality of real-time message segments;
the capacity determining module is used for adding the real-time message fragments into message information respectively, and calculating the residual capacity of the corresponding message information according to the fragment length of each real-time message fragment, wherein one real-time message fragment corresponds to one message information;
the information sending module is used for intercepting the regular messages according to the residual capacity of each message information to obtain regular message fragments, adding the regular message fragments to the tail of the corresponding message information, and sending the message information to the gateway of the Internet of things in sequence.
In a third aspect, an embodiment of the present application provides an internet of things node data transmission control device, including: a memory and one or more processors;
the memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the method for controlling data transmission of an internet of things node according to the first aspect.
In a fourth aspect, embodiments of the present application provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the method for controlling data transmission of an internet of things node according to the first aspect.
According to the embodiment of the application, the real-time message is segmented according to the message capacity of single message information to obtain a plurality of real-time message fragments, the residual capacity of the message information added with each real-time message fragment is determined, the regular message fragments are intercepted from the regular message according to the residual capacity, the regular message fragments are added to the tail end of the corresponding message information, the message information is sequentially sent to the gateway of the Internet of things, the regular message fragments are carried by utilizing the residual capacity of the message information, uploading of the regular message is achieved under the condition that new message transmission is not increased, the consumption of electric energy is effectively reduced, and the cruising ability of a battery is optimized.
Drawings
Fig. 1 is a flowchart of a method for controlling data transmission of an internet of things node according to an embodiment of the present application;
fig. 2 is a flowchart of another method for controlling data transmission of an internet of things node according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a node data transmission control device of the internet of things according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a node data transmission control device of an internet of things according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, specific embodiments of the present application will be described in detail with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some but not all of the relevant portions of the present application are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Fig. 1 is a flowchart of a node data transmission control method for an internet of things according to an embodiment of the present disclosure, where the node data transmission control method for an internet of things according to the embodiment of the present disclosure may be implemented by a node data transmission control device for an internet of things, and the node data transmission control device for an internet of things may be implemented in a hardware and/or software manner and integrated in a node data transmission control device for an internet of things (e.g., a sensor, an intelligent home device, an intelligent terminal, etc.).
The following description will be given by taking an example of a method for executing the node data transmission control of the internet of things by using the node data transmission control device of the internet of things. Referring to fig. 1, the method for controlling data transmission of a node in an internet of things includes:
s101: determining the message length of a real-time message to be sent to an Internet of things gateway, determining the message capacity of single message information, and segmenting the real-time message according to the message capacity and the message length to obtain a plurality of real-time message segments.
The internet of things node data transmission control device provided by the embodiment of the application is in communication connection with the internet of things gateway in a short-distance wireless communication (such as WiFi, ZigBee, Bluetooth and the like), and generates a real-time message in real time when the internet of things node data transmission control device is in a working state.
For example, after a real-time message to be uploaded to the internet of things gateway is generated, the message length of the real-time message is determined, and the message capacity of a single message is determined when the message information is uploaded to the internet of things gateway.
Furthermore, the real-time message is segmented according to the preset message capacity of the single message information to obtain a plurality of real-time message fragments, and the data length of each real-time message fragment is smaller than the message capacity of the single message information. And integrating the real-time message fragments according to the position information to obtain a complete real-time message.
S102: and respectively adding the real-time message fragments into message information, and calculating the residual capacity of the corresponding message information according to the fragment length of each real-time message fragment, wherein one real-time message fragment corresponds to one message information.
Illustratively, after a real-time message is segmented to obtain a plurality of real-time message segments, the real-time message segments are sequentially added to message information, and one real-time message segment corresponds to one message information, and further, the remaining capacity of the message information added to each real-time message segment is obtained.
Optionally, when the real-time message is segmented, the length of the real-time message segment obtained by the previous segmentation is matched with the message capacity of the message information to reduce the number of the generated message information, when the remaining capacity of the message information is detected, because the remaining capacity of the previous message information is small, the remaining capacity of the message information can be ignored, only the message information corresponding to the last real-time message segment of the real-time message is detected, and at the moment, the last message information can have more remaining capacity, so that the accommodated regular message segments are increased.
S103: and intercepting a regular message according to the residual capacity of each message information to obtain regular message fragments, adding the regular message fragments to the tail of the corresponding message information, and sequentially sending the message information to the gateway of the Internet of things.
For example, after determining the remaining capacity of each message, it is determined whether the remaining capacity of each message meets the set capacity requirement of the minimum periodic message fragment, and if not, the message is not used to carry the periodic message fragment.
And if the residual capacity meets the capacity requirement of the minimum periodic message fragment, intercepting the periodic message according to the residual capacity of the message information to obtain the periodic message fragment which is adaptive to the residual capacity of the message information, and adding the periodic message fragment to the tail of the message information. And integrating the regular message fragments according to the position information to obtain the complete regular message.
Further, message information is sequentially uploaded to the internet of things gateway, the internet of things gateway sequentially uploads the message information to the cloud server after receiving the message information, the cloud server analyzes the message information after receiving the message information to obtain each real-time message fragment and each periodic message fragment, the real-time message fragments and the periodic message fragments are respectively integrated to obtain corresponding real-time messages and periodic messages, and subsequent work is performed according to the real-time messages and the periodic messages.
In a possible embodiment, before determining the message length of the real-time message that needs to be sent to the internet of things gateway, the method further includes steps S1001-S1002:
s1001: determining a current power supply mode, wherein the power supply mode comprises an external power supply mode and a battery power supply mode.
S1002: and determining a data reporting strategy based on the current power supply mode, wherein the data reporting strategy comprises an efficiency priority strategy and an energy-saving priority strategy which respectively correspond to the external power supply mode and the battery power supply mode.
For example, before determining the message length of a real-time message to be sent to the gateway of the internet of things, the current power supply mode of the node data transmission control device of the internet of things is determined. The power supply mode that this embodiment provided includes external power supply mode and battery power supply mode, wherein under external power supply mode, thing networking node data transmission controlling means supplies power through external power supply (for example directly supply power by external power supply, perhaps when charging for the battery through external power supply, supply power for each components and parts through external power supply, thing networking node data transmission controlling means's work can not or very little consumption battery power), and under battery power supply mode, thing networking node data transmission controlling means is supplied power by built-in battery, thing networking node data transmission controlling means's work will consume built-in battery's electric quantity.
Further, after the current power supply mode is determined, a data reporting strategy is determined according to the real-time power supply mode. The data reporting policy provided by this embodiment includes an efficiency priority policy and an energy saving priority policy that respectively correspond to the external power supply mode and the battery power supply mode.
When the efficiency priority strategy is determined, the real-time message fragments are respectively added into the message information, and then the message information is directly sent to the gateway of the Internet of things, and the regular messages are uploaded to the gateway of the Internet of things according to the set timing period. And when the energy-saving priority strategy is determined, the regular messages are uploaded in a mode that the residual capacity in the message information carries the regular message fragments, so that the consumption of the battery power is reduced.
The method includes the steps that a plurality of real-time message fragments are obtained by segmenting a real-time message according to the message capacity of single message information, the residual capacity of each message added with the real-time message fragments is determined, the regular message fragments are intercepted from the regular message according to the residual capacity, the regular message fragments are added to the tail end of the corresponding message information, the message information is sequentially sent to the gateway of the Internet of things, the regular message fragments are carried by the residual capacity of the message information, uploading of the regular message is achieved under the condition that new message transmission is not increased, the consumption of electric energy is effectively reduced, and the cruising ability of the battery is optimized.
On the basis of the foregoing embodiments, fig. 2 is a flowchart of another method for controlling data transmission of a node of an internet of things according to an embodiment of the present application, where the method for controlling data transmission of a node of an internet of things is an embodiment of the method for controlling data transmission of a node of an internet of things. Referring to fig. 2, the method for controlling data transmission of an internet of things node includes:
s201: and determining the signal intensity information corresponding to the currently connected Internet of things gateway.
S202: and judging whether the signal intensity information corresponding to the currently connected Internet of things gateway meets the set signal intensity requirement. If so, go to step S204, otherwise go to step S203.
Specifically, the signal strength information corresponding to the currently connected internet of things gateway is detected in real time, whether the signal strength information corresponding to the currently connected internet of things gateway meets the set signal strength requirement or not is judged, if the signal strength information meets the signal strength requirement, the step S204 is skipped, and if the signal strength information does not meet the set signal strength requirement, the step S203 is skipped.
S203: and switching the Internet of things gateways according to the currently detected signal intensity information corresponding to each Internet of things gateway.
Specifically, if the signal strength information corresponding to the currently connected internet of things gateway fails to meet the set signal strength requirement, the signal strength information corresponding to each currently searched internet of things gateway is determined, the corresponding signal strength information is determined to be the highest, and the internet of things gateway meeting the set signal strength requirement is determined to be the internet of things gateway to be switched and is switched and connected to the internet of things gateway.
It can be understood that if the signal strength information corresponding to all the internet of things gateways fails to meet the set signal strength requirement, the internet of things gateways are not switched until the internet of things gateways with the signal strength information meeting the set signal strength requirement are searched. For example, for a movable internet of things node data transmission control device, along with the movement of the internet of things node data transmission control device in the direction far away from the current internet of things gateway, the signal intensity information corresponding to the currently connected internet of things gateway of the internet of things node data transmission control device is gradually reduced, and the connected internet of things gateway needs to be switched at the moment, so that the data transmission quality is ensured.
In a possible embodiment, before switching the internet of things gateways according to the currently detected signal strength information corresponding to each internet of things gateway, the method further includes: and sending a gateway switching instruction pointing to the to-be-switched Internet of things gateway to the currently connected Internet of things gateway so that the Internet of things gateway sends downlink data to the to-be-switched Internet of things gateway, and the downlink data is sent by the to-be-switched Internet of things gateway.
Specifically, after the internet of things gateway needing to be switched is determined, a gateway switching instruction pointing to the internet of things gateway to be switched is sent to the currently connected internet of things gateway, and then the internet of things gateway to be switched is switched and connected. And when receiving downlink data which needs to be issued to the node data transmission control device of the Internet of things, the currently connected gateway of the Internet of things sends the downlink data to the gateway of the Internet of things pointed by the gateway switching instruction. And after receiving the downlink data and detecting the access of the node data transmission control device of the internet of things, the gateway of the internet of things pointed by the gateway switching indication sends the corresponding downlink data to the node data transmission control device of the internet of things, so that the downlink data can be correctly transmitted to the node data transmission control device of the internet of things in the process of switching the gateway.
S204: determining the message length of a real-time message to be sent to the Internet of things gateway, determining the signal strength information of the currently connected Internet of things gateway, and determining the message capacity of single message information based on the signal strength information.
Specifically, after a real-time message which needs to be uploaded to the internet of things gateway is generated, the message length of the real-time message is determined, and the signal strength information of the currently connected internet of things gateway is determined. After the signal strength information of the currently connected Internet of things gateway is determined, the message capacity of the single message information is determined according to the signal strength information. It can be understood that the stronger the signal strength information, the larger the corresponding message capacity.
In a possible embodiment, the determining the message capacity of the single message information based on the signal strength information provided by this embodiment includes:
determining a corresponding signal key value according to a signal strength range corresponding to the signal strength information, determining a corresponding capacity value in a signal capacity linked list based on the signal key value, and determining the message capacity of single message information based on the capacity value, wherein the signal capacity linked list records the corresponding relation between different signal key values and the capacity value in a key value pair mode.
Specifically, the node data transmission control device of the internet of things stores a signal capacity linked list, the signal capacity linked list records corresponding relations between different signal key values and capacity value values in a key value pair mode, and the specific capacity value can be determined based on the determined signal key value. Meanwhile, the signal strength ranges in different ranges correspond to different signal key values, the corresponding signal key values can be determined according to the signal strength range corresponding to the signal strength information of the currently connected internet of things gateway, and the corresponding capacity value is determined in the signal capacity linked list based on the signal key values, wherein the determined capacity value is the message capacity of the single message information.
S205: and segmenting the real-time message according to the message capacity and the message length to obtain a plurality of real-time message fragments, and adding the real-time message fragments into message information respectively.
S206: and determining whether a regular message needing to be sent to the gateway of the Internet of things exists. If so, go to step S208, otherwise, go to step S207.
After the real-time messages are respectively added into the message information in a fragmentation mode, whether regular messages waiting for uploading to the gateway of the Internet of things are stored or not is determined, if yes, the step S208 is skipped, and if not, the step S207 is skipped.
S207: and directly and sequentially sending the message information to the gateway of the Internet of things.
And if no regular message needs to be uploaded to the Internet of things gateway, directly and sequentially sending message information to the Internet of things gateway.
S208: and calculating the residual capacity of the corresponding message information according to the fragment length of each real-time message fragment, wherein one real-time message fragment corresponds to one message information.
S209: and intercepting a regular message according to the residual capacity of each message information to obtain regular message fragments, adding the regular message fragments to the tail of the corresponding message information, and sequentially sending the message information to the gateway of the Internet of things.
The method includes the steps that a plurality of real-time message fragments are obtained by segmenting a real-time message according to the message capacity of single message information, the residual capacity of each message added with the real-time message fragments is determined, the regular message fragments are intercepted from the regular message according to the residual capacity, the regular message fragments are added to the tail end of the corresponding message information, the message information is sequentially sent to the gateway of the Internet of things, the regular message fragments are carried by the residual capacity of the message information, uploading of the regular message is achieved under the condition that new message transmission is not increased, the consumption of electric energy is effectively reduced, and the cruising ability of the battery is optimized. And downlink data is sent to the gateway of the Internet of things needing to be switched in the gateway switching process, and the switched gateway of the Internet of things sends the downlink data, so that correct transmission of the data is guaranteed. Meanwhile, the message capacity of single message information is determined according to the signal strength information, when the signal strength information is weak, the smaller message capacity is used, the data volume of single transmission is reduced, the loss of larger electric quantity caused by overlarge retransmitted data volume due to signal transmission failure is reduced, and the consumption of the electric quantity is effectively reduced.
Fig. 3 is a schematic structural diagram of a node data transmission control device of the internet of things according to an embodiment of the present application. Referring to fig. 3, the internet of things node data transmission control device includes a message splitting module 31, a capacity determining module 32, and an information sending module 33.
The message segmentation module 31 is configured to determine a message length of a real-time message to be sent to an internet of things gateway, determine a message capacity of single message information, and segment the real-time message according to the message capacity and the message length to obtain a plurality of real-time message segments; the capacity determining module 32 is configured to add the real-time packet fragments to packet information, and calculate a remaining capacity of corresponding packet information according to a fragment length of each real-time packet fragment, where one real-time packet fragment corresponds to one packet information; the information sending module 33 is configured to intercept a periodic message according to the remaining capacity of each piece of message information to obtain a periodic message fragment, add the periodic message fragment to the end of the corresponding message information, and send the message information to the internet of things gateway in sequence.
The method includes the steps that a plurality of real-time message fragments are obtained by segmenting a real-time message according to the message capacity of single message information, the residual capacity of each message added with the real-time message fragments is determined, the regular message fragments are intercepted from the regular message according to the residual capacity, the regular message fragments are added to the tail end of the corresponding message information, the message information is sequentially sent to the gateway of the Internet of things, the regular message fragments are carried by the residual capacity of the message information, uploading of the regular message is achieved under the condition that new message transmission is not increased, the consumption of electric energy is effectively reduced, and the cruising ability of the battery is optimized.
The embodiment of the application also provides equipment for controlling the data transmission of the nodes of the Internet of things, and the equipment for controlling the data transmission of the nodes of the Internet of things can integrate the device for controlling the data transmission of the nodes of the Internet of things provided by the embodiment of the application. Fig. 4 is a schematic structural diagram of a node data transmission control device of an internet of things according to an embodiment of the present application. Referring to fig. 4, the internet of things node data transmission control apparatus includes: an input device 43, an output device 44, a memory 42, and one or more processors 41; the memory 42 for storing one or more programs; when the one or more programs are executed by the one or more processors 41, the one or more processors 41 may implement the method for controlling data transmission of the internet of things node according to the embodiment. Wherein the input device 43, the output device 44, the memory 42 and the processor 41 may be connected by a bus or other means, for example, in fig. 4.
The memory 42 is a storage medium readable by a computing device, and can be used for storing software programs, computer executable programs, and modules, such as program instructions/modules corresponding to the method for controlling data transmission of internet of things nodes according to any embodiment of the present application (for example, the message segmentation module 31, the capacity determination module 32, and the information transmission module 33 in the apparatus for controlling data transmission of internet of things nodes). The memory 42 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the device, and the like. Further, the memory 42 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 42 may further include memory located remotely from processor 41, which may be connected to the device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 43 may be used to receive input numeric or character information and to generate key signal inputs relating to user settings and function controls of the apparatus. The output device 44 may include a display device such as a display screen.
The processor 41 executes various functional applications and data processing of the device by running software programs, instructions and modules stored in the memory 42, that is, implements the above-described method for controlling data transmission of the internet of things node.
The device, equipment and computer for controlling data transmission of nodes of the internet of things provided by the above embodiments can be used for executing the method for controlling data transmission of nodes of the internet of things provided by any of the above embodiments, and have corresponding functions and beneficial effects.
An embodiment of the present application further provides a storage medium containing computer-executable instructions, where the computer-executable instructions are executed by a computer processor to perform the method for controlling data transmission of a node in an internet of things according to the embodiment, where the method for controlling data transmission of a node in an internet of things includes: determining the message length of a real-time message to be sent to an Internet of things gateway, determining the message capacity of single message information, and segmenting the real-time message according to the message capacity and the message length to obtain a plurality of real-time message segments; adding the real-time message fragments into message information respectively, and calculating the residual capacity of the corresponding message information according to the fragment length of each real-time message fragment, wherein one real-time message fragment corresponds to one message information; and intercepting a regular message according to the residual capacity of each message information to obtain regular message fragments, adding the regular message fragments to the tail of the corresponding message information, and sequentially sending the message information to the gateway of the Internet of things.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided in the embodiments of the present application and containing computer-executable instructions is not limited to the above-mentioned data transmission control method for the internet of things node, and may also perform related operations in the data transmission control method for the internet of things node provided in any embodiments of the present application.
The internet of things node data transmission control device, the equipment and the storage medium provided in the embodiments may execute the internet of things node data transmission control method provided in any embodiment of the present application, and reference may be made to the internet of things node data transmission control method provided in any embodiment of the present application without detailed technical details described in the embodiments.
The foregoing is considered as illustrative of the preferred embodiments of the invention and the technical principles employed. The present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the claims.

Claims (6)

1. A method for controlling data transmission of a node of an Internet of things is characterized by comprising the following steps:
judging whether the signal intensity information corresponding to the currently connected Internet of things gateway meets the set signal intensity requirement or not; if not, switching the Internet of things gateways according to the currently detected signal intensity information corresponding to each Internet of things gateway, and sending a gateway switching instruction pointing to the Internet of things gateway to be switched to the currently connected Internet of things gateway so that the Internet of things gateway sends downlink data to the Internet of things gateway to be switched, and the Internet of things gateway to be switched sends the downlink data;
determining the message length of a real-time message to be sent to an Internet of things gateway, determining the signal strength information of the currently connected Internet of things gateway, determining a corresponding signal key value according to a signal strength range corresponding to the signal strength information, determining a corresponding capacity value in a signal capacity linked list based on the signal key value, recording the corresponding relation between different signal key values and capacity value in the signal capacity linked list in a key value pair mode, and segmenting the real-time message according to the message capacity and the message length based on the capacity value to obtain a plurality of real-time message fragments;
respectively adding the real-time message fragments into message information, and calculating the residual capacity of the corresponding message information according to the fragment length of each real-time message fragment, wherein one real-time message fragment corresponds to one message information, the length of the real-time message fragment obtained by the preceding segmentation is matched with the message capacity of the message information when the real-time message is segmented, and only the message information corresponding to the last real-time message fragment of the real-time message is detected;
intercepting a periodic message according to the residual capacity of each message to obtain periodic message fragments, adding the periodic message fragments to the tail of the corresponding message information, and sequentially sending the message information to the gateway of the internet of things, wherein after the residual capacity of each message is determined, whether the residual capacity of each message meets the set capacity requirement of the minimum periodic message fragment is determined, if the residual capacity of each message does not meet the capacity requirement of the minimum periodic message fragment, the periodic message fragments which are adapted to the residual capacity of the message information are obtained without using the message information, if the residual capacity meets the capacity requirement of the minimum periodic message fragment, the periodic message fragments are intercepted from the periodic message according to the residual capacity of the message information, and the periodic message fragments are added to the tail of the message information; the internet of things gateway sequentially uploads the message information to the cloud server after receiving the message information, the cloud server analyzes the message information after receiving the message information to obtain each real-time message fragment and each periodic message fragment, and the real-time message fragments and the periodic message fragments are integrated respectively to obtain corresponding real-time messages and periodic messages.
2. The method for controlling data transmission of a node in an internet of things according to claim 1, wherein before determining the message length of the real-time message to be sent to the gateway in the internet of things, the method further comprises:
determining a current power supply mode, wherein the power supply mode comprises an external power supply mode and a battery power supply mode;
and determining a data reporting strategy based on the current power supply mode, wherein the data reporting strategy comprises an efficiency priority strategy and an energy-saving priority strategy which respectively correspond to the external power supply mode and the battery power supply mode.
3. The method for controlling data transmission of a node in an internet of things according to claim 1, wherein before calculating the remaining capacity of the corresponding message information according to the fragment length of each real-time message fragment, the method further comprises:
and determining whether a regular message which needs to be sent to the gateway of the Internet of things exists or not, and if not, directly and sequentially sending the message information to the gateway of the Internet of things.
4. The utility model provides a thing networking node data transmission controlling means which characterized in that, includes message segmentation module, capacity determination module and information sending module, wherein:
the message segmentation module is used for judging whether the signal intensity information corresponding to the currently connected Internet of things gateway meets the set signal intensity requirement or not; if not, switching the Internet of things gateways according to the currently detected signal intensity information corresponding to each Internet of things gateway, and sending a gateway switching instruction pointing to the Internet of things gateway to be switched to the currently connected Internet of things gateway so that the Internet of things gateway sends downlink data to the Internet of things gateway to be switched, and the Internet of things gateway to be switched sends the downlink data; determining the message length of a real-time message to be sent to an Internet of things gateway, determining the signal strength information of the currently connected Internet of things gateway, determining a corresponding signal key value according to a signal strength range corresponding to the signal strength information, determining a corresponding capacity value in a signal capacity linked list based on the signal key value, recording the corresponding relation between different signal key values and capacity value in the signal capacity linked list in a key value pair mode, and segmenting the real-time message according to the message capacity and the message length based on the capacity value to obtain a plurality of real-time message fragments;
the capacity determining module is used for adding the real-time message fragments into message information respectively, calculating the residual capacity of the corresponding message information according to the fragment length of each real-time message fragment, wherein one real-time message fragment corresponds to one message information, when the real-time message is segmented, the length of the real-time message fragment obtained by the front segmentation is matched with the message capacity of the message information, and only the message information corresponding to the last real-time message fragment of the real-time message is detected;
the information sending module is used for intercepting the regular messages according to the residual capacity of each message information to obtain regular message fragments, adding the regular message fragments to the tail of the corresponding message information, and sequentially sending the message information to the gateway of the Internet of things, wherein, after determining the residual capacity of each message, determining whether the residual capacity of each message meets the capacity requirement of the set minimum periodic message fragment, if not, then the message information is not used to carry regular message fragments, if the remaining capacity meets the capacity requirement of the minimum regular message fragment, intercepting the periodic message according to the residual capacity of the message information to obtain a periodic message fragment adapted to the residual capacity of the message information, and adding the periodic message fragment to the tail of the message information; the internet of things gateway sequentially uploads the message information to the cloud server after receiving the message information, the cloud server analyzes the message information after receiving the message information to obtain each real-time message fragment and each periodic message fragment, and the real-time message fragments and the periodic message fragments are integrated respectively to obtain corresponding real-time messages and periodic messages.
5. An internet of things node data transmission control apparatus, comprising: a memory and one or more processors;
the memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the method for controlling data transmission of an internet of things node according to any one of claims 1 to 3.
6. A storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the method for controlling data transmission of an internet of things node according to any one of claims 1 to 3.
CN202110044308.6A 2021-01-14 2021-01-14 Internet of things node data transmission control method and device Active CN112367409B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110044308.6A CN112367409B (en) 2021-01-14 2021-01-14 Internet of things node data transmission control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110044308.6A CN112367409B (en) 2021-01-14 2021-01-14 Internet of things node data transmission control method and device

Publications (2)

Publication Number Publication Date
CN112367409A CN112367409A (en) 2021-02-12
CN112367409B true CN112367409B (en) 2021-04-27

Family

ID=74534908

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110044308.6A Active CN112367409B (en) 2021-01-14 2021-01-14 Internet of things node data transmission control method and device

Country Status (1)

Country Link
CN (1) CN112367409B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114189406A (en) * 2021-12-16 2022-03-15 深圳市超视网络技术有限公司 Edge computing gateway based on Internet of things
CN116633870B (en) * 2023-05-25 2023-11-14 圣麦克思智能科技(江苏)有限公司 Operation and maintenance data processing system and method based on cloud end-added mode

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101404601A (en) * 2008-11-12 2009-04-08 中控科技集团有限公司 Ethernet communication method and apparatus
CN102238064A (en) * 2010-04-23 2011-11-09 华为技术有限公司 Data transmission method, device and system
CN108900433A (en) * 2018-05-25 2018-11-27 北京星网锐捷网络技术有限公司 A kind of method, terminal and server for transmitting lora message
CN109818960A (en) * 2019-01-29 2019-05-28 视联动力信息技术股份有限公司 Data processing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110519727B (en) * 2019-09-24 2022-09-02 北京智行者科技有限公司 CGW (Central gateway-based) and data processing method based on CGW

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101404601A (en) * 2008-11-12 2009-04-08 中控科技集团有限公司 Ethernet communication method and apparatus
CN102238064A (en) * 2010-04-23 2011-11-09 华为技术有限公司 Data transmission method, device and system
CN108900433A (en) * 2018-05-25 2018-11-27 北京星网锐捷网络技术有限公司 A kind of method, terminal and server for transmitting lora message
CN109818960A (en) * 2019-01-29 2019-05-28 视联动力信息技术股份有限公司 Data processing method and device

Also Published As

Publication number Publication date
CN112367409A (en) 2021-02-12

Similar Documents

Publication Publication Date Title
CN112367409B (en) Internet of things node data transmission control method and device
US8402455B2 (en) Methods and systems for distributing firmware through an over-the-air network
US10178614B2 (en) Power saving Wi-Fi tethering
CN1842027B (en) Power management method for WLAN
WO2020083258A1 (en) Data transmission method, vehicle-mounted communication device, and computer-readable storage medium
CN113438719B (en) Energy-saving method and device and readable storage medium
US10813032B2 (en) Systems and methods for neighboring node discovery in a network
US20170127341A1 (en) Delayed Response to Requesting Device
CN103635881A (en) Method and terminal for managing application
CN104991851A (en) Method and apparatus for monitoring electric quantity of terminal
WO2014166103A1 (en) Energy efficient data handling for mobile devices
CN110320813B (en) Power management method and device for Internet of things equipment
WO2019019285A1 (en) Resource control method and apparatus
CN103051793A (en) Method and device for controlling data transmission mode of mobile terminal
CN111246549B (en) Method and device for providing node dormancy and wakeup time
CN112866079B (en) Method, device and equipment for transmitting regular messages based on Internet of things and storage medium
Lages et al. A CPN-based model for assessing energy consumption of IoT networks
CN111385860A (en) Message priority based Bluetooth Mesh low-power consumption node on-demand awakening method
CN104954148A (en) Control method and device of node equipment and router
CN109379449B (en) Data connection method, device, terminal and storage medium
CN115529654A (en) Method, apparatus, storage medium, and relay device for standby communication
Jiao et al. Adaptive power management for mobile agent-based information retrieval
CN112398954B (en) Connection management method and device based on narrowband Internet of things
CN111163505A (en) Power consumption control method, system, device and medium for WiFi device
CN112654071B (en) Method, device, equipment and storage medium for transmitting downlink data based on Internet of things

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant