WO2021147021A1 - 物联网数据获取及封装装置和方法 - Google Patents

物联网数据获取及封装装置和方法 Download PDF

Info

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
Application number
PCT/CN2020/073885
Other languages
English (en)
French (fr)
Inventor
焦旭
安宣梓
Original Assignee
北京微动数联科技有限公司
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 北京微动数联科技有限公司 filed Critical 北京微动数联科技有限公司
Priority to CN202080000215.7A priority Critical patent/CN111279728B/zh
Priority to PCT/CN2020/073885 priority patent/WO2021147021A1/zh
Publication of WO2021147021A1 publication Critical patent/WO2021147021A1/zh

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
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

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是根据一个实施例的信号采集传感器阵列的示意图。
图2是根据一个实施例的图1所示信号采集传感器阵列的截面图。
图3是根据本发明实施例的物联网数据获取及封装装置的应用场景的示意图。
图4是根据本发明实施例的物联网数据获取及封装方法的流程图。
图5是根据本发明另一个实施例的物联网数据获取及封装方法的流程图。
具体实施方式
以下通过特定的具体实施例来说明本发明所公开的实施方式,本领域技术人员可由本说明书所公开的内容了解本发明的优点与效果。本发明可通过其他不同的具体实施例加以施行或应用,本说明书中的各项细节也可基于不同观点与应用,在不悖离本发明的构思下进行各种修改与变更。另外,本发明的附图仅为简单示意说明,并非依实际尺寸的描绘。以下的实施方式将进一步详细说明本发明的相关技术内容,但所公开的内容并非用以限制本发明的保护范围。
图1是根据一个实施例的信号采集传感器阵列的示意图。图2是根据一个实施例的图1所示信号采集传感器阵列的截面图。根据图1和图2所示,一种信号采集传感器阵列10,其包括:连接层105,至少两种传感器单元111和112,信号采集电路107,用于将各所述传感器单元111或112与所述信号采集电路107进行电连接的信号线104,每种所述传感器单元111或112进一步包括:第一阻震基材101或102;传感器元件103,其与所述第一阻震基材101或102一一对应且设置于所述第一阻震基材101或102与所述连接层105之间;其中,所述至少两种传感器单元在所述连接层上间隔排列成阵列状。这里的阻震基材是指具有对震动有阻挡效果(衰减效果)的材料,例如海绵、橡胶、泡沫等材料。阻震基材可以制成片状或具有凹陷形状的块状。若制成凹陷形状的块状,可以以凹陷形状容纳传感器元件,通过调整凹陷的大小,可以进一步调节阻震效果。图1和图2所图示的信号线是依次 串联于各传感器单元之间,但本领域的技术人员应该知道,也可以分别以信号线连接于每个传感器单元111或112与信号采集电路107之间。通过以阵列形式间隔设置至少两种传感器单元,且将传感器单元中的传感器元件设置为与所述第一阻震基材一一对应且设置于第一阻震基材与连接层之间,使得不同的信号传递到各传感器单元后得到不同程度的衰减,并且由于第一阻震基材是分离的,解除了各个传感器单元之间力的强耦合,从而使得信号幅度差异很大的不同生理信号均被传感器阵列准确地检测到。
图1中以8×8的阵列进行了图示,本领域的技术人员需要明白,此处仅为示例,也可以用其他数值的行、列进行组合。
可选地,各传感器元件103与连接层105之间还设置有基板层106,用于承载传感器元件和相关调理电路,以使其整体具备较高的刚度,避免受到损坏。
可选地,多个所述传感器单元111或112共用一个信号采集电路107。这样可以以较少的采集电路实现较大面积的采集工作,这样不仅有助于节省成本,还可以通过使用串行总线等技术,降低信号采集的时间间隔,提升信号采集的速率。类似地,至少一个信号采集电路107又进一步连接到整个阵列的中央处理器。
可选地,一种传感器单元111中包括的第一阻震基材的阻震特性、所包括的传感器元件的灵敏度以及所对应的信号采集电路的灵敏度的乘积是另一种传感器单元112中包括的第一阻震基材的阻震特性、所包括的传感器元件的灵敏度以及所对应的信号采集电路的灵敏度的乘积的2倍以上。这里,阻震特性是指对震动的衰减倍数。例如一种材料的阻震特性是40%,意味着其可以将震动衰减40%,而只有60%的震动可以从其一侧传递到另一端。传感器的灵敏度与采集电路的灵敏度的含义在现有技术中已有充分定义,为简洁起见不再赘述。
所述传感器元件,可以是压电片,也可以是应变片、压阻传感器等的一种或其中多种的组合。并且传感器元件中设置有运算放大电路,可以对初始信号进行放大。所述传感器元件的灵敏度不同,可以通过设置不同的元件类型或不同的运算放大电路的放大倍数来实现。
图1和图2传感器阵列包括了多个传感器,用于采集信号。需要注意的是,图1和图2只是展示了采集信号的传感器阵列结构和组成的一种具体方式。本领域技术人员可以理解的是,可以采用其他任何形式的采集信号的传感器阵列,这些都属于本申请覆盖的范围。
根据本发明的一个方面,提出一种物联网数据获取及封装装置,通过物联网数据获取及封装装置对传感器阵列的各个传感器进行同步数据采集,打包所采集的数据形成传输数据包,并确定各个传输数据包中的时间戳和序号等包信息。然后,在数据包的接收端,根据数据包中的包信息对数据包进行检测,确定数据包是否丢失,进而判断物联网数据获取及封装装置是否存在工作异常。
图3是根据本发明实施例的物联网数据获取及封装装置的应用场景的示意图。在一个实施例中,所述传感器阵列为压力传感器阵列,包括多个传感器。在使用传感器阵列检测信号时,例如人体体动、呼吸及心跳等信号时,为了使这些信号可以实用于后续的健康检测过程,就必须确保发送到处理器的数据是连续、完整、有序的。
如图3所示,传感器阵列可以由8×8个传感器构成,如图1和图2所示的传感器阵列,需要理解的是,传感器阵列还可以由任意数量的传感器构成。传感器阵列采用多级服用的连接形式,即,一个传感器阵列使用多个微控制单元(MCU),一个MCU接入多个传感器信号,该级MCU不具备本地时钟。如图3所示,传感器阵列由8×8个传感器构成,该传感器阵列使用8个MCU,一个MCU接入8个传感器信号。
将接入传感器信号的MCU称为采集单元。采集单元可以包括STM32单片机,没有本地时钟,所有采集单元连接至第一上级MCU,该第一上级MCU称为处理单元,采集单元与处理单元的连接方式包括CAN总线,处理单元包括STM32单片机,具备本地时钟,对采集单元发布的数据进行处理。处理单元连接至第二上级MCU,该第二上级MCU称为传输单元,处理 单元与传输单元的连接方式包括串口,传输单元包括ESP8266单片机,具备Wi-Fi芯片和本地时钟,收集完数据后向云端服务器发出数据包。
物联网数据获取及封装装置包括采集单元、处理单元和传输单元。传输单元通过WiFi芯片连接公共网络,利用简单网络时间协议(Simple Network Time Protocol,SNTP)获取网络时间服务器的时间,在校准传输单元本地时钟的同时,将时间推送给处理单元,从而使处理单元拥有精准的物理时间。每个采集器虽然没有本地时钟,但是具备高精度晶振,可以进行相对时间的计时,设备在启动后,处理单元会周期性的对所有采集单元广播对时指令,所有采集单元收到对时指令后,从同一时间起点重新计算相对时间。相对时间的计算在较长周期内不会产生明显的累计偏差,因此时间同步命令的广播周期可以较长,以提升系统效率,从而满足实时性需求。
在一个具体实施例中,采集单元、处理单元和传输单元的功能如下。
对于采集单元来说,其根据预设的时间间隔采集传感器阵列中一组传感器的传感器数据,并将所述传感器数据打包为数据帧。
在图3所示的实施例中,对于由8×8个传感器构成传感器阵列,将传感器阵列分为8组,对应的有8个采集单元,即一个采集单元采集8个传感器的数据。
一个采集单元根据预设的时间间隔(例如,10毫秒)采集对应的8个传感器的传感器数据。这个预设的时间间隔是根据采集单元计算的相对时间确定的。具体来说,采集单元响应于处理单元的对时指令,从同一时间起点重新计算相对时间,在相对时间达到预设的时间间隔时,采集对应的一组传感器的数据。然后,采集单元将所述传感器数据打包为数据帧。
根据一个优选的实施例,所述采集单元为所述传感器数据分配对应的识别号,将所述传感器数据和所述识别号打包为数据帧,并且,所述采集单元根据数据采集模式的数量为所述传感器数据分配对应的识别号,对于每一种数据采集模式确定两个以上不同的识别号,且根据依次轮询机制使用所述两个以上不同的识别号。
根据图3所示的实施例,对于每一个采集单元来说,在采集8个传感器的传感器数据并传输时,为传感器数据分配识别号。例如,数据采集模式包括常规采集速率模式和高采集速率模式,对于每一种数据采集模式确定两个以上不同的识别号,比如,对于常规采集速率模式,确定三个识别号,例如为A、B和C,对于高速采集速率模式,确定三个识别号,例如为D、E和F。那么,在常规采集速率模式下,为第一次采集的传感器数据分配的识别号为A,为第二次采集的传感器数据分配的识别号为B,为第三次采集的传感器数据分配的识别号为C,为第四次采集的传感器数据分配的识别号为A……,即根据依次轮询机制使用A、B和C。在高速采集速率模式下的识别号分配与常规采集速率模式下的类似。
这样,一方面,对每一个数据帧分配了一个识别号,便于以后数据检测过程对数据帧数量的统计,另一个方面,由于采用依次轮询机制为数据帧分配识别号,那么在接收数据帧的过程中,其所呈现的识别号顺序也应当符合依次轮询机制,否则,可能存在数据丢失,由此,可以便于数据检测过程中数据是否丢失的判断。
对于处理单元来说,其接收来自采集单元的数据帧并将一个以上的所述数据帧打包为第一数据包。
处理单元将多少个数据帧打包为第一数据包,主要是依据处理单元的缓冲区的大小,缓冲区越大,可以一同打包的数据帧的数量越多,反之则越少。在本实施例中,每个数据帧的长度为8个字节,在每积累28个数据帧时,处理单元将这28个数据帧组成一个用于与传输单元进行通讯的第一数据包。
并且,处理单元以收到每个第一数据包中的第一数据帧的时间作为第一数据包的第一原始时间戳,即新一数据包的采集时间“起点”,处理单元从传输单元接收网络时间服务器的时间,通过所述网络时间服务器的时间校准所述处理单元的本地时间,然后,根据述本地时间确定第一原始时间戳。另外,为每个第一数据包附加第一序号,序号范围0~65535 反复递增循环,第一数据包包括第一原始时间戳和第一序号。
表1示出了建立的第一数据包结构:
Figure PCTCN2020073885-appb-000001
表1
其中,设备ID在本实施例中指的是包含传感器阵列的设备,例如,包含传感器阵列的是一个床垫,那么设备ID指的是床垫。另外,需要注意的是,表1只是示例性展示包头、功能码、第一原始时间戳等字段以及数据的字节长度,本领域技术人员能够想到可以对各个字段和数据采用任意其他合适的字节长度,这些都属于本申请公开的范围。
对于传输单元来说,其将一个以上的第一数据包封装为第二数据包并发送所述第二数据包。
传输单元将多少个第一数据包封装为第二数据包,主要是依据传输单元的内存的大小,一般来说,内存越大,可以一同封装的第一数据包的数量越多,反之则越少。在本实施例中,每个第一数据包的长度为包括28个数据帧,每个数据帧具有7个字节,在每积累2个第一数据包时,传输单元将这2个第一数据包组成一个用于云端传输的第二数据包,即两个连续的第一数据包逻辑上属于一个第二数据包。
对于由两个以上的第一数据包形成一个第二数据包的情形,该第二数据包的中的多个第一数据包具有相同的设备ID,并且,会给多个第一数据包分配不同的第一数据包编号,例如,存在两个第一数据包,这两个数据包编号分别为1和2。
另外,所述第二数据包包括第二原始时间戳和第二序号。所述第二原始时间戳和所述第二序号分别与所述第二数据包中第一个第一数据包对应的所述第一原始时间戳和所述第一序号相同。也就是说,对于由一个第一数据包形成一个第二数据包的情形,第二原始时间戳和第二序号与第一原始时间戳和第一序号是一一对应的,而对于由两个以上的第一数据包形成一个第二数据包的情形,第二数据包的第二原始时间戳是第二数据包中第一个第一数据包的第一原始时间戳和第一序号,即第二数据包的其他第一数据包与第一个第一数据包共用第一个第一数据包的第一原始时间戳和第一序号。
传输单元每收齐一组第一数据包,将它们重新组合封装成为一个第二数据包,在向云端发送时加入上传时间戳等内容并发给云端服务器,其中,传输单元获取网络时间服务器的时间,利用网络时间服务器的时间校准传输单元本地时钟,获得准确的本地时间。上传时间戳是根据传输单元的本地时间确定的。
表2示出了建立的第二数据包结构:
段落 长度(字节)
标识字节 1 1
设备ID 1 约定
上传时间戳 6 纪元秒数4字节,毫秒2字节
第二原始时间戳 6 纪元秒数4字节,毫秒2字节
数据 392 56个数据帧
第二序号 2 0~65535
表2
需要注意的是,表2只是示例性展示包头、第二原始时间戳、第二序号等字段以及数据的字节长度,本领域技术人员能够想到可以对各个字段和数据采用任意其他合适的字节长度,这些都属于本申请公开的范围。
通过本发明的物联网数据获取及封装装置,能够在传感器阵列中的传感器未配备本地时钟的情况下,实现对传感器阵列中的各个传感器的同步采集,确定打包所需的时间戳和序号等包信息,便于后续的数据检测。本发明提出的方案无需传感器阵列配备本地时钟,适应范围更广泛。
根据本发明的二个方面,提出一种物联网数据获取及封装方法,通过物联网数据获取及封装方法对传感器阵列的各个传感器进行同步数据采集,打包所采集的数据形成传输数据包,并确定各个传输数据包中的时间戳和序号等包信息。然后,在数据包的接收端,根据数据包中的包信息对数据包进行检测,确定数据包是否丢失。
根据一个实施例,如图4所示,物联网数据获取及封装方法包括如下步骤。
步骤S401,根据预设的时间间隔采集传感器阵列中一组传感器的传感器数据,并将所述传感器数据打包为数据帧。
在图3所示的实施例中,对于由8×8个传感器构成传感器阵列,将传感器阵列分为8组,对应的有8个采集单元,即一个采集单元采集8个传感器的数据。
一个采集单元根据预设的时间间隔(例如,10毫秒)采集对应的8个传感器的传感器数据。这个预设的时间间隔是根据采集单元计算的相对时间确定的。具体来说,采集单元响应于处理单元的对时指令,从同一时间起点重新计算相对时间,在相对时间达到预设的时间间隔时,采集对应的一组传感器的数据。然后,采集单元将所述传感器数据打包为数据帧。
根据一个优选的实施例,所述采集单元为所述传感器数据分配对应的识别号,将所述传感器数据和所述识别号打包为数据帧,并且,所述采集单元根据数据采集模式的数量为所述传感器数据分配对应的识别号,对于每一种数据采集模式确定两个以上不同的识别号,且根据依次轮询机制使用所述两个以上不同的识别号。
根据图3所示的实施例,对于每一个采集单元来说,在采集8个传感器的传感器数据并传输时,为传感器数据分配识别号。例如,数据采集模式包括常规采集速率模式和高采集速率模式,对于每一种数据采集模式确定两个以上不同的识别号,比如,对于常规采集速率模式,确定三个识别号,例如为A、B和C,对于高速采集速率模式,确定三个识别号,例如为D、E和F。那么,在常规采集速率模式下,为第一次采集的传感器数据分配的识别号为A,为第二次采集的传感器数据分配的识别号为B,为第三次采集的传感器数据分配的识别号为C,为第四次采集的传感器数据分配的识别号为A……,即根据依次轮询机制使用A、B和C。在高速采集速率模式下的识别号分配与常规采集速率模式下的类似。
这样,一方面,对每一个数据帧分配了一个识别号,便于以后数据检测过程对数据帧数量的统计,另一个方面,由于采用依次轮询机制为数据帧分配识别号,那么在接收数据帧的过程中,其所呈现的识别号顺序也应当符合依次轮询机制,否则,可能存在数据丢失,由此,可以便于数据检测过程中数据是否丢失的判断。
步骤S402,将一个以上的数据帧打包为第一数据包。
根据图3所示的实施例,处理单元将多少个数据帧打包为第一数据包,主要是依据处理单元的缓冲区的大小,缓冲区越大,可以一同打包的数据帧的数量越多,反之则越少。在本实施例中,每个数据帧的长度为8个字节,在每积累28个数据帧时,处理单元将这28个数据帧组成一个用于与传输单元进行通讯的第一数据包。
并且,处理单元以收到每个第一数据包中的第一数据帧的时间作为第一数据包的第一原始时间戳,即新一数据包的采集时间“起点”,处理单元从传输单元接收网络时间服务器的时间,通过所述网络时间服务器的时间校准所述处理单元的本地时间,然后,根据述本地时间确定第一原始时间戳。另外,为每个第一数据包附加第一序号,序号范围0~65535反复递增循环,第一数据包包括第一原始时间戳和第一序号。
步骤S403,将一个以上的所述第一数据包封装为第二数据包并发送所述第二数据包
在图3所示的实施例中,传输单元将多少个第一数据包封装为第二数据包,主要是依据传输单元的内存的大小,一般来说,内存越大,可以一同封装的第一数据包的数量越多,反之则越少。在本实施例中,每个第一数据包的长度为包括28个数据帧,每个数据帧具有7个字节,在每积累2个第一数据包时,传输单元将这2个第一数据包组成一个用于云端传输的第二数据包,即两个连续的第一数据包逻辑上属于一个第二数据包。
对于由两个以上的第一数据包形成一个第二数据包的情形,该第二数据包的中的多个第一数据包具有相同的设备ID,并且,会给多个第一数据包分配不同的第一数据包编号,例如,存在两个第一数据包,这两个数据包编号分别为1和2。
另外,所述第二数据包包括第二原始时间戳和第二序号。所述第二原始时间戳和所述第二序号分别与所述第二数据包中第一个第一数据包对应的所述第一原始时间戳和所述第一序号相同。也就是说,对于由一个第一数据包形成一个第二数据包的情形,第二原始时间戳和第二序号与第一原始时间戳和第一序号是一一对应的,而对于由两个以上的第一数据包形成一个第二数据包的情形,第二数据包的第二原始时间戳是第二数据包中第一个第一数据包的第一原始时间戳和第一序号,即第二数据包的其他第一数据包与第一个第一数据包共用第一个第一数据包的第一原始时间戳和第一序号。
传输单元每收齐一组第一数据包,将它们重新组合封装成为一个第二数据包,在向云端发送时加入上传时间戳等内容并发给云端服务器,其中,传输单元获取网络时间服务器的时间,利用网络时间服务器的时间校准传输单元本地时钟,获得准确的本地时间。上传时间戳是根据传输单元的本地时间确定的。
根据另一个实施例,如图5所示,物联网数据获取及封装方法包括如下步骤。
步骤S501,接收网络时间服务器的时间,通过所述网络时间服务器的时间校准本地时间。
物联网数据获取及封装装置的处理单元从传输单元接收网络时间服务器的时间,通过所述网络时间服务器的时间校准所述处理单元的本地时间。
步骤S502,响应于对时指令计算相对时间。
物联网数据获取及封装装置的采集单元响应于处理单元的对时指令,从同一时间起点重新计算相对时间。
步骤S503,根据预设的时间间隔采集传感器阵列中一组传感器的传感器数据。
在图3所示的实施例中,对于由8×8个传感器构成传感器阵列,将传感器阵列分为8组,对应的有8个采集单元,即一个采集单元采集8个传感器的数据。
一个采集单元根据预设的时间间隔(例如,10毫秒)采集对应的8个传感器的传感器数据。这个预设的时间间隔是根据步骤S502所描述的采集单元计算的相对时间确定的。在相对时间达到预设的时间间隔时,采集对应的一组传感器的数据。然后,采集单元将所述传感器数据打包为数据帧。
步骤S504,为所述传感器数据分配对应的识别号。
根据一个优选的实施例,所述采集单元为所述传感器数据分配对应的识别号,并且,所述采集单元根据数据采集模式的数量为所述传感器数据分配对应的识别号,对于每一种数据采集模式确定两个以上不同的识别号,且根据依次轮询机制使用所述两个以上不同的识别号。
根据图3所示的实施例,对于每一个采集单元来说,在采集8个传感器的传感器数据 并传输时,为传感器数据分配识别号。例如,数据采集模式包括常规采集速率模式和高采集速率模式,对于每一种数据采集模式确定两个以上不同的识别号,比如,对于常规采集速率模式,确定三个识别号,例如为A、B和C,对于高速采集速率模式,确定三个识别号,例如为D、E和F。那么,在常规采集速率模式下,为第一次采集的传感器数据分配的识别号为A,为第二次采集的传感器数据分配的识别号为B,为第三次采集的传感器数据分配的识别号为C,为第四次采集的传感器数据分配的识别号为A……,即根据依次轮询机制使用A、B和C。在高速采集速率模式下的识别号分配与常规采集速率模式下的类似。
这样,一方面,对每一个数据帧分配了一个识别号,便于以后数据检测过程对数据帧数量的统计,另一个方面,由于采用依次轮询机制为数据帧分配识别号,那么在接收数据帧的过程中,其所呈现的识别号顺序也应当符合依次轮询机制,否则,可能存在数据丢失,由此,可以便于数据检测过程中数据是否丢失的判断。
步骤S505,将所述传感器数据打包为数据帧。
在没有步骤S504的情况下,将所述传感器数据打包为数据帧是基于传感器数据,在具有步骤S504的情况下,将所述传感器数据打包为数据帧是基于所述传感器数据和所述识别号。
步骤S506,将一个以上的数据帧打包为第一数据包。
根据图3所示的实施例,处理单元将多少个数据帧打包为第一数据包,主要是依据处理单元的缓冲区的大小,缓冲区越大,可以一同打包的数据帧的数量越多,反之则越少。在本实施例中,每个数据帧的长度为8个字节,在每积累28个数据帧时,处理单元将这28个数据帧组成一个用于与传输单元进行通讯的第一数据包。
并且,处理单元以收到每个第一数据包中的第一数据帧的时间作为第一数据包的第一原始时间戳,即新一数据包的采集时间“起点”,如步骤S501所述,处理单元从传输单元接收网络时间服务器的时间,通过所述网络时间服务器的时间校准所述处理单元的本地时间,然后,根据述本地时间确定第一原始时间戳。另外,为每个第一数据包附加第一序号,序号范围0~65535反复递增循环,第一数据包包括第一原始时间戳和第一序号。
步骤S507,将一个以上的所述第一数据包封装为第二数据包并发送所述第二数据包。
在图3所示的实施例中,传输单元将多少个第一数据包封装为第二数据包,主要是依据传输单元的内存的大小,一般来说,内存越大,可以一同封装的第一数据包的数量越多,反之则越少。在本实施例中,每个第一数据包的长度为包括28个数据帧,每个数据帧具有7个字节,在每积累2个第一数据包时,传输单元将这2个第一数据包组成一个用于云端传输的第二数据包,即两个连续的第一数据包逻辑上属于一个第二数据包。
对于由两个以上的第一数据包形成一个第二数据包的情形,该第二数据包的中的多个第一数据包具有相同的设备ID,并且,会给多个第一数据包分配不同的第一数据包编号,例如,存在两个第一数据包,这两个数据包编号分别为1和2。
另外,所述第二数据包包括第二原始时间戳和第二序号。所述第二原始时间戳和所述第二序号分别与所述第二数据包中第一个第一数据包对应的所述第一原始时间戳和所述第一序号相同。也就是说,对于由一个第一数据包形成一个第二数据包的情形,第二原始时间戳和第二序号与第一原始时间戳和第一序号是一一对应的,而对于由两个以上的第一数据包形成一个第二数据包的情形,第二数据包的第二原始时间戳是第二数据包中第一个第一数据包的第一原始时间戳和第一序号,即第二数据包的其他第一数据包与第一个第一数据包共用第一个第一数据包的第一原始时间戳和第一序号。
传输单元每收齐一组第一数据包,将它们重新组合封装成为一个第二数据包,在向云端发送时加入上传时间戳等内容并发给云端服务器,其中,传输单元获取网络时间服务器的时间,利用网络时间服务器的时间校准传输单元本地时钟,获得准确的本地时间。上传时间戳是根据传输单元的本地时间确定的。
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的 动作组合,但是本领域技术人员应该知悉,本披露并不受所描述的动作顺序的限制,因为依据本披露,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于可选实施例,所涉及的动作和模块并不一定是本披露所必须的。
进一步需要说明的是,虽然图4和图5的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图4和图5中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。
通过本发明的物联网数据获取及封装方法,能够在传感器阵列中的传感器未配备本地时钟的情况下,实现对传感器阵列中的各个传感器的同步采集,确定打包所需的时间戳和序号等包信息,便于后续的数据检测。本发明提出的方案无需传感器阵列配备本地时钟,适应范围更广泛。
根据图3所示的实施例中,物联网数据获取及封装装置的对端,即远端数据处理装置(图3所示为服务器)将收到的第二数据包拆解,由于数据产生时间周期是事先约定好的,所以处理程序以数据包时间戳作为该包数据采集时间的起点,并根据第二数据包内数据帧的识别号的出现次数,推算出每一数据帧的实际采集时间,然后进行计算处理。
然而,如果数据不是真正连续、完整的数据,或实际产生周期存在较大波动,数据计算就会产生误差,因此需要找到一个有效的方法,判断物联网数据获取及封装装置的硬件及单片机程序的工作是否存在异常,数据是否缺失以及具体情况,并且在理论的允许范围内,对缺失的数据进行补偿处理,或者在必要时请求设备补发缺失的历史数据。
那么,在检测端接收并解析所述第二数据包,获取所述第二原始时间戳;然后,基于所述第二原始时间戳按照预设的检测方式对所述第二数据包进行数据检测。
根据第一个具体的实施例,所述检测方式包括:
对于第二原始时间戳相邻的两个第二数据包,响应于所述两个第二数据包的第二原始时间戳的时间间隔超过预设时间间隔值的判断,确定所述的物联网数据获取及封装装置发送的第二数据包中的数据存在丢失。其中,预设时间间隔值是根据实际应用情形而确定的。
根据第二个具体的实施例,获取所述第二序号后,所述检测方式包括:对于第二原始时间戳相邻的两个第二数据包,响应于两个第二数据包的第二序号不连续的判断,确定所述的物联网数据获取及封装装置发送的第二数据包中的数据存在丢失。
另外,如上所述,采集单元根据数据采集模式的数量为所述传感器数据分配对应的识别号,对于每一种数据采集模式确定两个以上不同的识别号,且根据依次轮询机制使用所述两个以上不同的识别号。这样,一方面,对每一个数据帧分配了一个识别号,便于以后数据检测过程对数据帧数量的统计,另一个方面,由于采用依次轮询机制为数据帧分配识别号,那么在接收数据帧的过程中,其所呈现的识别号顺序也应当符合依次轮询机制,否则,可能存在数据丢失,由此,可以便于数据检测过程中数据是否丢失的判断。
从而,根据第三个具体的实施例,所述检测方式包括:统计两个相同时间段内一个识别号或两个不同的识别号对应的数据帧的数量;响应于两个相同时间段内一个识别号或两个以上不同的识别号对应的数据帧的数量之间的差值大于第一预设值的判断,确定所述的物联网数据获取及封装装置发送的第二数据包中的数据存在丢失。其中,第一预设值是根据实际应用情形而确定的,例如为3。
例如,分别统计两个相同时间段(例如5秒)内的识别号为A(或识别号为A和B)的数据帧的数量,分别得出这两个时间段的数量,例如,第一预设值为3,一个时间段内统计的识别号为A(或识别号为A和B)的数据帧的数量为10000,而另个时间段内统计的识别 号为A(或识别号为A和B)的数据帧的数量也为10000,这通常认为是正常情形;但是,如果另个时间段内统计的识别号为A(或识别号为A和B)的数据帧的数量也为10008,则判断存在数据丢失。
根据第四个具体的实施例,所述检测方式包括:响应于同一个采集单元对应的数据帧识别号的出现次序不符合依次轮询机制的判断,确定所述的物联网数据获取及封装装置发送的第二数据包中的数据存在丢失。
例如,在一种数据采集模式下,数据帧的识别号为A、B和C,根据依次轮询机制,识别号的出现应该是ABCABC…,然而,如果统计的数据帧识别号的出现次序不符合所述依次轮询机制,则判断数据丢失。
根据第五个具体的实施例,所述检测方式包括:统计一段时间内不同采集单元各自对应的识别号的总数量;响应于不同采集单元各自对应的识别号的总数量与标准总数量的差值大于第二预设值的判断,确定所述的物联网数据获取及封装装置发送的第二数据包中的数据存在丢失。其中,将识别号的总数量最多的作为标准数量,第二预设值是根据实际应用情形而确定的,例如为3。
例如,第一采集单元在一种数据采集模式下数据帧的识别号为A、B和C,第二采集单元在同种数据采集模式下数据帧的识别号为D、E和F,将一段时间内识别号A、B和C出现的总次数统计为第一采集单元对应的识别号的总数量,将一段时间内识别号D、E和F出现的总次数统计为第二采集单元对应的识别号的总数量,这样依次统计所有采集单元的识别号的总数量,将识别号的总数量最多的作为标准数量,若存在采集单元对应的识别号的总数量比标准数量少第二预设值,则认为存在数据丢失。
可见,根据本发明所示的物联网数据获取及封装装置和方法,在打包过程中嵌入时间戳、序号、数据帧识别号等包信息,在后续的数据检测过程中,根据嵌入的包信息,能够检测数据是否存在丢失。需要说明的是,以上只是举出了根据包信息进行数据检测的具体实现方式,本领域技术人员在上述实现方式启发下获得的其他数据检测方式都属于本申请覆盖的范围。
应该理解,上述的装置实施例仅是示意性的,本披露的装置还可通过其它的方式实现。例如,上述实施例中所述单元/模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。例如,多个单元、模块或组件可以结合,或者可以集成到另一个系统,或一些特征可以忽略或不执行。
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。

Claims (14)

  1. 一种物联网数据获取及封装装置,其包括采集单元、处理单元与传输单元,其中:
    所述采集单元根据预设的时间间隔采集传感器阵列中一组传感器的传感器数据,并将所述传感器数据打包为数据帧;
    所述处理单元接收来自所述采集单元的数据帧并将一个以上的所述数据帧打包为第一数据包,其中,所述第一数据包包括第一原始时间戳和第一序号;
    所述传输单元接收来自所述处理单元的所述第一数据包,将一个以上的所述第一数据包封装为第二数据包并发送所述第二数据包,其中,所述第二数据包包括第二原始时间戳和第二序号。
  2. 如权利要求1所述的装置,其中所述采集单元为所述传感器数据分配对应的识别号,并将所述传感器数据和所述识别号打包为数据帧。
  3. 如权利要求2所述的装置,其中,所述采集单元根据数据采集模式的数量为所述传感器数据分配对应的识别号,对于每一种数据采集模式确定两个以上不同的识别号,且根据依次轮询机制使用所述两个以上不同的识别号,其中,所述数据采集模式包括常规采集速率模式和高采集速率模式。
  4. 如权利要求1所述的装置,其中,所述第一原始时间戳为所述处理单元收到所述第一数据包中第一个数据帧的时间。
  5. 如权利要求4所述的装置,其中,所述第二原始时间戳和所述第二序 号分别与所述第二数据包中第一个第一数据包对应的所述第一原始时间戳和所述第一序号相同。
  6. 如权利要求1至5任一者所述的装置,其中所述处理单元接收网络时间服务器的时间,通过所述网络时间服务器的时间校准所述处理单元的本地时间,所述第一原始时间戳是根据所述本地时间确定的。
  7. 如权利要求1至5任一者所述的装置,其中所述采集单元响应于所述处理单元的对时指令计算相对时间,所述预设的时间间隔根据所述相对时间确定。
  8. 一种物联网数据获取及封装方法,其包括:
    根据预设的时间间隔采集传感器阵列中一组传感器的传感器数据,并将所述传感器数据打包为数据帧;
    将一个以上的所述数据帧打包为第一数据包,其中,所述第一数据包包括第一原始时间戳和第一序号;
    将一个以上的所述第一数据包封装为第二数据包并发送所述第二数据包,其中,所述第二数据包包括第二原始时间戳和第二序号。
  9. 如权利要求8所述的方法,还包括为所述传感器数据分配对应的识别号,且其中,所述将所述传感器数据打包为数据帧包括将所述传感器数据和所述识别号打包为数据帧。
  10. 如权利要求9所述的方法,其中,所述为所述传感器数据分配对应的 识别号包括根据数据采集模式的数量为所述传感器数据分配对应的识别号,对于每一种数据采集模式确定两个以上不同的识别号,且根据依次轮询机制使用所述两个以上不同的识别号,其中,所述数据采集模式包括常规采集速率模式和高采集速率模式。
  11. 如权利要求8所述的方法,其中,所述第一原始时间戳为收到所述第一数据包中第一个数据帧的时间。
  12. 如权利要求11所述的方法,其中,所述第二原始时间戳和所述第二序号分别与所述第二数据包中第一个第一数据包对应的所述第一原始时间戳和所述第一序号相同。
  13. 如权利要求8至12任一者所述的方法,还包括,接收网络时间服务器的时间,通过所述网络时间服务器的时间校准本地时间,其中,所述第一原始时间戳是根据所述本地时间确定的。
  14. 如权利要求8至12任一者所述的方法,还包括,响应于对时指令计算相对时间,其中,所述预设的时间间隔根据所述相对时间确定。
PCT/CN2020/073885 2020-01-22 2020-01-22 物联网数据获取及封装装置和方法 WO2021147021A1 (zh)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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 현대자동차주식회사 차량용 전자장치를 제어하는 방법 및 장치

Patent Citations (5)

* Cited by examiner, † Cited by third party
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