CN114374678A - Multi-protocol equipment on-line access method, system, device and storage medium - Google Patents

Multi-protocol equipment on-line access method, system, device and storage medium Download PDF

Info

Publication number
CN114374678A
CN114374678A CN202111634322.8A CN202111634322A CN114374678A CN 114374678 A CN114374678 A CN 114374678A CN 202111634322 A CN202111634322 A CN 202111634322A CN 114374678 A CN114374678 A CN 114374678A
Authority
CN
China
Prior art keywords
data packet
message
protocol
equipment
online access
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
CN202111634322.8A
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.)
Tianyi IoT Technology Co Ltd
Original Assignee
Tianyi IoT 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 Tianyi IoT Technology Co Ltd filed Critical Tianyi IoT Technology Co Ltd
Priority to CN202111634322.8A priority Critical patent/CN114374678A/en
Publication of CN114374678A publication Critical patent/CN114374678A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2854Wide area networks, e.g. public data networks
    • H04L12/2856Access arrangements, e.g. Internet access
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion

Abstract

The invention discloses a multi-protocol device online access method, a system, a device and a storage medium. The online access method of the multi-protocol equipment comprises the following steps: acquiring a message of equipment; converting the message into a first data packet; processing the first data packet to generate a processing result; converting the processing result into a second data packet; and sending the second data packet to the equipment to complete the online access of the equipment. The invention realizes the adaptation of the Internet of things platform to the multi-protocol device and improves the expansibility of the Internet of things platform by converting the protocol of the message of the heterogeneous device into the protocol of the Internet of things platform; by processing the synchronization of the message information establishing equipment after the protocol conversion and the virtual equipment, the debugging difficulty and the cost of the multi-protocol equipment are reduced, the user experience is improved, and the method and the device can be widely applied to the technical field of the Internet of things.

Description

Multi-protocol equipment on-line access method, system, device and storage medium
Technical Field
The present application relates to the field of internet of things technology, and in particular, to a method, system, apparatus, and storage medium for online access of multi-protocol devices.
Background
The benefit improvement of enterprises through the data of the internet of things operation equipment is an industry trend and an industry consensus. However, with the explosive increase of the number of the devices of the internet of things, the difference between hardware parameters and operating environments of different devices is larger and larger, so that various obstacles often exist in the process of transformation of the internet of things or the construction of a platform of the internet of things, and particularly, many unavoidable problems still exist in the stage of accessing the devices of the internet of things.
The internet of things platform needs to meet the connection and interaction requirements of massive heterogeneous devices and users, and also needs to provide stable and efficient application services for the users, and the internet of things platform is difficult to guarantee the expansibility of the internet of things platform so as to conveniently access heterogeneous protocol devices of new internet of things suppliers, and meanwhile, the usability of the platform can be guaranteed so as to improve user experience.
Disclosure of Invention
The present invention aims to solve at least to some extent one of the technical problems existing in the prior art.
Therefore, an object of the embodiments of the present invention is to provide an online access method for a multi-protocol device, where the method implements protocol conversion and processing on a message of a heterogeneous device, and improves adaptation efficiency of an internet of things platform to the multi-protocol device.
Another object of the embodiments of the present invention is to provide an online access system for multi-protocol devices.
In order to achieve the technical purpose, the technical scheme adopted by the embodiment of the invention comprises the following steps:
in a first aspect, an embodiment of the present invention provides an online access method for a multi-protocol device, including the following steps:
acquiring a message of equipment;
converting the message into a first data packet, wherein the first data packet is a data packet based on an MQTT protocol;
processing the first data packet to generate a processing result, wherein the processing result is used for connecting the equipment with virtual equipment, and the virtual equipment is used for carrying out online debugging on the equipment;
converting the processing result into a second data packet, wherein the protocol of the second data packet is the same as that of the message;
and sending the second data packet to the equipment to complete the online access of the equipment.
According to the online access method of the multi-protocol device, the protocol of the message of the heterogeneous device is converted into the protocol of the Internet of things platform, so that the adaptation of the Internet of things platform to the multi-protocol device is realized, and the expansibility of the Internet of things platform is improved; the synchronization between the message establishing equipment after the protocol conversion and the virtual equipment is processed, so that the debugging difficulty and the cost of the multi-protocol equipment are reduced, and the user experience is improved.
In addition, the online access method for the multi-protocol device according to the above embodiment of the present invention may further have the following additional technical features:
further, in the online access method for a multi-protocol device according to the embodiment of the present invention, the converting the message into the first data packet includes:
decoding the message to obtain a message type and a message endpoint list;
mapping the message type to a control message type based on MQTT;
mapping the message endpoint list into a data endpoint list based on MQTT;
and generating the first data packet according to the control message type and the data endpoint list.
Further, in an embodiment of the present invention, the virtual device includes a virtual device debugging interface and an APP template;
the processing the first data packet to generate a processing result includes:
generating the virtual equipment debugging interface according to the first data packet, wherein the virtual equipment debugging interface is used for simulating data reporting service and instruction control service of the equipment;
configuring the APP template according to the first data packet;
and generating the processing result according to the virtual equipment debugging interface and the APP template.
Further, in an embodiment of the present invention, the configuring the APP template according to the first data packet includes:
performing equipment attribute display configuration according to the first data packet;
and debugging and configuring the equipment service according to the first data packet.
In a second aspect, an embodiment of the present invention provides an online access system for a multi-protocol device, including:
the device coordination module is used for acquiring message information of the device and sending the second data packet to the device;
the protocol conversion module is used for converting the message into a first data packet and converting the processing result into a second data packet;
and the processing result generation module is used for processing the first data packet and generating a processing result.
Further, in an embodiment of the present invention, the protocol conversion module includes:
the message decoding module is used for decoding the message to acquire a message type and a message endpoint list;
the message type mapping module is used for mapping the message type into a control message type based on MQTT;
the message endpoint list mapping module is used for mapping the message endpoint list into a data endpoint list based on MQTT;
and the first data packet generating module is used for generating the first data packet according to the control message type and the data endpoint list.
Further, in an embodiment of the present invention, the processing result generating module includes:
the debugging interface generating module generates the virtual equipment debugging interface according to the first data packet;
and the APP template configuration module is used for configuring the APP template according to the first data packet.
Further, in an embodiment of the present invention, the APP template configuration module includes:
the attribute display configuration module is used for carrying out equipment attribute display configuration according to the first data packet;
and the service debugging configuration module is used for carrying out equipment service debugging configuration according to the first data packet.
In a third aspect, an embodiment of the present invention provides an online access apparatus for a multi-protocol device, including:
at least one processor;
at least one memory for storing at least one program;
when executed by the at least one processor, the at least one program causes the at least one processor to implement the method for multi-protocol device online access.
In a fourth aspect, an embodiment of the present invention provides a storage medium, in which a program executable by a processor is stored, and when the program executable by the processor is executed by the processor, the program is used to implement the online access method for a multi-protocol device.
Advantages and benefits of the present invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application:
the embodiment of the invention realizes the adaptation of the Internet of things platform to the multi-protocol device and improves the expansibility of the Internet of things platform by converting the protocol of the message of the heterogeneous device into the protocol of the Internet of things platform; the synchronization between the message establishing equipment after the protocol conversion and the virtual equipment is processed, so that the debugging difficulty and the cost of the multi-protocol equipment are reduced, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following description is made on the drawings of the embodiments of the present application or the related technical solutions in the prior art, and it should be understood that the drawings in the following description are only for convenience and clarity of describing some embodiments in the technical solutions of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart illustrating an embodiment of an online access method for a multi-protocol device according to the present invention;
FIG. 2 is a schematic diagram of module communication of an embodiment of an online access method for a multi-protocol device according to the present invention;
fig. 3 is a schematic diagram of a module architecture of an online access method for a multi-protocol device according to an embodiment of the present invention;
fig. 4 is a schematic diagram illustrating online debugging of an online access method for a multi-protocol device according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a data reporting service in an embodiment of an online access method for a multi-protocol device according to the present invention;
fig. 6 is a diagram of a data reporting service APP debugging interface of a specific embodiment of an online access method for a multi-protocol device of the present invention;
fig. 7 is a device control service APP debug interface diagram of a specific embodiment of the online access method for a multi-protocol device of the present invention;
fig. 8 is a schematic diagram of a device control service according to an embodiment of an online access method for a multi-protocol device;
fig. 9 is a schematic structural diagram of an online access system of a multi-protocol device according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of an online access apparatus for a multi-protocol device according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application. The step numbers in the following embodiments are provided only for convenience of illustration, the order between the steps is not limited at all, and the execution order of each step in the embodiments can be adapted according to the understanding of those skilled in the art.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of the invention and in the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The benefit improvement of enterprises through the data of the internet of things operation equipment is an industry trend and an industry consensus. However, with the explosive increase of the number of the devices of the internet of things, the difference between hardware parameters and operating environments of different devices is larger and larger, so that various obstacles often exist in the process of transformation of the internet of things or the construction of a platform of the internet of things, and particularly, many unavoidable problems still exist in the stage of accessing the devices of the internet of things.
The internet of things platform needs to meet the connection and interaction requirements of massive heterogeneous devices and users, and also needs to provide stable and efficient application services for the users, and the internet of things platform is difficult to guarantee the expansibility of the internet of things platform so as to conveniently access heterogeneous protocol devices of new internet of things suppliers, and meanwhile, the usability of the platform can be guaranteed so as to improve user experience.
Therefore, the invention provides a multi-protocol device online access method and a multi-protocol device online access system, which are different from the problem that the traditional Internet of things device online access method cannot give consideration to both expansibility and usability; the synchronization between the message establishing equipment after the protocol conversion and the virtual equipment is processed, so that the debugging difficulty and the cost of the multi-protocol equipment are reduced, and the user experience is improved.
Hereinafter, a method and a system for online access to a multi-protocol device according to an embodiment of the present invention will be described in detail with reference to the accompanying drawings.
Referring to fig. 1, fig. 2, and fig. 3, an embodiment of the present invention provides an online access method for a multi-protocol device, where the online access method for a multi-protocol device in the embodiment of the present invention may be applied to a terminal, a server, or software running in a terminal or a server. The terminal may be, but is not limited to, a tablet computer, a notebook computer, a desktop computer, and the like. The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a network service, cloud communication, middleware service, a domain name service, a security service, a Content Delivery Network (CDN), a big data and artificial intelligence platform, and the like. The online access method of the multi-protocol equipment in the embodiment of the invention mainly comprises the following steps:
s101, acquiring a message of equipment;
specifically, a message sent by the device is received through a device coordinator in the internet of things platform. The device coordinator can receive a message sent by the multi-protocol device and send the message to the protocol conversion program. Currently common communication protocols of the internet of things include a restricted application protocol (CoAP protocol), an extensible messaging and presence protocol XMPP protocol, a hypertext transfer protocol (HTTP protocol), and a message queue telemetry transfer protocol (MQTT protocol). The embodiment of the invention adopts the MQTT protocol as a standard communication protocol for accessing the equipment to the platform of the Internet of things, and is compatible with the access of equipment based on other protocols on the basis. The MQTT protocol is suitable for use in resource-constrained devices and low-bandwidth, high-latency non-ideal network environments.
S102, converting the message into a first data packet;
wherein, the first data packet is a data packet based on MQTT protocol.
Specifically, according to step S101, the device coordinator receives a message sent by the multi-protocol device, and sends the message to the protocol conversion program. The heterogeneous protocols are uniformly converted into the MQTT protocol of the Internet of things platform through the protocol conversion program. In the embodiment of the present invention, the MQTT protocol is implemented based on a binary format, each MQTT message includes a fixed header, and part of the MQTT message also carries a variable header or a payload. The fixed header is only two bytes, so that the data transmission of the Internet of things platform based on the MQTT protocol consumes less traffic compared with the Internet of things platforms based on other communication protocols. The message format is shown in table 1:
TABLE 1
Figure BDA0003441310380000051
The remaining length refers to the message length except for the fixed header, and includes a variable header or a payload. The maximum message of the MQTT message can be expanded to 4 bytes, and the maximum message can be 256M.
S102 may be further divided into the following steps S1021-S1024:
step S1021, decoding the message to obtain a message type and a message endpoint list;
specifically, the message is decoded, and the communication protocol type and the message endpoint list of the message are obtained. It can be understood that, when the communication protocol type of the message is MQTT protocol, the message does not need to be converted by a protocol conversion program.
Step S1022, map the said message type to the control message type based on MQTT;
step S1023, the message endpoint list is mapped into a data endpoint list based on MQTT;
specifically, the MQTT-based data endpoint list is the remaining length in the message format.
Step S1024, generating the first data packet according to the control message type and the data endpoint list.
Specifically, the first data packet is generated according to the MQTT-based control packet type generated in step S1022 and the MQTT-based data endpoint list generated in step S1023.
The protocol conversion program of the embodiment of the invention realizes the conversion of the message based on the heterogeneous protocol into the message based on the MQTT protocol, can expand the proprietary protocols compatible with various standard protocols in the industry and different equipment manufacturers, and can enhance the expansibility of the Internet of things platform to the maximum extent.
S103, processing the first data packet to generate a processing result;
the processing result is used for connecting the equipment with virtual equipment, the virtual equipment is used for online debugging of the equipment, and the virtual equipment comprises a virtual equipment debugging interface and an APP template.
Specifically, after the protocol conversion program converts the message into a first data packet, the first data packet is forwarded to a message queue Middleware (MQ), the MQ stores the first data packet and sends the first data packet to a platform service layer for processing, and the platform service layer returns the processing result to the MQ after the processing is completed. ActiveMQ is employed as MQ in embodiments of the present invention. MQ is an inter-node asynchronous communication mechanism that supports one-to-one, one-to-many, and many-to-many modes of interaction. There are three communication entities in the MQ mechanism, which are the producer sending the message, the consumer receiving the message, and the MQ relaying the message. The producer deposits the message to the MQ, and the consumer who subscribes to the MQ acquires and processes the message at some point in time.
S103 may be further divided into the following steps S1031-S1033:
step S1031, generating the virtual device debugging interface according to the first data packet;
the virtual equipment debugging interface is used for simulating data reporting service and instruction control service of the equipment.
Specifically, the attribute and the function of the device are obtained according to the first data packet, and the first data packet is processed through a data reporting service and a device control service of a platform service layer, so as to generate a virtual device debugging interface for simulating the data reporting service and the instruction control service of the device. In the embodiment of the invention, the virtual device debugging interface comprises a virtual device debugging module and a communication log module, the virtual device debugging module is used for simulating the data reporting, event reporting, instruction issuing response and instruction issuing display service functions of the device, and the communication log module is used for displaying the communication logs among the virtual device, the virtual device debugging interface and the APP.
Step S1032, configuring the APP template according to the first data packet;
specifically, the attribute and the function of the device are obtained according to the first data packet, and the APP template is configured according to the attribute and the function of the device, which specifically includes the following steps:
(1) performing equipment attribute display configuration according to the first data packet;
(2) and debugging and configuring the equipment service according to the first data packet.
And S1033, generating the processing result according to the virtual device debugging interface and the APP template.
Referring to fig. 4, in the embodiment of the present invention, online debugging of a virtual device is performed through a virtual device debugging interface and an APP. Wherein, the APP debugging interface enters through scanning the two-dimensional code. The online debugging of the virtual equipment in the embodiment of the invention supports single virtual equipment pressure test and multi-virtual equipment concurrent test. The single virtual equipment pressure test can set triggering time intervals of data reporting, event reporting and instruction issuing during online debugging of the virtual equipment, and simulate the states of real equipment under different use frequencies; the concurrent debugging of the multiple virtual devices can set the number of the virtual devices which are simultaneously debugged online when the virtual devices are debugged online, and simulate the state of the Internet of things platform under the condition that a large number of devices are concurrently accessed. The platform of the Internet of things is debugged more deeply and truthfully through single virtual equipment pressure testing and multi-virtual equipment concurrent testing.
The data reporting service for the virtual equipment debugging interface of the intelligent street lamp in the embodiment of the invention is shown in fig. 5, the corresponding APP debugging interface is shown in fig. 6, and the APP debugging interface correspondingly displays the items of data reporting; the device service debugging of the APP debugging interface is shown in fig. 7, the corresponding virtual device debugging interface is shown in fig. 8, and the virtual device debugging interface displays data sent by the corresponding instruction.
S104, converting the processing result into a second data packet;
and the protocol of the second data packet is the same as that of the message.
Specifically, the MQTT protocol of the processing result returned by the MQ is converted into the communication protocol corresponding to the device through a protocol conversion program, and the second data packet is generated.
And S105, sending the second data packet to the equipment to complete the online access of the equipment.
Specifically, the second data packet is received by the device coordinator, and the second data packet is sent to the device.
In one embodiment of the present invention, the online access to the temperature sensor specifically includes the following steps:
(1) acquiring and decoding a message uploaded by a temperature sensor through an equipment coordinator, and acquiring that the communication protocol type of the temperature sensor is a CoAP protocol;
(2) converting the CoAP protocol into an MQTT protocol through a protocol conversion program, generating a data packet based on the MQTT protocol, and transmitting the data packet to the MQ in a communication mode of the MQTT protocol;
(3) processing the data packet through the platform service layer, acquiring attribute information and functional information of the temperature sensor, generating a virtual temperature sensor debugging interface, and returning a processed result to the MQ;
(4) acquiring a processing result on the MQ through a protocol conversion program, converting a communication protocol of the processing result into a CoAP protocol, and generating a data packet based on the CoAP protocol;
(5) and sending a data packet based on a CoAP protocol to the temperature sensor through the equipment coordinator to finish the online access of the temperature sensor.
Next, a multi-protocol device online access system proposed according to an embodiment of the present application is described with reference to the accompanying drawings.
Fig. 9 is a schematic structural diagram of an online access system of a multi-protocol device according to an embodiment of the present application.
The system specifically comprises:
the device coordination module 901 is configured to obtain a message of a device and send the second data packet to the device;
a protocol conversion module 902, configured to convert the packet message into a first data packet, and convert the processing result into a second data packet;
a processing result generating module 903, configured to process the first data packet and generate a processing result.
As an optional implementation, the protocol conversion module includes:
the message decoding module is used for decoding the message to acquire a message type and a message endpoint list;
the message type mapping module is used for mapping the message type into a control message type based on MQTT;
the message endpoint list mapping module is used for mapping the message endpoint list into a data endpoint list based on MQTT;
and the first data packet generating module is used for generating the first data packet according to the control message type and the data endpoint list.
As an optional implementation manner, the processing result generation module includes:
the debugging interface generating module generates the virtual equipment debugging interface according to the first data packet;
and the APP template configuration module is used for configuring the APP template according to the first data packet.
As an optional implementation manner, the APP template configuration module includes:
the attribute display configuration module is used for carrying out equipment attribute display configuration according to the first data packet;
and the service debugging configuration module is used for carrying out equipment service debugging configuration according to the first data packet.
It can be seen that the contents in the foregoing method embodiments are all applicable to this system embodiment, the functions specifically implemented by this system embodiment are the same as those in the foregoing method embodiment, and the advantageous effects achieved by this system embodiment are also the same as those achieved by the foregoing method embodiment.
Referring to fig. 10, an embodiment of the present application provides an online access apparatus for a multi-protocol device, including:
at least one processor 1001;
at least one memory 1002 for storing at least one program;
when the at least one program is executed by the at least one processor 1001, the at least one processor 1001 may enable the multi-protocol device online access method.
Similarly, the contents of the method embodiments are all applicable to the apparatus embodiments, the functions specifically implemented by the apparatus embodiments are the same as the method embodiments, and the beneficial effects achieved by the apparatus embodiments are also the same as the beneficial effects achieved by the method embodiments.
In alternative embodiments, the functions/acts noted in the block diagrams may occur out of the order noted in the operational illustrations. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality/acts involved. Furthermore, the embodiments presented and described in the flowcharts of the present application are provided by way of example in order to provide a more thorough understanding of the technology. The disclosed methods are not limited to the operations and logic flows presented herein. Alternative embodiments are contemplated in which the order of various operations is changed and in which sub-operations described as part of larger operations are performed independently.
Furthermore, although the present application is described in the context of functional modules, it should be understood that, unless otherwise stated to the contrary, one or more of the functions and/or features may be integrated in a single physical device and/or software module, or one or more functions and/or features may be implemented in separate physical devices or software modules. It will also be appreciated that a detailed discussion regarding the actual implementation of each module is not necessary for an understanding of the present application. Rather, the actual implementation of the various functional modules in the apparatus disclosed herein will be understood within the ordinary skill of an engineer, given the nature, function, and internal relationship of the modules. Accordingly, those skilled in the art can, using ordinary skill, practice the present application as set forth in the claims without undue experimentation. It is also to be understood that the specific concepts disclosed are merely illustrative of and not intended to limit the scope of the application, which is defined by the appended claims and their full scope of equivalents.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium, which includes programs for enabling a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to 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), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The logic and/or steps represented in the flowcharts or otherwise described herein, such as an ordered listing of executable programs that can be considered for implementing logical functions, can be embodied in any computer-readable medium for use by or in connection with a program execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the programs from the program execution system, apparatus, or device and execute the programs. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the program execution system, apparatus, or device.
More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable program execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
In the foregoing description of the specification, reference to the description of "one embodiment/example," "another embodiment/example," or "certain embodiments/examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the present application have been shown and described, it will be understood by those of ordinary skill in the art that: numerous changes, modifications, substitutions and alterations can be made to the embodiments without departing from the principles and spirit of the application, the scope of which is defined by the claims and their equivalents.
While the present application has been described with reference to the preferred embodiments, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. An online access method for multi-protocol equipment is characterized by comprising the following steps:
acquiring a message of equipment;
converting the message into a first data packet, wherein the first data packet is a data packet based on an MQTT protocol;
processing the first data packet to generate a processing result, wherein the processing result is used for connecting the equipment with virtual equipment, and the virtual equipment is used for carrying out online debugging on the equipment;
converting the processing result into a second data packet, wherein the protocol of the second data packet is the same as that of the message;
and sending the second data packet to the equipment to complete the online access of the equipment.
2. The multi-protocol device online access method of claim 1, wherein the converting the message into the first data packet comprises:
decoding the message to obtain a message type and a message endpoint list;
mapping the message type to a control message type based on MQTT;
mapping the message endpoint list into a data endpoint list based on MQTT;
and generating the first data packet according to the control message type and the data endpoint list.
3. The multi-protocol device online access method of claim 1, wherein the virtual device comprises a virtual device debugging interface and an APP template;
the processing the first data packet to generate a processing result includes:
generating the virtual equipment debugging interface according to the first data packet, wherein the virtual equipment debugging interface is used for simulating data reporting service and instruction control service of the equipment;
configuring the APP template according to the first data packet;
and generating the processing result according to the virtual equipment debugging interface and the APP template.
4. The method of claim 3, wherein the configuring the APP template according to the first packet comprises:
performing equipment attribute display configuration according to the first data packet;
and debugging and configuring the equipment service according to the first data packet.
5. A multi-protocol device online access system, comprising:
the device coordination module is used for acquiring message information of the device and sending the second data packet to the device;
the protocol conversion module is used for converting the message into a first data packet and converting the processing result into a second data packet;
and the processing result generation module is used for processing the first data packet and generating a processing result.
6. The multi-protocol device online access system of claim 5, wherein the protocol conversion module comprises:
the message decoding module is used for decoding the message to acquire a message type and a message endpoint list;
the message type mapping module is used for mapping the message type into a control message type based on MQTT;
the message endpoint list mapping module is used for mapping the message endpoint list into a data endpoint list based on MQTT;
and the first data packet generating module is used for generating the first data packet according to the control message type and the data endpoint list.
7. The multi-protocol device online access system of claim 5, wherein the processing result generation module comprises:
the debugging interface generating module generates the virtual equipment debugging interface according to the first data packet;
and the APP template configuration module is used for configuring the APP template according to the first data packet.
8. The multi-protocol device online access system of claim 7, wherein the APP template configuration module comprises:
the attribute display configuration module is used for carrying out equipment attribute display configuration according to the first data packet;
and the service debugging configuration module is used for carrying out equipment service debugging configuration according to the first data packet.
9. An online access device for multi-protocol equipment, comprising:
at least one processor;
at least one memory for storing at least one program;
when executed by the at least one processor, the at least one program causes the at least one processor to implement a multi-protocol device online access method as claimed in any one of claims 1-4.
10. A storage medium having stored therein a program executable by a processor, characterized in that: the processor executable program when executed by a processor is for implementing a multi-protocol device online access method as claimed in any one of claims 1-4.
CN202111634322.8A 2021-12-29 2021-12-29 Multi-protocol equipment on-line access method, system, device and storage medium Pending CN114374678A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111634322.8A CN114374678A (en) 2021-12-29 2021-12-29 Multi-protocol equipment on-line access method, system, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111634322.8A CN114374678A (en) 2021-12-29 2021-12-29 Multi-protocol equipment on-line access method, system, device and storage medium

Publications (1)

Publication Number Publication Date
CN114374678A true CN114374678A (en) 2022-04-19

Family

ID=81141720

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111634322.8A Pending CN114374678A (en) 2021-12-29 2021-12-29 Multi-protocol equipment on-line access method, system, device and storage medium

Country Status (1)

Country Link
CN (1) CN114374678A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115174340A (en) * 2022-06-28 2022-10-11 杭州指令集智能科技有限公司 Communication method supporting interaction between multiple protocol types and operating system of Internet of things

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6549937B1 (en) * 1999-07-21 2003-04-15 Microsoft Corporation System and method for multi-protocol communication in a computer network
WO2018059137A1 (en) * 2016-09-29 2018-04-05 中兴通讯股份有限公司 Internet of things terminal access device and method, and computer storage medium
CN108270855A (en) * 2018-01-15 2018-07-10 司中明 A kind of method of platform of internet of things access device
CN108696478A (en) * 2017-04-06 2018-10-23 北京算云联科科技有限公司 A kind of wireless access control system and method based on multiple transport protocols
CN109471423A (en) * 2018-11-26 2019-03-15 杭州涂鸦信息技术有限公司 A kind of internet of things equipment detection method, system, device and equipment
CN109922150A (en) * 2019-03-07 2019-06-21 深圳市简智联信息科技有限公司 Virtual device information processing method, device, gateway of internet of things and Internet of Things communication system
US20190319950A1 (en) * 2018-04-12 2019-10-17 Bank Of America Corporation Apparatus and methods for micro-segmentation of an enterprise internet-of-things network
CN111585958A (en) * 2020-04-01 2020-08-25 西安电子科技大学 Self-adaptive access method and system for heterogeneous equipment of Internet of things platform
CN113609048A (en) * 2021-07-20 2021-11-05 国网天津市电力公司 Cloud-side business collaborative interaction method for power Internet of things

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6549937B1 (en) * 1999-07-21 2003-04-15 Microsoft Corporation System and method for multi-protocol communication in a computer network
WO2018059137A1 (en) * 2016-09-29 2018-04-05 中兴通讯股份有限公司 Internet of things terminal access device and method, and computer storage medium
CN108696478A (en) * 2017-04-06 2018-10-23 北京算云联科科技有限公司 A kind of wireless access control system and method based on multiple transport protocols
CN108270855A (en) * 2018-01-15 2018-07-10 司中明 A kind of method of platform of internet of things access device
US20190319950A1 (en) * 2018-04-12 2019-10-17 Bank Of America Corporation Apparatus and methods for micro-segmentation of an enterprise internet-of-things network
CN109471423A (en) * 2018-11-26 2019-03-15 杭州涂鸦信息技术有限公司 A kind of internet of things equipment detection method, system, device and equipment
CN109922150A (en) * 2019-03-07 2019-06-21 深圳市简智联信息科技有限公司 Virtual device information processing method, device, gateway of internet of things and Internet of Things communication system
CN111585958A (en) * 2020-04-01 2020-08-25 西安电子科技大学 Self-adaptive access method and system for heterogeneous equipment of Internet of things platform
CN113609048A (en) * 2021-07-20 2021-11-05 国网天津市电力公司 Cloud-side business collaborative interaction method for power Internet of things

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115174340A (en) * 2022-06-28 2022-10-11 杭州指令集智能科技有限公司 Communication method supporting interaction between multiple protocol types and operating system of Internet of things
CN115174340B (en) * 2022-06-28 2023-08-15 杭州指令集智能科技有限公司 Communication method supporting interaction of multiple protocol types and Internet of things operating system

Similar Documents

Publication Publication Date Title
EP3404542A1 (en) Data pipeline architecture for analytics processing stack
CN109395372A (en) Realize method, system and the electronic equipment of game paddle remote control computer game
Yang et al. Data distribution service for industrial automation
CN111556163A (en) Multi-transmission protocol equipment monitoring system based on OPC UA
CN107665237B (en) Data structure classification device, and unstructured data publishing and subscribing system and method
CN107146623B (en) Speech recognition method, device and system based on artificial intelligence
CN113489805B (en) Butt joint method, device, equipment and storage medium of cloud desktop system
CN109921986A (en) A kind of multi-protocol data cut-in method, device, intelligent gateway and storage medium
US10133696B1 (en) Bridge, an asynchronous channel based bus, and a message broker to provide asynchronous communication
EA019680B1 (en) Service access method and system
CN103095684A (en) Method obtaining attention user aggregate information, device and system
CN114374678A (en) Multi-protocol equipment on-line access method, system, device and storage medium
KR101602100B1 (en) Method for Integrating Heterogeneous Thing's messages based DDS in Internet of Things
CN113381870A (en) Message processing method and device
CN112689020B (en) Message transmission method, message middleware, electronic equipment and storage medium
CN108989157B (en) Method and device for controlling intelligent equipment
CN102238505B (en) Method and system for processing multi-user parallel signalling tracking at client
CN113010381A (en) Method and equipment for managing components
WO2023077866A1 (en) Multimedia data processing method and apparatus, electronic device, and storage medium
CN106488269A (en) System and method to television equipment control is realized based on third-party application platform
KR101926283B1 (en) At least one mechanism to permit, at least in part, allocation and/or configuration, at least in part, of at least one network-associated object
CN108289165A (en) A kind of implementation method, device and terminal device controlling camera based on mobile phone
CN103765407B (en) The electronic device and method of the content on cloud system are transmitted to the equipment for being connected to Digital Life Network Alliance
CN104202437A (en) System and method for realizing management of diversified data center
CN110784368A (en) Memcached-based data acquisition method and system

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