WO2021147021A1 - 物联网数据获取及封装装置和方法 - Google Patents
物联网数据获取及封装装置和方法 Download PDFInfo
- Publication number
- WO2021147021A1 WO2021147021A1 PCT/CN2020/073885 CN2020073885W WO2021147021A1 WO 2021147021 A1 WO2021147021 A1 WO 2021147021A1 CN 2020073885 W CN2020073885 W CN 2020073885W WO 2021147021 A1 WO2021147021 A1 WO 2021147021A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- data
- data packet
- time
- sensor
- collection
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/30—Services specially adapted for particular environments, situations or purposes
- H04W4/38—Services specially adapted for particular environments, situations or purposes for collecting sensor information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
Definitions
- the present invention belongs to the field of information technology, and in particular relates to a device and method for obtaining and encapsulating Internet of Things data.
- each sensor node equipping each sensor node with a local clock will cause the sensor network to be very complex and expensive. If each sensor node is not equipped with a local clock, it will not be able to effectively detect whether data is lost, that is, it will not be able to achieve better data loss prevention standards.
- this application designs a data collection and packaging device and method for the situation that the sensor node is not equipped with a local clock, which realizes the synchronous collection of sensor data and facilitates the detection of whether the data is lost.
- the IoT data acquisition and packaging device and method proposed in this application perform synchronous data collection on each sensor of the sensor array through the IoT data acquisition and packaging device and method, package the collected data to form a transmission data packet, and determine each transmission data Packet information such as timestamp and sequence number in the packet. Then, at the receiving end of the data packet, the data packet is detected according to the packet information in the data packet to determine whether the data packet is lost, and then it is judged whether the IoT data acquisition and packaging device is working abnormally.
- an IoT data acquisition and packaging device which includes a collection unit, a processing unit and a transmission unit, wherein:
- the collecting unit collects sensor data of a group of sensors in the sensor array according to a preset time interval, and packs the sensor data into a data frame;
- the processing unit receives a data frame from the acquisition unit and packs more than one data frame into a first data packet, wherein the first data packet includes a first original time stamp and a first sequence number;
- the transmission unit receives the first data packet from the processing unit, encapsulates more than one first data packet into a second data packet, and sends the second data packet, wherein the second data packet
- the packet includes the second original timestamp and the second sequence number.
- an Internet of Things data acquisition and packaging method which includes:
- the IoT data acquisition and packaging device and method of the present invention when the sensors in the sensor array are not equipped with a local clock, the synchronous collection of each sensor in the sensor array can be realized, and the time stamp and serial number required for packaging can be determined Wait for packet information to facilitate subsequent data detection.
- the solution proposed by the present invention does not require the sensor array to be equipped with a local clock, and has a wider application range.
- Fig. 1 is a schematic diagram of a signal acquisition sensor array according to an embodiment.
- Fig. 2 is a cross-sectional view of the signal acquisition sensor array shown in Fig. 1 according to an embodiment.
- Fig. 3 is a schematic diagram of an application scenario of an IoT data acquisition and packaging device according to an embodiment of the present invention.
- Fig. 4 is a flowchart of a method for obtaining and encapsulating Internet of Things data according to an embodiment of the present invention.
- Fig. 5 is a flowchart of a method for acquiring and encapsulating Internet of Things data according to another embodiment of the present invention.
- Fig. 1 is a schematic diagram of a signal acquisition sensor array according to an embodiment.
- Fig. 2 is a cross-sectional view of the signal acquisition sensor array shown in Fig. 1 according to an embodiment.
- a signal acquisition sensor array 10 includes: a connection layer 105, at least two sensor units 111 and 112, and a signal acquisition circuit 107 for connecting each sensor unit 111 or 112 with The signal line 104 electrically connected to the signal collection circuit 107, each of the sensor units 111 or 112 further includes: a first shock-resistant substrate 101 or 102; a sensor element 103, which is connected to the first shock-resistant substrate 101 or 102 corresponds one-to-one and is arranged between the first shock-absorbing substrate 101 or 102 and the connecting layer 105; wherein the at least two sensor units are arranged in an array on the connecting layer at intervals.
- the shock-absorbing substrate here refers to a material that has a shock-absorbing effect (attenuation effect), such as sponge, rubber, foam and other materials.
- the shock-absorbing substrate can be made into a sheet shape or a block shape with a recessed shape. If it is made into a block with a recessed shape, the sensor element can be accommodated in the recessed shape, and by adjusting the size of the recess, the shock resistance effect can be further adjusted.
- the signal lines illustrated in Figures 1 and 2 are connected in series between the sensor units in sequence, but those skilled in the art should know that they can also be connected to each sensor unit 111 or 112 and the signal acquisition circuit 107 with signal lines. between.
- At least two kinds of sensor units are arranged in an array at intervals, and the sensor elements in the sensor units are arranged in a one-to-one correspondence with the first shock-absorbing substrate and are arranged between the first shock-absorbing substrate and the connecting layer, so that Different signals are attenuated to different degrees after being transmitted to each sensor unit, and because the first shock-absorbing substrate is separated, the strong coupling of forces between each sensor unit is released, resulting in different physiological signals with large differences in signal amplitude All are accurately detected by the sensor array.
- Figure 1 shows an 8 ⁇ 8 array. Those skilled in the art need to understand that this is only an example, and rows and columns of other values can also be used for combination.
- a substrate layer 106 is also provided between each sensor element 103 and the connection layer 105, which is used to carry the sensor element and the related conditioning circuit, so as to have a higher overall rigidity and avoid damage.
- a plurality of the sensor units 111 or 112 share a signal collection circuit 107.
- a larger area of acquisition can be achieved with fewer acquisition circuits, which not only helps to save costs, but also reduces the time interval of signal acquisition and increases the rate of signal acquisition by using technologies such as serial buses.
- at least one signal acquisition circuit 107 is further connected to the central processing unit of the entire array.
- the product of the shock-absorbing characteristics of the first shock-absorbing substrate included in the sensor unit 111, the sensitivity of the included sensor element, and the sensitivity of the corresponding signal acquisition circuit is that the product of the other sensor unit 112 includes The product of the shock-absorbing characteristics of the first shock-absorbing substrate, the sensitivity of the included sensor element, and the sensitivity of the corresponding signal acquisition circuit is more than twice the product.
- the anti-vibration characteristic refers to the attenuation multiple of the vibration.
- the anti-vibration characteristic of a material is 40%, which means that it can attenuate the vibration by 40%, and only 60% of the vibration can be transmitted from one side to the other.
- the meaning of the sensitivity of the sensor and the sensitivity of the acquisition circuit has been fully defined in the prior art, and will not be repeated for brevity.
- the sensor element may be a piezoelectric sheet, or a strain gauge, a piezoresistive sensor, etc., or a combination of multiple kinds thereof.
- the sensor element is provided with an operational amplifier circuit, which can amplify the initial signal.
- the different sensitivities of the sensor elements can be achieved by setting different element types or different magnifications of operational amplifier circuits.
- the sensor arrays of Figures 1 and 2 include multiple sensors for collecting signals. It should be noted that Fig. 1 and Fig. 2 only show a specific way of the structure and composition of the sensor array for collecting signals. Those skilled in the art can understand that any other forms of signal-collecting sensor arrays can be used, and these all fall within the scope of this application.
- an IoT data acquisition and packaging device performs synchronous data collection on each sensor of the sensor array, packs the collected data to form a transmission data packet, and determines each Packet information such as the time stamp and sequence number in the transmission data packet. Then, at the receiving end of the data packet, the data packet is detected according to the packet information in the data packet to determine whether the data packet is lost, and then it is judged whether the IoT data acquisition and packaging device is working abnormally.
- Fig. 3 is a schematic diagram of an application scenario of an IoT data acquisition and packaging device according to an embodiment of the present invention.
- the sensor array is a pressure sensor array, including a plurality of sensors.
- signals such as human body movement, breathing, and heartbeat
- the sensor array may be composed of 8 ⁇ 8 sensors, such as the sensor arrays shown in FIGS. 1 and 2. It should be understood that the sensor array may also be composed of any number of sensors.
- the sensor array adopts a multi-stage connection form, that is, a sensor array uses multiple micro control units (MCUs), and one MCU is connected to multiple sensor signals, and the MCU of this level does not have a local clock.
- MCUs micro control units
- the sensor array is composed of 8 ⁇ 8 sensors.
- the sensor array uses 8 MCUs, and one MCU is connected to 8 sensor signals.
- the MCU connected to the sensor signal is called the acquisition unit.
- the acquisition unit can include STM32 single-chip microcomputer without a local clock. All acquisition units are connected to the first upper-level MCU.
- the first upper-level MCU is called the processing unit.
- the connection between the acquisition unit and the processing unit includes CAN bus.
- the processing unit includes STM32 single-chip microcomputer.
- the local clock processes the data released by the acquisition unit.
- the processing unit is connected to the second upper-level MCU.
- the second upper-level MCU is called the transmission unit.
- the connection between the processing unit and the transmission unit includes a serial port.
- the transmission unit includes an ESP8266 single-chip microcomputer, equipped with a Wi-Fi chip and a local clock.
- the cloud server sends out a data packet.
- the IoT data acquisition and packaging device includes a collection unit, a processing unit and a transmission unit.
- the transmission unit connects to the public network through the WiFi chip, and uses the Simple Network Time Protocol (SNTP) to obtain the time of the network time server. While calibrating the local clock of the transmission unit, it pushes the time to the processing unit so that the processing unit has Precise physical time. Although each collector does not have a local clock, it has a high-precision crystal oscillator that can perform relative time timing.
- the processing unit will periodically broadcast the timing instruction to all the acquisition units, and all the acquisition units receive the timing instruction After that, the relative time is recalculated from the same starting point. The calculation of the relative time will not produce an obvious cumulative deviation in a long period, so the broadcast period of the time synchronization command can be longer to improve the system efficiency and meet the real-time requirements.
- the functions of the acquisition unit, the processing unit, and the transmission unit are as follows.
- the collection unit it collects sensor data of a group of sensors in the sensor array according to a preset time interval, and packs the sensor data into a data frame.
- the sensor array is divided into 8 groups, corresponding to 8 collection units, that is, one collection unit collects data from 8 sensors.
- a collection unit collects sensor data of the corresponding 8 sensors according to a preset time interval (for example, 10 milliseconds). This preset time interval is determined based on the relative time calculated by the acquisition unit. Specifically, the collection unit recalculates the relative time from the same time starting point in response to the time synchronization instruction of the processing unit, and collects the data of a corresponding group of sensors when the relative time reaches a preset time interval. Then, the acquisition unit packs the sensor data into a data frame.
- a preset time interval for example, 10 milliseconds.
- the acquisition unit allocates a corresponding identification number to the sensor data, packs the sensor data and the identification number into a data frame, and the acquisition unit according to the number of data acquisition modes is
- the sensor data is assigned a corresponding identification number, two or more different identification numbers are determined for each data collection mode, and the two or more different identification numbers are used according to a sequential polling mechanism.
- the data collection mode includes the regular collection rate mode and the high collection rate mode.
- two or more different identification numbers are determined.
- three identification numbers are determined, such as A, B and C
- three identification numbers such as D, E, and F.
- the identification number assigned to the sensor data collected for the first time is A
- the identification number assigned to the sensor data collected for the second time is B
- the identification number assigned to the sensor data collected for the third time is C
- the identification number assigned to the sensor data collected for the fourth time is A..., that is, A, B, and C are used according to the sequential polling mechanism.
- the identification number assignment in the high-speed acquisition rate mode is similar to that in the regular acquisition rate mode.
- an identification number is assigned to each data frame, which is convenient for the subsequent data detection process to count the number of data frames.
- the sequential polling mechanism is used to assign the identification number to the data frame, then the data frame is received During the process, the sequence of the identification numbers presented should also conform to the sequential polling mechanism, otherwise, there may be data loss, which can facilitate the judgment of whether the data is lost during the data detection process.
- the processing unit receives the data frame from the acquisition unit and packs more than one data frame into a first data packet.
- How many data frames the processing unit packs into the first data packet is mainly based on the size of the buffer of the processing unit.
- the larger the buffer the more data frames that can be packed together, and vice versa.
- the length of each data frame is 8 bytes.
- the processing unit uses the time when the first data frame in each first data packet is received as the first original time stamp of the first data packet, that is, the "starting point" of the acquisition time of the new data packet, and the processing unit receives the data from the transmission unit
- the time of the network time server is received, the local time of the processing unit is calibrated by the time of the network time server, and then the first original time stamp is determined according to the local time.
- a first serial number is added to each first data packet, and the serial number ranges from 0 to 65535 repeatedly in increments.
- the first data packet includes the first original time stamp and the first serial number.
- Table 1 shows the structure of the first data packet established:
- the device ID in this embodiment refers to a device that includes a sensor array.
- the device that includes the sensor array is a mattress
- the device ID refers to the mattress.
- Table 1 is only an exemplary display of the packet header, function code, first original timestamp and other fields and the byte length of the data. Those skilled in the art can think of any other suitable words for each field and data. Section length, these are all within the scope of the disclosure of this application.
- the transmission unit For the transmission unit, it encapsulates more than one first data packet into a second data packet and sends the second data packet.
- the transmission unit encapsulates into the second data packet is mainly based on the memory size of the transmission unit. Generally speaking, the larger the memory, the more the number of first data packets that can be encapsulated together, and vice versa. few.
- the length of each first data packet includes 28 data frames, and each data frame has 7 bytes. When every two first data packets are accumulated, the transmission unit will transfer these two first data packets.
- the data packets form a second data packet for cloud transmission, that is, two consecutive first data packets logically belong to one second data packet.
- first data packets of the second data packet have the same device ID, and multiple first data packets will be allocated Different first data packet numbers, for example, there are two first data packets, and the two data packet numbers are 1 and 2, respectively.
- the second data packet includes a second original time stamp and a second sequence number.
- the second original time stamp and the second sequence number are respectively the same as the first original time stamp and the first sequence number corresponding to the first first data packet in the second data packet. That is to say, for the case where a second data packet is formed by a first data packet, the second original time stamp and the second sequence number correspond to the first original time stamp and the first sequence number in a one-to-one correspondence.
- the above first data packet forms a second data packet
- the second original time stamp of the second data packet is the first original time stamp and the first sequence number of the first first data packet in the second data packet, namely
- the other first data packets of the second data packet share the first original time stamp and the first sequence number of the first first data packet with the first first data packet.
- the transmission unit Each time the transmission unit receives a group of first data packets, it reassembles and encapsulates them into a second data packet, adds upload timestamp and other content when sending to the cloud and sends it to the cloud server, where the transmission unit obtains the time of the network time server , Use the time of the network time server to calibrate the local clock of the transmission unit to obtain accurate local time.
- the upload timestamp is determined based on the local time of the transmission unit.
- Table 2 shows the second data packet structure established:
- Table 2 is only an exemplary display of the packet header, the second original timestamp, the second sequence number and other fields and the byte length of the data. Those skilled in the art can imagine that any other suitable bytes can be used for each field and data. Length, these are all within the scope of the disclosure of this application.
- the IoT data acquisition and packaging device of the present invention when the sensors in the sensor array are not equipped with a local clock, the synchronous collection of each sensor in the sensor array can be realized, and the time stamp and serial number required for packaging can be determined. Information to facilitate subsequent data detection.
- the solution proposed by the present invention does not require the sensor array to be equipped with a local clock, and has a wider application range.
- an IoT data acquisition and packaging method is proposed.
- each sensor of the sensor array is synchronized data collection, the collected data is packaged to form a transmission data packet, and the data is determined Packet information such as timestamp and sequence number in each transmission data packet.
- Packet information such as timestamp and sequence number in each transmission data packet.
- the data packet is detected according to the packet information in the data packet to determine whether the data packet is lost.
- the method for acquiring and packaging IoT data includes the following steps.
- Step S401 Collect sensor data of a group of sensors in the sensor array according to a preset time interval, and pack the sensor data into a data frame.
- the sensor array is divided into 8 groups, corresponding to 8 collection units, that is, one collection unit collects data from 8 sensors.
- a collection unit collects sensor data of the corresponding 8 sensors according to a preset time interval (for example, 10 milliseconds). This preset time interval is determined based on the relative time calculated by the acquisition unit. Specifically, the collection unit recalculates the relative time from the same time starting point in response to the time synchronization instruction of the processing unit, and collects the data of a corresponding group of sensors when the relative time reaches a preset time interval. Then, the acquisition unit packs the sensor data into a data frame.
- a preset time interval for example, 10 milliseconds.
- the acquisition unit allocates a corresponding identification number to the sensor data, packs the sensor data and the identification number into a data frame, and the acquisition unit according to the number of data acquisition modes is
- the sensor data is assigned a corresponding identification number, two or more different identification numbers are determined for each data collection mode, and the two or more different identification numbers are used according to a sequential polling mechanism.
- the data collection mode includes the regular collection rate mode and the high collection rate mode.
- two or more different identification numbers are determined.
- three identification numbers are determined, such as A, B and C
- three identification numbers such as D, E, and F.
- the identification number assigned to the sensor data collected for the first time is A
- the identification number assigned to the sensor data collected for the second time is B
- the identification number assigned to the sensor data collected for the third time is C
- the identification number assigned to the sensor data collected for the fourth time is A..., that is, A, B, and C are used according to the sequential polling mechanism.
- the identification number assignment in the high-speed acquisition rate mode is similar to that in the regular acquisition rate mode.
- an identification number is assigned to each data frame, which is convenient for the subsequent data detection process to count the number of data frames.
- the sequential polling mechanism is used to assign the identification number to the data frame, then the data frame is received During the process, the sequence of the identification numbers presented should also conform to the sequential polling mechanism, otherwise, there may be data loss, which can facilitate the judgment of whether the data is lost during the data detection process.
- Step S402 Pack more than one data frame into a first data packet.
- how many data frames the processing unit packs into the first data packet is mainly based on the size of the buffer of the processing unit.
- the larger the buffer the more data frames can be packed together. On the contrary, the less.
- the length of each data frame is 8 bytes.
- the processing unit uses the time when the first data frame in each first data packet is received as the first original time stamp of the first data packet, that is, the "starting point" of the acquisition time of the new data packet, and the processing unit receives the data from the transmission unit
- the time of the network time server is received, the local time of the processing unit is calibrated by the time of the network time server, and then the first original time stamp is determined according to the local time.
- a first serial number is added to each first data packet, and the serial number ranges from 0 to 65535 repeatedly in increments.
- the first data packet includes the first original time stamp and the first serial number.
- Step S403 encapsulating more than one of the first data packets into a second data packet and sending the second data packet
- how many first data packets the transmission unit encapsulates into the second data packet is mainly based on the size of the memory of the transmission unit.
- the larger the memory the first data packet that can be encapsulated together.
- the length of each first data packet includes 28 data frames, and each data frame has 7 bytes.
- the data packets form a second data packet for cloud transmission, that is, two consecutive first data packets logically belong to one second data packet.
- first data packets of the second data packet have the same device ID, and multiple first data packets will be allocated Different first data packet numbers, for example, there are two first data packets, and the two data packet numbers are 1 and 2, respectively.
- the second data packet includes a second original time stamp and a second sequence number.
- the second original time stamp and the second sequence number are respectively the same as the first original time stamp and the first sequence number corresponding to the first first data packet in the second data packet. That is to say, for the case where a second data packet is formed by a first data packet, the second original time stamp and the second sequence number correspond to the first original time stamp and the first sequence number in a one-to-one correspondence.
- the above first data packet forms a second data packet
- the second original time stamp of the second data packet is the first original time stamp and the first sequence number of the first first data packet in the second data packet, namely
- the other first data packets of the second data packet share the first original time stamp and the first sequence number of the first first data packet with the first first data packet.
- the transmission unit Each time the transmission unit receives a group of first data packets, it reassembles and encapsulates them into a second data packet, adds upload timestamp and other content when sending to the cloud and sends it to the cloud server, where the transmission unit obtains the time of the network time server , Use the time of the network time server to calibrate the local clock of the transmission unit to obtain accurate local time.
- the upload timestamp is determined based on the local time of the transmission unit.
- the method for acquiring and packaging IoT data includes the following steps.
- Step S501 Receive the time of the network time server, and calibrate the local time based on the time of the network time server.
- the processing unit of the Internet of Things data acquisition and packaging device receives the time of the network time server from the transmission unit, and calibrates the local time of the processing unit through the time of the network time server.
- Step S502 Calculate the relative time in response to the time synchronization instruction.
- the acquisition unit of the IoT data acquisition and packaging device recalculates the relative time from the same starting point in response to the time synchronization instruction of the processing unit.
- Step S503 Collect sensor data of a group of sensors in the sensor array according to a preset time interval.
- the sensor array is divided into 8 groups, corresponding to 8 collection units, that is, one collection unit collects data from 8 sensors.
- a collection unit collects sensor data of the corresponding 8 sensors according to a preset time interval (for example, 10 milliseconds). This preset time interval is determined according to the relative time calculated by the collecting unit described in step S502. When the relative time reaches the preset time interval, the data of the corresponding set of sensors is collected. Then, the acquisition unit packs the sensor data into a data frame.
- a preset time interval for example, 10 milliseconds.
- Step S504 Assign a corresponding identification number to the sensor data.
- the acquisition unit allocates a corresponding identification number to the sensor data, and the acquisition unit allocates a corresponding identification number to the sensor data according to the number of data acquisition modes, for each type of data
- the acquisition mode determines two or more different identification numbers, and uses the two or more different identification numbers according to a sequential polling mechanism.
- the sensor data is assigned an identification number.
- the data collection mode includes the regular collection rate mode and the high collection rate mode.
- two or more different identification numbers are determined.
- three identification numbers are determined, such as A, B and C, for the high-speed acquisition rate mode, determine three identification numbers, such as D, E, and F.
- the identification number assigned to the sensor data collected for the first time is A
- the identification number assigned to the sensor data collected for the second time is B
- the identification number assigned to the sensor data collected for the third time is C
- the identification number assigned to the sensor data collected for the fourth time is A..., that is, A, B, and C are used according to the sequential polling mechanism.
- the identification number assignment in the high-speed acquisition rate mode is similar to that in the regular acquisition rate mode.
- an identification number is assigned to each data frame, which is convenient for the subsequent data detection process to count the number of data frames.
- the sequential polling mechanism is used to assign the identification number to the data frame, then the data frame is received During the process, the sequence of the identification numbers presented should also conform to the sequential polling mechanism, otherwise, there may be data loss, which can facilitate the judgment of whether the data is lost during the data detection process.
- Step S505 Pack the sensor data into a data frame.
- step S504 packing the sensor data into a data frame is based on sensor data.
- step S504 packing the sensor data into a data frame is based on the sensor data and the identification number. .
- Step S506 Pack more than one data frame into a first data packet.
- how many data frames the processing unit packs into the first data packet is mainly based on the size of the buffer of the processing unit.
- the larger the buffer the more data frames can be packed together. On the contrary, the less.
- the length of each data frame is 8 bytes.
- the processing unit uses the time when the first data frame in each first data packet is received as the first original time stamp of the first data packet, that is, the "starting point" of the collection time of the new data packet, as described in step S501
- the processing unit receives the time of the network time server from the transmission unit, calibrates the local time of the processing unit through the time of the network time server, and then determines the first original time stamp according to the local time.
- a first serial number is added to each first data packet, and the serial number ranges from 0 to 65535 repeatedly in increments.
- the first data packet includes the first original time stamp and the first serial number.
- Step S507 Encapsulate more than one of the first data packets into a second data packet and send the second data packet.
- how many first data packets the transmission unit encapsulates into the second data packet is mainly based on the size of the memory of the transmission unit.
- the larger the memory the first data packet that can be encapsulated together.
- the length of each first data packet includes 28 data frames, and each data frame has 7 bytes.
- the data packets form a second data packet for cloud transmission, that is, two consecutive first data packets logically belong to one second data packet.
- first data packets of the second data packet have the same device ID, and multiple first data packets will be allocated Different first data packet numbers, for example, there are two first data packets, and the two data packet numbers are 1 and 2, respectively.
- the second data packet includes a second original time stamp and a second sequence number.
- the second original time stamp and the second sequence number are respectively the same as the first original time stamp and the first sequence number corresponding to the first first data packet in the second data packet. That is to say, for the case where a second data packet is formed by a first data packet, the second original time stamp and the second sequence number correspond to the first original time stamp and the first sequence number in a one-to-one correspondence.
- the above first data packet forms a second data packet
- the second original time stamp of the second data packet is the first original time stamp and the first sequence number of the first first data packet in the second data packet, namely
- the other first data packets of the second data packet share the first original time stamp and the first sequence number of the first first data packet with the first first data packet.
- the transmission unit Each time the transmission unit receives a group of first data packets, it reassembles and encapsulates them into a second data packet, adds upload timestamp and other content when sending to the cloud and sends it to the cloud server, where the transmission unit obtains the time of the network time server , Use the time of the network time server to calibrate the local clock of the transmission unit to obtain accurate local time.
- the upload timestamp is determined based on the local time of the transmission unit.
- steps in the flowcharts of FIGS. 4 and 5 are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless specifically stated in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least part of the steps in Figures 4 and 5 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. These sub-steps or The execution order of the stages is not necessarily carried out sequentially, but may be executed alternately or alternately with other steps or at least a part of other steps or sub-steps or stages.
- the synchronous collection of each sensor in the sensor array can be realized, and the time stamp and serial number required for packaging can be determined. Information to facilitate subsequent data detection.
- the solution proposed by the present invention does not require the sensor array to be equipped with a local clock, and has a wider application range.
- the opposite end of the IoT data acquisition and packaging device that is, the remote data processing device (the server shown in FIG. 3), disassembles the received second data packet.
- the cycle is agreed in advance, so the processing program uses the data packet timestamp as the starting point of the data acquisition time of the packet, and calculates the actual acquisition time of each data frame according to the number of occurrences of the identification number of the data frame in the second data packet , And then perform calculation processing.
- the second data packet is received and parsed at the detection end to obtain the second original time stamp; then, data detection is performed on the second data packet according to a preset detection method based on the second original time stamp .
- the detection method includes:
- the Internet of Things is determined
- the data in the second data packet sent by the data acquisition and encapsulation device is lost.
- the preset time interval value is determined according to the actual application situation.
- the detection method includes: for two second data packets adjacent to the second original time stamp, responding to the second of the two second data packets The judgment of the serial number is not continuous, it is determined that the data in the second data packet sent by the IoT data acquisition and packaging device is missing.
- the collection unit assigns corresponding identification numbers to the sensor data according to the number of data collection modes, determines two or more different identification numbers for each data collection mode, and uses the said sensor data according to the sequential polling mechanism. Two or more different identification numbers.
- an identification number is assigned to each data frame, which is convenient for the subsequent data detection process to count the number of data frames.
- the sequential polling mechanism is used to assign the identification number to the data frame, then the data frame is received During the process, the sequence of the identification numbers presented should also conform to the sequential polling mechanism, otherwise, there may be data loss, which can facilitate the judgment of whether the data is lost during the data detection process.
- the detection method includes: counting the number of data frames corresponding to one identification number or two different identification numbers in two same time periods; The identification number or the determination that the difference between the number of data frames corresponding to two or more different identification numbers is greater than the first preset value is to determine the data in the second data packet sent by the IoT data acquisition and packaging device There is a loss.
- the first preset value is determined according to actual application situations, for example, 3.
- the number of data frames with identification number A (or identification numbers A and B) in two identical time periods are counted separately, and the numbers of these two time periods are obtained respectively, for example, the first
- the default value is 3
- the number of data frames with the identification number A (or the identification numbers A and B) counted in one time period is 10000
- the identification number counted in the other time period is A (or the identification number is The number of data frames in A and B) is also 10000, which is usually considered a normal situation; however, if the number of data frames with identification number A (or identification numbers A and B) counted in another time period is also 10008, it is judged that there is data loss.
- the detection method includes: in response to the judgment that the appearance sequence of the data frame identification numbers corresponding to the same acquisition unit does not conform to the judgment of the sequential polling mechanism, determining the IoT data acquisition and packaging device The data in the second data packet sent is missing.
- the identification numbers of the data frames are A, B, and C.
- the appearance of the identification numbers should be ABCABC..., however, if the statistical data frame identification numbers appear in an out order In accordance with the sequential polling mechanism, it is judged that the data is lost.
- the detection method includes: counting the total number of identification numbers corresponding to different collection units within a period of time; responding to the difference between the total number of identification numbers corresponding to different collection units and the total number of standards The judgment that the value is greater than the second preset value determines that the data in the second data packet sent by the IoT data acquisition and packaging device is missing.
- the number with the largest total number of identification numbers is taken as the standard number, and the second preset value is determined according to the actual application situation, for example, 3.
- the identification numbers of the data frames of the first acquisition unit in one data acquisition mode are A, B, and C
- the identification numbers of the data frames of the second acquisition unit in the same data acquisition mode are D, E, and F.
- the total number of occurrences of identification numbers A, B, and C within a period of time is counted as the total number of identification numbers corresponding to the first collection unit
- the total number of occurrences of identification numbers D, E, and F within a period of time is counted as corresponding to the second collection unit
- the total number of identification numbers so that the total number of identification numbers of all collection units are counted in turn, and the number with the largest total number of identification numbers is regarded as the standard number. If the total number of identification numbers corresponding to the collection unit is less than the standard number, the second preset Value, it is considered that there is data loss.
- package information such as timestamp, serial number, and data frame identification number is embedded in the packaging process, and in the subsequent data detection process, according to the embedded package information, Able to detect whether there is data loss. It should be noted that the above only lists specific implementations of data detection based on packet information, and other data detection methods obtained by those skilled in the art inspired by the foregoing implementations fall within the scope of this application.
- the above device embodiments are only illustrative, and the device of the present disclosure may also be implemented in other ways.
- the division of units/modules in the above-mentioned embodiments is only a logical function division, and there may be other division methods in actual implementation.
- multiple units, modules or components may be combined or integrated into another system, or some features may be omitted or not implemented.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Arrangements For Transmission Of Measured Signals (AREA)
Abstract
Description
段落 | 长度(字节) | 值 |
标识字节 | 1 | 1 |
设备ID | 1 | 约定 |
上传时间戳 | 6 | 纪元秒数4字节,毫秒2字节 |
第二原始时间戳 | 6 | 纪元秒数4字节,毫秒2字节 |
数据 | 392 | 56个数据帧 |
第二序号 | 2 | 0~65535 |
Claims (14)
- 一种物联网数据获取及封装装置,其包括采集单元、处理单元与传输单元,其中:所述采集单元根据预设的时间间隔采集传感器阵列中一组传感器的传感器数据,并将所述传感器数据打包为数据帧;所述处理单元接收来自所述采集单元的数据帧并将一个以上的所述数据帧打包为第一数据包,其中,所述第一数据包包括第一原始时间戳和第一序号;所述传输单元接收来自所述处理单元的所述第一数据包,将一个以上的所述第一数据包封装为第二数据包并发送所述第二数据包,其中,所述第二数据包包括第二原始时间戳和第二序号。
- 如权利要求1所述的装置,其中所述采集单元为所述传感器数据分配对应的识别号,并将所述传感器数据和所述识别号打包为数据帧。
- 如权利要求2所述的装置,其中,所述采集单元根据数据采集模式的数量为所述传感器数据分配对应的识别号,对于每一种数据采集模式确定两个以上不同的识别号,且根据依次轮询机制使用所述两个以上不同的识别号,其中,所述数据采集模式包括常规采集速率模式和高采集速率模式。
- 如权利要求1所述的装置,其中,所述第一原始时间戳为所述处理单元收到所述第一数据包中第一个数据帧的时间。
- 如权利要求4所述的装置,其中,所述第二原始时间戳和所述第二序 号分别与所述第二数据包中第一个第一数据包对应的所述第一原始时间戳和所述第一序号相同。
- 如权利要求1至5任一者所述的装置,其中所述处理单元接收网络时间服务器的时间,通过所述网络时间服务器的时间校准所述处理单元的本地时间,所述第一原始时间戳是根据所述本地时间确定的。
- 如权利要求1至5任一者所述的装置,其中所述采集单元响应于所述处理单元的对时指令计算相对时间,所述预设的时间间隔根据所述相对时间确定。
- 一种物联网数据获取及封装方法,其包括:根据预设的时间间隔采集传感器阵列中一组传感器的传感器数据,并将所述传感器数据打包为数据帧;将一个以上的所述数据帧打包为第一数据包,其中,所述第一数据包包括第一原始时间戳和第一序号;将一个以上的所述第一数据包封装为第二数据包并发送所述第二数据包,其中,所述第二数据包包括第二原始时间戳和第二序号。
- 如权利要求8所述的方法,还包括为所述传感器数据分配对应的识别号,且其中,所述将所述传感器数据打包为数据帧包括将所述传感器数据和所述识别号打包为数据帧。
- 如权利要求9所述的方法,其中,所述为所述传感器数据分配对应的 识别号包括根据数据采集模式的数量为所述传感器数据分配对应的识别号,对于每一种数据采集模式确定两个以上不同的识别号,且根据依次轮询机制使用所述两个以上不同的识别号,其中,所述数据采集模式包括常规采集速率模式和高采集速率模式。
- 如权利要求8所述的方法,其中,所述第一原始时间戳为收到所述第一数据包中第一个数据帧的时间。
- 如权利要求11所述的方法,其中,所述第二原始时间戳和所述第二序号分别与所述第二数据包中第一个第一数据包对应的所述第一原始时间戳和所述第一序号相同。
- 如权利要求8至12任一者所述的方法,还包括,接收网络时间服务器的时间,通过所述网络时间服务器的时间校准本地时间,其中,所述第一原始时间戳是根据所述本地时间确定的。
- 如权利要求8至12任一者所述的方法,还包括,响应于对时指令计算相对时间,其中,所述预设的时间间隔根据所述相对时间确定。
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202080000215.7A CN111279728B (zh) | 2020-01-22 | 2020-01-22 | 物联网数据获取及封装装置和方法 |
PCT/CN2020/073885 WO2021147021A1 (zh) | 2020-01-22 | 2020-01-22 | 物联网数据获取及封装装置和方法 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2020/073885 WO2021147021A1 (zh) | 2020-01-22 | 2020-01-22 | 物联网数据获取及封装装置和方法 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021147021A1 true WO2021147021A1 (zh) | 2021-07-29 |
Family
ID=71002827
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/073885 WO2021147021A1 (zh) | 2020-01-22 | 2020-01-22 | 物联网数据获取及封装装置和方法 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN111279728B (zh) |
WO (1) | WO2021147021A1 (zh) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112511587B (zh) * | 2020-10-23 | 2024-02-09 | 许继集团有限公司 | 一种电力配网差动业务的通信数据处理方法及装置 |
CN115038161B (zh) * | 2022-07-25 | 2023-10-13 | 苏州德姆斯信息技术有限公司 | 一种振动数据无线同步采集方法、系统及振动监测系统 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101651517A (zh) * | 2008-08-13 | 2010-02-17 | 中兴通讯股份有限公司 | 突发序列丢失的检测方法和装置 |
CN202276347U (zh) * | 2011-11-04 | 2012-06-13 | 上海湾流仪器技术有限公司 | 支持gps时间戳同步功能的高密度e1数据采集卡 |
CN104850573A (zh) * | 2014-11-25 | 2015-08-19 | 北汽福田汽车股份有限公司 | 一种数据采集方法及装置 |
US9143808B2 (en) * | 2012-09-14 | 2015-09-22 | Cisco Technology, Inc. | Multi-channel MPEG between headend and fiber node |
CN109217961A (zh) * | 2018-06-25 | 2019-01-15 | 北京津发科技股份有限公司 | 一种多通道人机交互与人机环境测试数据同步装置和方法 |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100521654C (zh) * | 2006-05-30 | 2009-07-29 | 杭州华三通信技术有限公司 | 一种同步帧在ip网络上传输的方法及用于传输的网络设备 |
CN102984757B (zh) * | 2012-11-16 | 2015-05-20 | 感知集团有限公司 | 一种物联网网关数据处理方法及装置 |
US10362145B2 (en) * | 2013-07-05 | 2019-07-23 | The Boeing Company | Server system for providing current data and past data to clients |
KR101848616B1 (ko) * | 2016-06-22 | 2018-05-28 | 현대자동차주식회사 | 차량용 전자장치를 제어하는 방법 및 장치 |
-
2020
- 2020-01-22 WO PCT/CN2020/073885 patent/WO2021147021A1/zh active Application Filing
- 2020-01-22 CN CN202080000215.7A patent/CN111279728B/zh active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101651517A (zh) * | 2008-08-13 | 2010-02-17 | 中兴通讯股份有限公司 | 突发序列丢失的检测方法和装置 |
CN202276347U (zh) * | 2011-11-04 | 2012-06-13 | 上海湾流仪器技术有限公司 | 支持gps时间戳同步功能的高密度e1数据采集卡 |
US9143808B2 (en) * | 2012-09-14 | 2015-09-22 | Cisco Technology, Inc. | Multi-channel MPEG between headend and fiber node |
CN104850573A (zh) * | 2014-11-25 | 2015-08-19 | 北汽福田汽车股份有限公司 | 一种数据采集方法及装置 |
CN109217961A (zh) * | 2018-06-25 | 2019-01-15 | 北京津发科技股份有限公司 | 一种多通道人机交互与人机环境测试数据同步装置和方法 |
Also Published As
Publication number | Publication date |
---|---|
CN111279728B (zh) | 2021-08-31 |
CN111279728A (zh) | 2020-06-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021147021A1 (zh) | 物联网数据获取及封装装置和方法 | |
EP3564921B1 (en) | Sensing system and time synchronization method | |
CN110166952B (zh) | 基于广播同步的无线传感器网络数据采集方法及系统 | |
CN103248471B (zh) | 基于ptp协议与反射内存网的时钟同步方法 | |
JP6312744B2 (ja) | 第1のセンサを少なくとも1つの第2のセンサと結合するための方法及び装置 | |
US10284319B2 (en) | Method and apparatus for multiplexing machine type communication data of multiple MTC devices in a wireless network environment | |
US8051222B2 (en) | Concatenating secure digital input output (SDIO) interface | |
CN109426299B (zh) | 传感器装置及其方法 | |
CN107248892B (zh) | 一种安检设备的监控系统 | |
US20140348181A1 (en) | Time synchronization between nodes of a switched interconnect fabric | |
CN106888428B (zh) | 基于蓝牙的智能终端与医疗可穿戴设备间的数据传输方法 | |
US8489776B2 (en) | Apparatus and method for synchronizing wireless devices | |
CN103873448B (zh) | 一种嵌入式系统高速互联规范协议解析方法及系统 | |
TWI599863B (zh) | Time synchronization device, time synchronization system and time synchronization method | |
CN108155965A (zh) | Sdh传输iec61588方法 | |
JP6195017B2 (ja) | 通信装置、通信システム、通信方法および通信用プログラムが記憶された記憶媒体 | |
CN105630825B (zh) | 一种数据转换方法及装置 | |
CN105141483A (zh) | 基于can总线的多节点网络最小通信间隔测定方法 | |
CN103116557B (zh) | 基于计数变化进行动态超时控制的数据接收方法 | |
WO2013121352A1 (en) | Loss measurement in a link aggregation group | |
CN108768572B (zh) | 一种基于令牌的时间戳生成系统及方法 | |
JP4102991B2 (ja) | 通信制御装置 | |
CN105530139A (zh) | 一种1588设备自检方法及装置 | |
CN116707746B (zh) | 一种阵列传感器的测量方法 | |
CN214251328U (zh) | 基于硅铝异质结构的传感器单元及机器人关节测压系统 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20915032 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20915032 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 06/02/2023) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20915032 Country of ref document: EP Kind code of ref document: A1 |