CN117478617B - Multifunctional internet of things related data rapid transmission method - Google Patents

Multifunctional internet of things related data rapid transmission method Download PDF

Info

Publication number
CN117478617B
CN117478617B CN202311457573.2A CN202311457573A CN117478617B CN 117478617 B CN117478617 B CN 117478617B CN 202311457573 A CN202311457573 A CN 202311457573A CN 117478617 B CN117478617 B CN 117478617B
Authority
CN
China
Prior art keywords
data packet
target data
compression mode
compression
total transmission
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
CN202311457573.2A
Other languages
Chinese (zh)
Other versions
CN117478617A (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.)
Shijiazhuang Changhong Intelligent Technology Co ltd
Original Assignee
Shijiazhuang Changhong Intelligent 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 Shijiazhuang Changhong Intelligent Technology Co ltd filed Critical Shijiazhuang Changhong Intelligent Technology Co ltd
Priority to CN202311457573.2A priority Critical patent/CN117478617B/en
Publication of CN117478617A publication Critical patent/CN117478617A/en
Application granted granted Critical
Publication of CN117478617B publication Critical patent/CN117478617B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • H04L47/625Queue scheduling characterised by scheduling criteria for service slots or service orders
    • H04L47/6275Queue scheduling characterised by scheduling criteria for service slots or service orders based on priority
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/04Protocols for data compression, e.g. ROHC
    • 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

Abstract

The disclosure provides a method for rapidly transmitting data of a multifunctional internet of things, which comprises the following steps: acquiring gateway data; sequencing each data packet in the gateway data according to a preset priority corresponding to each data packet in the gateway data to obtain a data packet transmission queue; if the target data packet is the head of the data packet transmission queue, determining a compression mode of the target data packet according to the size of the target data packet; wherein, the target data packet is any data packet in the gateway data; if the target data packet is not the queue head of the data packet transmission queue, determining a compression mode of the target data packet according to the transmission waiting time of the target data packet; and compressing and transmitting each data packet based on the determined compression mode of the target data packet and the queue sequence of the data packet transmission queue. The present disclosure can solve the problems of congestion and turbulence of data transmission existing in the related art.

Description

Multifunctional internet of things related data rapid transmission method
Technical Field
The disclosure belongs to the technical field of data transmission control, and more particularly relates to a multifunctional internet of things related data rapid transmission method.
Background
The gateway is used as a data exchange platform of the multifunctional Internet of things and a plurality of terminal devices, and the data transmission speed of the gateway influences the performance of the multifunctional Internet of things. In the related art, when the gateway transmits data of all terminal devices simultaneously, the data transmission congestion and disorder exist.
Disclosure of Invention
The purpose of the present disclosure is to provide a method for fast transmitting gateway data of a multifunctional internet of things, so as to solve the problems of congestion and disorder of data transmission in the related art, thereby improving the transmission speed of gateway data.
In a first aspect of the embodiments of the present disclosure, a method for quickly transmitting data related to a multifunctional internet of things is provided, including:
Acquiring gateway data; the gateway data are data to be transmitted of terminal equipment connected with the gateway;
Sequencing each data packet in the gateway data according to a preset priority corresponding to each data packet in the gateway data to obtain a data packet transmission queue;
If the target data packet is the head of the data packet transmission queue, determining a compression mode of the target data packet according to the size of the target data packet; wherein, the target data packet is any data packet in the gateway data;
If the target data packet is not the queue head of the data packet transmission queue, determining a compression mode of the target data packet according to the transmission waiting time of the target data packet; wherein the transmission waiting time is the sum of total transmission time of all data packets positioned in the front of the target data packet in the data packet transmission queue;
And compressing and transmitting each data packet based on the determined compression mode of the target data packet and the queue sequence of the data packet transmission queue.
In a second aspect of the embodiments of the present disclosure, a device for fast transmitting data of a multifunctional internet of things is provided, including:
the data acquisition module is used for acquiring gateway data; the gateway data are data to be transmitted of terminal equipment connected with the gateway;
the data processing module is used for sequencing each data packet in the gateway data according to the preset priority corresponding to each data packet in the gateway data to obtain a data packet transmission queue; if the target data packet is the head of the data packet transmission queue, determining a compression mode of the target data packet according to the size of the target data packet; wherein, the target data packet is any data packet in the gateway data; if the target data packet is not the queue head of the data packet transmission queue, determining a compression mode of the target data packet according to the transmission waiting time of the target data packet; wherein the transmission waiting time is the sum of total transmission time of all data packets positioned in the front of the target data packet in the data packet transmission queue;
and the data transmission module is used for compressing and transmitting each data packet based on the determined compression mode of the target data packet and the queue sequence of the data packet transmission queue.
In a third aspect of the embodiments of the present disclosure, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the steps of the above-mentioned method for fast data transmission of a multifunctional internet of things are implemented when the processor executes the computer program.
In a fourth aspect of the embodiments of the present disclosure, a computer readable storage medium is provided, where a computer program is stored, where the computer program is executed by a processor to implement the steps of the method for fast data transmission of a multifunctional internet of things.
The multifunctional internet of things related data rapid transmission method provided by the embodiment of the disclosure has the beneficial effects that:
according to the embodiment, the data transmission disorder problem in the related technology is solved by sequencing the data packets in the gateway data according to the preset priority corresponding to each data packet in the gateway data. Meanwhile, aiming at a target data packet positioned at the head of a data packet transmission queue, the embodiment adopts a compression mode determined according to the size of the target data packet, so that the time required for transmitting the target data packet is shortened; aiming at other target data packets of the data packet transmission queue, the compression mode of the target data packet is determined according to the transmission waiting time, and the requirement of compressing the rear data packet when the gateway transmits the front data packet of the data packet transmission queue is considered, so that the transmission time of the whole data packet transmission queue is shortened, the transmission speed of gateway data is further increased, and the problem of data transmission congestion in the related art is solved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings that are required for the embodiments or the description of the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and other drawings may be obtained according to these drawings without inventive effort for a person of ordinary skill in the art.
Fig. 1 is a flow chart of a method for fast transmitting data of a multifunctional internet of things according to an embodiment of the present disclosure;
fig. 2 is a block diagram of a device for fast transmitting data of a multifunctional internet of things according to an embodiment of the present disclosure;
Fig. 3 is a schematic block diagram of an electronic device provided in an embodiment of the present disclosure.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system configurations, techniques, etc. in order to provide a thorough understanding of the disclosed embodiments. However, it will be apparent to one skilled in the art that the present disclosure may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present disclosure with unnecessary detail.
For the purposes of promoting an understanding of the principles and advantages of the disclosure, reference will now be made to the embodiments illustrated in the drawings.
Referring to fig. 1, fig. 1 is a flow chart of a method for fast transmitting data of a multifunctional internet of things according to an embodiment of the disclosure, where the method includes:
s101: gateway data is obtained. The gateway data is data to be transmitted of terminal equipment connected with the gateway.
In this embodiment, the gateway refers to the present gateway; the terminal device may be a plurality of types of terminal devices such as a humidifier, a curtain controller, a water heater, etc.; and determining the type of the terminal equipment connected with the gateway according to the function of the multifunctional Internet of things.
S102: and sequencing each data packet in the gateway data according to the preset priority corresponding to each data packet in the gateway data to obtain a data packet transmission queue.
In this embodiment, the preset priority corresponding to each data packet is set according to the source and access frequency of each data packet, and the data packets are ordered from high priority to low priority, so as to determine the data transmission sequence, and solve the problem of data transmission disorder in the related art.
S103: and if the target data packet is the head of the data packet transmission queue, determining the compression mode of the target data packet according to the size of the target data packet. The target data packet is any data packet in gateway data. If the target data packet is not the head of the data packet transmission queue, determining the compression mode of the target data packet according to the transmission waiting time of the target data packet. The transmission waiting time is the sum of the total transmission time of all data packets in the front of the target data packet in the data packet transmission queue.
By analyzing the embodiment, when the target data packet is the head of the data packet transmission queue, the embodiment determines the compression mode of the target data packet according to the size of the target data packet, and can determine the compression mode corresponding to the shortest total transmission time of the target data packet, thereby accelerating the transmission speed of gateway data; when the target data packet is not the head of the data packet transmission queue, the requirement of the gateway for transmitting the data packet in front of the data packet transmission queue and simultaneously compressing the data packet behind the data packet is considered.
S104: and compressing and transmitting each data packet based on the determined compression mode of the target data packet and the queue sequence of the data packet transmission queue.
In this embodiment, the gateway compresses the next data packet while transmitting the previous data packet in the data packet transmission queue, so that the transmission of gateway data is accelerated.
As can be seen from the above, in this embodiment, the data transmission disorder problem existing in the related art is solved by ordering the data packets in the gateway data according to the preset priority corresponding to each data packet in the gateway data. Meanwhile, aiming at a target data packet positioned at the head of a data packet transmission queue, the embodiment adopts a compression mode determined according to the size of the target data packet, so that the time required for transmitting the target data packet is shortened; aiming at other target data packets of the data packet transmission queue, the compression mode of the target data packet is determined according to the transmission waiting time of the target data packet, the actual requirement that the gateway compresses the following data packet while transmitting the data packet in front of the data packet transmission queue is considered, the transmission time of the whole data packet transmission queue is shortened, the transmission speed of gateway data is further increased, and the problem of data transmission congestion in the related art is solved.
In one embodiment of the present disclosure, individual packets of a packet transmission queue are ordered from high to low according to corresponding preset priorities.
In this embodiment, each data packet is ordered from high to low according to the corresponding preset priority, so that a user can acquire required data in time when using the multifunctional internet of things, and the use experience of the user is ensured. For example, the preset priority of the alarm device data packet is set higher than the preset priority of the daily device data packet.
In one embodiment of the present disclosure, the compression scheme includes a plurality of compression schemes, and different compression schemes are selected according to the size of the target packet.
In one embodiment of the present disclosure, the compression method includes a first compression method and a second compression method, and determining the compression method of the target data packet according to the size of the target data packet includes:
calculating the total transmission time required by compressing the target data packet in a first compression mode to obtain first total transmission time; the total transmission time is the sum of the time required by compressing the target data packet and the time required by transmitting the compressed target data packet;
calculating the total transmission time required by compressing the target data packet in a second compression mode to obtain a second total transmission time;
comparing the first total transmission time with the second total transmission time, and determining the compression mode corresponding to the smaller total transmission time as the compression mode of the target data packet.
The compression modes comprise two compression modes corresponding to different compression rates, and different data packets can be selected, so that the transmission of gateway data is quickened. The compression ratio corresponding to the first compression mode is smaller than the compression ratio corresponding to the second compression mode. For example, the first compression method has a compression ratio of 50% and the second compression method has a compression ratio of 80%, and when the first compression method is used to compress a packet, the volume of the compressed packet is small, the transmission time is short, but the compression time is long, and when the second compression method is used to compress a packet, the compression time is short, but the volume of the compressed packet is large, and the transmission time is long. The implementation of the compression mode can be implemented according to a specific compression algorithm, and the compression algorithm includes various compression algorithms, such as a rar compression algorithm for compressing a data packet into a rar format, a zip compression algorithm for compressing a data packet into a zip format, a 7z compression algorithm for compressing a data packet into a 7z format, and the like.
In this embodiment, the compression mode of the target data packet is determined according to the size of the target data packet, and the compression mode that minimizes the total transmission time of the target data packet can be determined, so as to implement rapid transmission of gateway data of the multifunctional internet of things.
In one embodiment of the present disclosure, when the target data packet itself is small (the volume of the target data packet itself is smaller than the volume of the target data packet after compression, the target data packet itself is transmitted directly by adopting a second compression mode with a larger compression rate or without compression; when the target data packet is large (the volume of the target data packet after being compressed is larger than that of other target data), a first compression mode with smaller compression rate is adopted.
In this embodiment, the target data with small or large volume is directly selected to be compressed without calculation, so that the calculation time can be saved, and the transmission of gateway data is accelerated.
In one embodiment of the present disclosure, the total transmission time is the sum of the time required for compression of the target data packet and the time required for transmission of the compressed target data packet, wherein the time required for compression is inversely proportional to the time required for transmission.
In this embodiment, the target data packets with different compression rates may result in different compression time and transmission time, and the compression time is inversely proportional to the transmission time, so that the total transmission time and the compression rate are not proportional, and the total transmission time of different compression modes needs to be calculated when the target data selects the compression mode.
In one embodiment of the present disclosure, the compression modes include a first compression mode and a second compression mode; wherein the compression rate corresponding to the first compression mode is smaller than the compression rate of the second compression mode; determining a compression mode of the target data packet according to the transmission waiting time of the target data packet, including:
The compression modes include a first compression mode and a second compression mode. Wherein the compression ratio corresponding to the first compression mode is smaller than the compression ratio of the second compression mode.
And calculating the transmission waiting time of the target data and the time required by the target data packet for compression in the first compression mode.
And if the transmission waiting time is longer than the time required for compression, determining the first compression mode as the compression mode of the target data packet.
If the transmission waiting time is smaller than the time required by compression, calculating the total transmission time required by compressing the target data packet in a first compression mode to obtain first total transmission time; calculating the total transmission time required by compressing the target data packet in a second compression mode to obtain a second total transmission time; the total transmission time is the sum of the time required for compressing the target data packet and the time required for transmitting the compressed target data packet.
Comparing the first total transmission time with the second total transmission time, and determining the compression mode corresponding to the smaller total transmission time as the compression mode of the target data packet.
In this embodiment, since the compression rate adopted by the first compression mode is smaller than the compression rate adopted by the second compression mode, the compression time required by the first compression mode is longer than the compression time required by the second compression mode, and when the transmission waiting time of the target data packet is longer than the compression time required by the first compression mode, the target data packet can be compressed within the transmission waiting time, and meanwhile, since the compression rate adopted by the first compression mode is small, the compressed target data packet is smaller, so that the transmission time required by the transmission is shorter, and the transmission of gateway data is accelerated.
In one embodiment of the present disclosure, the preset priority corresponding to each data packet is set according to the source and access frequency of each data packet.
In this embodiment, the preset priority of each datagram is set according to the access frequency of each data packet, so that the user can acquire the required data in time when using the multifunctional internet of things. The preset priority of each data packet is set according to the source of each data packet, the method can be realized by counting the emergency degree of the demands of masses on the data packets from different types of terminal equipment through big data, and the experience of a user using the multifunctional Internet of things can be ensured. The preset priority of each data packet is set according to the access frequency of each data packet, the access frequency of each data packet can be counted by a user, individuation of the multifunctional Internet of things is improved, and experience of the user using the multifunctional Internet of things is improved.
In one embodiment of the present disclosure, the data transmission employs a wireless communication technology, including bluetooth wireless technology, wiFi wireless technology, zigbee technology.
In this embodiment, the data transmission between the gateway and the connected terminal device adopts a wireless communication technology, including but not limited to bluetooth wireless technology, wiFi wireless technology, zigbee technology. The terminal equipment can select different wireless communication technologies to carry out data transmission with the gateway according to the specific setting of the terminal equipment, so that the data transmission between various types of terminal equipment and the gateway is ensured. The Bluetooth wireless technology is one of the most popular wireless technologies at present, is a short-distance wireless communication technology, and has the advantages of low power consumption, convenience in use, good safety and good compatibility; the WiFi wireless technology is also one of the most popular wireless technologies, and has the advantages of higher transmission rate, support of simultaneous connection of a plurality of devices and good compatibility; the Zigbee technology is a short-distance wireless communication technology, and has the advantages of large capacity, high safety and low power consumption.
In one embodiment of the present disclosure, the wireless communication technology further includes long-range radio lora technology, 4 th generation mobile communication technology, narrowband internet of things NB-lot technology.
In this embodiment, the wireless communication technology further includes a long-distance radio lota technology, a 4 th generation mobile communication technology, and a narrowband internet of things NB-lot technology, which provides more ways for the terminal device and the gateway to perform data transmission. The long-distance radio lora technology has the advantages of long-distance transmission, low power consumption and good network expansibility; the 4 th generation mobile communication technology has the advantages of high data transmission speed and high network capacity; the narrow-band internet of things NB-lot technology has the advantages of wide coverage, low cost and high reliability.
Fig. 2 is a structural block diagram of a multi-functional internet of things data fast transmission device according to an embodiment of the present disclosure. For ease of illustration, only portions relevant to embodiments of the present disclosure are shown. Referring to fig. 2, the multi-functional internet of things related data rapid transmission device 20 includes:
A data acquisition module 201, configured to acquire gateway data. The gateway data is data to be transmitted of terminal equipment connected with the gateway.
The data processing module 202 is configured to sort each data packet in the gateway data according to a preset priority corresponding to each data packet in the gateway data, so as to obtain a data packet transmission queue. And if the target data packet is the head of the data packet transmission queue, determining the compression mode of the target data packet according to the size of the target data packet. The target data packet is any data packet in gateway data. If the target data packet is not the head of the data packet transmission queue, determining the compression mode of the target data packet according to the transmission waiting time of the target data packet. The transmission waiting time is the sum of the total transmission time of all data packets in the front of the target data packet in the data packet transmission queue.
And the data transmission module 203 is configured to compress and transmit each data packet based on the determined compression manner of the target data packet and the queue order of the data packet transmission queue.
In one embodiment of the present disclosure, individual packets of a packet transmission queue are ordered from high to low according to corresponding preset priorities.
In one embodiment of the present disclosure, the data processing module 202 is specifically configured to:
And calculating the total transmission time required by compressing the target data packet in a first compression mode to obtain the first total transmission time. The total transmission time is the sum of the time required for compressing the target data packet and the time required for transmitting the compressed target data packet.
And calculating the total transmission time required by compressing the target data packet in a second compression mode to obtain a second total transmission time.
Comparing the first total transmission time with the second total transmission time, and determining the compression mode corresponding to the smaller total transmission time as the compression mode of the target data packet.
In one embodiment of the present disclosure, the data processing module 202 is specifically further configured to:
and calculating the transmission waiting time of the target data and the time required by the target data packet for performing the first compression mode.
And if the transmission waiting time is longer than the time required for compression, determining the first compression mode as the compression mode of the target data packet.
If the transmission waiting time is smaller than the time required by compression, calculating the total transmission time required by compressing the target data packet in a first compression mode to obtain a first total transmission time. And calculating the total transmission time required by compressing the target data packet in a second compression mode to obtain a second total transmission time. The total transmission time is the sum of the time required for compressing the target data packet and the time required for transmitting the compressed target data packet.
Comparing the first total transmission time with the second total transmission time, and determining the compression mode corresponding to the smaller total transmission time as the compression mode of the target data packet.
In one embodiment of the present disclosure, the preset priority corresponding to each data packet is set according to the source and access frequency of each data packet.
In one embodiment of the present disclosure, the data transmission employs a wireless communication technology, including bluetooth wireless technology, wiFi wireless technology, zigbee technology.
In one embodiment of the present disclosure, the wireless communication technology further includes long-range radio lora technology, 4 th generation mobile communication technology, narrowband internet of things NB-lot technology.
Referring to fig. 3, fig. 3 is a schematic block diagram of an electronic device according to an embodiment of the disclosure. The terminal 300 in the present embodiment as shown in fig. 3 may include: one or more processors 301, one or more input devices 302, one or more output devices 303, and one or more memories 304. The processor 301, the input device 302, the output device 303, and the memory 304 communicate with each other via a communication bus 305. The memory 304 is used to store a computer program comprising program instructions. The processor 301 is configured to execute program instructions stored in the memory 304. Wherein the processor 301 is configured to invoke program instructions to perform the following functions of the modules/units in the above described device embodiments, such as the functions of the modules 201 to 203 shown in fig. 2.
It should be appreciated that in the disclosed embodiments, the processor 301 may be a central processing unit (Central Processing Unit, CPU), which may also be other general purpose processors, digital signal processors (DIGITAL SIGNAL processors, dsps), application SPECIFIC INTEGRATED circuits (asics), off-the-shelf programmable gate arrays (field-programmable GATE ARRAY, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input device 302 may include a touch pad, a fingerprint sensor (for collecting fingerprint information of a user and direction information of a fingerprint), a microphone, etc., and the output device 303 may include a display (LCD, etc.), a speaker, etc.
The memory 304 may include read only memory and random access memory and provides instructions and data to the processor 301. A portion of memory 304 may also include non-volatile random access memory. For example, the memory 304 may also store information of device type.
In a specific implementation, the processor 301, the input device 302, and the output device 303 described in the embodiments of the present disclosure may execute the implementation manners described in the first embodiment and the second embodiment of the method for fast transmitting data of the multifunctional internet of things provided in the embodiments of the present disclosure, and may also execute the implementation manner of the terminal described in the embodiments of the present disclosure, which is not described herein again.
In another embodiment of the disclosure, a computer readable storage medium is provided, where the computer readable storage medium stores a computer program, where the computer program includes program instructions, where the program instructions, when executed by a processor, implement all or part of the procedures in the method embodiments described above, or may be implemented by instructing related hardware by the computer program, where the computer program may be stored in a computer readable storage medium, where the computer program, when executed by the processor, implements the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, executable files or in some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the content of the computer readable medium can be appropriately increased or decreased according to the requirements of the jurisdiction's jurisdiction and the patent practice, for example, in some jurisdictions, the computer readable medium does not include electrical carrier signals and telecommunication signals according to the jurisdiction and the patent practice.
The computer readable storage medium may be an internal storage unit of the terminal of any of the foregoing embodiments, such as a hard disk or a memory of the terminal. The computer readable storage medium may also be an external storage device of the terminal, such as a plug-in hard disk provided on the terminal, a smart memory card (SMART MEDIA CARD, SMC), a Secure Digital (SD) card, a flash memory card (FLASH CARD), or the like. Further, the computer-readable storage medium may also include both an internal storage unit of the terminal and an external storage device. The computer-readable storage medium is used to store a computer program and other programs and data required for the terminal. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working procedures of the terminal and the unit described above may refer to the corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In several embodiments provided by the present application, it should be understood that the disclosed terminal and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of elements is merely a logical functional division, and there may be additional divisions of actual implementation, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted, or not performed. In addition, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via some interfaces or units, or may be an electrical, mechanical, or other form of connection.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purposes of the embodiments of the present disclosure.
In addition, each functional unit in each embodiment of the present disclosure may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The foregoing is merely a specific embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto, and any equivalent modifications or substitutions will be apparent to those skilled in the art within the scope of the present disclosure, and these modifications or substitutions should be covered in the scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (8)

1. A method for rapidly transmitting data of a multifunctional Internet of things is characterized by comprising the following steps:
Acquiring gateway data; the gateway data are data to be transmitted of terminal equipment connected with the gateway;
Sequencing each data packet in the gateway data according to a preset priority corresponding to each data packet in the gateway data to obtain a data packet transmission queue;
If the target data packet is the head of the data packet transmission queue, determining a compression mode of the target data packet according to the size of the target data packet; wherein, the target data packet is any data packet in the gateway data;
If the target data packet is not the queue head of the data packet transmission queue, determining a compression mode of the target data packet according to the transmission waiting time of the target data packet; wherein the transmission waiting time is the sum of total transmission time of all data packets positioned in the front of the target data packet in the data packet transmission queue;
Compressing and transmitting each data packet based on the determined compression mode of the target data packet and the queue sequence of the data packet transmission queue;
The compression modes comprise a first compression mode and a second compression mode;
the determining the compression mode of the target data packet according to the size of the target data packet includes:
Calculating the total transmission time required by compressing the target data packet in the first compression mode to obtain first total transmission time; the total transmission time is the sum of the time required by compressing the target data packet and the time required by transmitting the compressed target data packet;
calculating the total transmission time required by compressing the target data packet in the second compression mode to obtain a second total transmission time;
Comparing the first total transmission time with the second total transmission time, and determining a compression mode corresponding to the smaller total transmission time as the compression mode of the target data packet;
the compression rate corresponding to the first compression mode is smaller than the compression rate of the second compression mode;
the determining the compression mode of the target data packet according to the transmission waiting time of the target data packet comprises the following steps:
Calculating the transmission waiting time of the target data and the time required by the target data packet for compression in the first compression mode;
If the transmission waiting time is longer than the compression required time, determining the first compression mode as the compression mode of the target data packet;
If the transmission waiting time is smaller than the time required by the compression, calculating the total transmission time required by the target data packet for the compression in the first compression mode to obtain a first total transmission time; calculating the total transmission time required by compressing the target data packet in the second compression mode to obtain a second total transmission time; the total transmission time is the sum of the time required by compressing the target data packet and the time required by transmitting the compressed target data packet; comparing the first total transmission time with the second total transmission time, and determining the compression mode corresponding to the smaller total transmission time as the compression mode of the target data packet.
2. The method for rapidly transmitting data related to the multifunctional internet of things according to claim 1, wherein each data packet of the data packet transmission queue is ordered from high to low according to a corresponding preset priority.
3. The method for rapidly transmitting data related to a multifunctional internet of things according to claim 1, wherein the preset priority corresponding to each data packet is set according to the source and the access frequency of each data packet.
4. The method for quickly transmitting data related to the multifunctional internet of things according to claim 1, wherein the data transmission adopts a wireless communication technology, and the wireless communication technology comprises a Bluetooth wireless technology, a WiFi wireless technology and a Zigbee technology.
5. The method for rapidly transmitting data related to the multifunctional internet of things according to claim 4, wherein the wireless communication technology further comprises a long-distance radio lora technology, a 4 th generation mobile communication technology and a narrowband internet of things NB-lot technology.
6. The utility model provides a multi-functional thing networking data fast transmission device, its characterized in that includes:
the data acquisition module is used for acquiring gateway data; the gateway data are data to be transmitted of terminal equipment connected with the gateway;
the data processing module is used for sequencing each data packet in the gateway data according to the preset priority corresponding to each data packet in the gateway data to obtain a data packet transmission queue; if the target data packet is the head of the data packet transmission queue, determining a compression mode of the target data packet according to the size of the target data packet; wherein, the target data packet is any data packet in the gateway data; if the target data packet is not the queue head of the data packet transmission queue, determining a compression mode of the target data packet according to the transmission waiting time of the target data packet; wherein the transmission waiting time is the sum of total transmission time of all data packets positioned in the front of the target data packet in the data packet transmission queue;
The data transmission module is used for compressing and transmitting each data packet based on the determined compression mode of the target data packet and the queue sequence of the data packet transmission queue;
The compression modes comprise a first compression mode and a second compression mode;
the determining the compression mode of the target data packet according to the size of the target data packet includes:
Calculating the total transmission time required by compressing the target data packet in the first compression mode to obtain first total transmission time; the total transmission time is the sum of the time required by compressing the target data packet and the time required by transmitting the compressed target data packet;
calculating the total transmission time required by compressing the target data packet in the second compression mode to obtain a second total transmission time;
Comparing the first total transmission time with the second total transmission time, and determining a compression mode corresponding to the smaller total transmission time as the compression mode of the target data packet;
the compression rate corresponding to the first compression mode is smaller than the compression rate of the second compression mode;
the determining the compression mode of the target data packet according to the transmission waiting time of the target data packet comprises the following steps:
Calculating the transmission waiting time of the target data and the time required by the target data packet for compression in the first compression mode;
If the transmission waiting time is longer than the compression required time, determining the first compression mode as the compression mode of the target data packet;
If the transmission waiting time is smaller than the time required by the compression, calculating the total transmission time required by the target data packet for the compression in the first compression mode to obtain a first total transmission time; calculating the total transmission time required by compressing the target data packet in the second compression mode to obtain a second total transmission time; the total transmission time is the sum of the time required by compressing the target data packet and the time required by transmitting the compressed target data packet; comparing the first total transmission time with the second total transmission time, and determining the compression mode corresponding to the smaller total transmission time as the compression mode of the target data packet.
7. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any one of claims 1 to 5 when the computer program is executed.
8. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method according to any one of claims 1 to 5.
CN202311457573.2A 2023-11-03 2023-11-03 Multifunctional internet of things related data rapid transmission method Active CN117478617B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311457573.2A CN117478617B (en) 2023-11-03 2023-11-03 Multifunctional internet of things related data rapid transmission method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311457573.2A CN117478617B (en) 2023-11-03 2023-11-03 Multifunctional internet of things related data rapid transmission method

Publications (2)

Publication Number Publication Date
CN117478617A CN117478617A (en) 2024-01-30
CN117478617B true CN117478617B (en) 2024-04-19

Family

ID=89627060

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311457573.2A Active CN117478617B (en) 2023-11-03 2023-11-03 Multifunctional internet of things related data rapid transmission method

Country Status (1)

Country Link
CN (1) CN117478617B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB202006450D0 (en) * 2020-05-01 2020-06-17 Memoscale As Data compression and transmission technique
WO2022063058A1 (en) * 2020-09-28 2022-03-31 中兴通讯股份有限公司 Netconf protocol-based transmission method, device and storage medium
CN115357410A (en) * 2022-08-24 2022-11-18 北京科云时代信息技术有限公司 Data cross-process compression storage method and system based on big data
CN116185657A (en) * 2022-12-30 2023-05-30 度小满科技(北京)有限公司 Data transmission method, device, equipment and medium based on database storage system
CN116594948A (en) * 2023-05-12 2023-08-15 深圳市安保医疗科技股份有限公司 USB data transmission method, device, computer equipment and storage medium
CN116915363A (en) * 2023-07-25 2023-10-20 东方空间技术(山东)有限公司 Data transmission method, device and equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB202006450D0 (en) * 2020-05-01 2020-06-17 Memoscale As Data compression and transmission technique
WO2022063058A1 (en) * 2020-09-28 2022-03-31 中兴通讯股份有限公司 Netconf protocol-based transmission method, device and storage medium
CN115357410A (en) * 2022-08-24 2022-11-18 北京科云时代信息技术有限公司 Data cross-process compression storage method and system based on big data
CN116185657A (en) * 2022-12-30 2023-05-30 度小满科技(北京)有限公司 Data transmission method, device, equipment and medium based on database storage system
CN116594948A (en) * 2023-05-12 2023-08-15 深圳市安保医疗科技股份有限公司 USB data transmission method, device, computer equipment and storage medium
CN116915363A (en) * 2023-07-25 2023-10-20 东方空间技术(山东)有限公司 Data transmission method, device and equipment

Also Published As

Publication number Publication date
CN117478617A (en) 2024-01-30

Similar Documents

Publication Publication Date Title
CN111163018B (en) Network equipment and method for reducing transmission delay thereof
CN113157625B (en) Data transmission method, device, terminal equipment and computer readable storage medium
CN110972150B (en) Network capacity expansion method and device, electronic equipment and computer storage medium
CN108040358A (en) A kind of connection method of wireless network, terminal device and storage medium
EP3687204A1 (en) Buffer status reporting method, terminal, and computer storage medium
CN107517306B (en) Resource allocation method and related product
CN113630889A (en) Method for dynamically changing minimum candidate resource ratio in mode 2 resource selection
CN114143270B (en) Bandwidth adjustment method and device
CN107948097A (en) A kind of bandwidth adjusting method and equipment
CN111769985A (en) Data traffic prediction method and device
CN105299832A (en) Control method for air conditioner and terminal
CN117478617B (en) Multifunctional internet of things related data rapid transmission method
CN113760473A (en) Priority processing method, processor, processing chip, circuit board and electronic equipment
CN114633655A (en) Charging method of shared vehicle, battery management server and system
CN111512673B (en) Network node awakening method and equipment
CN116208674B (en) Method for uploading sampled data and electronic equipment
WO2021082471A1 (en) Communication method and apparatus
CN107239407B (en) Wireless access method and device for memory
CN114125936B (en) Resource scheduling method, device and storage medium
CN112492635B (en) Determination method and device for scheduling priority
CN112633877A (en) Hardware wallet digital currency selection method and hardware wallet
EP2375679A1 (en) Wireless communication system, information and communication terminal, portable telephone, reader/writer, communication method and computer program
CN110278015A (en) A kind of antenna selecting method, device and terminal
CN112449306A (en) Method for adjusting packet length, mobile device and computer readable storage medium
EP4283921A1 (en) Method for transmitting service information, and electronic device

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