CN117880387A - Method, device, equipment and storage medium for transmitting data of Internet of things - Google Patents

Method, device, equipment and storage medium for transmitting data of Internet of things Download PDF

Info

Publication number
CN117880387A
CN117880387A CN202311814669.XA CN202311814669A CN117880387A CN 117880387 A CN117880387 A CN 117880387A CN 202311814669 A CN202311814669 A CN 202311814669A CN 117880387 A CN117880387 A CN 117880387A
Authority
CN
China
Prior art keywords
data
things
internet
transmitted
type
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.)
Pending
Application number
CN202311814669.XA
Other languages
Chinese (zh)
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.)
Wuhan Dream Database Co ltd
Original Assignee
Wuhan Dream Database 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 Wuhan Dream Database Co ltd filed Critical Wuhan Dream Database Co ltd
Priority to CN202311814669.XA priority Critical patent/CN117880387A/en
Publication of CN117880387A publication Critical patent/CN117880387A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0009Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the channel coding
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer Security & Cryptography (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

The invention relates to a transmission method, a device, equipment and a storage medium of internet of things data, wherein the method comprises the following steps: classifying the data of the internet of things to be transmitted according to the data type of the data of the internet of things to be transmitted, which is acquired by the measuring points; coding the data of the internet of things to be transmitted with different data types by adopting different coding modes to obtain coded data; transmitting the coded data to a message queue of a server through a wireless network; and performing inverse operation decoding processing on the coded data received by the server according to the coding mode to obtain the data of the Internet of things to be transmitted. According to the method, the acquired data of the internet of things to be transmitted are divided into different data types, different coding modes are adopted for coding according to the different types of the data of the internet of things to be transmitted, the data can be decoded and restored through inverse operation after the coded data is received, incomplete data and low delay caused by data loss or data compression are avoided, and the safety of the data is ensured through coding.

Description

Method, device, equipment and storage medium for transmitting data of Internet of things
Technical Field
The present invention relates to the field of data transmission technologies, and in particular, to a method, an apparatus, a device, and a storage medium for transmitting internet of things data.
Background
Along with the rapid development of the internet of things technology, the application of the internet of things technology is more and more, and the internet of things technology is different from the environment that the traditional informatization system is operated in a machine room, an intranet and the like relatively stably and reliably, and the equipment connected to the internet of things is operated in a mobile network relatively worse than the intranet in terms of reliability, bandwidth, hardware computing capacity and the like. But the data of the internet of things formed by the terminal equipment of the internet of things is massive, so that an efficient and reliable transmission mechanism is needed to ensure the uploading of the massive data of the internet of things.
In the prior art, two main ways of ensuring stable data transmission in a poor network environment are: reducing the data acquisition frequency or reducing the measuring points required to be acquired; a data compression mechanism is employed. The first mode reduces the data acquisition frequency and reduces the data quantity acquired by the measuring points needing to be acquired, so that the data quantity is reduced to ensure the stability of data transmission; the second mode compresses a certain amount of data and then uniformly transmits the compressed data, so that the integrity of the data can be ensured.
However, the first approach in the prior art sacrifices data integrity by discarding data to accommodate the network environment; in order to ensure the compression effect, the second mode cannot compress each piece of data in real time, only the data can be compressed in batches, the compression frequency is reduced, and therefore the timeliness of the data is greatly reduced. And the data cannot be effectively encrypted when the hardware computing capability is poor, and the security of the data in the transmission process cannot be ensured.
Disclosure of Invention
In view of the foregoing, it is necessary to provide a method, a device and a storage medium for transmitting data of the internet of things, so as to solve the problem that in the prior art, when transmitting data in an environment with a poor network, it is difficult to ensure the integrity, timeliness and security of the data at the same time.
In order to achieve the technical purpose, the invention adopts the following technical scheme:
in a first aspect, the present invention provides a method for transmitting data of the internet of things, including:
classifying the data of the internet of things to be transmitted according to the data type of the data of the internet of things to be transmitted, which is acquired by the measuring points;
the method comprises the steps of adopting different coding modes to code data of the internet of things to be transmitted with different data types to obtain coded data;
transmitting the coded data to a message queue of a server through a wireless network;
and performing inverse operation decoding processing on the coded data received by the server according to the coding mode to obtain the data of the Internet of things to be transmitted.
In some possible implementations, the data type includes a time type; the method for coding the data of the internet of things to be transmitted with different data types by adopting different coding modes to obtain coded data comprises the following steps:
converting the time type data of the Internet of things to be transmitted in each measuring point into a preset format number;
traversing the preset format number in the current measuring point to inquire and record the maximum preset format number;
and encoding other preset format numbers according to the maximum preset format number to obtain time encoding data.
In some possible implementations, the data types further include a number type; the method for coding the data of the internet of things to be transmitted with different data types by adopting different coding modes to obtain coded data comprises the following steps:
traversing the data of the internet of things to be transmitted of the digital type in each measuring point to determine the maximum number and the minimum number in the current time window;
dividing the data of the Internet of things to be transmitted, which are of a digital type in the current time window, into first digital type data and second digital type data according to the difference between the maximum digital and the minimum digital;
encoding the first digital type data by utilizing a univariate linear regression algorithm to obtain first digital encoded data;
and encoding the second digital type data by using a principal component analysis algorithm to obtain second digital encoded data.
In some possible implementations, encoding the first digital type data using a univariate linear regression algorithm results in first digitally encoded data, including:
taking the serial number of the first digital type data as input, and taking the first digital type data as output to establish a linear function;
the first digital type data is encoded using a linear function to obtain first digitally encoded data.
In some possible implementations, encoding the second digital type data using a principal component analysis algorithm results in second digitally encoded data, including:
determining key measuring points in the second digital type data by using a principal component analysis algorithm;
determining a machine learning model of all measuring points through the key measuring points;
and encoding the second digital type data according to the machine learning model to obtain second digital encoded data.
In some possible implementations, the data types further include a string type; the method for coding the data of the internet of things to be transmitted with different data types by adopting different coding modes to obtain coded data comprises the following steps:
traversing all character string types in the measuring points to be transmitted of the internet of things data;
establishing a conversion dictionary table according to the to-be-transmitted internet of things data of the character string type by a preset system;
and carrying out coding processing on the data of the internet of things to be transmitted according to the conversion dictionary table to obtain character string coding data.
In some possible implementations, classifying the data of the internet of things to be transmitted according to the data type of the data of the internet of things to be transmitted acquired by the measuring points includes:
caching the data of the internet of things to be transmitted, which are acquired in the same time window;
and classifying the data of the Internet of things to be transmitted when the cached data quantity exceeds a preset data quantity threshold value.
In a second aspect, the present invention further provides a device for transmitting data of the internet of things, including:
the classification module is used for classifying the data of the internet of things to be transmitted according to the data type of the data of the internet of things to be transmitted, which is acquired by the measuring points;
the coding module is used for coding the to-be-transmitted internet of things data of different data types by adopting different coding modes to obtain coded data;
the transmission module is used for transmitting the coded data to a message queue of the server through a wireless network;
and the decoding module is used for carrying out inverse operation decoding processing on the coded data received by the server according to the coding mode to obtain the data of the Internet of things to be transmitted.
In a third aspect, the present invention further provides a transmission device for data of the internet of things, including a memory and a processor, where,
a memory for storing a program;
and the processor is coupled with the memory and is used for executing the program stored in the memory so as to realize the steps in the method for transmitting the data of the Internet of things in any implementation mode.
In a fourth aspect, the present invention further provides a computer readable storage medium, configured to store a computer readable program or instructions, where the program or instructions, when executed by a processor, implement the steps in the method for transmitting internet of things data in any of the foregoing implementations.
The beneficial effects of adopting the embodiment are as follows: the invention relates to a transmission method, a device, equipment and a storage medium of internet of things data, wherein the method comprises the following steps: classifying the data of the internet of things to be transmitted according to the data type of the data of the internet of things to be transmitted, which is acquired by the measuring points; coding the data of the internet of things to be transmitted with different data types by adopting different coding modes to obtain coded data; transmitting the coded data to a message queue of a server through a wireless network; and performing inverse operation decoding processing on the coded data received by the server according to the coding mode to obtain the data of the Internet of things to be transmitted. According to the method, the acquired data of the internet of things to be transmitted are divided into different data types, and the data are transmitted after being encoded according to different encoding modes of the data of the internet of things to be transmitted, so that the complexity of data encoding is increased, the risk of decoding the data in the transmission process is reduced, the safety of the data is improved, the data can be restored through inverse operation decoding after the encoded data is received, the acquired data amount and the data compression are not required to be reduced, and the problems of incomplete data and low delay caused by the loss of the data or the compression of the data are avoided.
Drawings
Fig. 1 is a flow chart of an embodiment of a method for transmitting internet of things data according to the present invention;
fig. 2 is a schematic flow chart of an embodiment of encoding time type data of internet of things to be transmitted according to the present invention;
FIG. 3 is a flow chart of an embodiment of encoding digital type data of the Internet of things to be transmitted according to the present invention;
FIG. 4 is a flowchart illustrating an embodiment of the step S303 in FIG. 3 according to the present invention;
FIG. 5 is a flowchart illustrating an embodiment of step S304 in FIG. 3 according to the present invention;
fig. 6 is a schematic flow chart of an embodiment of encoding data of the internet of things to be transmitted of a character string type according to the present invention;
fig. 7 is a schematic structural diagram of an embodiment of a transmission device for internet of things data according to the present invention;
fig. 8 is a schematic structural diagram of an internet of things data transmission device according to an embodiment of the present invention.
Detailed Description
Preferred embodiments of the present invention will now be described in detail with reference to the accompanying drawings, which form a part hereof, and together with the description serve to explain the principles of the invention, and are not intended to limit the scope of the invention.
In the description of the present application, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the invention. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
The invention provides a transmission method, a device, equipment and a storage medium of internet of things data, which are respectively described below.
Referring to fig. 1, fig. 1 is a flow chart of an embodiment of a method for transmitting internet of things data according to the present invention, and a specific embodiment of the present invention discloses a method for transmitting internet of things data, which includes:
s101, classifying the data of the Internet of things to be transmitted according to the data type of the data of the Internet of things to be transmitted, which is acquired by the measuring points;
s102, coding the data of the internet of things to be transmitted with different data types by adopting different coding modes to obtain coded data;
s103, transmitting the coded data to a message queue of a server through a wireless network;
s104, performing inverse operation decoding processing on the coded data received by the server according to the coding mode to obtain the data of the Internet of things to be transmitted.
In the above embodiment, the data generated by the internet of things device is collected and sent to the internet of things gateway, and then sent to the specific encoding module through the internet of things gateway to complete encryption encoding of the data, the data is not lost in the process, and the encoding is performed in real time, so that the encoding of the data has low latency, the encoded data is then transmitted to the message queue of the server through the wireless network, the encoded data in the message queue is decoded through the specific decoding module, and the decoded data is stored to the specific position.
In the embodiment of the invention, the data types of the data of the internet of things to be transmitted mainly comprise three types of time types, digital types and character strings, so that the coding modes of the data of different types are different, and the data are required to be processed in different modes, thereby improving the security of the encrypted data.
After the encoding is completed, the decoding of the data needs to be performed in an inverse mode according to the encoding mode, the encrypted data is restored to obtain the data of the internet of things to be transmitted, and the restored data of the internet of things to be transmitted needs to be stored in a specific position.
Compared with the prior art, the method for transmitting the data of the internet of things, provided by the embodiment, comprises the following steps: classifying the data of the internet of things to be transmitted according to the data type of the data of the internet of things to be transmitted, which is acquired by the measuring points; coding the data of the internet of things to be transmitted with different data types by adopting different coding modes to obtain coded data; transmitting the coded data to a message queue of a server through a wireless network; and performing inverse operation decoding processing on the coded data received by the server according to the coding mode to obtain the data of the Internet of things to be transmitted. According to the method, the acquired data of the internet of things to be transmitted are divided into different data types, and the data are transmitted after being encoded according to different encoding modes of the data of the internet of things to be transmitted, so that the complexity of data encoding is increased, the risk of decoding the data in the transmission process is reduced, the safety of the data is improved, the data can be restored through inverse operation decoding after the encoded data is received, the acquired data amount and the data compression are not required to be reduced, and the problems of incomplete data and low delay caused by the loss of the data or the compression of the data are avoided.
Referring to fig. 2, fig. 2 is a flow chart of an embodiment of encoding time type data of internet of things to be transmitted according to the present invention, and in some embodiments of the present invention, the data type includes a time type; the method for coding the data of the internet of things to be transmitted with different data types by adopting different coding modes to obtain coded data comprises the following steps:
s201, converting the time type data of the Internet of things to be transmitted in each measuring point into a preset format number;
s202, traversing preset format numbers in the current measuring point to inquire and record the largest preset format numbers;
s203, encoding other preset format numbers according to the maximum preset format number to obtain time encoding data.
In the above embodiment, for the time type data, the change in a time period is generally not large, and the time address is generally increased gradually, and as a preferred embodiment, the present invention adopts Delta coding to code the time type data of the internet of things to be transmitted, and only needs to determine the maximum time data in the time type data of the internet of things to be transmitted of the measuring point.
The preset format number in the invention is a timestamp type number, and the time data in the data of the internet of things to be transmitted is converted into the number to be represented.
And encoding other data through the difference value between the maximum timestamp type number and the other data to obtain time-encoded data, and recovering all the time-type data according to the recorded maximum timestamp type number and the corresponding difference value.
In a specific embodiment of the present invention, the maximum timestamp type number of the data of the internet of things to be transmitted of the time type in the current measurement point is 1696997594023 (2023-10-11-12:13:14.023), then the newly generated data is more time data after the time, for example 2023-10-11-12:13:15.045, compared with the maximum timestamp type number, the time is only 1 second, the time is converted into the timestamp type number and is 1696997595045 and is denoted as t1, if no encoding is performed, 8 bytes are required for one long integer, if incremental encoding is used, the result of t1-t0 is 1022, only one short shaping of 2 bytes is enough, decoding can restore the original data only by adding t0, and the computational cost of encoding and decoding is very small.
Referring to fig. 3, fig. 3 is a schematic flow chart of an embodiment of encoding digital type data of internet of things to be transmitted according to the present invention, and in some embodiments of the present invention, the data type further includes a digital type; the method for coding the data of the internet of things to be transmitted with different data types by adopting different coding modes to obtain coded data comprises the following steps:
s301, traversing the data of the Internet of things to be transmitted of the digital type in each measuring point to determine the maximum digital value and the minimum digital value in the current time window;
s302, dividing the data of the Internet of things to be transmitted, which are of a digital type in a current time window, into first digital type data and second digital type data according to the difference between the maximum digital and the minimum digital;
s303, encoding the first digital type data by utilizing a univariate linear regression algorithm to obtain first digital encoded data;
s304, the second digital type data is encoded by utilizing a principal component analysis algorithm to obtain second digital encoded data.
In the above embodiment, most of the data collected by the internet of things are digital, and are also the main data types for determining the data coding performance. The collected digital type data may have larger or smaller change, and the digital type data is conveniently encoded by setting a digital data change threshold value to judge.
In the invention, the maximum number max and the minimum number min of the digital type data are searched in a time window, and as a preferred embodiment, the digital data change threshold value is 65535, when the max-min is less than 65535, that is, the data change range is not more than two bytes, the data change of the measuring point can be considered as not large, the data is the first digital type data, and otherwise, the data change of the measuring point is the second digital type data.
The way in which the first digital type data and the second digital type data are encoded is different, and the invention needs to encode them separately to obtain two kinds of digitally encoded data.
Referring to fig. 4, fig. 4 is a flowchart of an embodiment of step S303 in fig. 3, where in some embodiments of the present invention, encoding the first digital type data by using a univariate linear regression algorithm to obtain first digital encoded data includes:
s401, taking serial numbers of first digital type data as input, and taking the first digital type data as output to establish a linear function;
s402, encoding the first digital type data by using a linear function to obtain first digital encoded data.
In the above embodiment, the first digital type data with small variation of the sample time window is screened, and many data with time variation can be changed slowly or even without variation under the condition of small time span, and Delta coding can still be used for the data.
Taking a serial number of the first digital type data as an input x 0 ~x n Taking the first digital type data as output y 0 ~y n Fitting a linear function y=ax+b by using (x, y) as a training set and a univariate linear regression algorithm, wherein a, b are coefficients, the linear function reflects the data change trend of the measuring point in a short time, the first digital type data is encoded by the linear function to obtain first digital encoded data, and the last serial number x of the sample can be used n The value calculated as a parameter input to this linear function is taken as the initial value of the next Delta code.
Referring to fig. 5, fig. 5 is a flowchart of an embodiment of step S304 in fig. 3, where in some embodiments of the present invention, encoding the second digital type data by using the principal component analysis algorithm to obtain second digital encoded data includes:
s501, determining key measuring points in second digital type data by using a principal component analysis algorithm;
s502, determining machine learning models of all measuring points through key measuring points;
s503, encoding the second digital type data according to the machine learning model to obtain second digital encoded data.
In the above embodiment, when the data change is relatively large, the conventional Delta coding is not suitable, and it is very difficult to compress each piece of data in real time without using a batch compression algorithm, the method of reducing the data of the transmission measurement point by using a machine learning algorithm to realize data compression only retains the key measurement point, and the method of implementing decoding reduction by using a prediction model without the key measurement point, so that the amount of the transmitted data can be greatly reduced.
That is, at the same time point, the temperature sensors at different positions may not change much when the distance is not large, so that only the temperature data of one position needs to be found, other temperatures can be predicted by a prediction model, or, the data of different measuring points have association relationship, such as the speed and the fuel consumption of the vehicle, the two are associated, the fuel consumption can be calculated by the speed, and only the speed measuring point needs to be sent. The process is divided into two steps, namely, firstly finding out which are key measuring points, and then finding out the prediction models of other non-key measuring points.
Firstly, a key measuring point is found through a machine learning principal component analysis algorithm, and the number of samples is assumed to be m. The data of each dimension in the sample is first centralized, the average value is subtracted from each sample so that the average value of each dimension of the sample is 0, and then the input sample X is calculated i And (3) carrying out singular value decomposition on the covariance matrix C of m, obtaining the eigenvalue and eigenvector of C, and selecting eigenvectors corresponding to the first L largest eigenvalues as mapped base vectors, wherein L is more than 0 and less than or equal to min (m, n). L is the number of measurement points to be reserved, for example, 10 measurement points, the compression rate is expected to be 50%, then 5 measurement points need to be reserved, and L is 5. The first L eigenvalues then form the key points needed.
And establishing a machine learning model for restoring all the measuring points through the key measuring points. Because of limited terminal performance, sample data are not large, and data with various characteristics need to be adapted, an efficient and widely applicable algorithm needs to be selected, and as a preferred embodiment, a random forest algorithm is used in the invention.
Referring to fig. 6, fig. 6 is a schematic flow chart of an embodiment of encoding data of an internet of things to be transmitted with a character string type according to the present invention, and in some embodiments of the present invention, the data type further includes the character string type; the method for coding the data of the internet of things to be transmitted with different data types by adopting different coding modes to obtain coded data comprises the following steps:
s601, traversing all character string types in the measuring points to be transmitted of the Internet of things data;
s602, establishing a conversion dictionary table according to the to-be-transmitted internet of things data of the character string type in a preset system;
and S603, carrying out coding processing on the data of the internet of things to be transmitted according to the conversion dictionary table to obtain character string coding data.
In the above embodiment, for the data of the character string type, the internet of things data is of the tag type, and dictionary coding may be used. The method and the device have the advantages that specific codes are set for the character strings to represent, original character strings are not used directly, all character string types of the to-be-transmitted internet of things data in the measuring points are traversed to determine which character string data appear, and in the method and the device, a conversion dictionary table is built for the character string types of the to-be-transmitted internet of things data by adopting binary system, so that the to-be-transmitted internet of things data is coded, and the character string coded data are obtained.
In one embodiment of the invention, the following strings are compressed red, yellow, black, green, white, and words are lexicographically encoded with binary digits in the order in which they appear: blank 0; red 1; yellow 10; black 11; green 100; white 101; such a word occupies at most 3 bits and the most frequently occurring word red occupies only 1 bit.
In some embodiments of the present invention, classifying data of the internet of things to be transmitted according to a data type of the data of the internet of things to be transmitted acquired by a measurement point includes:
caching the data of the internet of things to be transmitted, which are acquired in the same time window;
and classifying the data of the Internet of things to be transmitted when the cached data quantity exceeds a preset data quantity threshold value.
In the above embodiment, when the data amount exceeds the preset data amount threshold, the data in one time window is buffered, and considering that the performance of the terminal device is limited, as a preferred embodiment, a model of sample data with the preset data amount threshold set to about ten thousand is usually used to achieve a better effect.
All the data of the internet of things to be transmitted are required to be classified, and the data are mainly classified into time type data, digital type data and character string type data.
It should be noted that, in the decoding process, only the inverse operation of the encoding process is needed to be performed.
In order to better implement the method for transmitting data of the internet of things in the embodiment of the present invention, referring to fig. 7 correspondingly on the basis of the method for transmitting data of the internet of things, fig. 7 is a schematic structural diagram of an embodiment of a device for transmitting data of the internet of things provided by the present invention, and the embodiment of the present invention provides a device 700 for transmitting data of the internet of things, including:
the classification module 710 is configured to classify the data of the internet of things to be transmitted according to the data type of the data of the internet of things to be transmitted, which is acquired by the measurement points;
the encoding module 720 is configured to encode the data of the internet of things to be transmitted with different data types by using different encoding modes to obtain encoded data;
a transmission module 730, configured to transmit the encoded data to a message queue of the server through a wireless network;
the decoding module 740 is configured to perform inverse operation decoding processing on the encoded data received by the server according to the encoding manner to obtain data of the internet of things to be transmitted.
What needs to be explained here is: the device 700 provided in the foregoing embodiments may implement the technical solutions described in the foregoing method embodiments, and the specific implementation principles of the foregoing modules or units may be referred to the corresponding content in the foregoing method embodiments, which is not repeated herein.
Referring to fig. 8, fig. 8 is a schematic structural diagram of an internet of things data transmission device according to an embodiment of the present invention. Based on the above method for transmitting the data of the internet of things, the invention also correspondingly provides a device for transmitting the data of the internet of things, wherein the device for transmitting the data of the internet of things can be a mobile terminal, a desktop computer, a notebook computer, a palm computer, a server and other computing devices. The transmission device 800 for data of the internet of things includes a processor 810, a memory 820, and a display 830. Fig. 8 shows only some of the components of the transmission device of the internet of things data, but it should be understood that not all of the illustrated components need be implemented, and more or fewer components may alternatively be implemented.
The memory 820 may be an internal storage unit of the transmission device 800 of the data of the internet of things, for example, a hard disk or a memory of the transmission device 800 of the data of the internet of things in some embodiments. The memory 820 may also be an external storage device of the internet of things data transmission device 800 in other embodiments, for example, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card) or the like, which are provided on the internet of things data transmission device 800. Further, the memory 820 may also include both internal storage units and external storage devices of the transmission device 800 of the data of the internet of things. The memory 820 is used for storing application software installed on the transmission device 800 of the internet of things data and various data, such as program codes of the transmission device 800 of the internet of things data. Memory 820 may also be used to temporarily store data that has been output or is to be output. In an embodiment, the memory 820 stores a transmission program 840 of internet of things data, where the transmission program 840 of internet of things data may be executed by the processor 810, so as to implement the transmission method of internet of things data in the embodiments of the present application.
The processor 810 may be, in some embodiments, a central processing unit (Central Processing Unit, CPU), microprocessor or other data processing chip for executing program code or processing data stored in the memory 820, for example, performing a transmission method of internet of things data, etc.
The display 830 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch, or the like in some embodiments. The display 830 is used for displaying information at the transmission device 800 of the internet of things data and for displaying a visual user interface. The components 810-830 of the transmission device 800 of the data of the internet of things communicate with each other via a system bus.
In an embodiment, the steps in the method for transmitting internet of things data as described above are implemented when the processor 810 executes the program 840 for transmitting internet of things data in the memory 820.
The present embodiment also provides a computer-readable storage medium having stored thereon a transmission program of internet of things data, which when executed by a processor, implements the steps of:
classifying the data of the internet of things to be transmitted according to the data type of the data of the internet of things to be transmitted, which is acquired by the measuring points;
the method comprises the steps of adopting different coding modes to code data of the internet of things to be transmitted with different data types to obtain coded data;
transmitting the coded data to a message queue of a server through a wireless network;
and performing inverse operation decoding processing on the coded data received by the server according to the coding mode to obtain the data of the Internet of things to be transmitted.
In summary, the method, device, equipment and storage medium for transmitting internet of things data provided in this embodiment include: classifying the data of the internet of things to be transmitted according to the data type of the data of the internet of things to be transmitted, which is acquired by the measuring points; coding the data of the internet of things to be transmitted with different data types by adopting different coding modes to obtain coded data; transmitting the coded data to a message queue of a server through a wireless network; and performing inverse operation decoding processing on the coded data received by the server according to the coding mode to obtain the data of the Internet of things to be transmitted. According to the method, the acquired data of the internet of things to be transmitted are divided into different data types, and the data are transmitted after being encoded according to different encoding modes of the data of the internet of things to be transmitted, so that the complexity of data encoding is increased, the risk of decoding the data in the transmission process is reduced, the safety of the data is improved, the data can be restored through inverse operation decoding after the encoded data is received, the acquired data amount and the data compression are not required to be reduced, and the problems of incomplete data and low delay caused by the loss of the data or the compression of the data are avoided.
The present invention is not limited to the above-mentioned embodiments, and any changes or substitutions that can be easily understood by those skilled in the art within the technical scope of the present invention are intended to be included in the scope of the present invention.

Claims (10)

1. The method for transmitting the data of the Internet of things is characterized by comprising the following steps of:
classifying the data of the internet of things to be transmitted according to the data type of the data of the internet of things to be transmitted, which is acquired by the measuring points;
coding the data of the internet of things to be transmitted with different data types by adopting different coding modes to obtain coded data;
transmitting the coded data to a message queue of a server through a wireless network;
and performing inverse operation decoding processing on the coded data received by the server according to the coding mode to obtain the data of the Internet of things to be transmitted.
2. The method for transmitting internet of things data according to claim 1, wherein the data type includes a time type; the step of encoding the data of the internet of things to be transmitted with different data types by adopting different encoding modes to obtain encoded data comprises the following steps:
converting the data of the Internet of things to be transmitted of the time type in each measuring point into a preset format number;
traversing the preset format number in the current measuring point to inquire and record the maximum preset format number;
and encoding other preset format numbers according to the maximum preset format number to obtain time encoding data.
3. The method for transmitting internet of things data according to claim 1, wherein the data type further comprises a digital type; the step of encoding the data of the internet of things to be transmitted with different data types by adopting different encoding modes to obtain encoded data comprises the following steps:
traversing the data of the Internet of things to be transmitted of the digital type in each measuring point to determine the maximum number and the minimum number in the current time window;
dividing the data of the Internet of things to be transmitted, which are of the digital type in the current time window, into first digital type data and second digital type data according to the difference between the maximum digital and the minimum digital;
encoding the first digital type data by utilizing a univariate linear regression algorithm to obtain first digital encoded data;
and encoding the second digital type data by using a principal component analysis algorithm to obtain second digital encoded data.
4. The method for transmitting internet of things data according to claim 3, wherein the encoding the first digital type data using a univariate linear regression algorithm to obtain first digital encoded data comprises:
taking a serial number of the first digital type data as an input, and taking the first digital type data as an output to establish a linear function;
and encoding the first digital type data by using the linear function to obtain first digital encoded data.
5. The method for transmitting internet of things data according to claim 3, wherein the encoding the second digital type data using the principal component analysis algorithm to obtain second digital encoded data comprises:
determining key measuring points in the second digital type data by using the principal component analysis algorithm;
determining a machine learning model of all the measuring points through the key measuring points;
and encoding the second digital type data according to the machine learning model to obtain second digital encoded data.
6. The method for transmitting internet of things data according to claim 1, wherein the data type further comprises a character string type; the step of encoding the data of the internet of things to be transmitted with different data types by adopting different encoding modes to obtain encoded data comprises the following steps:
traversing the data of the Internet of things to be transmitted of all character string types in the measuring points;
establishing a conversion dictionary table according to the to-be-transmitted internet of things data of the character string type by a preset system;
and carrying out coding processing on the data of the internet of things to be transmitted according to the conversion dictionary table to obtain character string coding data.
7. The method for transmitting internet of things data according to claim 1, wherein classifying the internet of things data to be transmitted according to the data type of the internet of things data to be transmitted acquired at the measuring point comprises:
caching the data of the internet of things to be transmitted, which are acquired in the same time window;
and classifying the data of the internet of things to be transmitted when the cached data quantity exceeds a preset data quantity threshold value.
8. The utility model provides a transmission device of thing networking data which characterized in that includes:
the classification module is used for classifying the data of the internet of things to be transmitted according to the data type of the data of the internet of things to be transmitted, which is acquired by the measuring points;
the coding module is used for coding the to-be-transmitted internet of things data with different data types by adopting different coding modes to obtain coded data;
the transmission module is used for transmitting the coded data to a message queue of a server through a wireless network;
and the decoding module is used for carrying out inverse operation decoding processing on the coded data received by the server according to the coding mode to obtain the data of the Internet of things to be transmitted.
9. The transmission equipment of the data of the Internet of things is characterized by comprising a memory and a processor, wherein,
the memory is used for storing programs;
the processor is coupled to the memory for executing the program stored in the memory to implement the steps in the method for transmitting internet of things data according to any one of the preceding claims 1 to 7.
10. A computer readable storage medium storing a computer readable program or instructions which, when executed by a processor, is capable of carrying out the steps of the method of transmitting internet of things data according to any one of the preceding claims 1 to 7.
CN202311814669.XA 2023-12-26 2023-12-26 Method, device, equipment and storage medium for transmitting data of Internet of things Pending CN117880387A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311814669.XA CN117880387A (en) 2023-12-26 2023-12-26 Method, device, equipment and storage medium for transmitting data of Internet of things

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311814669.XA CN117880387A (en) 2023-12-26 2023-12-26 Method, device, equipment and storage medium for transmitting data of Internet of things

Publications (1)

Publication Number Publication Date
CN117880387A true CN117880387A (en) 2024-04-12

Family

ID=90580522

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311814669.XA Pending CN117880387A (en) 2023-12-26 2023-12-26 Method, device, equipment and storage medium for transmitting data of Internet of things

Country Status (1)

Country Link
CN (1) CN117880387A (en)

Similar Documents

Publication Publication Date Title
CN101989443B (en) For the multi-mode encoding of data compression
CN111626408B (en) Hash coding method, device and equipment and readable storage medium
CN105450232A (en) Encoding method, decoding method, encoding device and decoding device
CN110021369B (en) Gene sequencing data compression and decompression method, system and computer readable medium
CN110019865B (en) Mass image processing method and device, electronic equipment and storage medium
CN115208414B (en) Data compression method, data compression device, computer device and storage medium
CN113258935B (en) Communication compression method based on model weight distribution in federated learning
CN116506073A (en) Industrial computer platform data rapid transmission method and system
CN115567589B (en) Compression transmission method, device and equipment of JSON data and storage medium
CN116471307A (en) Internet of things heterogeneous data cascade transmission method, device, equipment and medium
CN113630125A (en) Data compression method, data encoding method, data decompression method, data encoding device, data decompression device, electronic equipment and storage medium
CN116841973A (en) Data intelligent compression method and system for embedded database
CN115408350A (en) Log compression method, log recovery method, log compression device, log recovery device, computer equipment and storage medium
CN117527708B (en) Optimized transmission method and system for enterprise data link based on data flow direction
CN110021368B (en) Comparison type gene sequencing data compression method, system and computer readable medium
Zhao et al. A joint communication and computation design for semantic wireless communication with probability graph
CN111970011B (en) Rate adaptation polarization code construction and coding method, device and electronic equipment
CN117880387A (en) Method, device, equipment and storage medium for transmitting data of Internet of things
EP4100954A1 (en) Improved quality value compression framework in aligned sequencing data based on novel contexts
CN112953547A (en) Data processing method, device and system
CN109743362B (en) Data storage method applied to full-format data structure
US11700013B2 (en) System and method for data compaction and security with extended functionality
Eric et al. An optimal seed based compression algorithm for DNA sequences
US10742783B2 (en) Data transmitting apparatus, data receiving apparatus and method thereof having encoding or decoding functionalities
WO2021036189A1 (en) Rdma data sending and receiving methods, electronic device and readable storage medium

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