Visual Communication Data Parsing Method, Device, Equipment and Storage Medium

By receiving and formatting the communication data of IoT devices, and generating a visual configuration interface, establishing a mapping relationship between data and databases, the problems of high docking costs and low data analysis efficiency in the existing technology are solved, and more efficient data analysis and storage are achieved.

CN119094630BActive Publication Date: 2025-06-03HANGZHOU HAOLINK INTELLIGENT TECHNOLOGY CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411506767.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-28
Publication Date
2025-06-03
Estimated Expiration
2044-10-28

AI Technical Summary

Technical Problem

When existing industrial control systems receive communication data generated by different manufacturers and IoT devices based on the Modbus TCP protocol, they need to carry out code development separately, resulting in high docking costs and low data analysis efficiency.

Method used

By receiving original device data, converting formats based on communication protocols, generating target device data, and generating visual configuration interfaces using pre-set device data analysis formats, establishing a mapping relationship between target device data and database, and realizing visual storage of data.

Benefits of technology

This reduces the docking cost of communication data, improves data parsing efficiency, and avoids the server side needing to establish different code modules to process data from different devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119094630B_ABST
    Figure CN119094630B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, apparatus, device and storage medium for visualizing communication data parsing. The method for visualizing communication data parsing includes: receiving original device data sent by a data sending device; performing format conversion on the original device data based on the communication protocol between the data sending device and the server side; generating a visual configuration interface corresponding to the target device data based on the target device data and a pre-set device data parsing format; and storing the target device data based on the visual configuration interface. Through the above technical solution, the docking cost of communication data is reduced, and at the same time, the data parsing efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data communication, and in particular, to a visual communication data parsing method, apparatus, device, and storage medium. Background Art

[0002] With the popularization of Internet of Things (IoT) devices and the expansion of application scenarios, the docking requirements for intelligent devices are increasing. In particular, for some general protocols such as Modbus TCP, as a communication protocol, Modbus TCP is widely used in industrial control systems. The internal stored data often has different data structures, and for different manufacturers and different IoT devices, the data formats and data types of the communication data generated based on the Modbus TCP communication protocol are different. Therefore, in the existing industrial control systems, for each type of device to be docked, code development needs to be carried out once, resulting in a relatively high docking cost. Summary of the Invention

[0003] The present invention provides a visual communication data parsing method, apparatus, device, and storage medium to improve data communication efficiency and reduce communication costs.

[0004] According to one aspect of the present invention, there is provided a visual communication data parsing method, the method comprising:

[0005] Receiving original device data sent from a data sending device;

[0006] Based on the communication protocol between the data sending device and the server side, performing format conversion on the original device data to generate target device data;

[0007] Based on the target device data and a pre-set device data parsing format, generating a visual configuration interface corresponding to the target device data; wherein, the device data parsing format is used to parse the target device data and establish a mapping relationship between the target device data and the database;

[0008] Storing the target device data based on the visual configuration interface.

[0009] According to another aspect of the present invention, there is provided a visual communication data parsing apparatus, the apparatus comprising:

[0010] A data receiving module, configured to receive original device data sent from a data sending device;

[0011] A data conversion module, configured to perform format conversion on the original device data based on the communication protocol between the data sending device and the server side to generate target device data;

[0012] A data parsing module, configured to generate a visualization configuration interface corresponding to the target device data based on the target device data and a preset device data parsing format; wherein, the device data parsing format is used to parse the target device data and establish a mapping relationship between the target device data and a database;

[0013] A data storage module, configured to store the target device data based on the visualization configuration interface.

[0014] According to another aspect of the present invention, there is provided an electronic device, which includes:

[0015] At least one processor; and

[0016] A memory communicatively connected to the at least one processor; wherein,

[0017] The memory stores a computer program executable by the at least one processor, and when the computer program is executed by the at least one processor, the at least one processor is enabled to execute the visualization communication data parsing method according to any embodiment of the present invention.

[0018] According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions for causing a processor to implement the visualization communication data parsing method according to any embodiment of the present invention when executed.

[0019] According to another aspect of the present invention, there is provided a computer program product including a computer program, which implements the visualization communication data parsing method according to any embodiment of the present invention when executed by a processor.

[0020] The technical solution of the embodiment of the present invention converts the format of the original device data sent by the data sending device to generate target device data, and while establishing a connection relationship between the target device data and the database based on a general device data parsing format, generates a visualization configuration page corresponding to the target device data, avoiding the need for the server side to establish different code modules to separately dock and parse device data of different types from different data sending devices, reducing the docking cost of communication data and improving the data parsing efficiency at the same time.

[0021] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present invention, nor is it used to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. Description of the Drawings

[0022] To more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the accompanying drawings required for the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can be obtained based on these drawings.

[0023] Figure 1 It is a flowchart of a visual communication data parsing method provided in the first embodiment of the present invention;

[0024] Figure 2 It is a flowchart of a visual communication data parsing method provided in the second embodiment of the present invention;

[0025] Figure 3 It is a schematic structural diagram of a visual communication data parsing device provided in the third embodiment of the present invention;

[0026] Figure 4 It is a schematic structural diagram of an electronic device for implementing the visual communication data parsing method of the embodiments of the present invention. Detailed Embodiments

[0027] In order to enable those skilled in the art to better understand the solution of the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, rather than all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above accompanying drawings are used to distinguish similar objects, and do not necessarily need to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present invention described here can be implemented in an order other than those illustrated or described here. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products, or devices.

[0029] Embodiment 1

[0030] Figure 1The following is a flowchart of a visual communication data parsing method provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation where a server receives communication data and stores it. The method can be executed by a visual communication data parsing device, which can be implemented in the form of hardware and / or software. The visual communication data parsing device can be configured in various general computing devices, such as server devices. As Figure 1 shown, the method includes:

[0031] S110. Receive the original device data sent by the data sending device.

[0032] In the embodiment of the present invention, the data sending device can refer to various Internet of Things devices, such as environmental monitoring devices, etc.; the original device data can include the collected data of the Internet of Things devices. For example, when the data sending device is an environmental monitoring device, the original device data can include temperature data, air humidity data, air pollutant concentration data, etc. Optionally, in the embodiment of the present invention, the original device data is data in byte stream format generated by the data sending device according to a pre-set communication protocol and transmitted to the server side in byte stream format. It should be noted that the selection of the communication protocol can be adaptively set by those skilled in the art, such as the Modbus TCP communication protocol.

[0033] S120. Based on the communication protocol between the data sending device and the server side, perform format conversion on the original device data to generate target device data.

[0034] Among them, the target device data can be data in key-value pair format.

[0035] It should be noted that the data format of the original device data generated by the data sending device according to the pre-set communication protocol with the server side is a fixed data format. Therefore, after receiving the original device data, the server side can perform format conversion on the original device data, extract the data information of the fixed byte positions in the original device data to generate target device data.

[0036] Optionally, performing format conversion on the original device data based on the communication protocol between the data sending device and the server side to generate target device data includes: extracting the byte data information of the fixed byte positions in the original device data according to the communication protocol between the data sending device and the server side, and determining the device data type and data value corresponding to the original device data; determining the register bit information corresponding to the device data type according to the pre-set field mapping relationship between the data sending device and the register bit; using the register bit information as the key bit and the data value of the device data as the value bit to generate target device data in key-value pair format.

[0037] Among them, the field mapping relationship can be used to record the correspondence between the types of device data of the data sending device and the storage bits; optionally, the field mapping relationship can exist in the form of a mapping table.

[0038] Specifically, according to the communication protocol between the data sending device and the server side, the byte data information of the fixed byte bits representing the device data type and the data value in the original device data can be extracted to determine the device data type and the data value corresponding to the original device data. Then, according to the mapping relationship between the storage bits preset in the server side and the device data types of the data sending device, the storage bit information corresponding to the original device data sent by the data sending device can be determined. The server side can generate the target device data in the key-value pair format with the storage bit information as the key and the data value of the device data as the value.

[0039] Optionally, in the embodiments of the present invention, the storage bits can be used to represent different types of device data. The server side can pre-establish a corresponding storage bit mapping relationship for the device data types of the data sending device according to the device type of the data sending device. And when the storage bits are different, the data information of the device data types bound by the storage bits is also different. Exemplarily, when the device type of the data sending device is an environmental monitoring device, the target device data can be as follows: {"0":"22","1":"3"}. "0" represents the first storage bit, "22" can refer to the data value in the first storage bit, and the temperature value is 22 degrees Celsius. "1" can represent the second storage bit, and "3" can refer to the data value in the second storage bit, and the value of PM2.5 is 3.

[0040] By converting the format of the original device data sent by the data sending device and processing the original device data of different data sending devices using a unified data format, it avoids separately docking and processing the device data of different data types and improves the data parsing efficiency.

[0041] S130. Generate a visual configuration interface corresponding to the target device data based on the target device data and the preset device data parsing format.

[0042] Among them, the device data parsing format can be used to parse the target device data and establish the connection relationship between the target device data and its corresponding database. Optionally, the device data parsing format includes at least one data configuration field, such as a data type field, a database field, and a data parsing rule field. It should be noted that the device data parsing format is a general data parsing format, and the server side can parse the target device data from different data sending devices according to the preset data parsing format.

[0043] S140. Store the target device data based on the visual configuration interface.

[0044] In an embodiment of the present invention, storing the target device data based on the visual configuration interface includes: writing the target device data into a database according to the data information of the device data recorded in the visual configuration interface, and completing the parsing and storage of the data.

[0045] The technical solution of the embodiment of the present invention converts the format of the original device data sent by the data sending device to generate the target device data, and while establishing the connection relationship between the target device data and the database based on the general device data parsing format, generates the visual configuration page corresponding to the target device data, avoiding the establishment of different code modules on the server side and separately docking and parsing the device data of different types from different data sending devices, reducing the docking cost of communication data and improving the data parsing efficiency at the same time.

[0046] Embodiment Two

[0047] Figure 2 The flowchart of a visual communication data parsing method provided for Embodiment Two of the present invention is further refined on the basis of the above embodiment, and provides the specific steps of generating the visual configuration interface corresponding to the target device data based on the target device data and the pre-set device data parsing format. It should be noted that for the parts not detailed in the embodiment of the present invention, reference can be made to the relevant descriptions of other embodiments, which will not be elaborated here. As Figure 2 shown, the method includes:

[0048] S210. Receive the original device data sent by the data sending device.

[0049] S220. Based on the communication protocol between the data sending device and the server side, convert the format of the original device data to generate the target device data.

[0050] S230. According to the data mapping relationship table corresponding to the data sending device, determine the data information of the device data corresponding to the key position of the target device data.

[0051] Among them, the data mapping relationship table records the mapping relationship between the key positions in the target device data and the data information of the device data types, that is, the data mapping relationship table can be used to represent the corresponding relationship between the register bit information and the data information of the device data types.

[0052] Optionally, the data information may include the data type of the device data, the database field to which the device data belongs, and the data parsing rule. It should be noted that each type of data information can match the corresponding configuration field in the data parsing format.

[0053] In an embodiment of the present invention, the server side can pre - establish a corresponding database for the data sending device. The database includes data information of each type of device data. The server side can establish a mapping relationship between the storage bit and the data information of the device data type according to the correspondence between the device data type of the data sending device recorded in the field mapping relationship and the storage bit, and the data information of each type of device data in the database. After the server side obtains the target device data, it can determine the data information corresponding to the device data type represented by the key bit (storage bit information) in the target device data.

[0054] S240. Update the configuration fields in the device data parsing format according to the data information, and generate a visual configuration page based on the updated configuration fields.

[0055] Optionally, in an embodiment of the present invention, the device data parsing format can be as follows: {"bitDataOffset":0,"dataType":"CHAR","fieldName":"temperature","offset": 0,"logic": {"1": "mod(1000)"}}. The offset can be used to represent the offset position information of the storage bit, that is, the value of the storage bit of the target device data. The bitDataOffset can be used for the device data of the switch value type existing in the current storage bit. For example, it represents whether a certain function of the data sending device is enabled. The fieldName can be used to represent the database field to which the data corresponding to the current storage bit belongs. The dataType can be used to represent the data type of the data corresponding to the current storage bit, such as floating - point type, integer type, etc. The logic can be used to represent the parsing rule of the data corresponding to the current storage bit. For example, when the humidity is 70%, the humidity value transmitted during actual transmission is 700. After the server side receives the data, it will perform transformation according to the logic. Mod(1000) means dividing by 1000 to restore the humidity value.

[0056] By adopting a general device data parsing format to parse the target device data, it avoids additional code configuration for the original device data, parses data from different data sending devices, and improves the data parsing efficiency.

[0057] After determining the data information corresponding to the target device data, the server side can update the configuration fields in the device data parsing format to generate a visual configuration page. For example, if the target device data of the environmental monitoring device is {"0":"22","1":"700"}, the server side will query and determine the data information of the device data type corresponding to the key value according to the key value "0" and the key value "1" in the data mapping relationship table, and update the configuration fields in the device data parsing format according to the determined data information to generate a respective visual configuration page for each key value. It should be noted that the visual configuration page can refer to a page in which specific field values are updated for the configuration fields in the data parsing format.

[0058] S250. Store the target device data based on the visual configuration interface.

[0059] Specifically, the server side can write the numerical value corresponding to the value bit in the target device data into the data table in the corresponding database according to the configuration fields in the visual configuration page and the field values corresponding to the configuration fields.

[0060] The technical solution of the embodiment of the present invention, by establishing a data mapping relationship table corresponding to different data sending devices, using the register bits in the target device data as an identifier to determine the data information corresponding to the target device data in the mapping relationship table, and generating a visual configuration page for the data information, avoids the server side executing different data parsing logics for the original device data from different data sending devices, improves the data parsing efficiency between the data sending device and the server side, and reduces the docking cost between the data sending device and the server side.

[0061] Embodiment III

[0062] Figure 3 It is a schematic structural diagram of a visual communication data parsing device provided in Embodiment III of the present invention. As Figure 3 shown, the device includes:

[0063] A data receiving module 310, configured to receive the original device data sent by the data sending device;

[0064] A data conversion module 320, configured to perform format conversion on the original device data based on the communication protocol between the data sending device and the server side to generate target device data;

[0065] A data parsing module 330, configured to generate a visual configuration interface corresponding to the target device data based on the target device data and a preset device data parsing format; wherein, the device data parsing format is used to parse the target device data and establish a mapping relationship between the target device data and the database.

[0066] A data storage module 340 for storing the target device data based on the visualization configuration interface.

[0067] The technical solution of the embodiment of the present invention converts the original device data sent by the data sending device into the target device data, and while establishing the connection relationship between the target device data and the database based on the general device data parsing format, generates the visualization configuration page corresponding to the target device data, avoiding the establishment of different code modules on the server side and separately docking and parsing the device data of different types from different data sending devices, reducing the docking cost of communication data and improving the data parsing efficiency at the same time.

[0068] Optionally, the data format of the target device data can be the key-value pair format.

[0069] Optionally, the data parsing module 330 includes:

[0070] A data information determination unit for determining the data information of the device data corresponding to the key position of the target device data according to the data mapping relationship table corresponding to the data sending device; wherein, the data mapping relationship table records the mapping relationship between the key positions in the target device data and the data information of the device data types.

[0071] A field update unit for updating the configuration fields in the device data parsing format according to the data information and generating a visualization configuration page according to the updated configuration fields.

[0072] Optionally, the data information may include the data type of the device data, the database field to which the device data belongs, and the data parsing rule.

[0073] Optionally, the original device data can be transmitted in the byte stream format.

[0074] Optionally, the data conversion module 320 includes:

[0075] A data extraction unit for extracting the byte data information of the fixed byte positions in the original device data according to the communication protocol between the data sending device and the server side, and determining the device data type and data value corresponding to the original device data.

[0076] A register bit determination unit for determining the register bit information corresponding to the device data type according to the pre-set field mapping relationship between the data sending device and the register bit; wherein, the field mapping relationship records the corresponding relationship between the device data type of the data sending device and the register bit.

[0077] A data generation unit, configured to generate target device data in a key-value pair format by using the register bit information as a key and the data value of the device data as a value.

[0078] Optionally, when the register bits are different, the data information of the types of device data bound to the register bits is also different.

[0079] Optionally, the data storage module 340 may be specifically configured to: write the target device data into a database according to the data information of the device data recorded in the visualization configuration interface.

[0080] The visualization communication data parsing device provided by the embodiments of the present invention can execute the visualization communication data parsing method provided by any embodiment of the present invention, and has function modules and beneficial effects corresponding to the execution of the method.

[0081] Embodiment 4

[0082] Figure 4 FIG. shows a schematic structural diagram of an electronic device 10 that can be used to implement the embodiments of the present invention. The electronic device is intended to represent various forms of digital computers, such as, a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as, a personal digital processor, a cellular phone, a smart phone, a wearable device (such as a helmet, glasses, a watch, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.

[0083] As Figure 4 shown, the electronic device 410 includes at least one processor 411, and a memory communicatively connected to at least one processor 411, such as a read-only memory (ROM) 412, a random access memory (RAM) 413, etc. Among them, the memory stores a computer program executable by at least one processor. The processor 411 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 412 or the computer program loaded from the storage unit 418 into the random access memory (RAM) 413. In the RAM 413, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 411, the ROM 412, and the RAM 413 are connected to each other through a bus 414. The input / output (I / O) interface 415 is also connected to the bus 414.

[0084] Multiple components in the electronic device 410 are connected to the I / O interface 415, including: an input unit 416, such as a keyboard, a mouse, etc.; an output unit 417, such as various types of displays, speakers, etc.; a storage unit 418, such as a disk, an optical disc, etc.; and a communication unit 419, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 419 allows the electronic device 410 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.

[0085] The processor 411 can be various general and / or special processing components with processing and computing capabilities. Some examples of the processor 411 include but are not limited to a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the method for parsing visualized communication data.

[0086] In some embodiments, the method for parsing visualized communication data can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as the storage unit 418. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 410 via the ROM 412 and / or the communication unit 419. When the computer program is loaded into the RAM 413 and executed by the processor 411, one or more steps of the method for parsing visualized communication data described above can be executed. Alternatively, in other embodiments, the processor 411 can be configured to execute the method for parsing visualized communication data in any other suitable manner (e.g., by means of firmware).

[0087] Various embodiments of the systems and technologies described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs, which can be executed and / or interpreted on a programmable system including at least one programmable processor, the programmable processor can be a dedicated or general programmable processor, can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit the data and instructions to the storage system, the at least one input device, and the at least one output device.

[0088] A computer program for implementing the method of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, a special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions / operations specified in the flowchart and / or block diagram to be implemented. The computer programs may be executed entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.

[0089] In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, the computer-readable storage medium may be a machine-readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0090] In order to provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the electronic device. Other kinds of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0091] The systems and techniques described herein can be implemented in a computing system including backend components (e.g., as a data server), or a computing system including middleware components (e.g., an application server), or a computing system including frontend components (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described herein), or a computing system including any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected with each other by digital data communication in any form or medium (e.g., a communication network). Examples of communication networks include: local area network (LAN), wide area network (WAN), blockchain network, and the Internet.

[0092] A computing system can include a client and a server. The client and the server are generally remote from each other and typically interact through a communication network. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system, solving the defects of difficult management and weak business scalability existing in traditional physical hosts and VPS services.

[0093] It should be understood that various forms of the processes shown above can be used, with steps reordered, added, or deleted. For example, the steps recited in the present invention can be executed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved, and no limitation is imposed herein.

[0094] The above specific embodiments do not constitute a limitation on the protection scope of the present invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims

1. A visual communication data analysis method, characterized in that: Applied to the server side, the method includes: Receiving original device data sent from a data sending device; Based on the communication protocol between the data sending device and the server, the original device data is formatted and generated into target device data; Based on the target device data and a pre-set device data parsing format, a visual configuration interface corresponding to the target device data is generated; wherein the device data parsing format is used to parse the target device data and establish a connection relationship between the target device data and its corresponding database, and the device data parsing format is a universal data parsing format for parsing target device data from different data sending devices, and the device data parsing format includes a data type field, a database field, and a data parsing rule field; Storing the target device data based on the visual configuration interface; Wherein, the data format of the target device data is a key-value pair format; accordingly, based on the target device data and a preset device data parsing format, a visual configuration interface corresponding to the target device data is generated, including: Determine the data information of the device data corresponding to the key position of the target device data according to the data mapping relationship table corresponding to the data sending device; wherein the data mapping relationship table records the mapping relationship between the key position in the target device data and the data information of the device data type; the data information includes the data type of the device data, the database field to which the device data belongs, and the data parsing rules; According to the data information, the configuration fields in the device data parsing format are updated, and a visual configuration page is generated according to the updated configuration fields.

2. The method according to claim 1, characterized in that The original device data is transmitted in a byte stream format. Accordingly, based on the communication protocol between the data sending device and the server, the original device data is converted into a format to generate target device data, including: According to the communication protocol between the data sending device and the server, the byte data information of the fixed byte position in the original device data is extracted to determine the device data type and data value corresponding to the original device data; Determine the register bit information corresponding to the device data type according to the preset field mapping relationship between the data sending device and the register bit; wherein the field mapping relationship records the corresponding relationship between the device data type and the register bit of the data sending device; The target device data in a key-value pair format is generated by using the register bit information as a key bit and the data value of the device data as a value bit.

3. The method according to claim 2, characterized in that When the register bits are different, the data information of the device data types bound to the register bits are also different.

4. The method according to claim 1, characterized in that: Storing the target device data based on the visual configuration interface includes: The target device data is written into a database according to the data information of the device data recorded in the visual configuration interface.

5. A visual communication data analysis device, characterized in that: Applied to the server side, the device comprises: A data receiving module, used for receiving original device data sent from a data sending device; A data conversion module, used to convert the format of the original device data based on the communication protocol between the data sending device and the server end to generate target device data; the data format of the target device data is a key-value pair format; A data parsing module, used to generate a visual configuration interface corresponding to the target device data based on the target device data and a pre-set device data parsing format; wherein the device data parsing format is used to parse the target device data and establish a mapping relationship between the target device data and a database, and the device data parsing format is a universal data parsing format for parsing target device data from different data sending devices, and the device data parsing format includes a data type field, a database field, and a data parsing rule field; A data storage module, used for storing the target device data based on the visual configuration interface; The data analysis module includes: A data information determination unit, configured to determine the data information of the device data corresponding to the key position of the target device data according to the data mapping relationship table corresponding to the data sending device; wherein the data mapping relationship table records the mapping relationship between the key position in the target device data and the data information of the device data type; the data information includes the data type of the device data, the database field to which the device data belongs, and the data parsing rules; The field updating unit is used to update the configuration fields in the device data parsing format according to the data information, and generate a visual configuration page according to the updated configuration fields.

6. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the visualized communication data parsing method according to any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the visualized communication data parsing method according to any one of claims 1 to 4 when executed.

8. A computer program product, characterized in that It comprises a computer program, which, when executed by a processor, implements the visualized communication data parsing method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Data conversion method and device, equipment and medium

    CN118158299A