CN117749899A - Protocol conversion framework, device communication method, device and computer storage medium - Google Patents

Protocol conversion framework, device communication method, device and computer storage medium Download PDF

Info

Publication number
CN117749899A
CN117749899A CN202311533407.6A CN202311533407A CN117749899A CN 117749899 A CN117749899 A CN 117749899A CN 202311533407 A CN202311533407 A CN 202311533407A CN 117749899 A CN117749899 A CN 117749899A
Authority
CN
China
Prior art keywords
protocol
protocol conversion
conversion
internet
object model
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311533407.6A
Other languages
Chinese (zh)
Inventor
龙云
李邓耀
周俊杰
钱宏铭
宣臣超
张秀燕
邓志吉
刘明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN202311533407.6A priority Critical patent/CN117749899A/en
Publication of CN117749899A publication Critical patent/CN117749899A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Communication Control (AREA)

Abstract

The application discloses a protocol conversion framework, an equipment communication method, an equipment communication device and a computer storage medium, wherein the protocol conversion framework comprises a protocol editor and a protocol conversion engine, and is applied to data communication between Internet of things equipment and a cloud platform; the protocol editor is used for generating a protocol conversion description file based on a protocol rule field in a protocol configuration instruction of a user; the protocol conversion engine is used for realizing the mutual conversion between the communication protocol of the internet of things equipment and the object model protocol of the cloud platform based on the protocol conversion description file. Through the framework, in the process of carrying out mutual communication between the Internet of things equipment and the cloud platform of a plurality of different manufacturers, protocol conversion can be completed rapidly when the cloud platform is in communication with different Internet of things equipment, operation thresholds of the cloud platform for mutual conversion of different equipment protocols are reduced, and the efficiency of protocol conversion is improved.

Description

Protocol conversion framework, device communication method, device and computer storage medium
Technical Field
The present invention relates to the field of device communication, and in particular, to a protocol conversion framework, a device communication method, a device, and a computer storage medium.
Background
With the continuous development of the internet and computer science and technology, the internet of things has grown under the increasing demands of people. The internet of things refers to connecting any object with a network through information sensing equipment according to a stipulated protocol, and carrying out information exchange and communication on the object through an information transmission medium so as to realize the functions of intelligent identification, positioning, tracking, supervision and the like. The internet of things is widely applied to the integration of networks through communication sensing technologies such as intelligent sensing and recognition technologies, and is also called as the third wave of development of world information industry after computers and the Internet.
In an application scenario, when the internet of things hardware device performs communication interaction with an external program, instruction data sent by a user is required to be converted into byte data which can be identified by the device based on a device communication protocol of the internet of things hardware device, and because the internet of things hardware device is possibly produced by a plurality of manufacturers and has different operating systems, the device communication protocols used by the internet of things hardware device are different, so that the internet of things cloud platform needs to be simultaneously configured with all the device communication protocols of the internet of things device connected with the cloud platform, and normal communication between the internet of things device and the cloud platform can be realized. However, in the prior art, when a new device communication protocol needs to be configured, a user is required to redevelop a corresponding code to ensure that the cloud platform can implement a communication codec function between the device and the user.
Disclosure of Invention
The technical problem that this application mainly solves is how to reduce the degree of difficulty that different thing networking equipment protocols in the cloud platform dispose, and to this, this application provides a protocol conversion frame, equipment communication method, device and computer storage medium.
In order to solve the technical problems, one technical scheme adopted by the application is as follows: providing a protocol conversion framework, wherein the protocol conversion framework comprises a protocol editor and a protocol conversion engine, and the protocol conversion framework is applied to data communication between the Internet of things equipment and the cloud platform; the protocol editor is used for acquiring a protocol configuration instruction of a user and generating a protocol conversion description file based on a protocol mapping rule in the protocol configuration instruction; the protocol conversion engine is used for realizing the mutual conversion between the communication protocol of the internet of things equipment and the object model protocol of the cloud platform based on the protocol conversion description file.
The protocol conversion engine comprises a protocol conversion interpreter, a protocol decoder and a protocol encoder; the protocol conversion interpreter is used for resolving the protocol conversion description file and sending the resolving result to the protocol decoder and/or the protocol encoder based on the service requirement; the protocol decoder is used for decoding the communication protocol of the Internet of things equipment into an object model protocol of the cloud platform based on the analysis result; the protocol encoder is used for converting the object model protocol of the cloud platform into the communication protocol of the Internet of things equipment based on the analysis result.
The protocol editor comprises an editing page, an object model loader, a mapper and a protocol conversion manager; the editing page is used for acquiring a protocol configuration instruction of a user; the object model loader is used for loading an object model of the cloud platform based on the cloud platform description file and generating an object model protocol field table based on the object model; the mapper is used for mapping the equipment protocol field of the internet of things equipment to the protocol field of the object model protocol of the cloud platform based on the equipment type and the protocol mapping rule of the internet of things equipment to obtain a mapping relation; the protocol conversion manager is used for converting the mapping relation into a protocol language and generating a protocol conversion description file.
Wherein the mapper comprises a dictionary table mapper and an address addressing mapper; the dictionary table mapper is used for mapping the protocol rule field of the text equipment protocol with the object model protocol; the address addressing mapper is configured to map the protocol rule field of the binary device protocol with the object model protocol.
The protocol conversion engine is mounted in the cloud platform and/or the Internet of things equipment based on an actual application scene.
In order to solve the technical problems, another technical scheme adopted by the application is as follows: the device communication method is applied to the Internet of things device and a protocol conversion frame, and comprises the following steps: the internet of things device sends communication data in a device protocol format to the protocol conversion frame; the protocol conversion framework converts the communication data in the equipment protocol format into the communication data in the object model protocol format based on the protocol conversion description file and sends the communication data to the cloud platform.
The device communication method is also applied to the cloud platform; the cloud platform sends instruction data in an object model protocol format to a protocol conversion frame; the protocol conversion framework converts instruction data in an object model protocol format into instruction data in an equipment protocol format based on a protocol conversion description file and sends the instruction data to the Internet of things equipment; the internet of things device makes corresponding operations based on the instruction data.
The protocol conversion framework converts the communication data in the equipment protocol format into the communication data in the object model protocol format based on the protocol conversion description file, and the protocol conversion framework comprises the following steps: the protocol conversion framework analyzes the protocol conversion description file to obtain a data format of the communication data in the equipment protocol format and a conversion relation between the data structure and the communication data in the object model protocol format; the protocol conversion framework converts the communication data in the equipment protocol format into the communication data in the object model protocol format based on the conversion relation.
In order to solve the technical problems, another technical scheme adopted by the application is as follows: there is provided an apparatus communication device comprising a processor and a memory coupled to the processor, the memory storing program data, the processor being configured to execute the program data to implement an apparatus communication method as described above.
In order to solve the technical problems, another technical scheme adopted by the application is as follows: there is provided a computer readable storage medium storing program data which, when executed, is adapted to carry out the above-described device communication method.
The beneficial effects of this application are: different from the situation of the prior art, the protocol conversion framework provided by the invention is used for realizing the equipment communication method, the protocol conversion framework comprises a protocol editor and a protocol conversion engine, and the protocol conversion framework is applied to the data communication between the Internet of things equipment and the cloud platform; the protocol editor is used for generating a protocol conversion description file based on the protocol configuration instruction of the user and the protocol rule field mapping rule in the protocol configuration instruction; the protocol conversion engine is used for realizing the mutual conversion between the communication protocol of the internet of things equipment and the object model protocol of the cloud platform based on the protocol conversion description file. Through the protocol conversion framework for realizing the device communication method, compared with the conventional device communication method, the protocol conversion framework provided by the application can convert the protocol fields in the device communication protocol which the user wants to configure by using the protocol editor, and generate the protocol description file which can be used for carrying out communication protocol conversion between the cloud platform and the Internet of things device, so that the threshold for configuring different device communication protocols in the cloud platform is reduced, the user does not need to carry out code editing operation by himself, the editing efficiency of the protocol conversion description file is improved, and the protocol conversion time during device communication is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Wherein:
FIG. 1 is a schematic diagram illustrating the structure of an embodiment of a protocol conversion framework provided in the present application;
FIG. 2 is a schematic diagram of the structure of a protocol editor in the protocol conversion framework provided in the present application;
FIG. 3 is a workflow diagram of a protocol editor in a protocol conversion framework provided herein;
FIG. 4 is a flow chart of an embodiment of a method for device communication provided herein;
fig. 5 is a flow chart of an embodiment of an actual service scenario for implementing an equipment communication method by using a protocol conversion framework in an equipment communication device provided in the present application;
fig. 6 is a schematic structural diagram of a first embodiment of the device communication apparatus provided in the present application;
fig. 7 is a schematic structural diagram of a second embodiment of the device communication apparatus provided in the present application;
fig. 8 is a schematic structural diagram of an embodiment of a computer readable storage medium provided in the present application.
Detailed Description
The following description of the technical solutions in the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
At present, when a new device protocol appears, a user is required to re-develop codes to realize corresponding device communication functions, so that when a new internet of things device in a cloud platform needs to communicate, a great deal of time and effort cost of the user are required to be consumed to realize the communication of the new device. Based on this, the present application provides a protocol conversion framework, and the technical solution adopted in the present application is described in detail below.
When the protocol conversion framework is mainly applied to communication between the Internet of things equipment and the cloud platform, equipment communication protocols used by the Internet of things equipment from different manufacturers and systems are different, so that the cloud platform can normally realize mutual communication between the Internet of things equipment and the cloud platform after each equipment communication protocol is configured. The protocol conversion framework provided by the application can directly generate the corresponding communication protocol according to the visual conversion configuration requirement input by the user, so that the generation process of the protocol conversion description file is simpler and more convenient.
The device communication apparatus and the protocol conversion framework can be used as execution bodies of the device communication method provided in the embodiments of the present application, and the protocol conversion framework model can be carried on the device communication apparatus and be a core part thereof.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an embodiment of a protocol conversion framework provided in the present application.
Specifically, the protocol conversion framework comprises a protocol editor and a protocol conversion engine, and is applied to data communication between the internet of things equipment and the cloud platform.
Specifically, the protocol editor provides a visual editing function, and is used for acquiring a protocol field rule input in a protocol configuration instruction of a user or a rule field combination selected by the user on an editing page, and generating a protocol conversion description file describing a conversion rule between an equipment communication protocol of the internet of things equipment and an object model protocol of the cloud platform based on rule configuration requirements.
For example, a user may select a conversion rule of a communication protocol between the cloud platform and the internet of things device by selecting the conversion rule by hooking or selecting the conversion rule from a list on a display screen connected to the protocol editor, and in some embodiments, the user may also input the conversion rule of the communication protocol directly in an input box for the protocol editor to obtain, where a method of inputting a rule field of the protocol rule by the user may be set by the user according to a user requirement, which is not limited herein.
In an embodiment of the present application, as shown in fig. 2, fig. 2 is a schematic structural diagram of a protocol editor in a protocol conversion framework provided in the present application, where the protocol editor includes an editing page, an object model loader, a mapper, and a protocol conversion manager. The mapper may comprise a dictionary table mapper and an address addressing mapper.
Specifically, the protocol conversion description file uses a JSON format protocol conversion language to define how the communication protocol (including but not limited to the plan text, TLV, JSON, etc. format) of the internet of things device is extracted and converted into a specific syntax structure of the object model protocol of the cloud platform.
Specifically, the edit page is used for acquiring a protocol configuration instruction of a user. The object model loader is used for recording an object model of the cloud platform based on the cloud platform description file, generating a object model protocol field table based on the object model, and displaying the object model to a user on a display interface; the mapper is used for mapping the equipment protocol field of the internet of things equipment to the protocol field of the object model protocol of the cloud platform based on the equipment type and the protocol mapping rule of the internet of things equipment to obtain a mapping relation; the protocol conversion manager is used for converting the mapping relation into a protocol language and generating a protocol conversion description file.
In an embodiment of the present application, as shown in fig. 3, the step of generating the protocol conversion description file by the protocol editor may use different mappers to generate the protocol conversion description file according to different text formats of the internet of things device protocol. Referring to fig. 3, fig. 3 is a flowchart of the protocol editor in the protocol conversion framework provided in the present application.
Specifically, the protocol editor selects different mappers according to different format types of the device protocol. The protocol editor uses an address addressing mapper when the device protocol is a binary type TLV, and uses when the device protocol is a text type protocol such as plain text, JSON, etc Dictionary table A mapper. Wherein the TLV is a binary encoding based encoding the data in the form of (T-L-V) into an array of bytes, i.e. the TLV is a data transmission protocol of byte streams. Text type protocols are used to represent data using readable text formats, typically using ASCII or Unicode encoding. Text-type protocols are easier for a user to read and understand.
Specifically, referring to fig. 3, when the internet of things device protocol is a binary device protocol, the editing page imports the object model protocol of the current cloud platform into the object model loader, and the object model loader loads an object model protocol field table for storing a corresponding conversion relationship between the internet of things device protocol and the cloud platform object model protocol, so that other parts in the protocol editor can execute subsequent operations. The editing page imports the binary equipment protocol field into an address addressing mapper, and the address addressing mapper maps corresponding numerical values into an object model protocol of the cloud platform based on byte offset or a sequence with preset length. The protocol conversion manager translates the mapping relation obtained by the address addressing mapper into a protocol conversion language and performs serialization processing on the protocol conversion language to generate a protocol conversion description file.
When the Internet of things equipment protocol is a text equipment protocol, the editing page guides the current cloud platform object model protocol into an object model loader, and the object model loader loads an object model protocol field table for storing the corresponding conversion relation between the Internet of things equipment protocol and the cloud platform object model protocol so that other parts in the protocol editor can execute subsequent operations. The editing page imports the text protocol device protocol field into a dictionary table mapper which maps corresponding values into the object model protocol of the cloud platform based on field names. The protocol conversion manager translates the mapping relation obtained by the dictionary table mapper into a protocol conversion language and performs serialization processing on the protocol conversion language to generate a protocol conversion description file.
The protocol conversion description file generated by the protocol editor describes the data format and the data structure of the internet of things equipment protocol and the mapping relation with the cloud platform object model protocol, and is defined by using the JSON file format, so that the protocol conversion description file has self-interpretation, readability and transmissibility, and the conversion time consumption of the protocol conversion between the internet of things equipment and the cloud platform is reduced.
By using the protocol editor provided by the application to generate the protocol conversion description file, a user only needs to provide a rule field corresponding to conversion between a new Internet of things equipment protocol and a cloud platform object model protocol, so that the writing threshold of the protocol conversion description file is reduced.
Specifically, the protocol conversion engine includes a protocol conversion interpreter, a protocol decoder, and a protocol encoder. The protocol conversion interpreter is used for resolving the protocol conversion description file and sending the resolving result to the protocol decoder and/or the protocol encoder based on the service requirement; the protocol decoder is used for decoding the communication protocol of the Internet of things equipment into an object model protocol of the cloud platform based on the analysis result; the protocol encoder is used for converting the object model protocol of the cloud platform into the communication protocol of the Internet of things equipment based on the analysis result.
Specifically, the protocol conversion engine can support multiple programming languages including a C language, a Java language, a Go language, and the like, and is irrelevant to the cloud platform, so that the protocol conversion engine can be flexibly integrated in any internet of things network node such as a device end, an edge server, a central server, and the like. Therefore, the calculation force can be flexibly distributed in each interrupt, and the efficiency of protocol conversion is improved.
Specifically, the protocol conversion engine is mounted in the cloud platform and/or the internet of things device based on an actual application scene. For example, in a traditional cloud computing scenario (central computing), a protocol conversion engine may be integrated within the cloud platform, providing the protocol conversion capabilities of the central computing. In the edge computing scene, the protocol conversion engine is integrated in the edge network equipment (such as a gateway, a local network connection point and the like) to provide the protocol conversion capability of the edge computing, so that the data format transmitted between the edge network and the core network is the object model protocol data, and the processing efficiency pressure of the cloud platform on the mass internet of things equipment data is greatly reduced.
In an embodiment of the present application, a device communication method may be implemented through the protocol conversion framework, as shown in fig. 4, referring to fig. 4, and fig. 4 is a flow chart of an embodiment of the device communication method provided in the present application.
Step 41: the internet of things device sends the communication data in the device protocol format to the protocol conversion framework.
In an embodiment of the present application, a method for performing device communication by using a protocol conversion framework by using an internet of things device and an internet of things platform may be shown in fig. 5, and referring to fig. 5, fig. 5 is a flow chart of an embodiment of an actual service scenario for implementing the device communication method by using the protocol conversion framework in the device communication apparatus provided in the present application.
Specifically, in the data transmission flow, the internet of things device transmits data in a current internet of things device protocol format to a protocol conversion framework, and a protocol decoder in the protocol conversion framework converts the data into internet of things cloud platform object model protocol format data according to the generated protocol conversion description file and transmits the data to the internet of things cloud platform.
Step 42: the protocol conversion framework converts the communication data in the equipment protocol format into the communication data in the object model protocol format based on the protocol conversion description file and sends the communication data to the cloud platform.
Specifically, in the data receiving flow, after receiving data sent by the protocol conversion framework, the internet of things cloud platform processes the data and then sends instruction data in an internet of things protocol format to the protocol conversion framework, a protocol encoder in the protocol conversion framework converts the data into instruction data in the internet of things equipment protocol format according to the generated protocol conversion description file, the instruction data is sent to the internet of things equipment, the internet of things equipment executes a corresponding instruction, and communication interaction between the internet of things equipment and the internet of things cloud platform is achieved.
Different from the situation of the prior art, the protocol conversion framework provided by the invention is used for realizing the equipment communication method, the protocol conversion framework comprises a protocol editor and a protocol conversion engine, and the protocol conversion framework is applied to the data communication between the Internet of things equipment and the cloud platform; the protocol editor is used for generating a protocol conversion description file based on the protocol configuration instruction of the user and the protocol rule field mapping rule in the protocol configuration instruction; the protocol conversion engine is used for realizing the mutual conversion between the communication protocol of the internet of things equipment and the object model protocol of the cloud platform based on the protocol conversion description file. Through the protocol conversion framework for realizing the device communication method, compared with the conventional device communication method, the protocol conversion framework provided by the application can convert the protocol fields in the device communication protocol which the user wants to configure by using the protocol editor, and generate the protocol description file which can be used for carrying out communication protocol conversion between the cloud platform and the Internet of things device, so that the threshold for configuring different device communication protocols in the cloud platform is reduced, the user does not need to carry out code editing operation by himself, the editing efficiency of the protocol conversion description file is improved, and the protocol conversion time during device communication is reduced.
The method of the foregoing embodiment may be implemented by using an apparatus communication device, and is described below with reference to fig. 6, where fig. 6 is a schematic structural diagram of a first embodiment of an apparatus communication device provided in the present application.
As shown in fig. 6, the device communication apparatus 60 in the embodiment of the present application includes a transmitting module 61 and a converting module 62.
The sending module 61 sends the communication data in the device protocol format to the protocol conversion framework described above, where the sent protocol conversion framework is the protocol conversion framework described in fig. 1 above.
The conversion module 62 is configured to convert the communication data in the device protocol format into the communication data in the object model protocol format based on the protocol conversion description file by using the protocol conversion framework, and send the communication data to the cloud platform.
The method of the above embodiment may be implemented by a device communication apparatus, and referring to fig. 7, fig. 7 is a schematic structural diagram of a second embodiment of the device communication apparatus provided in the present application, where the device communication apparatus 70 includes a memory 71 and a processor 72, the memory 71 is used for storing program data, and the processor 72 is used for executing the program data to implement the following method:
the internet of things device sends communication data in a device protocol format to the protocol conversion frame; the protocol conversion framework converts the communication data in the equipment protocol format into the communication data in the object model protocol format based on the protocol conversion description file and sends the communication data to the cloud platform.
Referring to fig. 8, fig. 8 is a schematic structural diagram of an embodiment of a computer readable storage medium provided in the present application, where the computer readable storage medium 80 stores program data 81, and the program data 81, when executed by a processor, is configured to implement the following method:
the internet of things device sends communication data in a device protocol format to the protocol conversion frame; the protocol conversion framework converts the communication data in the equipment protocol format into the communication data in the object model protocol format based on the protocol conversion description file and sends the communication data to the cloud platform.
Embodiments of the present application are implemented in the form of software functional units and sold or used as a stand-alone product, which may be stored on a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution, in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing description is only of embodiments of the present application, and is not intended to limit the scope of the patent application, and all equivalent structures or equivalent processes using the descriptions and the contents of the present application or other related technical fields are included in the scope of the patent application.

Claims (10)

1. The protocol conversion framework is characterized by comprising a protocol editor and a protocol conversion engine, and is applied to data communication between the Internet of things equipment and the cloud platform;
the protocol editor is used for acquiring a protocol configuration instruction of a user and generating a protocol conversion description file based on a protocol mapping rule in the protocol configuration instruction;
the protocol conversion engine is used for realizing the mutual conversion between the communication protocol of the Internet of things equipment and the object model protocol of the cloud platform based on the protocol conversion description file.
2. The protocol conversion framework according to claim 1, characterized in that,
the protocol conversion engine comprises a protocol conversion interpreter, a protocol decoder and a protocol encoder;
the protocol conversion interpreter is used for resolving the protocol conversion description file and sending resolving results to the protocol decoder and/or the protocol encoder based on service requirements;
the protocol decoder is used for decoding the communication protocol of the internet of things equipment into the object model protocol of the cloud platform based on the analysis result;
and the protocol encoder is used for converting the object model protocol of the cloud platform into the communication protocol of the Internet of things equipment based on the analysis result.
3. The protocol conversion framework according to claim 1, characterized in that,
the protocol editor comprises an editing page, an object model loader, a mapper and a protocol conversion manager;
the editing page is used for acquiring a protocol configuration instruction of the user;
the object model loader is used for loading an object model of the cloud platform based on the cloud platform description file and generating a object model protocol field table based on the object model;
the mapper is configured to map, based on the device type of the internet of things device and the protocol mapping rule, a device protocol field of the internet of things device to a protocol field of an object model protocol of the cloud platform to obtain a mapping relationship;
the protocol conversion manager is used for converting the mapping relation into a protocol language and generating the protocol conversion description file.
4. The protocol conversion framework according to claim 3, characterized in that,
the mapper comprises a dictionary table mapper and an address addressing mapper;
the dictionary table mapper is configured to map the protocol rule field of a text device protocol with the object model protocol;
the address addressing mapper is configured to map the protocol rule field of a binary device protocol with the object model protocol.
5. The protocol conversion framework according to claim 1, characterized in that,
the protocol conversion engine is mounted in the cloud platform and/or the Internet of things equipment based on an actual application scene.
6. The device communication method is applied to the Internet of things device and a protocol conversion framework, and comprises the following steps:
the internet of things device sending communication data in a device protocol format to the protocol conversion framework according to any one of claims 1 to 5;
and the protocol conversion framework converts the communication data in the equipment protocol format into the communication data in the object model protocol format based on the protocol conversion description file and sends the communication data to the cloud platform.
7. The device communication method of claim 6, wherein the device communication method is further applied to a cloud platform;
the cloud platform sends instruction data in an object model protocol format to the protocol conversion frame;
the protocol conversion framework converts the instruction data in the object model protocol format into the instruction data in the equipment protocol format based on the protocol conversion description file and sends the instruction data to the Internet of things equipment;
and the Internet of things equipment makes corresponding operation based on the instruction data.
8. The method of claim 6, wherein,
the protocol conversion framework converts the communication data in the equipment protocol format into the communication data in the object model protocol format based on the protocol conversion description file, and the protocol conversion framework comprises the following steps:
the protocol conversion framework analyzes the protocol conversion description file to obtain a data format of the communication data in the equipment protocol format and a conversion relation between a data structure and the communication data in the object model protocol format;
and the protocol conversion framework converts the communication data in the equipment protocol format into the communication data in the object model protocol format based on the conversion relation.
9. A device communication apparatus comprising a memory and a processor coupled to the memory;
wherein the memory is configured to store program data, and the processor is configured to execute the program data to implement the device communication method according to any one of claims 6 to 8 using the protocol conversion framework according to any one of claims 1 to 5.
10. A computer storage medium for storing program data which, when executed by a computer, is adapted to carry out the device communication method of any one of claims 6 to 8 using the protocol conversion framework of any one of claims 1 to 5.
CN202311533407.6A 2023-11-16 2023-11-16 Protocol conversion framework, device communication method, device and computer storage medium Pending CN117749899A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311533407.6A CN117749899A (en) 2023-11-16 2023-11-16 Protocol conversion framework, device communication method, device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311533407.6A CN117749899A (en) 2023-11-16 2023-11-16 Protocol conversion framework, device communication method, device and computer storage medium

Publications (1)

Publication Number Publication Date
CN117749899A true CN117749899A (en) 2024-03-22

Family

ID=90259918

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311533407.6A Pending CN117749899A (en) 2023-11-16 2023-11-16 Protocol conversion framework, device communication method, device and computer storage medium

Country Status (1)

Country Link
CN (1) CN117749899A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118034673A (en) * 2024-04-11 2024-05-14 四川湖山电器股份有限公司 Visual editing generation and dynamic analysis system for equipment model of Internet of things

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118034673A (en) * 2024-04-11 2024-05-14 四川湖山电器股份有限公司 Visual editing generation and dynamic analysis system for equipment model of Internet of things

Similar Documents

Publication Publication Date Title
RU2431185C2 (en) High level graphics stream
US11150896B2 (en) Automated generation of service definitions for message queue application clients
TWI713015B (en) Language recognition method and device
CN110769002A (en) LabVIEW-based message analysis method, system, electronic device and medium
CN112417515A (en) Configuration software protocol processing method and system
CN106776779B (en) Method for generating entity file by JSON data based on Mac platform
JP7309811B2 (en) Data annotation method, apparatus, electronics and storage medium
CN110688098A (en) Method and device for generating system framework code, electronic equipment and storage medium
CN117749899A (en) Protocol conversion framework, device communication method, device and computer storage medium
CN105793842B (en) Conversion method and device between serialized message
CN115115062B (en) Machine learning model building method, related device and computer program product
CN101686568B (en) Methods and terminals for transmitting and displaying text information
CN115935909A (en) File generation method and device and electronic equipment
CN114676187A (en) Data processing method, device, equipment and medium
CN111143310B (en) Log recording method and device and readable storage medium
CN113111108A (en) File data source warehousing analysis access method
CN114499759B (en) Message generation method and device, electronic equipment and storage medium
CN113297217B (en) Data transmission method, device and system
JP4447373B2 (en) Data exchange computer
KR100462895B1 (en) apparatus and method for command adaptive processing using XML data file
CN113590239A (en) Session information labeling method and device, electronic equipment and storage medium
CN113743060A (en) Customizable report generation method and device, computer equipment and storage medium
CN117056197A (en) Data processing method, device, equipment and storage medium
CN117632336A (en) Dialog box generation method and device
CN115455918A (en) Method, device, equipment and medium for configuring dynamic form

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination