CN117880359A - Data transmission method, device, equipment and storage medium - Google Patents

Data transmission method, device, equipment and storage medium Download PDF

Info

Publication number
CN117880359A
CN117880359A CN202410039613.XA CN202410039613A CN117880359A CN 117880359 A CN117880359 A CN 117880359A CN 202410039613 A CN202410039613 A CN 202410039613A CN 117880359 A CN117880359 A CN 117880359A
Authority
CN
China
Prior art keywords
data
processing
preset
processing result
target data
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
CN202410039613.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.)
China United Network Communications Group Co Ltd
China Unicom Heilongjiang Industrial Internet Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
China Unicom Heilongjiang Industrial Internet 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 China United Network Communications Group Co Ltd, China Unicom Heilongjiang Industrial Internet Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202410039613.XA priority Critical patent/CN117880359A/en
Publication of CN117880359A publication Critical patent/CN117880359A/en
Pending legal-status Critical Current

Links

Abstract

The application provides a data transmission method, a device, equipment and a storage medium, wherein the method comprises the following steps: receiving a coded data packet sent by a sensor through a preset transmission protocol; the method comprises the steps that a sensor compresses target data according to a preset compression mode to obtain a compressed data packet of the target data, and the compressed data packet is obtained by encoding according to the preset encoding mode; decoding and decompressing the coded data packet to obtain target data; and performing offline data processing on the target data to obtain a preliminary processing result, and sending the preliminary processing result to the cloud end through a preset transmission protocol, so that the cloud end performs online processing on the preliminary processing result to obtain an optimized processing result, and monitors the surrounding environment according to the optimized processing result, thereby reducing the transmission delay and the pressure of the network bandwidth in the data transmission process, and improving the data transmission and processing efficiency.

Description

Data transmission method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of data processing, and in particular, to a data transmission method, apparatus, device, and storage medium.
Background
With the rise and popularization of the internet of things, the sensor network is more and more widely applied. The sensor network consists of a plurality of sensor nodes, and the nodes can sense and collect physical quantities in the environment and realize intelligent control and management of equipment through the sensor network.
In the prior art, a conventional data transmission method directly acquires all physical quantities of the surrounding environment, and transmits all the physical quantities and performs other subsequent processing operations.
However, in the prior art, the physical quantity obtained by the conventional data transmission method is too complicated, and increases the transmission delay and the pressure of the network bandwidth in the data transmission process, so that the data transmission and processing efficiency is low.
Disclosure of Invention
The application provides a data transmission method, a device, equipment and a storage medium, which reduce the transmission delay and the pressure of network bandwidth in the data transmission process and improve the data transmission and processing efficiency by carrying out a series of processing and transmission on the original data of the surrounding environment.
In a first aspect, the present application provides a data transmission method, applied to a central processing end, including:
receiving a coded data packet sent by a sensor through a preset transmission protocol; the encoding data packet is a compressed data packet of target data obtained by compressing the target data by the sensor according to a preset compression mode, and is obtained by encoding the compressed data packet according to the preset encoding mode; the target data are obtained by collecting multiple data in a preset range in the surrounding environment by the sensor and extracting the multiple data;
decoding and decompressing the coded data packet to obtain the target data;
and performing offline data processing on the target data to obtain a preliminary processing result, and sending the preliminary processing result to a cloud end through the preset transmission protocol, so that the cloud end performs online processing on the preliminary processing result to obtain an optimized processing result, and monitoring the surrounding environment according to the optimized processing result.
In one possible design, the decoding and decompressing the encoded data packet to obtain the target data includes: acquiring a preset decoding mode and a preset decompression mode, wherein the preset decoding mode corresponds to a preset encoding mode, and the preset decompression mode corresponds to a preset compression mode; decoding the coded data packet according to a preset decoding mode to obtain a compressed data packet; and performing decompression processing on the compressed data packet according to a preset decompression mode to obtain target data.
In one possible design, the performing offline data processing on the target data to obtain a preliminary processing result includes: acquiring the processing requirement of the target data, and determining an offline processing method according to the processing requirement; and performing off-line data processing on the target data according to an off-line processing method to obtain a preliminary processing result.
In a second aspect, the present application further provides a data transmission method, applied to a sensor, including:
collecting various data in a preset range in the surrounding environment, and extracting the various data to obtain target data;
compressing the target data according to a preset compression mode to obtain a compressed data packet of the target data;
and encoding the compressed data packet according to a preset encoding mode to obtain an encoded data packet, transmitting the encoded data packet to a central processing end through a preset transmission protocol, decoding and decompressing the encoded data packet by the central processing end to obtain target data, performing offline data processing on the target data to obtain a preliminary processing result, and transmitting the preliminary processing result to a cloud end through the preset transmission protocol, so that the cloud end performs online processing on the preliminary processing result to obtain an optimized processing result, and monitoring the surrounding environment according to the optimized processing result.
In one possible design, the collecting multiple data in a preset range in the surrounding environment, and extracting the multiple data to obtain target data includes: collecting all original data in a preset range in the surrounding environment according to a preset period, and classifying all the original data to obtain various data; and extracting the plurality of data to obtain the target data.
In a third aspect, the present application further provides a data transmission method, applied to a cloud, including:
receiving a preliminary processing result sent by a central processing end through a preset transmission protocol, wherein the preliminary processing result is obtained by decoding and decompressing a coded data packet by the central processing end to obtain target data and performing offline data processing on the target data; the encoding data packet is a compressed data packet of target data obtained by compressing the target data by a sensor according to a preset compression mode, and is obtained by encoding the compressed data packet according to the preset encoding mode; the target data are obtained by collecting multiple data in a preset range in the surrounding environment by the sensor and extracting the multiple data;
performing online data processing on the preliminary processing result to obtain an optimized processing result;
and monitoring the surrounding environment according to the optimizing result.
In one possible design, the performing on-line data processing on the preliminary processing result to obtain an optimized processing result includes: performing online data processing on the preliminary processing result to obtain online processing data; and carrying out optimization processing on the online processing data to obtain an optimization processing result.
In a fourth aspect, the present application further provides a data transmission device, applied to a central processing end, including:
the first receiving module is used for receiving the coded data packet sent by the sensor through a preset transmission protocol; the encoding data packet is a compressed data packet of target data obtained by compressing the target data by the sensor according to a preset compression mode, and is obtained by encoding the compressed data packet according to the preset encoding mode; the target data are obtained by collecting multiple data in a preset range in the surrounding environment by the sensor and extracting the multiple data;
the first processing module is used for decoding and decompressing the coded data packet to obtain the target data;
the second processing module is used for performing offline data processing on the target data to obtain a preliminary processing result, sending the preliminary processing result to a cloud end through the preset transmission protocol, enabling the cloud end to perform online processing on the preliminary processing result to obtain an optimized processing result, and monitoring the surrounding environment according to the optimized processing result.
In a fifth aspect, the present application further provides a data transmission device, applied to a sensor, including:
the acquisition module is used for acquiring various data in a preset range in the surrounding environment, and extracting and processing the various data to obtain target data;
the processing module is used for compressing the target data according to a preset compression mode to obtain a compressed data packet of the target data;
the encoding module is used for encoding the compressed data packet according to a preset encoding mode to obtain an encoded data packet, transmitting the encoded data packet to a central processing end through a preset transmission protocol, enabling the central processing end to decode and decompress the encoded data packet to obtain target data, performing offline data processing on the target data to obtain a primary processing result, transmitting the primary processing result to a cloud end through the preset transmission protocol, enabling the cloud end to perform online processing on the primary processing result to obtain an optimized processing result, and monitoring the surrounding environment according to the optimized processing result.
In a sixth aspect, the present application further provides a data transmission device, applied to a cloud, including:
the receiving module is used for receiving a preliminary processing result sent by the central processing end through a preset transmission protocol, wherein the preliminary processing result is obtained by decoding and decompressing the coded data packet by the central processing end to obtain target data and performing offline data processing on the target data; the encoding data packet is a compressed data packet of target data obtained by compressing the target data by a sensor according to a preset compression mode, and is obtained by encoding the compressed data packet according to the preset encoding mode; the target data are obtained by collecting multiple data in a preset range in the surrounding environment by the sensor and extracting the multiple data;
the processing module is used for carrying out online data processing on the preliminary processing result to obtain an optimized processing result;
and the monitoring module is used for monitoring the surrounding environment according to the optimizing result.
In a seventh aspect, the present application provides an electronic device, including: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executes the computer-executable instructions stored by the memory, such that the at least one processor performs the data transmission method as described above for the first aspect and the various possible designs of the first aspect, or the data transmission method as described for the second aspect and the various possible designs of the second aspect, or the data transmission method as described for the third aspect and the various possible designs of the third aspect.
In an eighth aspect, the present application provides a computer storage medium having stored therein computer-executable instructions which, when executed by a processor, implement a data transmission method according to the above first aspect and the various possible designs of the first aspect, or a data transmission method according to the second aspect and the various possible designs of the second aspect, or a data transmission method according to the third aspect and the various possible designs of the third aspect.
The data transmission method, the device, the equipment and the storage medium provided by the application are used for receiving the coded data packet sent by the sensor through a preset transmission protocol and obtaining target data according to the coded data packet; and performing offline data processing on the target data to obtain a preliminary processing result, so that the cloud performs online processing on the preliminary processing result to obtain an optimized processing result, and monitoring the surrounding environment according to the optimized processing result, thereby reducing the transmission delay and the pressure of the network bandwidth in the data transmission process, and improving the data transmission and processing efficiency.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief description will be given below of the drawings that are needed in the embodiments or the prior art descriptions, it being obvious that the drawings in the following description are some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort to a person skilled in the art.
Fig. 1 is an application scenario schematic diagram of a data transmission method provided in an embodiment of the present application;
fig. 2 is a schematic flow chart of a data transmission method according to an embodiment of the present application;
fig. 3 is a second schematic flow chart of a data transmission method according to an embodiment of the present application;
fig. 4 is a schematic flow chart III of a data transmission method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a data transmission device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a data transmission device according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram III of a data transmission device according to an embodiment of the present application;
fig. 8 is a schematic hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
Sensor networks are a type of computer network consisting of a number of spatially distributed automation devices that use sensors to cooperatively monitor physical or environmental conditions at different locations, and with the rise and popularity of the internet of things, sensor networks are becoming increasingly popular. The sensor network consists of a plurality of sensor nodes, and the nodes can sense and collect physical quantities in the environment and realize intelligent control and management of equipment through the sensor network; at present, the data transmission and processing technology in the sensor network of the Internet of things for edge calculation is greatly advanced. In the prior art, a conventional data transmission method directly acquires all physical quantities of the surrounding environment, and transmits all the physical quantities and performs other subsequent processing operations. However, in the prior art, the physical quantity obtained by the conventional data transmission method is too complicated, and increases the transmission delay and the pressure of the network bandwidth in the data transmission process, so that the data transmission and processing efficiency is low.
In order to solve the above technical problems, the embodiments of the present application provide the following technical ideas: the inventor considers the complexity of data transmission in environment monitoring, acquires the original data of the surrounding environment based on the sensor, and obtains the compressed data of the original data by utilizing a corresponding processing means, so that a central processing end can process the compressed data and send a processing result to a cloud end for continuous processing, so that the cloud end can monitor the surrounding environment, the pressure of transmission delay and network bandwidth is reduced in the process of data transmission, and the data transmission and processing efficiency is improved.
Fig. 1 is an application scenario schematic diagram of a data transmission method provided in an embodiment of the present application.
As shown in fig. 1, the scene includes: a sensor 101, a central processing end 102 and a cloud 103.
The sensor 101 may be a single sensor or a cluster of a plurality of sensors.
The central processing end 102 may be an independent processor or a cluster formed by a plurality of processors.
Cloud 103 may be an online processing platform, or a processing platform with a storage function.
The sensor 101 collects all the original data of the surrounding environment, and transmits the coded data packet obtained by processing all the original data to the central processing end 102 through a wireless network. The central processing section 102 generates target data according to the encoded data packet, obtains a preliminary processing result according to the target data, and sends the preliminary processing result to the cloud 103. The cloud 103 obtains an optimized processing result according to the preliminary processing result, and monitors the surrounding environment according to the optimized processing result. The following will explain in detail the embodiments.
Fig. 2 is a schematic flow chart of a data transmission method provided in the embodiment of the present application, where the execution body of the embodiment may be a central processing end in the embodiment shown in fig. 1, and the embodiment is not limited herein. As shown in fig. 2, the method includes:
s201: receiving a coded data packet sent by a sensor through a preset transmission protocol; the method comprises the steps that a sensor compresses target data according to a preset compression mode to obtain a compressed data packet of the target data, and the compressed data packet is obtained by encoding according to the preset encoding mode; the target data are obtained by collecting various data in a preset range in the surrounding environment by the sensor and extracting the various data.
In this embodiment, the preset transmission protocol may be TCP, UDP, HTTP, MQTT or other transmission protocols.
The selection of the preset transmission protocol depends on the data transmission speed, the data transmission quantity, the data transmission delay and other relevant factors.
The preset transmission protocol is stored in the edge computing node.
In this embodiment, the preset compression method may be a wavelet transform compression algorithm, a discrete cosine transform compression algorithm, or other compression methods.
In this embodiment, the preset encoding mode may be huffman encoding, run-length encoding, or other encoding modes.
In this embodiment, the plurality of data may be a plurality of types of raw data including noise data, complicated data, or other interference information.
In this embodiment, the extraction process may be to extract the required data from noise data, complicated data, or other interference information.
S202: and decoding and decompressing the coded data packet to obtain target data.
Specifically, step S202 is specifically:
s2021: and acquiring a preset decoding mode and a preset decompression mode, wherein the preset decoding mode corresponds to the preset encoding mode, and the preset decompression mode corresponds to the preset compression mode.
In this embodiment, the preset decoding mode and the preset encoding mode adopt corresponding encoding modes; the preset decompression mode and the preset compression mode adopt corresponding compression algorithms.
S2022: and decoding the coded data packet according to a preset decoding mode to obtain a compressed data packet.
S2023: and performing decompression processing on the compressed data packet according to a preset decompression mode to obtain target data.
S203: and performing offline data processing on the target data to obtain a preliminary processing result, and sending the preliminary processing result to the cloud end through a preset transmission protocol, so that the cloud end performs online processing on the preliminary processing result to obtain an optimized processing result, and monitoring the surrounding environment according to the optimized processing result.
Specifically, step S203 is specifically:
s2031: and acquiring the processing requirement of the target data, and determining an offline processing method according to the processing requirement.
In this embodiment, the processing requirements may be classification, clustering, regression, anomaly detection, and other requirements.
In this embodiment, the offline processing method is a classification method, a clustering method, a regression method, an anomaly detection method, and other processing methods corresponding to the processing requirements.
S2032: and performing off-line data processing on the target data according to an off-line processing method to obtain a preliminary processing result.
In the present embodiment, the method employed for offline data processing may be machine learning, deep learning, and other methods.
In summary, in the data transmission method provided in this embodiment, through a preset transmission protocol, a coded data packet sent by a sensor is received, and target data is obtained according to the coded data packet; and performing offline data processing on the target data to obtain a preliminary processing result, so that the cloud performs online processing on the preliminary processing result to obtain an optimized processing result, and monitoring the surrounding environment according to the optimized processing result, thereby reducing the transmission delay and the pressure of the network bandwidth in the data transmission process, and improving the data transmission and processing efficiency.
Fig. 3 is a schematic diagram of a data transmission method according to an embodiment of the present application. The execution body of the present embodiment may be a sensor in the embodiment shown in fig. 1, and the present embodiment is not particularly limited here. As shown in fig. 3, the method includes:
s301: and collecting various data in a preset range in the surrounding environment, and extracting and processing the various data to obtain target data.
Specifically, step S301 specifically includes:
s3011: all the original data in a preset range in the surrounding environment are collected according to a preset period, and all the original data are classified to obtain various data.
In this embodiment, all raw data may be temperature, humidity, air pressure, light, sound, air flow, snow, rainfall, and other raw physical quantities that carry noise and lengthy data.
In the present embodiment, the classifying process may be to classify physical quantities that change uniformly as first raw data and physical quantities that change faster as second raw data.
The first original data can be temperature, humidity, air pressure, illumination and other physical quantities carrying noise and redundant data; the second raw data may be sounds, air flows, snow, rain and other physical quantities that carry noise and lengthy data.
S3012: and extracting various data to obtain target data.
In the present embodiment, the discussion about the extraction process has been described in detail in step S201, and will not be repeated here.
S302: and compressing the target data according to a preset compression mode to obtain a compressed data packet of the target data.
In this embodiment, the discussion about the preset compression mode is already described in detail in step S201, and will not be repeated here.
S303: encoding the compressed data packet according to a preset encoding mode to obtain an encoded data packet, transmitting the encoded data packet to a central processing end through a preset transmission protocol, decoding and decompressing the encoded data packet by the central processing end to obtain target data, performing offline data processing on the target data to obtain a preliminary processing result, transmitting the preliminary processing result to a cloud end through the preset transmission protocol, performing online processing on the preliminary processing result by the cloud end to obtain an optimized processing result, and monitoring the surrounding environment according to the optimized processing result.
In this embodiment, the discussion of the transmission protocol, the preset encoding mode and the preset transmission protocol has been described in detail in step S201, and will not be repeated here.
In this embodiment, the offline data processing is already described in detail in step S2032, and will not be described here again.
In summary, according to the data transmission method provided by the embodiment, the target data is obtained by collecting multiple data in a preset range in the surrounding environment, and the compressed data packet is obtained according to the target data; the method comprises the steps of obtaining a coded data packet according to compressed data, sending the coded data packet to a central processing end, decoding and decompressing the coded data packet by the central processing end to obtain target data, obtaining a preliminary processing result according to the target data, obtaining an optimized processing result according to the preliminary processing result by a cloud end, and monitoring the surrounding environment according to the optimized processing result, so that the sensor can acquire the original data in the surrounding environment more accurately, and the variety of the original data is richer.
In addition, the classifying process can enable the sensor to capture sudden weather conditions as soon as possible, and enable related personnel to monitor and process in time.
Fig. 4 is a schematic flowchart of a data transmission method according to an embodiment of the present application. The execution body of the embodiment may be the cloud end in the embodiment shown in fig. 1, and the embodiment is not particularly limited here. As shown in fig. 4, the method includes:
s401: receiving a preliminary processing result sent by a central processing end through a preset transmission protocol, wherein the preliminary processing result is obtained by the central processing end performing decoding and decompression processing on the coded data packet to obtain target data and performing offline data processing on the target data; the method comprises the steps that a sensor compresses target data according to a preset compression mode to obtain a compressed data packet of the target data, and the compressed data packet is obtained by encoding according to the preset encoding mode; the target data are obtained by collecting various data in a preset range in the surrounding environment by the sensor and extracting the various data.
In this embodiment, the descriptions about the preset compression mode, the preset encoding mode and the extraction process have been described in detail in step S201, and are not described here again.
S402: and carrying out online data processing on the preliminary processing result to obtain an optimized processing result.
Specifically, step S402 is specifically:
s4021: and performing online data processing on the preliminary processing result to obtain online processing data.
In this embodiment, the online data processing may use a data cloud processing platform or other data processing platforms.
S4022: and carrying out optimization treatment on the online treatment data to obtain an optimization treatment result.
In this embodiment, the optimization process may be data visualization, real-time monitoring, and other processing methods.
S403: and monitoring the surrounding environment according to the optimized processing result.
In summary, according to the data transmission method provided by the embodiment, through the preset transmission protocol, the primary processing result sent by the central processing end is received, and the online data processing is performed on the primary processing result, so that the optimized processing result is obtained, and the cloud is enabled to monitor the surrounding environment more flexibly and intuitively.
Fig. 5 is a schematic structural diagram of a data transmission device according to an embodiment of the present application. As shown in fig. 5, the data transmission device is applied to a central processing end, and includes: a receiving module 501, a first processing module 502 and a second processing module 503.
The receiving module 501 is configured to receive, through a preset transmission protocol, an encoded data packet sent by the sensor; the encoding data packet is a compressed data packet of target data obtained by compressing the target data by the sensor according to a preset compression mode, and is obtained by encoding the compressed data packet according to the preset encoding mode; the target data are obtained by collecting multiple data in a preset range in the surrounding environment by the sensor and extracting the multiple data;
a first processing module 502, configured to decode and decompress the encoded data packet to obtain the target data;
and the second processing module 503 is configured to perform offline data processing on the target data to obtain a preliminary processing result, and send the preliminary processing result to a cloud end through the preset transmission protocol, so that the cloud end performs online processing on the preliminary processing result to obtain an optimized processing result, and monitor the surrounding environment according to the optimized processing result.
In one possible implementation manner, the first processing module 502 specifically includes:
an obtaining unit 5021, configured to obtain a preset decoding mode and a preset decompressing mode, where the preset decoding mode corresponds to a preset encoding mode, and the preset decompressing mode corresponds to a preset compressing mode;
the first processing unit 5022 is configured to decode the encoded data packet according to a preset decoding manner to obtain a compressed data packet;
and the second processing unit 5023 is configured to perform decompression processing on the compressed data packet according to a preset decompression mode to obtain target data.
In one possible implementation manner, the second processing module 503 specifically includes:
an obtaining unit 5031, configured to obtain a processing requirement of the target data, and determine an offline processing method according to the processing requirement;
and the processing unit 5032 is used for performing offline data processing on the target data according to an offline processing method to obtain a preliminary processing result.
Fig. 6 is a schematic structural diagram of a data transmission device according to an embodiment of the present application. As shown in fig. 6, the data transmission device, applied to a sensor, includes: acquisition module 601, processing module 602 and encoding module 603.
The acquisition module 601 is configured to acquire multiple data within a preset range in a surrounding environment, and extract the multiple data to obtain target data;
the processing module 602 is configured to perform compression processing on the target data according to a preset compression manner to obtain a compressed data packet of the target data;
the encoding module 603 is configured to encode the compressed data packet according to a preset encoding manner to obtain an encoded data packet, and send the encoded data packet to a central processing end through a preset transmission protocol, so that the central processing end decodes and decompresses the encoded data packet to obtain the target data, perform offline data processing on the target data to obtain a preliminary processing result, and send the preliminary processing result to a cloud end through the preset transmission protocol, so that the cloud end performs online processing on the preliminary processing result to obtain an optimized processing result, and monitor the surrounding environment according to the optimized processing result.
In one possible implementation manner, the collecting module 601 specifically includes:
the acquisition unit 6011 is configured to acquire all original data in a preset range in a surrounding environment according to a preset period, and classify and process all the original data to obtain multiple data;
and a processing unit 6012 configured to extract the plurality of data to obtain the target data.
Fig. 7 is a schematic structural diagram of a data transmission device according to an embodiment of the present application. As shown in fig. 7, the data transmission device, applied to the cloud, includes: a receiving module 701, a processing module 702 and a monitoring module 703.
The receiving module 701 is configured to receive, by using a preset transmission protocol, a preliminary processing result sent by a central processing end, where the preliminary processing result is obtained by performing decoding and decompression processing on an encoded data packet by the central processing end, so as to obtain target data, and performing offline data processing on the target data; the encoding data packet is a compressed data packet of target data obtained by compressing the target data by a sensor according to a preset compression mode, and is obtained by encoding the compressed data packet according to the preset encoding mode; the target data are obtained by collecting multiple data in a preset range in the surrounding environment by the sensor and extracting the multiple data;
the processing module 702 is configured to perform online data processing on the preliminary processing result to obtain an optimized processing result;
and the monitoring module 703 is configured to monitor the surrounding environment according to the optimization result.
In one possible implementation, the processing module 702 is specifically configured to:
a first processing unit 7021, configured to perform online data processing on the preliminary processing result, so as to obtain online processing data;
and the second processing unit 7022 is configured to perform optimization processing on the online processing data to obtain an optimization processing result.
The device provided in this embodiment may be used to implement the technical solution of the foregoing method embodiment, and its implementation principle and technical effects are similar, and this embodiment will not be described herein again.
Fig. 8 is a schematic hardware structure of an electronic device according to an embodiment of the present application. As shown in fig. 8, the electronic apparatus of the present embodiment includes: a processor 801 and a memory 802; the memory stores computer-executable instructions; at least one processor executes computer-executable instructions stored in the memory, causing the at least one processor to perform the data transmission method as described above.
Alternatively, the memory 802 may be separate or integrated with the processor 801.
When the memory 802 is provided separately, the electronic device further comprises a bus 803 for connecting said memory 802 and the processor 801.
The embodiment of the application also provides a computer storage medium, wherein computer execution instructions are stored in the computer storage medium, and when a processor executes the computer execution instructions, the data transmission method is realized.
Embodiments of the present application also provide a computer program product comprising a computer program which, when executed by a processor, implements a data transmission method as described above.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple modules may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or modules, which may be in electrical, mechanical, or other forms.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical units, may be located in one place, or may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to implement the solution of this embodiment.
In addition, each functional module in each embodiment of the present application may be integrated in one processing unit, or each module may exist alone physically, or two or more modules may be integrated in one unit. The units formed by the modules can be realized in a form of hardware or a form of hardware and software functional units.
The integrated modules, which are implemented in the form of software functional modules, may be stored in a computer readable storage medium. The software functional modules described above are stored in a storage medium and include instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or processor to perform some of the steps of the methods described in various embodiments of the present application.
It should be understood that the above processor may be a central processing unit (Central Processing Unit, abbreviated as CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, abbreviated as DSP), application specific integrated circuits (Application Specific Integrated Circuit, abbreviated as ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in a processor for execution.
The memory may comprise a high-speed RAM memory, and may further comprise a non-volatile memory NVM, such as at least one magnetic disk memory, and may also be a U-disk, a removable hard disk, a read-only memory, a magnetic disk or optical disk, etc.
The bus may be an industry standard architecture (Industry Standard Architecture, ISA) bus, an external device interconnect (Peripheral Component Interconnect, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, the buses in the drawings of the present application are not limited to only one bus or one type of bus.
The storage medium may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an application specific integrated circuit (Application Specific Integrated Circuits, ASIC for short). It is also possible that the processor and the storage medium reside as discrete components in an electronic device or a master device.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the method embodiments described above may be performed by hardware associated with program instructions. The foregoing program may be stored in a computer readable storage medium. The program, when executed, performs steps including the method embodiments described above; and the aforementioned storage medium includes: various media that can store program code, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims (12)

1. The data transmission method is characterized by being applied to a central processing end and comprising the following steps of:
receiving a coded data packet sent by a sensor through a preset transmission protocol; the encoding data packet is a compressed data packet of target data obtained by compressing the target data by the sensor according to a preset compression mode, and is obtained by encoding the compressed data packet according to the preset encoding mode; the target data are obtained by collecting multiple data in a preset range in the surrounding environment by the sensor and extracting the multiple data;
decoding and decompressing the coded data packet to obtain the target data;
and performing offline data processing on the target data to obtain a preliminary processing result, and sending the preliminary processing result to a cloud end through the preset transmission protocol, so that the cloud end performs online processing on the preliminary processing result to obtain an optimized processing result, and monitoring the surrounding environment according to the optimized processing result.
2. The method of claim 1, wherein said decoding and decompressing said encoded data packet to obtain said target data comprises:
acquiring a preset decoding mode and a preset decompression mode, wherein the preset decoding mode corresponds to a preset encoding mode, and the preset decompression mode corresponds to a preset compression mode;
decoding the coded data packet according to a preset decoding mode to obtain a compressed data packet;
and performing decompression processing on the compressed data packet according to a preset decompression mode to obtain target data.
3. The method according to claim 1 or 2, wherein the performing offline data processing on the target data to obtain a preliminary processing result includes:
acquiring the processing requirement of the target data, and determining an offline processing method according to the processing requirement;
and performing off-line data processing on the target data according to an off-line processing method to obtain a preliminary processing result.
4. A data transmission method, applied to a sensor, comprising:
collecting various data in a preset range in the surrounding environment, and extracting the various data to obtain target data;
compressing the target data according to a preset compression mode to obtain a compressed data packet of the target data;
and encoding the compressed data packet according to a preset encoding mode to obtain an encoded data packet, transmitting the encoded data packet to a central processing end through a preset transmission protocol, decoding and decompressing the encoded data packet by the central processing end to obtain target data, performing offline data processing on the target data to obtain a preliminary processing result, and transmitting the preliminary processing result to a cloud end through the preset transmission protocol, so that the cloud end performs online processing on the preliminary processing result to obtain an optimized processing result, and monitoring the surrounding environment according to the optimized processing result.
5. The method of claim 4, wherein the collecting a plurality of data in a preset range in the surrounding environment and extracting the plurality of data to obtain the target data comprises:
collecting all original data in a preset range in the surrounding environment according to a preset period, and classifying all the original data to obtain various data;
and extracting the plurality of data to obtain the target data.
6. The data transmission method is characterized by being applied to the cloud and comprising the following steps of:
receiving a preliminary processing result sent by a central processing end through a preset transmission protocol, wherein the preliminary processing result is obtained by decoding and decompressing a coded data packet by the central processing end to obtain target data and performing offline data processing on the target data; the encoding data packet is a compressed data packet of target data obtained by compressing the target data by a sensor according to a preset compression mode, and is obtained by encoding the compressed data packet according to the preset encoding mode; the target data are obtained by collecting multiple data in a preset range in the surrounding environment by the sensor and extracting the multiple data;
performing online data processing on the preliminary processing result to obtain an optimized processing result;
and monitoring the surrounding environment according to the optimizing result.
7. The method of claim 6, wherein performing online data processing on the preliminary processing result to obtain an optimized processing result comprises:
performing online data processing on the preliminary processing result to obtain online processing data;
and carrying out optimization processing on the online processing data to obtain an optimization processing result.
8. A data transmission device, applied to a central processing end, comprising:
the first receiving module is used for receiving the coded data packet sent by the sensor through a preset transmission protocol; the encoding data packet is a compressed data packet of target data obtained by compressing the target data by the sensor according to a preset compression mode, and is obtained by encoding the compressed data packet according to the preset encoding mode; the target data are obtained by collecting multiple data in a preset range in the surrounding environment by the sensor and extracting the multiple data;
the first processing module is used for decoding and decompressing the coded data packet to obtain the target data;
the second processing module is used for performing offline data processing on the target data to obtain a preliminary processing result, sending the preliminary processing result to a cloud end through the preset transmission protocol, enabling the cloud end to perform online processing on the preliminary processing result to obtain an optimized processing result, and monitoring the surrounding environment according to the optimized processing result.
9. A data transmission device, for use with a sensor, comprising:
the acquisition module is used for acquiring various data in a preset range in the surrounding environment, and extracting and processing the various data to obtain target data;
the processing module is used for compressing the target data according to a preset compression mode to obtain a compressed data packet of the target data;
the encoding module is used for encoding the compressed data packet according to a preset encoding mode to obtain an encoded data packet, transmitting the encoded data packet to a central processing end through a preset transmission protocol, enabling the central processing end to decode and decompress the encoded data packet to obtain target data, performing offline data processing on the target data to obtain a primary processing result, transmitting the primary processing result to a cloud end through the preset transmission protocol, enabling the cloud end to perform online processing on the primary processing result to obtain an optimized processing result, and monitoring the surrounding environment according to the optimized processing result.
10. A data transmission device, characterized in that it is applied to the cloud, comprising:
the receiving module is used for receiving a preliminary processing result sent by the central processing end through a preset transmission protocol, wherein the preliminary processing result is obtained by decoding and decompressing the coded data packet by the central processing end to obtain target data and performing offline data processing on the target data; the encoding data packet is a compressed data packet of target data obtained by compressing the target data by a sensor according to a preset compression mode, and is obtained by encoding the compressed data packet according to the preset encoding mode; the target data are obtained by collecting multiple data in a preset range in the surrounding environment by the sensor and extracting the multiple data;
the processing module is used for carrying out online data processing on the preliminary processing result to obtain an optimized processing result;
and the monitoring module is used for monitoring the surrounding environment according to the optimizing result.
11. An electronic device, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing computer-executable instructions stored in the memory causes the at least one processor to perform the data transmission method of any one of claims 1 to 3, or the data transmission method of claim 4 or 5, or the data transmission method of claim 6 or 7.
12. A computer storage medium having stored therein computer executable instructions which, when executed by a processor, implement the data transmission method of any one of claims 1 to 3, or the data transmission method of claim 4 or 5, or the data transmission method of claim 6 or 7.
CN202410039613.XA 2024-01-10 2024-01-10 Data transmission method, device, equipment and storage medium Pending CN117880359A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410039613.XA CN117880359A (en) 2024-01-10 2024-01-10 Data transmission method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410039613.XA CN117880359A (en) 2024-01-10 2024-01-10 Data transmission method, device, equipment and storage medium

Publications (1)

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

Family

ID=90586156

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410039613.XA Pending CN117880359A (en) 2024-01-10 2024-01-10 Data transmission method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117880359A (en)

Similar Documents

Publication Publication Date Title
CN115606162A (en) Abnormal flow detection method and system, and computer storage medium
CN110020122B (en) Video recommendation method, system and computer readable storage medium
CN115186158B (en) Abnormal data determination method, electronic device and storage medium
CN107146623B (en) Speech recognition method, device and system based on artificial intelligence
CN112565777B (en) Deep learning model-based video data transmission method, system, medium and device
CN108615074B (en) Neural network processing system and method based on compressed sensing
CN115208414B (en) Data compression method, data compression device, computer device and storage medium
CN113391973B (en) Internet of things cloud container log collection method and device
CN112040269B (en) Video data display method, device, terminal equipment and storage medium
CN114679607A (en) Video frame rate control method and device, electronic equipment and storage medium
CN112637123A (en) Data transmission method, system, terminal and storage medium for edge server
CN115883670A (en) Medical data analysis and acquisition method and device
CN116451594A (en) Training method and device of icing prediction model, prediction method and device and electronic equipment
CN117880359A (en) Data transmission method, device, equipment and storage medium
CN112235598B (en) Video structured processing method and device and terminal equipment
CN111159009B (en) Pressure testing method and device for log service system
CN116939164A (en) Security monitoring method and system
WO2023051035A1 (en) Data transmission method and apparatus for robot, electronic device, and storage medium
CN116319878A (en) Method, equipment and computer storage medium for data transmission
CN115905146A (en) Data processing method and device, computing equipment and storage system
CN115631339A (en) Visual feature extraction method and device and electronic equipment
CN111949110B (en) Processing method and device for minimizing energy consumption in mobile edge calculation
CN111970206A (en) FC network flow control method, device and related components
CN109473116B (en) Voice coding method, voice decoding method and device
CN114466088B (en) Data transmission method and device of sweeping robot, storage medium and terminal

Legal Events

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