Visual communication data analysis method and device, equipment and storage medium
By converting and parsing the received original equipment data in the industrial control system, a visual configuration interface is generated, and the mapping relationship between the equipment data and the database is established, the problem of high efficiency and low data docking cost of different equipment is solved, and data analysis is realized. Unification and efficiency improvement.
Patent Information
- Application Number
- CN202411506767.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-28
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2044-10-28
AI Technical Summary
In industrial control systems, the data formats and types generated by different manufacturers and IoT devices based on the Modbus TCP communication protocol vary, resulting in code development for each docking type device, resulting in higher docking costs and inefficiency.
Provide a visual communication data analysis method, which generates target device data by receiving original device data, converting formats, and generates a visual configuration interface based on the preset device data analysis format, establishes a mapping relationship between target device data and database, and realizes data Storage avoids separate docking and parsing of different device data types.
It reduces the docking cost of communication data, improves data analysis efficiency, avoids the establishment of different code modules on the server side, and realizes unified analysis of data of different devices.
Smart Images

Figure CN119094630A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data communication technology, and in particular to a visualized communication data parsing method, device, equipment and storage medium. Background Art
[0002] With the popularization of IoT devices and the expansion of application scenarios, the demand for docking of smart devices is increasing, especially for some general protocols, such as Modbus TCP. Modbus TCP is widely used in industrial control systems as a communication protocol. Its internal storage data often has different data structures. Different manufacturers and different IoT devices have different data formats and data types for the communication data generated based on the Modbus TCP communication protocol. Therefore, in the existing industrial control systems, each docking of a type of device requires code development, resulting in high docking costs. Summary of the invention
[0003] The present invention provides a visualized communication data parsing method, device, equipment and storage medium to improve data communication efficiency and reduce communication costs.
[0004] According to one aspect of the present invention, a visual communication data parsing method is provided, 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, the original device data is formatted and generated into target device data;
[0007] 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 mapping relationship between the target device data and a database;
[0008] The target device data is stored based on the visual configuration interface.
[0009] According to another aspect of the present invention, there is provided a visual communication data parsing device, the device comprising:
[0010] A data receiving module, used for receiving original device data sent from a data sending device;
[0011] 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;
[0012] 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;
[0013] A data storage module is used to store the target device data based on the visual configuration interface.
[0014] According to another aspect of the present invention, there is provided an electronic device, the electronic device comprising:
[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 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 described in any embodiment of the present invention.
[0018] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein 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 described in any embodiment of the present invention when executed.
[0019] According to another aspect of the present invention, a computer program product is provided. The computer program product includes a computer program. When the computer program is executed by a processor, the visual communication data parsing method described in any embodiment of the present invention is implemented.
[0020] The technical solution of the embodiment of the present invention generates target device data by converting the format of the original device data sent by the data sending device, and establishes a connection relationship between the target device data and the database based on a universal device data parsing format, while generating a visual configuration page corresponding to the target device data, thereby avoiding the need to establish different code modules on the server side and separately docking and parsing device data of different types from different data sending devices, thereby reducing the docking cost of communication data and improving data parsing efficiency.
[0021] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0023] Figure 1 is a flowchart of a visual communication data parsing method provided according to Embodiment 1 of the present invention;
[0024] Figure 2 is a flowchart of a visual communication data parsing method provided according to Embodiment 2 of the present invention;
[0025] Figure 3 is a structural schematic diagram of a visual communication data parsing device provided according to Embodiment 3 of the present invention;
[0026] Figure 4 It is a schematic diagram of the structure of an electronic device for implementing the visualized communication data parsing method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection 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-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] Embodiment 1
[0030] Figure 1A flowchart of a visual communication data analysis method is provided for the first embodiment of the present invention. This embodiment is applicable to the case where a server receives and stores communication data. The method can be executed by a visual communication data analysis device. The visual communication data analysis device can be implemented in the form of hardware and / or software. The visual communication data analysis device can be configured in various general computing devices, such as server devices. Figure 1 As shown, the method includes:
[0031] S110: Receive original device data sent from a data sending device.
[0032] In the embodiment of the present invention, the data transmission device may refer to various IoT devices, such as environmental monitoring devices, etc.; the original device data may include the collected data of the IoT devices. For example, when the data transmission device is an environmental monitoring device, the original device data may include temperature data, air humidity data, and 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 transmission device according to a preset 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 according to those skilled in the art, such as Modbus TCP communication protocol.
[0033] S120: Based on the communication protocol between the data sending device and the server, the original device data is format converted to generate target device data.
[0034] The target device data may be data in a 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 preset communication protocol between the data sending device and the server side is a fixed data format. Therefore, after receiving the original device data, the server side can convert the format of the original device data and extract the fixed byte data information in the original device data to generate the target device data.
[0036] Optionally, based on the communication protocol between the data sending device and the server, the original device data is format converted to generate target device data, including: extracting the byte data information of fixed byte positions in the original device data according to the communication protocol between the data sending device and the server, and determining the device data type and data value corresponding to the original device data; determining the storage position information corresponding to the device data type according to the pre-set field mapping relationship between the data sending device and the storage position; and generating the target device data in the key-value pair format using the storage position information as the key position and the data value of the device data as the value position.
[0037] The field mapping relationship may be used to record the correspondence between the device data type and the register bit of the data sending device; optionally, the field mapping relationship may exist in the form of a mapping table.
[0038] Specifically, according to the communication protocol between the data sending device and the server, the byte data information of the fixed byte positions representing the device data type and data value in the original device data can be extracted to determine the device data type and data value corresponding to the original device data. Then, according to the mapping relationship between the registration position pre-set in the server and the device data type of the data sending device, the registration position information corresponding to the original device data sent by the data sending device can be determined. The server can use the registration position information as the key position and the data value of the device data as the value position to generate the target device data in the key-value pair format.
[0039] Optionally, in an embodiment of the present invention, a register bit can be used to represent different types of device data. The server side can pre-establish a corresponding register bit mapping relationship for the device data type of the data sending device based on the device type of the data sending device. In the case of different register bits, the data information of the device data type bound to the register bit is also different. For example, 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 register bit, "22" can refer to the data value in the first register bit, and the temperature value is 22 degrees Celsius. "1" can represent the second register bit, "3" can refer to the data value in the second register 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, the original device data of different data sending devices are processed using a unified data format, thereby avoiding the need to separately process device data of different data types and improving data parsing efficiency.
[0041] S130: Based on the target device data and a preset device data parsing format, generate a visual configuration interface corresponding to the target device data.
[0042] The device data parsing format can be used to parse the target device data and establish a 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 universal data parsing format, and the server can parse the target device data from different data sending devices according to the pre-set data parsing format.
[0043] S140: Storing target device data based on the visual configuration interface.
[0044] In an embodiment of the present invention, the target device data is stored based on the visual configuration interface, including: 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 generates target device data by converting the format of the original device data sent by the data sending device, and establishes a connection relationship between the target device data and the database based on a universal device data parsing format, while generating a visual configuration page corresponding to the target device data, thereby avoiding the need to establish different code modules on the server side and separately docking and parsing device data of different types from different data sending devices, thereby reducing the docking cost of communication data and improving data parsing efficiency.
[0046] Embodiment 2
[0047] Figure 2 This is a flowchart of a visual communication data parsing method provided in the second embodiment of the present invention. This embodiment further refines the above embodiment and provides specific steps for generating a 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 part not described in detail in the embodiment of the present invention, please refer to the relevant description of other embodiments, which will not be repeated here. Figure 2 As shown, the method includes:
[0048] S210: Receive original device data sent from a data sending device.
[0049] S220: 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.
[0050] S230 , determining data information of device data corresponding to the key position of target device data according to the data mapping relationship table corresponding to the data sending device.
[0051] 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 type, that is, the data mapping relationship table can be used to represent the corresponding relationship between the registration position information and the data information of the device data type.
[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 rules. It should be noted that each type of data information can be matched to a corresponding configuration field in the data parsing format.
[0053] In an embodiment of the present invention, the server side may establish a corresponding database for the data sending device in advance, and the database includes data information of each device data type. The server side may establish a mapping relationship between the storage position and the data information of the device data type according to the correspondence between the device data type of the data sending device and the storage position recorded in the field mapping relationship, and the data information of each device data type 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 position (storage position 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 according to the updated configuration fields.
[0055] Optionally, in an embodiment of the present invention, the device data parsing format may be as follows: {"bitDataOffset":0,"dataType":"CHAR","fieldName":"temperature","offset": 0,"logic": {"1": "mod(1000)"}}, offset may be used to characterize the offset position information of the register bit, that is, the value of the register bit of the target device data, bitDataOffset may be used for device data of the switch value type existing in the current register bit, for example, to characterize whether a certain function of the data sending device is turned on, fieldName may be used to characterize the database field to which the data corresponding to the current register bit belongs, dataType may be used to characterize the data type of the data corresponding to the current register bit, for example, floating point type, integer type, etc., logic may be used to characterize the parsing rules of the data corresponding to the current register bit, for example, if the humidity is 70%, the humidity value transmitted during the actual transmission process is 700. After receiving the data, the server will transform it according to the logic, mod(1000) means dividing by 1000 to restore the humidity value.
[0056] By adopting a universal device data parsing format to parse the target device data, additional code configuration for the original device data is avoided, and data from different data sending devices is parsed, thereby improving data parsing efficiency.
[0057] After determining the data information corresponding to the target device data, the server 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 will query the data mapping relationship table to determine the data information of the device data type corresponding to the key value based on the key value "0" and the key value "1", and update the configuration fields in the device data parsing format based on the determined data information, and generate a corresponding visual configuration page for each key value. It should be noted that the visual configuration page may refer to a page in which specific field values are updated for the configuration fields in the data parsing format.
[0058] S250: Storing target device data based on the visual configuration interface.
[0059] Specifically, the server 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 visualization configuration page and the field values corresponding to the configuration fields.
[0060] The technical solution of the embodiment of the present invention establishes a data mapping relationship table corresponding to different data sending devices, determines the data information corresponding to the target device data in the mapping relationship table according to the register bit in the target device data as an identifier, and generates a visual configuration page for the data information, thereby avoiding the server side from executing different data parsing logics on the original device data from different data sending devices, improving the data parsing efficiency between the data sending device and the server side, and reducing the connection cost between the data sending device and the server side.
[0061] Embodiment 3
[0062] Figure 3 This is a schematic diagram of the structure of a visual communication data analysis device provided by Embodiment 3 of the present invention. Figure 3 As shown, the device comprises:
[0063] The data receiving module 310 is used to receive the original device data sent from the data sending device;
[0064] The data conversion module 320 is 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;
[0065] The data analysis module 330 is used to generate a visual configuration interface corresponding to the target device data based on the target device data and a preset device data analysis format; wherein the device data analysis format is used to analyze the target device data and establish a mapping relationship between the target device data and a database;
[0066] The data storage module 340 is used to store the target device data based on the visual configuration interface.
[0067] The technical solution of the embodiment of the present invention generates target device data by converting the format of the original device data sent by the data sending device, and establishes a connection relationship between the target device data and the database based on a universal device data parsing format, while generating a visual configuration page corresponding to the target device data, thereby avoiding the need to establish different code modules on the server side and separately docking and parsing device data of different types from different data sending devices, thereby reducing the docking cost of communication data and improving data parsing efficiency.
[0068] Optionally, the data format of the target device data may be a key-value pair format.
[0069] Optionally, the data parsing module 330 includes:
[0070] 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;
[0071] 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.
[0072] Optionally, the data information may include the data type of the device data, the database field to which the device data belongs, and data parsing rules.
[0073] Optionally, raw device data may be transmitted in byte stream format.
[0074] Optionally, the data conversion module 320 includes:
[0075] A data extraction unit, used to extract the byte data information of the fixed byte position in the original device data according to the communication protocol between the data sending device and the server end, and determine the device data type and data value corresponding to the original device data;
[0076] A register bit determination unit, configured to determine register bit information corresponding to the device data type according to a 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 of the data sending device and the register bit;
[0077] The data generating unit is used to generate target device data in a key-value pair format by using the register bit information as a key bit and the data value of the device data as a value bit.
[0078] Optionally, when the register bits are different, the data information of the device data types bound to the register bits are 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 visual configuration interface.
[0080] The visualized communication data analysis device provided in the embodiment of the present invention can execute the visualized communication data analysis method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0081] Embodiment 4
[0082] Figure 4 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, 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 required herein.
[0083] like Figure 4 As shown, the electronic device 410 includes at least one processor 411, and a memory connected to the at least one processor 411 in communication, such as a read-only memory (ROM) 412, a random access memory (RAM) 413, etc., wherein the memory stores a computer program that can be executed by at least one processor, and 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 to 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 via a bus 414. An 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 disk, 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 through a computer network such as the Internet and / or various telecommunication networks.
[0085] The processor 411 may be a variety of 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 special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a visualized communication data parsing method.
[0086] In some embodiments, the visualized communication data parsing method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 418. In some embodiments, part or all of the computer program may be loaded and / or installed on 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 visualized communication data parsing method described above may be performed. Alternatively, in other embodiments, the processor 411 may be configured to perform the visualized communication data parsing method in any other appropriate manner (e.g., by means of firmware).
[0087] Various implementations of the systems and techniques 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 chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0088] Computer programs for implementing the methods 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 device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0089] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0090] 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 trackball) through which the user can provide input to the electronic device. Other types 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 may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0092] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0093] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0094] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in 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; The target device data is stored based on the visual configuration interface.
2. The method according to claim 1, characterized in that in, 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; 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.
3. The method according to claim 2, characterized in that The data information includes the data type of the device data, the database field to which the device data belongs, and data parsing rules.
4. 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.
5. The method according to claim 4, 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.
6. 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.
7. 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; 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; A data storage module is used to store the target device data based on the visual configuration interface.
8. 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 6.
9. 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 6 when executed.
10. 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 6.
Citation Information
Patent Citations
Interface configuration information generation method and device, electronic device and storage medium
CN110704030A
Internet of Things equipment visual integration system and method based on mapping file
CN114265823A
Webpage bid-winning data structuring method and device
CN115203309A
Internet-of-things software gateway method based on 3D visualization and multi-protocol adaptation
CN115766910A
Data distribution conversion method and device, equipment and storage medium
CN116821217A
