Disclosure of Invention
In view of the foregoing, it is necessary to provide a data assimilation packaging method and device for a sensing device, so as to solve the technical problem that the complexity of the subsequent data analysis link is extremely high due to the difference of the collected data of multiple types of sensors in the prior art.
In one aspect, the present invention provides a data assimilation packaging method for a sensing device, including:
receiving data packets uploaded by a preset number of sensors, and preprocessing the data packets to obtain initial data corresponding to each sensor;
Processing the position information in the initial data according to a preset mapping table to obtain first intermediate data corresponding to each sensor; the preset mapping table is a mapping relation table constructed based on the logical position information and the engineering position information of the sensor;
Processing the first intermediate data according to the preset number of single-frame reference time in the matrix buffer area to obtain single-frame data packets corresponding to each single-frame reference time of each sensor; the matrix buffer area is a buffer area constructed based on the number of channels accessed by the sensor and the uploading frequency of the data packet;
And encapsulating the data in the single-frame data packets corresponding to each single-frame reference time of the preset number of sensors according to an assimilation encapsulation protocol to obtain target data packets corresponding to each single-frame reference time.
In some possible implementations, the preset number of single-frame reference times includes a first single-frame reference time;
the processing the first intermediate data according to the preset number of single-frame reference times in the matrix buffer area to obtain single-frame data packets corresponding to each single-frame reference time by each sensor comprises the following steps:
Determining second intermediate data of the preset number corresponding to the first sensors according to the first sensors with the fastest sending frequency in the preset number of the sensors;
obtaining single-frame reference time of a preset number according to the difference value between the first time stamps corresponding to the second intermediate data of the preset number and the first time alignment reference line, and determining the single-frame reference line;
Determining a position of the first intermediate data of each sensor in the matrix buffer according to the first intermediate data and the type of each sensor;
Judging whether the first intermediate data of a preset number of sensors positioned below the single frame datum line in the matrix buffer area are imported or not;
If yes, the first intermediate data of each sensor below the single frame reference line is processed to obtain the first single frame data packet of the first single frame reference time corresponding to each sensor.
In some possible implementations, the processing the first intermediate data according to a preset number of single-frame reference times in the matrix buffer to obtain single-frame data packets corresponding to each single-frame reference time by each sensor further includes:
if the first intermediate data of the second sensor at the position below the single frame datum line is not imported in the matrix buffer zone, judging whether the third intermediate data of the second sensor at the position below the single frame datum line is imported in a preset time;
If yes, the first intermediate data and the third intermediate data of each sensor below the single frame reference line are processed to obtain the second single frame data packet of each sensor corresponding to the first single frame reference time;
if not, processing the first intermediate data imported by each sensor below the single frame reference line to obtain the third single frame data packet of each sensor corresponding to the first single frame reference time.
In some possible implementations, the processing the first intermediate data according to a preset number of single-frame reference times in the matrix buffer to obtain single-frame data packets corresponding to each single-frame reference time by each sensor further includes:
If the first intermediate data of the second sensor at the position below the single frame datum line is not imported in the matrix buffer zone, copying the first intermediate data closest to the single frame datum line in the second sensor to obtain fourth intermediate data of the second sensor at the position below the single frame datum line;
And processing the first intermediate data and the fourth intermediate data of each sensor below the single frame reference line to obtain the fourth single frame data packet of each sensor corresponding to the first single frame reference time.
In some possible implementations, the obtaining a preset number of single-frame reference times according to the difference between the preset number of second intermediate data and the first time alignment reference line, and before determining the single-frame reference line, further includes:
judging whether the first time alignment datum line is assigned or not;
If yes, determining the first time alignment datum line according to the assignment;
If not, determining the first time alignment datum line according to the second time stamp of the received first data packet.
In some possible implementations, the preset number of single-frame reference times includes a second single-frame reference time;
The processing the first intermediate data according to the preset number of single-frame reference times in the matrix buffer area, after obtaining the single-frame data packet corresponding to each single-frame reference time by each sensor, further includes:
Updating the first time alignment datum line according to the second single frame datum time to obtain a second time alignment datum line;
And returning a step of determining the position of the first intermediate data of each sensor in the matrix buffer according to the first intermediate data and the type of each sensor according to the second single frame reference time and the second time alignment reference line.
In some possible implementations, the encapsulating, according to an assimilation encapsulation protocol, data in the single-frame data packets corresponding to the single-frame reference time by a preset number of the sensors to obtain a target data packet corresponding to the single-frame reference time includes:
Determining a preset number of single-frame data packets corresponding to each single-frame reference time by a preset number of sensors according to the preset number of single-frame reference times;
and encapsulating the data in the preset number of single-frame data packets according to the assimilation encapsulation protocol to obtain the target data packets corresponding to the reference time of each single frame.
In some possible implementations, the processing the location information in the initial data according to a preset mapping table to obtain first intermediate data corresponding to each sensor includes:
And converting the logic position information in the initial data into the engineering position information according to the mapping relation in the preset mapping table, so that the data of the sensors are spatially aligned according to the engineering position information, and first intermediate data after the spatial alignment of each sensor is obtained.
In some possible implementations, the receiving the data packet uploaded by the preset number of sensors, and preprocessing the data packet to obtain initial data corresponding to each sensor includes:
receiving a preset number of data packets uploaded by a preset number of sensors;
And carrying out data analysis on the preset number of data packets according to the communication protocol corresponding to each sensor to obtain initial data corresponding to each sensor.
On the other hand, the invention also provides a data assimilation packaging device of the sensing equipment, which comprises:
The data receiving module is used for receiving data packets uploaded by the sensors with the preset number, and preprocessing the data packets to obtain initial data corresponding to each sensor;
the position processing module is used for processing the position information in the initial data according to a preset mapping table to obtain first intermediate data corresponding to each sensor; the preset mapping table is a mapping relation table constructed based on the logical position information and the engineering position information of the sensor;
The time processing module is used for processing the first intermediate data according to the preset number of single-frame reference time in the matrix buffer area to obtain single-frame data packets of each sensor corresponding to each single-frame reference time; the matrix buffer area is a buffer area constructed based on the number of channels accessed by the sensor and the uploading frequency of the data packet;
And the data encapsulation module is used for encapsulating the data in the single-frame data packets corresponding to each single-frame reference time of the sensor with the preset number according to an assimilation encapsulation protocol to obtain the target data packets corresponding to each single-frame reference time.
The beneficial effects of adopting the embodiment are as follows: according to the data assimilation packaging method of the sensor equipment, the positions in the initial data of the sensor are processed through the preset mapping table, so that the data in the initial data of the sensor can be spatially aligned, the consistency of the format of position information is ensured, the first intermediate data can be processed through the matrix buffer zone according to the time in the first intermediate data of the sensor, the data in the intermediate data of the sensor can be time aligned, the consistency of the format of time information is ensured, and therefore the efficiency of retrieving the sensor data is improved. Furthermore, the data in the single-frame data packets corresponding to each single-frame reference time of the sensor are packaged through the assimilation packaging protocol to obtain the target data packet corresponding to each single-frame reference time, so that the data packet can be simplified, unified analysis is convenient, a worker can obtain the target data packet corresponding to the single-frame reference time according to the required single-frame reference time, the first intermediate data of all the sensors in the single-frame reference time is obtained, the difference among the data of each sensor is reduced, and the complexity of a subsequent data analysis link is reduced.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It will be apparent that the described embodiments are only some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software or in one or more hardware modules or integrated circuits or in different networks and/or processor systems and/or microcontroller systems.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the invention. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
The embodiment of the invention provides a data assimilation packaging method and device of sensing equipment, and the method and device are respectively described below.
Fig. 1 is a schematic flow chart of an embodiment of a data assimilation packaging method of a sensing device according to the present invention, where, as shown in fig. 1, the data assimilation packaging method of a sensing device includes:
S101, receiving data packets uploaded by a preset number of sensors, and preprocessing the data packets to obtain initial data corresponding to each sensor;
S102, processing the position information in the initial data according to a preset mapping table to obtain first intermediate data corresponding to each sensor; the preset mapping table is a mapping relation table constructed based on the logical position information and the engineering position information of the sensor;
S103, processing the first intermediate data according to the preset number of single-frame reference time in the matrix buffer area to obtain single-frame data packets corresponding to each single-frame reference time by each sensor; the matrix buffer area is a buffer area constructed based on the number of channels accessed by the sensor and the uploading frequency of the data packet;
S104, packaging the data in the single-frame data packets corresponding to the single-frame reference time of each sensor with a preset number according to an assimilation packaging protocol to obtain target data packets corresponding to the single-frame reference time.
Compared with the prior art, the data assimilation packaging method of the sensing equipment provided by the invention processes the positions in the initial data of the sensor through the preset mapping table, so that the data in the initial data of the sensor can be spatially aligned, the format consistency of the position information is ensured, the first intermediate data can be processed according to the time in the first intermediate data of the sensor through the matrix buffer zone, the data in the intermediate data of the sensor can be temporally aligned, the format consistency of the time information is ensured, and the efficiency of retrieving the sensor data is improved. Furthermore, the data in the single-frame data packets corresponding to each single-frame reference time of the sensor are packaged through the assimilation packaging protocol to obtain the target data packet corresponding to each single-frame reference time, so that the data packet can be simplified, unified analysis is convenient, a worker can obtain the target data packet corresponding to the single-frame reference time according to the required single-frame reference time, the first intermediate data of all the sensors in the single-frame reference time is obtained, the difference among the data of each sensor is reduced, and the complexity of a subsequent data analysis link is reduced.
It should be understood that: the embodiment of the invention can be applied to the central server, and the message processing central end of the central server can be connected with the network communication ports of different sensors, so that the central server can receive the data packets uploaded by the sensors.
In order that the data of the respective sensors may be processed, in some embodiments of the present invention, step S101 includes:
receiving a preset number of data packets uploaded by a preset number of sensors;
And carrying out data analysis on the preset number of data packets according to the communication protocol corresponding to each sensor to obtain initial data corresponding to each sensor.
It should be noted that: the method can receive data packets uploaded by different sensors, can also receive data packets of the same sensor at different times, and can analyze the data packets uploaded by the sensors through communication protocols corresponding to each sensor after receiving the data packets to obtain initial data corresponding to each sensor.
In a specific embodiment of the present invention, the preset number of sensors may be a vibration measuring grating array 1, a vibration measuring grating array 2, a temperature measuring grating array, a pressure film, and the like, and may receive the uploaded data packet of the sensor according to the characteristics of the sensor, such as the characteristics of frequency, and the like.
In order to spatially align the data of the respective sensors, in some embodiments of the present invention, step S102 includes:
And converting the logic position information in the initial data into the engineering position information according to the mapping relation in the preset mapping table, so that the data of the sensors are spatially aligned according to the engineering position information, and first intermediate data after the spatial alignment of each sensor is obtained.
In a specific embodiment of the present invention, the logical position information may include data such as a device ID1, a channel, a zone, etc., the engineering position information may include data such as an in-lane and a lane, etc., as shown in fig. 2, in the preset mapping table provided by the present invention, as shown in fig. 2, the logical position information of each sensor may be converted into the engineering position information according to the mapping relation between the logical position information and the engineering position information in the preset mapping table, so as to implement the unified format of the position information, and play a role of spatial alignment, for example, the data packet uploaded by the vibration measurement grating array 1 at the timestamp 1680849900ms is a data packet with a device ID1, a channel number 3, a grating number of 123, the data packet uploaded by the temperature measurement grating array at the timestamp 1680849900ms is a data packet with a device ID2, a channel number 1, and a grating number of 10, and then the engineering position information of the data packet of the vibration measurement grating array 1 at the timestamp 1680849900ms after the preset mapping conversion is 1001, the lane is Y1, and the engineering position information of the data packet of the temperature measurement grating array at the timestamp 1680849900ms is 1001, and the lane is Y1.
In order to time align the data of the respective sensors, in some embodiments of the present invention, the preset number of single frame reference times includes a first single frame reference time; step S103 includes:
Determining second intermediate data of the preset number corresponding to the first sensors according to the first sensors with the fastest sending frequency in the preset number of the sensors;
obtaining single-frame reference time of a preset number according to the difference value between the first time stamps corresponding to the second intermediate data of the preset number and the first time alignment reference line, and determining the single-frame reference line;
Determining a position of the first intermediate data of each sensor in the matrix buffer according to the first intermediate data and the type of each sensor;
Judging whether the first intermediate data of a preset number of sensors positioned below the single frame datum line in the matrix buffer area are imported or not;
If yes, the first intermediate data of each sensor below the single frame reference line is processed to obtain the first single frame data packet of the first single frame reference time corresponding to each sensor.
It should be noted that: the first sensor with the fastest uploading data packet frequency can be determined from the sensors, then all the data packets uploaded by the first sensor are determined to be second intermediate data, and when the data packets received by the central server are the data packets uploaded by the second sensor, the first intermediate data are consistent with the second intermediate data; the matrix buffer may be a multi-element two-dimensional data matrix buffer.
In a specific embodiment of the present invention, after determining the first sensor with the fastest frequency, a first timestamp may be determined according to the second intermediate data of the first sensor, so that, according to the difference between the first timestamp and the first time alignment reference line, a preset number of single frame reference times and single frame reference lines are determined, fig. 3 is a schematic diagram of the multi-element two-dimensional data matrix buffer area provided by the present invention, as shown in fig. 3, for example, if the vibration measuring grating array 1 is the first sensor, the timestamp in the data packet of the vibration measuring grating array 1 is taken as the first timestamp, the first timestamp is respectively 1680849900ms, 1680849950ms, 1680850000ms, 1680850050ms, and the like, and corresponds to 0ms, 50ms, 100ms, and 150ms on the time axis, and when the first time alignment reference line is 0, the difference T is respectively 0, 50, 100, 150,0-50ms, 50-100ms, and 100-150ms are data packets, so that a single frame is 50, and after the data packet is stacked between 0-50ms, the data packet is popped from 50ms to 100ms, and the data packet is popped from the center until the server receives the data packet. The data packet of each sensor can be imported to the corresponding position in the multi-element two-dimensional data matrix buffer area according to the first timestamp and the type of the sensor, when the data packets of all the sensors below the single frame datum line are imported, the first intermediate data of the vibration measuring grating array 1, the vibration measuring grating array 2, the temperature measuring grating array and the pressure film T=0 are popped together, so that the data packets of all the sensors with T=0 are obtained, and time alignment is realized.
In some embodiments of the present invention, the obtaining a preset number of single frame reference times according to the difference between the preset number of second intermediate data and the first time alignment reference line, and before determining the single frame reference line, further includes:
judging whether the first time alignment datum line is assigned or not;
If yes, determining the first time alignment datum line according to the assignment;
If not, determining the first time alignment datum line according to the second time stamp of the received first data packet.
It should be noted that: when calculating the difference between the first time alignment datum and the first time stamp, whether the first time alignment datum is assigned can be judged first, if so, the difference can be calculated, if not, the time stamp of the first data packet received by the central server is determined to be a second time stamp, and the second time stamp is assigned to the first time alignment datum.
In some embodiments of the present invention, step S103 further includes:
if the first intermediate data of the second sensor at the position below the single frame datum line is not imported in the matrix buffer zone, judging whether the third intermediate data of the second sensor at the position below the single frame datum line is imported in a preset time;
If yes, the first intermediate data and the third intermediate data of each sensor below the single frame reference line are processed to obtain the second single frame data packet of each sensor corresponding to the first single frame reference time;
if not, processing the first intermediate data imported by each sensor below the single frame reference line to obtain the third single frame data packet of each sensor corresponding to the first single frame reference time.
It should be noted that: if the first intermediate data of the sensor which is below the single frame datum line and is in the preset number is not imported, the sensor which is not imported is determined to be the second sensor, the data packet of the second sensor is the third intermediate data, the fact that the third intermediate data of the position below the single frame datum line of the second sensor is not imported in the preset time is judged, if the first intermediate data and the third intermediate data of the sensors below the single frame datum line are imported, the first intermediate data and the third intermediate data of the sensors below the single frame datum line are stacked together, and if the first intermediate data and the third intermediate data of the sensors are not imported, the first intermediate data of the imported sensors are stacked together.
In a specific embodiment of the present invention, as shown in fig. 3, after the data packets of t=0 are popped, it is required to poppe the data packets of t=50, at this time, the single frame reference line should be at a position of 100ms, and the data packets of t=50 of the vibration sensing grating array 2 are missing, the data packets of t=50 of the pressure film are missing, the data packets of the vibration sensing grating array 2, the temperature sensing grating array and the pressure film can be determined as the second sensor, the missing data packets are determined as the third intermediate data, then it is possible to determine whether the third intermediate data is imported to the data packets of t=50 in a preset time, if all the data packets are imported, then the first intermediate data of t=50 of the vibration sensing grating array 1, the third intermediate data of t=50 of the temperature sensing grating array 2 t=50, the third intermediate data of the pressure film t=50, and the third intermediate data of the pressure film t=50 are popped together, and the data packets of each sensor of t=50 are obtained, if the preset time is at least one of the third intermediate data of t=50 is exceeded, and the third intermediate data of the first intermediate data of t=50 is not being imported, and the third intermediate data of t=50 is not being sensed, and the third intermediate data of t=50 is not being imported, and the third intermediate data of the intermediate data 1 t=50 is directly sensed, and the third intermediate data of the intermediate data is not being imported to be imported to the intermediate data of the intermediate data 1 is directly, and 50 data is required to be imported, other cases are similar processes.
In some embodiments of the present invention, step S103 further includes:
If the first intermediate data of the second sensor at the position below the single frame datum line is not imported in the matrix buffer zone, copying the first intermediate data closest to the single frame datum line in the second sensor to obtain fourth intermediate data of the second sensor at the position below the single frame datum line;
And processing the first intermediate data and the fourth intermediate data of each sensor below the single frame reference line to obtain the fourth single frame data packet of each sensor corresponding to the first single frame reference time.
It should be noted that: the processing procedure for judging whether the third intermediate data is imported in the preset time is one of the processing schemes for data packet loss, and the processing scheme for copying other data packets of the same sensor to obtain the data packets of the sensors below the single frame datum line, wherein the two schemes can be used for processing the data packets in the matrix buffer area according to the actual situation.
In a specific embodiment of the present invention, as shown in fig. 3, after the data packet with t=0 is popped, the data packet with t=50 needs to be popped, where the single frame datum line should be at the position of 100ms, and the data packet with t=50 of the vibration sensing grating array 2 is missing, the data packet with t=50 of the vibration sensing grating array is missing, then the first intermediate data closest to the single frame datum line in the second sensor can be determined according to the single frame datum line, the first intermediate data is determined as the fourth intermediate data, for example, the data packet with t=0 of the vibration sensing grating array is the first intermediate data closest to the single frame datum line in the vibration sensing grating array 2, the data packet with t=0 is copied, the data packet with t=0 of the vibration sensing grating array is led to the position of the single frame datum line 2 t=50, the sending frequency of the temperature sensing grating array and the pressure film is lower, the data packet with t=50 of the pressure film is larger, the data packet with t=50 of the pressure film is received by the central server, and the data packet with t=0 of the nearest in the single frame datum line in the second sensor is also determined, and the data packet with t=0 of the single frame datum line is copied to the single frame datum line, and the pressure sensor is processed at the position of the single frame datum line, and the single frame datum line is processed, and the pressure transducer is subjected to the position of the single frame datum data is at the position of the single frame datum and the temperature datum and the temperature.
In some embodiments of the invention, the predetermined number of single frame reference times comprises a second single frame reference time; after step S103, further including:
Updating the first time alignment datum line according to the second single frame datum time to obtain a second time alignment datum line;
And returning a step of determining the position of the first intermediate data of each sensor in the matrix buffer according to the first intermediate data and the type of each sensor according to the second single frame reference time and the second time alignment reference line.
It should be noted that: and according to the difference value, respectively obtaining the data packet corresponding to each frame of each sensor, and continuously popping the data packet of the second single-frame reference time after popping the data packet of the first single-frame reference time of the sensor until all the data packets of the single-frame reference time of each frame are popped.
In a specific embodiment of the present invention, according to the single frame reference time T, 0, 50, 100 and 150 may be obtained respectively, the data packet of the sensor t=0 is popped, then the data packet of the sensor t=50 is popped, then the data packet of the sensor t=100 is popped, and finally the data packet of the sensor t=150 is popped.
In some embodiments of the present invention, step S103 further includes: determining a preset number of single-frame data packets corresponding to each single-frame reference time by a preset number of sensors according to the preset number of single-frame reference times;
and encapsulating the data in the preset number of single-frame data packets according to the assimilation encapsulation protocol to obtain the target data packets corresponding to the reference time of each single frame.
It should be noted that: the data of the sensors can be analyzed through the communication protocol corresponding to each sensor, the data in the single-frame data packet corresponding to each sensor can be packaged through the assimilation packaging protocol according to all single-frame reference time, and the target data packet corresponding to each single-frame reference time can be obtained, wherein fig. 4 is a schematic diagram of the assimilation packaging protocol provided by the invention, and as shown in fig. 4, the data frame time in the data head is the time corresponding to the current single-frame reference time of the current package, the data body is the sensor, and the number of the data bodies is the number of the sensors.
In the specific embodiment of the present invention, the single frame reference time T includes 0, 50, 100 and 150, and data packets of t=0, t=50, t=100 and t=150 in the vibration measurement grating array 1, the vibration measurement grating array 2, the temperature measurement grating array and the pressure film can be obtained respectively, then the data packets of the vibration measurement grating array 1, the vibration measurement grating array 2, the temperature measurement grating array and the pressure film when t=0 are analyzed by an assimilation encapsulation protocol, as shown in fig. 4, the data frame time in the data header is 0-50ms corresponding to the time t=0, the number of sensors is 4, and 4 data volumes are total, and then a single frame data packet belonging to 0-50ms is obtained according to the 4 data packets of the vibration measurement grating array 1, the temperature measurement grating array and the pressure film, and the target data packet can be output or coupled to other modules through the network, so as to improve the normative property and timeliness of the data.
In order to better implement the data assimilation packaging method of the sensing device in the embodiment of the present invention, correspondingly, the embodiment of the present invention further provides a data assimilation packaging device of the sensing device based on the data assimilation packaging method of the sensing device, as shown in fig. 5, where the data assimilation packaging device of the sensing device includes:
the data receiving module 201 is configured to receive data packets uploaded by a preset number of sensors, and pre-process the data packets to obtain initial data corresponding to each sensor;
the position processing module 202 is configured to process the position information in the initial data according to a preset mapping table, so as to obtain first intermediate data corresponding to each sensor; the preset mapping table is a mapping relation table constructed based on the logical position information and the engineering position information of the sensor;
The time processing module 203 is configured to process the first intermediate data according to a preset number of single-frame reference times in the matrix buffer area, so as to obtain a single-frame data packet corresponding to each single-frame reference time by each sensor; the matrix buffer area is a buffer area constructed based on the number of channels accessed by the sensor and the uploading frequency of the data packet;
and the data encapsulation module 204 is configured to encapsulate, according to an assimilation encapsulation protocol, data in the single-frame data packets corresponding to the single-frame reference time by a preset number of sensors, and obtain a target data packet corresponding to the single-frame reference time.
The data assimilation packaging device for a sensing device provided in the foregoing embodiment may implement the technical solution described in the data assimilation packaging method embodiment for a sensing device, and the specific implementation principle of each module or unit may refer to the corresponding content in the data assimilation packaging method embodiment for a sensing device, which is not described herein.
As shown in fig. 6, the invention also correspondingly provides a data assimilation packaging device 1000 of the sensing device. The data assimilation packaging device 1000 of the sensing device comprises a processor 1001, a memory 1002 and a display 1003. Fig. 6 shows only some of the components of the data assimilation packaging 1000 of the sensing device, but it will be understood that not all of the illustrated components are required to be implemented and that more or fewer components may alternatively be implemented.
The memory 1002 may in some embodiments be an internal storage unit of the data assimilation packaging device 1000 of the sensing device, e.g. a hard disk or a memory of the data assimilation packaging device 1000 of the sensing device. The memory 1002 may also be an external storage device of the data assimilation packaging device 1000 of the sensing device in other embodiments, such as a plug-in hard disk provided on the data assimilation packaging device 1000 of the sensing device, a smart memory card (SMART MEDIA CARD, SMC), a Secure Digital (SD) card, a flash memory card (FLASH CARD), etc.
Further, the memory 1002 may also include both internal and external storage units of the data assimilation packaging device 1000 of the sensing device. The memory 1002 is used for storing application software and various types of data of the data assimilation packaging apparatus 1000 in which the sensor apparatus is installed.
The processor 1001 may in some embodiments be a central processing unit (Central Processing Unit, CPU), microprocessor or other data processing chip for executing program code or processing data stored in the memory 1002, such as the data assimilation packaging method of the sensing device of the invention.
The display 1003 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch, or the like in some embodiments. The display 1003 is used for displaying information at the data assimilation packaging 1000 of the sensing device and for displaying a visual user interface. The components 1001-1003 of the sensing device's data assimilation packaging 1000 communicate with each other via a system bus.
In some embodiments of the present invention, when the processor 1001 executes the data assimilation packaging program of the sensing device in the memory 1002, the following steps may be implemented:
receiving data packets uploaded by a preset number of sensors, and preprocessing the data packets to obtain initial data corresponding to each sensor;
Processing the position information in the initial data according to a preset mapping table to obtain first intermediate data corresponding to each sensor; the preset mapping table is a mapping relation table constructed based on the logical position information and the engineering position information of the sensor;
Processing the first intermediate data according to the preset number of single-frame reference time in the matrix buffer area to obtain single-frame data packets corresponding to each single-frame reference time of each sensor; the matrix buffer area is a buffer area constructed based on the number of channels accessed by the sensor and the uploading frequency of the data packet;
And encapsulating the data in the single-frame data packets corresponding to each single-frame reference time of the preset number of sensors according to an assimilation encapsulation protocol to obtain target data packets corresponding to each single-frame reference time.
It should be understood that: the processor 1001 may, in executing the data assimilation packaging program of the sensor device in the memory 1002, perform other functions in addition to the above, in particular see the description of the corresponding method embodiments above.
Further, the type of the data assimilation packaging device 1000 of the sensing device is not particularly limited in the embodiment of the present invention, and the data assimilation packaging device 1000 of the sensing device may be a data assimilation packaging device of a portable sensing device such as a mobile phone, a tablet computer, a personal digital assistant (personal digitalassistant, PDA), a wearable device, a laptop (laptop) or the like. Exemplary embodiments of the data assimilation packaging for portable sensing devices include, but are not limited to, data assimilation packaging for portable sensing devices that are equipped with IOS, android, microsoft or other operating systems. The data assimilation packaging device of the portable sensor device described above may also be a data assimilation packaging device of other portable sensor devices, such as a laptop computer (laptop) with a touch-sensitive surface (e.g. touch panel), etc. It should also be appreciated that in other embodiments of the present invention, the data assimilation packaging 1000 of a sensing device may be a desktop computer having a touch-sensitive surface (e.g., touch panel) instead of a portable sensing device.
Correspondingly, the embodiment of the application also provides a computer readable storage medium, and the computer readable storage medium is used for storing a computer readable program or instruction, and when the program or instruction is executed by a processor, the steps or functions of the data assimilation packaging method of the sensing device provided by the above method embodiments can be realized.
Those skilled in the art will appreciate that all or part of the flow of the methods of the embodiments described above may be accomplished by way of a computer program stored in a computer readable storage medium to instruct related hardware (e.g., a processor, a controller, etc.). The computer readable storage medium is a magnetic disk, an optical disk, a read-only memory or a random access memory.
The above description is made in detail on the data assimilation packaging method and device of the sensing device provided by the invention, and specific examples are applied herein to illustrate the principle and implementation of the invention, and the above examples are only used to help understand the method and core idea of the invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present invention, the present description should not be construed as limiting the present invention.