CN111654833A - Sensor data processing method and device - Google Patents

Sensor data processing method and device Download PDF

Info

Publication number
CN111654833A
CN111654833A CN202010487801.0A CN202010487801A CN111654833A CN 111654833 A CN111654833 A CN 111654833A CN 202010487801 A CN202010487801 A CN 202010487801A CN 111654833 A CN111654833 A CN 111654833A
Authority
CN
China
Prior art keywords
sensor
edge computing
computing device
data packet
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.)
Granted
Application number
CN202010487801.0A
Other languages
Chinese (zh)
Other versions
CN111654833B (en
Inventor
虞龙杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TCL Communication Ningbo Ltd
Original Assignee
TCL Communication Ningbo 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 TCL Communication Ningbo Ltd filed Critical TCL Communication Ningbo Ltd
Priority to CN202010487801.0A priority Critical patent/CN111654833B/en
Publication of CN111654833A publication Critical patent/CN111654833A/en
Application granted granted Critical
Publication of CN111654833B publication Critical patent/CN111654833B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/38Services specially adapted for particular environments, situations or purposes for collecting sensor information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The embodiment of the application discloses a method and a device for processing sensor data. The embodiment of the application relates to a networking method which comprises the steps that networking including at least one edge computing device and at least one sensor is built based on a low-power Bluetooth protocol; defining an operation code included in a data packet transmitted by the edge computing device and the sensor to each other; setting the operation code and the corresponding application layer parameter in the data packet; the edge computing device and the sensor are connected according to the data packet, and the edge computing device receives and processes sensor data, so that the sensor data processing efficiency is improved, and resources of the edge computing device and the cloud computing device are fully utilized.

Description

Sensor data processing method and device
Technical Field
The application relates to the technical field of sensors, in particular to a sensor data processing method and device.
Background
Nowadays, with the rapid development of the internet of things, sensors related to the internet of things and computing equipment for processing sensor data are also increased greatly, and typical sensors include a temperature sensor, a humidity sensor, an air pressure sensor, an acceleration sensor and the like. Data collected by the sensor needs to be processed by computing equipment, typical computing equipment is classified into cloud computing equipment and edge computing equipment according to data processing capacity, the cloud computing equipment is computing equipment at the cloud end and has a large amount of data processing capacity, and the sensor needs to transmit the data to the cloud computing equipment through a WIFI network or an 2/3/4/5G base station network for processing; the edge computing device is a device with a small amount of data processing capacity, and has the advantages that the edge computing device can process a small amount of data of the sensor in a local area network without depending on a WIFI network or an 2/3/4/5G base station network.
Disclosure of Invention
The embodiment of the application provides a method and a device for processing sensor data, the method is based on a low-power-consumption Bluetooth protocol to construct a networking, a sensor transmits sensor data to corresponding edge computing equipment in the networking by using a corresponding data packet, the data processing efficiency is improved, and resources of the edge computing equipment and cloud computing equipment are fully utilized.
The embodiment of the application provides a sensor data processing method, which comprises the following steps:
constructing a network comprising at least one edge computing device and at least one sensor based on a Bluetooth Low energy protocol;
defining an operation code included in a data packet transmitted by the edge computing device and the sensor to each other;
setting the operation code and the corresponding application layer parameter in the data packet;
the edge computing device and the sensor establish a connection based on the data packet, and the edge computing device receives and processes sensor data.
Optionally, in some embodiments of the present application, the edge computing device includes a first edge computing device having internet access functionality and a second edge computing device having no internet access functionality, wherein one of the edge computing devices is a configuration device, the sensors include a first sensor and a second sensor, the first sensor collects first sensor data, the second sensor collects second sensor data, and the amount of the first sensor data is greater than the amount of the second sensor data.
Optionally, in some embodiments of the present application, the semantics of the operation code include the edge computing device and the sensor sending a device type to the configuration device;
the configuration device broadcasting a device list of the edge computing devices and the sensors;
the first sensor applying for processing the first sensor data to the first edge computing device;
the first edge computing device feeds back a first sensor application result;
the second sensor applying to the second edge computing device for processing the second sensor data;
and the second edge computing device feeds back the application result of the second sensor.
Optionally, in some embodiments of the present application, the setting the operation code and the corresponding application layer parameter in the data packet includes:
if the semantics of the operation codes included in the data packet are that the edge computing device and the sensor send device types to the configuration device, setting the application layer parameters including the device types and the characteristic descriptions as device declaration data packets;
if the semantics of the operation codes included in the data packet are that the configuration equipment broadcasts the equipment list of the edge computing equipment and the sensor, setting the application layer parameters including the equipment list as a list broadcast data packet;
if the semantics of the operation code included in the data packet is that the first sensor applies for processing the first sensor data to the first edge computing device, setting the application layer parameter to be null, and using the null as a first computing application data packet;
if the semantics of the operation codes included in the data packet are the application results fed back to the first sensor by the first edge computing device, setting the application layer parameters including whether the device is idle or not and sensor queuing conditions as a first feedback data packet;
if the semantics of the operation code included in the data packet is that the second sensor applies to the second edge computing device for processing the second sensor data, setting the application layer parameter to be null, and using the null as a second computing application data packet;
and if the semantics of the operation codes included in the data packet is that the second edge computing device feeds back the application result of the second sensor, setting the application layer parameters including whether the device is idle and the sensor queuing condition as a second feedback data packet.
Optionally, in some embodiments of the present application, the device type includes the edge computing device and the sensor, and the characterization includes an ability to access the internet, an ability to not access the internet, collecting the first sensor data, and collecting the second sensor data.
Optionally, in some embodiments of the present application, the device declaration data packet includes an edge computing device declaration data packet and a sensor device declaration data packet, the edge computing device declaration data packet includes the device type of the edge computing device, the characteristic specification indicates that the device has the capability of accessing the internet or does not have the capability of accessing the internet, the sensor device declaration data packet includes the device type of the sensor, and the characteristic specification indicates that the first sensor data is collected or the second sensor data is collected.
Optionally, in some embodiments of the present application, the edge computing device and the sensor establish a connection according to the data packet, and the edge computing device receives and processes sensor data, including:
the configuration device receives the device declaration data packets sent by the sensor and the edge computing device, and forms a device list of the edge computing device and the sensor, wherein the device list comprises device types and serial numbers, unicast addresses, WIFI MAC addresses and feature descriptions;
the configuration equipment broadcasts the list broadcast data packet in the networking;
the edge computing device and the sensor receive the list broadcast data packet to acquire the device list;
the sensor establishes a connection with the edge computing device according to the device list, and the edge computing device receives and processes sensor data.
Optionally, in some embodiments of the present application, the receiving, by the configuration device, the device declaration data packet sent by the sensor and the edge computing device includes:
the configuration equipment receives the edge computing equipment declaration data packet sent by the edge computing equipment;
and the configuration equipment receives the sensor equipment declaration data packet sent by the sensor.
Optionally, in some embodiments of the present application, the sensor establishes a connection with the edge computing device according to the device list, and the edge computing device receives and processes sensor data, including:
the first sensor sends the first calculation application data packet to the first edge computing device according to the device list and receives the first feedback data packet sent by the first edge computing device, and the second sensor sends the second calculation application data packet to the edge computing device according to the device list and receives the second feedback data packet sent by the second edge computing device;
the first sensor is connected with the first edge computing device according to the first feedback data packet, the first edge computing device receives the first sensor data, transmits the first sensor data to the cloud computing device, receives a first computing result sent by the cloud computing device, transmits the first computing result to the first sensor, the second sensor is connected with the second edge computing device according to the second feedback data packet, the second edge computing device receives and processes the second sensor data, a second computing result is obtained, and the second computing result is transmitted to the second sensor.
Correspondingly, the embodiment of the present application further provides a processing apparatus for sensor data, including:
the system comprises a construction unit, a data processing unit and a data processing unit, wherein the construction unit is used for constructing a network comprising at least one edge computing device and at least one sensor based on a low-power Bluetooth protocol;
an operation code definition unit, configured to define an operation code included in a data packet transmitted between the edge computing device and the sensor;
a setting unit, configured to set the operation code and the corresponding application layer parameter in the data packet;
and the processing unit is used for enabling the edge computing equipment and the sensor to establish connection according to the data packet, and the edge computing equipment receives and processes the sensor data.
The embodiment of the application provides a method and a device for processing sensor data, the method for processing the sensor data is to construct a network group comprising at least one edge computing device and at least one sensor based on a low power consumption Bluetooth protocol, wherein one edge computing device is a configuration device, an operation code included in a data packet transmitted by the edge computing device and the sensor is defined, the operation code and corresponding application layer parameters are set in the data packet, the edge computing device in the network group sends a device type to the configuration device and whether the edge computing device has the capability of accessing the Internet or not, the sensor in the network group sends the device type to the configuration device and collects first sensor data or second sensor data, the configuration device forms a device list of the edge computing device and the sensor, and then the configuration device broadcasts the device list in the network group, the edge computing device and the sensor receive and store the device list, the sensor collecting the first sensor data establishes connection with a first edge computing device with internet access capability according to the device list and transmits the first sensor data to the first edge computing device, the first edge computing device forwards the first sensor data to the cloud computing device through a WIFI network or an 2/3/4/5G base station, the cloud computing device transmits a first computing result to the first edge computing device after processing, the first edge computing device forwards the first computing result to the first sensor, the sensor collecting the second sensor data establishes connection with a second edge computing device without internet access capability according to the device list and transmits the second sensor data to the second edge computing device, and the second edge computing device directly processes the second sensor data, after the processing is finished, the second calculation result is transmitted to the second sensor, so that the cloud computing equipment processes a large amount of data collected by the sensor, the edge computing equipment processes a small amount of data collected by the sensor, the data processing efficiency is improved, and the resources of the edge computing equipment and the cloud computing equipment are fully utilized.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of a scenario of a method for processing sensor data according to an embodiment of the present application;
FIG. 2 is a flow chart of a method for processing sensor data provided by an embodiment of the present application;
fig. 3 is a schematic structural diagram of a sensor data processing apparatus according to an embodiment of the present application.
Detailed Description
The technical solutions in 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. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a method and a device for processing sensor data. The device can be integrated in a terminal, and the terminal can be a mobile phone, a tablet computer, a notebook computer and other equipment.
For example, as shown in fig. 1, a network is constructed based on bluetooth low energy protocol by using at least one edge computing device and at least one sensor, the edge computing device is divided into a first edge computing device and a second edge computing device, the first edge computing device has internet access function, the second edge computing device does not have internet access function, one of the edge computing devices is a configuration device, the sensor is divided into a first sensor and a second sensor, the first sensor collects first sensor data, the second sensor collects second sensor data, the number of the first sensor data is larger than that of the second sensor data, a device which does not join the network sends a request message to the configuration device, the configuration device invites the device which does not join the network to join the network, so that the device which does not join the network becomes a node in the network, the configuration device assigns a unique unicast address to each device in the network, the method comprises the steps that different edge computing devices and different sensors are distinguished, the devices in the networking are communicated with each other through data packets, operation codes included by the data packets are defined, different meanings are defined for the operation codes, corresponding application layer parameters are set according to the meanings of the operation codes included by the data packets, the edge computing devices and the sensors send device declaration data packets including the operation codes and the application layer parameters with the corresponding meanings to configuration devices, the respective device types and necessary descriptions of the device types are sent to the configuration devices, the configuration devices receive the device declaration data packets, messages are collected to form a device list of the edge computing devices and the sensors, the device list comprises device types, numbers, unicast addresses, WIFI MAC addresses and characteristic descriptions, the configuration devices broadcast the device list in the networking, all the devices in the networking receive the device list and store the device list to the local, the first sensor obtains unicast addresses of all first edge computing devices through the device list, the first sensor sends a first computing application data packet to all the first edge computing devices in a group according to the unicast addresses, whether the first edge computing devices are idle or not and queuing conditions are consulted, all the first edge computing devices send a first feedback data packet to the first sensor, the first feedback data packet indicates whether the first edge computing devices are idle or not and sensor conditions waiting for processing, if the first edge computing devices are idle, the first sensor selects one of the first edge computing devices to establish WIFI Direct connection through a WIFIMAC address, if the first edge computing devices are not idle, the first sensor selects the first edge computing device with the least queuing number to wait for establishing connection, transmits first sensor data after establishing connection, and forwards the first sensor data to the cloud computing device, after the cloud computing equipment finishes processing, transmitting a first computing result to first edge computing equipment, forwarding the first computing result to a first sensor by the first edge computing equipment, obtaining unicast addresses of all second edge computing equipment by the second sensor through the equipment list, sending a second computing application data packet to all the second edge computing equipment by the second sensor according to the unicast addresses, consulting whether the second edge computing equipment is idle and queuing conditions, sending a second feedback data packet to the second sensor by all the second edge computing equipment, indicating whether the second edge computing equipment is idle and the conditions of the sensors waiting for processing, if the second edge computing equipment is idle, selecting one of the second edge computing equipment to establish WIFI Direct connection through a WIFI MAC address, and if the second edge computing equipment is not idle, selecting the second edge computing equipment with the least queuing number by the second sensor to wait for establishing connection, the second sensor data is transmitted after the connection is established, the second edge computing device receives and computes the second sensor data, and the second computation result is transmitted to the second sensor.
The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
The present embodiment will be described from the perspective of a sensor data processing device, which may be specifically integrated in a terminal device, and the terminal device may include a laptop, a tablet computer, a smart phone, and the like.
A method of processing sensor data, comprising: constructing a network comprising at least one edge computing device and at least one sensor based on a Bluetooth Low energy protocol; defining an operation code included in a data packet transmitted by the edge computing device and the sensor to each other; setting the operation code and the corresponding application layer parameter in the data packet; the edge computing device and the sensor establish a connection based on the data packet, and the edge computing device receives and processes sensor data.
As shown in fig. 2, the specific flow of the sensor data processing method is as follows:
step 201, constructing a network including at least one edge computing device and at least one sensor based on a bluetooth low energy protocol.
For example, edge computing devices and sensors are used as device nodes to construct a network, the devices transmit data packets to communicate with each other according to a low-power-consumption bluetooth protocol, share hardware and software resources, and realize resource sharing, wherein one edge computing device is used as a configuration device, the configuration device allocates a unique unicast address to each device node in the network so as to distinguish different edge computing devices and different sensors, edge computing devices or sensors which do not join the network broadcast in the network, the configuration device receives request joining information broadcast by the device, invites the device to join the network, enables the device to become one device node in the network, and allocates a unicast address to the device.
The bluetooth low energy protocol is a wireless communication protocol, and has the characteristics of low power, short distance and low data rate. The layered protocol stack of the bluetooth low energy protocol can transmit small amounts of data with low power consumption and high efficiency, making it the preferred wireless protocol for battery powered applications. The low-power-consumption Bluetooth protocol comprises a low-power-consumption Bluetooth core protocol, a bearing layer, a network layer, a lower transmission layer, an upper transmission layer, an access layer, a basic model layer and a model layer from bottom to top.
Optionally, any one device in the networking may send a message to another device in the same network, may send a message to multiple devices in the same network in a group, or may broadcast a message to all devices in the same network.
The edge computing device comprises a first edge computing device and a second edge computing device, the first edge computing device has an internet access function, that is, the first edge computing device can establish a connection with the cloud computing device through a WIFI network or an 2/3/4/5G base station, the second edge computing device has no internet access function, wherein the first edge computing device is a configuration device, the sensors comprise a first sensor and a second sensor, the first sensor collects first sensor data, the second sensor collects second sensor data, the number of the first sensor data is greater than that of the second sensor data, for example, data above 100MB is the first sensor data, and data below 100MB is the second sensor data.
Step 202, defining operation codes included in data packets transmitted by the edge computing device and the sensor to each other.
For example, the data packet format of the access layer of the bluetooth low energy protocol includes an operation code, the semantics of the operation code are defined to include that the edge computing device and the sensor send a device type to the configuration device, the configuration device broadcasts a device list of the edge computing device and the sensor, the first sensor applies to the first edge computing device for processing the first sensor data, the first edge computing device feeds back a first sensor application result, the second sensor applies to the second edge computing device for processing the second sensor data, and the second edge computing device feeds back a second sensor application result.
Optionally, the semantics is that the operation code for the edge computing device and the sensor to send the device type to the configuration device is specifically 0x11, the semantics is that the operation code for the configuration device to broadcast the device list of the edge computing device and the sensor is specifically 0x12, the semantics is that the operation code for the first sensor to apply to the first edge computing device to process the first sensor data is specifically 0x13, the semantics is that the operation code for the first edge computing device to feed back the application result of the first sensor is specifically 0x14, the semantics is that the operation code for the second sensor to apply to the second edge computing device to process the second sensor data is specifically 0x15, and the semantics is that the operation code for the second edge computing device to feed back the application result of the second sensor is specifically 0x 16.
Where an opcode refers to a portion of an instruction or field (usually in code) specified in a computer program that is to perform an operation, namely an instruction sequence number, that tells the CPU which instruction to execute.
Step 203, setting the operation code and the corresponding application layer parameter in the data packet.
For example, the data packet format of the access layer of the bluetooth low energy protocol includes an operation code and application layer parameters, and different operation codes correspond to different application layer parameters, so as to form different data packets.
Optionally, if the operation code set in the data packet is 0x11, and the semantics of 0x11 are that the edge computing device and the sensor send the device type to the configuration device, setting the application layer parameters to include the device type and the feature description, where the device type includes the edge computing device and the sensor, and the feature description includes the capability of accessing the internet, the capability of not accessing the internet, collecting the first sensor data, and collecting the second sensor data, and the data packet is a device declaration data packet.
Optionally, the device declaration data packet includes an edge computing device declaration data packet and a sensor device declaration data packet, the device type included in the edge computing device declaration data packet is the edge computing device, the characteristic description indicates that the device has an internet access capability or does not have the internet access capability, the device type included in the sensor device declaration data packet is the sensor, and the characteristic description indicates that the first sensor data is collected or the second sensor data is collected.
Optionally, if the opcode set in the data packet is 0x12, and the semantic meaning of 0x12 is to configure the device list of the device broadcast edge computing device and the sensor, the application layer parameters are set to include the device list, and the data packet is a list broadcast data packet.
Optionally, if the operation code set in the data packet is 0x13, and the semantic meaning of 0x13 is that the first sensor applies to the first edge computing device for processing the data of the first sensor, setting the application layer parameter to null, and the data packet is a first computing application data packet.
Optionally, if the operation code set in the data packet is 0x14, and the semantic meaning of 0x14 is that the first edge computing device feeds back the application result of the first sensor, setting the application layer parameters including whether the device is idle and sensor queuing conditions, where the data packet is a first feedback data packet.
Optionally, if the operation code set in the data packet is 0x15, and the semantic meaning of 0x15 is that the second sensor applies to the second edge computing device to process the second sensor data, the application layer parameter is set to be null, and the data packet is a second computing application data packet.
Optionally, if the operation code set in the data packet is 0x16, and the semantic meaning of 0x16 is that the second edge computing device feeds back the second sensor application result, setting the application layer parameter including whether the device is idle and the sensor queuing condition, where the data packet is a second feedback data packet.
Step 204, the edge computing device and the sensor establish a connection according to the data packet, and the edge computing device receives and processes sensor data.
For example, the sensor and the edge computing device send the device type to the configuration device, that is, send the semantics of the operation code to the configuration device, that is, send a device declaration packet of the device type and the application layer parameters including the device type and the feature description to the edge computing device and the sensor, the configuration device receives the device declaration packet sent by the sensor and the edge computing device, and forming a device list according to the device declaration data packet, configuring the device to broadcast the list broadcast data packet in the networking, thereby broadcasting the device list to the sensors and edge computing devices, the edge computing devices and sensors receiving the list broadcast packets broadcast by the configuration device, downloading the device list from the list broadcast packets, and storing the device list to the local, establishing connection between the sensor and the edge computing device according to the device list, and receiving and processing sensor data by the edge computing device.
The device list comprises device types and numbers, unicast addresses, WIFI MAC addresses and feature descriptions.
Optionally, the device declaration data packet includes an edge computing device declaration data packet and a sensor device declaration data packet, the device type included in the edge computing device declaration data packet is the edge computing device, the characteristic description indicates that the device has an internet access capability or does not have the internet access capability, the device type included in the sensor device declaration data packet is the sensor, the characteristic description indicates that the first sensor data is collected or the second sensor data is collected, the sensor sends the sensor device declaration data packet to the configuration device, and the edge computing device sends the edge computing device declaration data packet to the configuration device.
Optionally, the first sensor sends a first computation application packet to all first edge computing devices with internet access function in the list in a group according to the unicast address of the first edge computing device in the device list, all the first edge computing devices with internet access function in the group receive the first computation application packet, send a first feedback packet to the first sensor, feed back to the sensor whether the first edge computing device is idle, if not, feed back to the sensor that the first edge computing device is queuing and needs to process the number of sensors of the first sensor data, the first sensor receives the first feedback packet from the first edge computing device, if there is an idle first edge computing device, randomly select an idle first edge computing device to establish connection, if there is no idle first edge computing device, selecting a first edge computing device with the least number of sensors needing to process first sensor data to establish connection, initiating WIFI Direct connection to the selected first edge computing device by the first sensor according to a WIFI MAC address of the first edge computing device, transmitting the first sensor data to the first edge computing device by a first sensor point-to-point, forwarding the first sensor data to cloud computing devices by the first edge computing device, transmitting a first computing result to the first edge computing device after the cloud computing devices complete processing, and forwarding the first computing result to the first sensor by the first edge computing device.
Optionally, the second sensor sends a second computation application data packet to all second edge computing devices without an internet access function in the device list in a group according to a unicast address of the second edge computing device in the device list, the second edge computing devices without an internet access function in the group receive the second computation application data packet, send a second feedback data packet to the second sensor, and feed back to the sensor whether the second edge computing device is idle, if not, feed back to the sensor that the second edge computing device is queuing and needs to process the number of sensors of the second sensor data, the second sensor receives the second feedback data packet of the second edge computing device, if there is an idle second edge computing device, randomly select an idle second edge computing device to establish connection, and if there is no idle second edge computing device, select a second edge computing device with the minimum number of sensors that are queuing and need to process the second sensor data, and send a second feedback data packet to the second sensor The computing equipment establishes connection, the second sensor initiates WIFI Direct connection to the selected second edge computing equipment according to the WIFI MAC address of the second edge computing equipment, the second sensor point transmits second sensor data to the second edge computing equipment, the second edge computing equipment processes the second sensor data, and the second edge computing equipment transmits a second computing result to the second sensor after processing is completed.
In order to better implement the above method, an embodiment of the present invention may further provide a sensor data processing apparatus, where the sensor data processing apparatus may be specifically integrated in a network device, and the network device may be a terminal or the like.
For example, as shown in fig. 3, the processing device of the sensor data may include a construction unit 301, an operation code definition unit 302, a setting unit 303, and a processing unit 304, as follows:
(1) building Unit 301
A building unit 301, configured to build a network comprising at least one edge computing device and at least one sensor based on a bluetooth low energy protocol.
For example, the building unit 301 builds a network by using the edge computing devices and the sensors as device nodes, and these devices transmit data packets to each other according to frame transmission and transmit information to each other in compliance with the bluetooth low energy protocol. The construction unit 301 sets one of the edge calculation devices as a configuration device.
(2) Opcode definition unit 302
An operation code definition unit 302, configured to define an operation code included in a data packet transmitted between the edge computing device and the sensor.
For example, the opcode definition unit 302 defines different opcodes and defines specific different semantics for the different opcodes.
Optionally, the opcode defining unit 302 defines semantics of an opcode 0x11 as an edge computing device and a device type sent by a sensor to a configuration device, the opcode defining unit 302 defines semantics of an opcode 0x12 as a list of devices for the configuration device to broadcast the edge computing device and the sensor, the opcode defining unit 302 defines semantics of an opcode 0x13 as a first sensor applying to process first sensor data from the first edge computing device, the opcode defining unit 302 defines semantics of an opcode 0x14 as a first sensor application result fed back by the first edge computing device, the opcode defining unit 302 defines semantics of an opcode 0x15 as a second sensor applying to process second sensor data from the second edge computing device, and the opcode defining unit 302 defines semantics of an opcode 0x16 as a second sensor application result fed back by the second edge computing device.
(3) Setting unit 303
A setting unit 303, configured to set the operation code and the corresponding application layer parameter in the data packet.
For example, the setting unit 303 sets different operation codes in a data packet format of an access layer of the bluetooth low energy protocol, and then the setting unit 303 sets corresponding application layer parameters in the data packet according to the different operation codes.
Optionally, if the operation code set in the data packet by the setting unit 303 is 0x11, the set application layer parameters include a device type and a feature description; if the operation code set in the data packet by the setting unit 303 is 0x12, the set application layer parameters include a device list; if the operation code set in the data packet by the setting unit 303 is 0x13, the set application layer parameter is null; if the operation code set in the data packet by the setting unit 303 is 0x14, the set application layer parameters include whether the device is idle and sensor queuing conditions; if the operation code set in the data packet by the setting unit 303 is 0x15, the set application layer parameter is null; if the operation code set in the data packet by the setting unit 303 is 0x16, the set application layer parameters include whether the device is idle and sensor queuing condition.
(4) Processing unit 304
A processing unit 304, configured to enable the edge computing device and the sensor to establish a connection according to the data packet, and the edge computing device receives and processes sensor data.
For example, after the first sensor establishes a connection with the first edge computing device according to the device list, the first sensor sends first sensor data to the first edge computing device, which processes the first sensor data using the processing unit 304.
Optionally, after the second sensor establishes a connection with the second edge computing device according to the device list, the second sensor sends second sensor data to the second edge computing device, and the second edge computing device processes the second sensor data by using the processing unit 304.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The foregoing describes in detail a method and an apparatus for processing sensor data provided in an embodiment of the present application, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the foregoing embodiment is only used to help understand the technical solution and the core idea of the present application; those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications or substitutions do not depart from the spirit and scope of the present disclosure as defined by the appended claims.

Claims (10)

1. A method of processing sensor data, comprising:
constructing a network comprising at least one edge computing device and at least one sensor based on a Bluetooth Low energy protocol;
defining an operation code included in a data packet transmitted by the edge computing device and the sensor to each other;
setting the operation code and the corresponding application layer parameter in the data packet;
the edge computing device and the sensor establish a connection based on the data packet, and the edge computing device receives and processes sensor data.
2. The method of claim 1, wherein the edge computing device comprises a first edge computing device having internet access functionality and a second edge computing device having no internet access functionality, wherein one of the edge computing devices is a configuration device, wherein the sensors comprise a first sensor that collects first sensor data and a second sensor that collects second sensor data, wherein the first sensor data is greater in quantity than the second sensor data.
3. The method of claim 2, wherein the semantics of the opcode include the edge computing device and the sensor sending a device type to the configuration device;
the configuration device broadcasting a device list of the edge computing devices and the sensors;
the first sensor applying for processing the first sensor data to the first edge computing device;
the first edge computing device feeds back a first sensor application result;
the second sensor applying to the second edge computing device for processing the second sensor data;
and the second edge computing device feeds back the application result of the second sensor.
4. The method of claim 2, wherein setting the operation code and the corresponding application layer parameter in the data packet comprises:
if the semantics of the operation codes included in the data packet are that the edge computing device and the sensor send device types to the configuration device, setting the application layer parameters including the device types and the characteristic descriptions as device declaration data packets;
if the semantics of the operation codes included in the data packet are that the configuration equipment broadcasts the equipment list of the edge computing equipment and the sensor, setting the application layer parameters including the equipment list as a list broadcast data packet;
if the semantics of the operation code included in the data packet is that the first sensor applies for processing the first sensor data to the first edge computing device, setting the application layer parameter to be null, and using the null as a first computing application data packet;
if the semantics of the operation codes included in the data packet are the application results fed back to the first sensor by the first edge computing device, setting the application layer parameters including whether the device is idle or not and sensor queuing conditions as a first feedback data packet;
if the semantics of the operation code included in the data packet is that the second sensor applies to the second edge computing device for processing the second sensor data, setting the application layer parameter to be null, and using the null as a second computing application data packet;
and if the semantics of the operation codes included in the data packet is that the second edge computing device feeds back the application result of the second sensor, setting the application layer parameters including whether the device is idle and the sensor queuing condition as a second feedback data packet.
5. The method of claim 4, wherein the device type includes the edge computing device and the sensor, and wherein the characterization includes an ability to access the internet, an ability to not access the internet, collecting the first sensor data, and collecting the second sensor data.
6. The method of claim 5, wherein the device declaration data package includes an edge computing device declaration data package including the device type as the edge computing device, wherein the characterization is of the internet access capability or the internet non-access capability, and wherein the sensor device declaration data package includes the device type as the sensor, wherein the characterization is of the first sensor data or of the second sensor data.
7. The method of claim 6, wherein the edge computing device and the sensor establish a connection based on the data packet, the edge computing device receiving and processing sensor data, comprising:
the configuration device receives the device declaration data packets sent by the sensor and the edge computing device, and forms a device list of the edge computing device and the sensor, wherein the device list comprises device types and serial numbers, unicast addresses, WIFI MAC addresses and feature descriptions;
the configuration equipment broadcasts the list broadcast data packet in the networking;
the edge computing device and the sensor receive the list broadcast data packet to acquire the device list;
the sensor establishes a connection with the edge computing device according to the device list, and the edge computing device receives and processes sensor data.
8. The method of claim 7, wherein the configuring device receiving the device declaration data packet sent by the sensor and the edge computing device comprises:
the configuration equipment receives the edge computing equipment declaration data packet sent by the edge computing equipment;
and the configuration equipment receives the sensor equipment declaration data packet sent by the sensor.
9. The method of claim 7, wherein the sensor establishes a connection with the edge computing device according to the device list, and wherein the edge computing device receives and processes sensor data, comprising:
the first sensor sends the first calculation application data packet to the first edge computing device according to the device list and receives the first feedback data packet sent by the first edge computing device, and the second sensor sends the second calculation application data packet to the edge computing device according to the device list and receives the second feedback data packet sent by the second edge computing device;
the first sensor is connected with the first edge computing device according to the first feedback data packet, the first edge computing device receives the first sensor data, transmits the first sensor data to the cloud computing device, receives a first computing result sent by the cloud computing device, transmits the first computing result to the first sensor, the second sensor is connected with the second edge computing device according to the second feedback data packet, the second edge computing device receives and processes the second sensor data, a second computing result is obtained, and the second computing result is transmitted to the second sensor.
10. An apparatus for processing sensor data, comprising:
the system comprises a construction unit, a data processing unit and a data processing unit, wherein the construction unit is used for constructing a network comprising at least one edge computing device and at least one sensor based on a low-power Bluetooth protocol;
an operation code definition unit, configured to define an operation code included in a data packet transmitted between the edge computing device and the sensor;
a setting unit, configured to set the operation code and the corresponding application layer parameter in the data packet;
and the processing unit is used for enabling the edge computing equipment and the sensor to establish connection according to the data packet, and the edge computing equipment receives and processes the sensor data.
CN202010487801.0A 2020-06-02 2020-06-02 Sensor data processing method and device Active CN111654833B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010487801.0A CN111654833B (en) 2020-06-02 2020-06-02 Sensor data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010487801.0A CN111654833B (en) 2020-06-02 2020-06-02 Sensor data processing method and device

Publications (2)

Publication Number Publication Date
CN111654833A true CN111654833A (en) 2020-09-11
CN111654833B CN111654833B (en) 2023-09-19

Family

ID=72347008

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010487801.0A Active CN111654833B (en) 2020-06-02 2020-06-02 Sensor data processing method and device

Country Status (1)

Country Link
CN (1) CN111654833B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180049179A1 (en) * 2016-08-09 2018-02-15 Wipro Limited Method and a system for identifying operating modes of communications in mobile-edge computing environment
US20180365635A1 (en) * 2017-06-15 2018-12-20 Flex Ltd. Systems and methods for hybrid cloud-edge computing method for automated decision making and probabilistic occurrence
US20190090128A1 (en) * 2016-05-16 2019-03-21 Huawei Technologies Co., Ltd. Data transmission method and apparatus
CN110460971A (en) * 2019-09-24 2019-11-15 上海禾视信息技术有限公司 A kind of motive objects connection cut-in method based on edge calculations
US20190392328A1 (en) * 2018-06-25 2019-12-26 International Business Machines Corporation Cognitive computing systems and services utilizing internet of things environment
CN110958299A (en) * 2019-10-30 2020-04-03 浙江省北大信息技术高等研究院 Edge computing processing platform integrating multi-group network protocol multi-edge computing framework
CN110994798A (en) * 2019-12-16 2020-04-10 深圳供电局有限公司 Substation equipment monitoring system
CN111030914A (en) * 2019-12-19 2020-04-17 腾讯科技(深圳)有限公司 Data transmission method and data transmission system
CN111182076A (en) * 2020-01-02 2020-05-19 合肥工业大学 Cloud-edge cooperative smart power grid monitoring system and resource allocation and scheduling method thereof

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190090128A1 (en) * 2016-05-16 2019-03-21 Huawei Technologies Co., Ltd. Data transmission method and apparatus
US20180049179A1 (en) * 2016-08-09 2018-02-15 Wipro Limited Method and a system for identifying operating modes of communications in mobile-edge computing environment
US20180365635A1 (en) * 2017-06-15 2018-12-20 Flex Ltd. Systems and methods for hybrid cloud-edge computing method for automated decision making and probabilistic occurrence
US20190392328A1 (en) * 2018-06-25 2019-12-26 International Business Machines Corporation Cognitive computing systems and services utilizing internet of things environment
CN110460971A (en) * 2019-09-24 2019-11-15 上海禾视信息技术有限公司 A kind of motive objects connection cut-in method based on edge calculations
CN110958299A (en) * 2019-10-30 2020-04-03 浙江省北大信息技术高等研究院 Edge computing processing platform integrating multi-group network protocol multi-edge computing framework
CN110994798A (en) * 2019-12-16 2020-04-10 深圳供电局有限公司 Substation equipment monitoring system
CN111030914A (en) * 2019-12-19 2020-04-17 腾讯科技(深圳)有限公司 Data transmission method and data transmission system
CN111182076A (en) * 2020-01-02 2020-05-19 合肥工业大学 Cloud-edge cooperative smart power grid monitoring system and resource allocation and scheduling method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
赵小虎;张凯;赵志凯;霍羽;: "矿山物联网网络技术发展趋势与关键技术", 工矿自动化, no. 04, pages 5 - 11 *

Also Published As

Publication number Publication date
CN111654833B (en) 2023-09-19

Similar Documents

Publication Publication Date Title
US10637747B2 (en) Network node availability prediction based on past history data
EP3836577B1 (en) Session management method and device for user groups
CN110121902B (en) Communication establishment method and terminal
CN103222287B (en) For the probe message that direct link connects
US20210092792A1 (en) Communication method and apparatus
Martínez et al. The smart doorbell: A proof-of-concept implementation of a bluetooth mesh network
EP3893530B1 (en) Communication method and communication device
US20170251428A1 (en) Methods and Nodes for M2M Communication
CN111866824A (en) Method and equipment for establishing communication connection and data transmission
WO2022111646A1 (en) Computing-aware session management method and communication device
JP5476287B2 (en) Bluetooth network communication method and wireless information distribution apparatus thereof
US20160007136A1 (en) Application recommendations
CN111654833A (en) Sensor data processing method and device
EP4373140A1 (en) Data transmission method applied to short-range wireless communication, and communication device
WO2022067816A1 (en) Network edge computing method and communication apparatus
CN107466018A (en) The data transferring method and terminal device of a kind of terminal device
EP2870536B1 (en) Method and apparatus for sensor data processing
CN114025016B (en) Data forwarding method, device and storage medium
WO2023169423A1 (en) Split inference method and apparatus
WO2023165359A1 (en) Wi-fi p2p connection method, apparatus and system
WO2022126399A1 (en) Communication method and communication apparatus
CN117641341A (en) Data transmission method and device and electronic equipment
TW202249505A (en) Computing resource scheduling method and apparatus
CN106464304A (en) Resource sharing method and terminal
CN116684996A (en) Communication control method, communication system, 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
GR01 Patent grant
GR01 Patent grant