An Internet of Things access method and system, an electronic device, and a storage medium
By configuring drivers to connect to plug-and-play devices and establishing data channels using TLS and WebSocket protocols, the problem of limited access to IoT in mainstream browsers is solved, access efficiency is improved and maintenance costs are reduced, and secure transmission and platform auditing are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- E SURFING IOT CO LTD
- Filing Date
- 2022-12-29
- Publication Date
- 2026-06-23
AI Technical Summary
Traditional browser plugins and local web services limit IoT access, forcing users to upgrade or replace their browsers to access the internet. Existing technologies cannot effectively solve the problem of IoT access in mainstream browsers.
By configuring the driver to connect with plug-and-play devices, and using the TLS-based MQTT and WebSocket protocols to establish a data channel, the IoT application platform can connect and authenticate with plug-and-play devices, bypassing browser restrictions.
It improves IoT access efficiency, reduces maintenance costs associated with browser version upgrades, achieves secure transmission and auditable platform security, and supports both proactive operation and reactive handling of device events.
Smart Images

Figure CN116094783B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of network access, and in particular to an Internet of Things access method and system, an electronic device, and a storage medium. BACKGROUND
[0002] With the continuous strengthening of network information security, the method of Internet of Things access is also constantly updated. In the case of gradually strengthening security measures in the current web browser, especially for various unsafe network protocols and unsafe plug-ins, the Internet of Things application web platform uses the web browser to open, and wants to access and use the terminal local plug-and-play device capability. However, the traditional browser plug-in method and local web service method will be gradually intercepted by the web browser, resulting in restrictions on user upgrades of the web browser, and it is often seen that users are required to continue using the obsolete web browser to access the Internet of Things. In view of the above, the technical problems existing in the related art need to be solved. SUMMARY
[0003] Therefore, the embodiments of the present application provide an Internet of Things access method, system, electronic device, and storage medium to reduce the restrictions of the web browser and improve the efficiency of Internet of Things access.
[0004] In one aspect, the present application provides an Internet of Things access method, comprising:
[0005] configuring a driver to obtain a configured driver;
[0006] connecting the configured driver with a plug-and-play device to obtain a connected driver;
[0007] authenticating the connected driver with an Internet of Things application platform to obtain an authentication result, the Internet of Things application platform comprising a front-end page and a back-end platform;
[0008] when the authentication result is passed, connecting the connected driver and the back-end platform through a transmission protocol, and connecting the front-end page and the back-end platform through a communication protocol to obtain a data channel;
[0009] accessing the plug-and-play device through the data channel to obtain an access result.
[0010] Optionally, the configuring a driver to obtain a configured driver comprises:
[0011] installing a driver on a computer terminal;
[0012] The application platform of the Internet of Things is monitored, and when the monitoring needs to connect the plug-and-play device, the driver is run to obtain the configured driver.
[0013] Optionally, the driver after the connection is authenticated by the application platform of the Internet of Things to obtain an authentication result, the application platform of the Internet of Things includes a front-end page and a back-end platform, and includes:
[0014] The plug-and-play device is connected to the back-end platform through the driver.
[0015] The driver is subjected to information transmission processing through the front-end page to obtain authentication information and send the authentication information to the back-end platform.
[0016] The plug-and-play device is authenticated by the back-end platform according to the authentication information to obtain an authentication result, and the authentication result is used for the plug-and-play device to register the application platform of the Internet of Things.
[0017] Optionally, the plug-and-play device is subjected to Internet of Things access processing according to the data channel to obtain an access result, and the access result includes:
[0018] The access result includes an instruction execution result and an event processing result.
[0019] The device instruction is sent through the front-end page, the plug-and-play device is subjected to instruction execution processing according to the data channel to obtain the instruction execution result.
[0020] The device event is sent by the plug-and-play device, and the application platform of the Internet of Things is subjected to event response processing according to the data channel to obtain the event processing result.
[0021] Optionally, the device instruction is sent through the front-end page, the plug-and-play device is subjected to instruction execution processing according to the data channel to obtain the instruction execution result, and the instruction execution result includes:
[0022] The device instruction is sent through the front-end page.
[0023] The device instruction is forwarded from the back-end platform to the driver through a transmission protocol according to the data channel.
[0024] The plug-and-play device is subjected to operation processing through the driver to obtain the instruction execution result.
[0025] Optionally, the device event is sent by the plug-and-play device, and the application platform of the Internet of Things is subjected to event response processing according to the data channel to obtain the event processing result, and the event processing result includes:
[0026] Send device events via the plug-and-play device;
[0027] The device event is reported to the backend platform through the driver, and the backend platform forwards the device event to the frontend page.
[0028] The device events are responded to and processed through the front-end page to obtain the event processing results, which are then displayed through the front-end page.
[0029] Optionally, the method further includes:
[0030] The execution result of the instruction is returned to the backend platform through a transmission protocol, and then the execution result of the instruction is forwarded to the frontend page through a communication protocol by the backend platform.
[0031] On the other hand, embodiments of the present invention also provide an Internet of Things (IoT) access system, including:
[0032] The first module is used to configure the driver and obtain the configured driver.
[0033] The second module is used to connect the configured driver with the plug-and-play device to obtain the connected driver.
[0034] The third module is used to perform authentication processing with the IoT application platform through the connected driver and obtain the authentication result. The IoT application platform includes a front-end page and a back-end platform.
[0035] The fourth module is used to connect the connected driver and the backend platform through a transmission protocol when the authentication result is passed, and to connect the frontend page and the backend platform through a communication protocol to obtain a data channel;
[0036] The fifth module is used to perform IoT access processing on the plug-and-play device according to the data channel to obtain the access result.
[0037] On the other hand, embodiments of the present invention also disclose an electronic device, including a processor and a memory;
[0038] The memory is used to store programs;
[0039] The processor executes the program to implement the method described above.
[0040] On the other hand, embodiments of the present invention also disclose a computer-readable storage medium storing a program that is executed by a processor to implement the methods described above.
[0041] On the other hand, embodiments of the present invention also disclose a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device can read the computer instructions from the computer-readable storage medium and execute the computer instructions, causing the computer device to perform the aforementioned method.
[0042] Compared with the prior art, the present invention has the following technical effects: the embodiments of the present invention connect to the Internet of Things application platform through the configured driver to obtain a data channel; and perform Internet of Things access processing on plug-and-play devices according to the data channel, which can improve the efficiency of Internet of Things access by overcoming various restrictions of the front-end browser. Attached Figure Description
[0043] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0044] Figure 1 This is a flowchart of an IoT access method provided in an embodiment of this application. Detailed Implementation
[0045] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0046] First, let's analyze some of the terms used in this application:
[0047] Transport Layer Security (TLS) and its predecessor, Secure Sockets Layer (SSL), are security protocols designed to provide security and data integrity for internet communications.
[0048] Message Queuing Telemetry Transport (MQTT) is an ISO standard messaging protocol based on the publish / subscribe paradigm. It operates on the TCP / IP protocol suite and is designed for remote devices with limited hardware performance and poor network conditions.
[0049] WebSocket is a protocol for full-duplex communication over a single TCP connection. WebSocket simplifies data exchange between clients and servers, allowing the server to proactively push data to the client. In the WebSocket API (Application Programming Interface), the browser and server only need to complete a single handshake to establish a persistent connection and perform bidirectional data transmission.
[0050] In related technologies, IoT application platforms use mainstream web browsers. When connecting to and using plug-and-play devices on the terminal, the traditional method is still used, which restricts users from upgrading their web browsers. Often, users are required to continue using outdated web browsers, such as Internet Explorer. To change this unreasonable situation, a low-cost method is needed that allows web applications to embrace mainstream web browsers while using plug-and-play terminals, and even cope with future web browser upgrades.
[0051] In view of this, refer to Figure 1 This invention provides an Internet of Things (IoT) access method, including:
[0052] S101. Configure the driver to obtain the configured driver;
[0053] S102. Connect the configured driver to the plug-and-play device to obtain the connected driver.
[0054] S103. The connected driver performs authentication with the IoT application platform to obtain the authentication result. The IoT application platform includes a front-end page and a back-end platform.
[0055] S104. When the authentication result is successful, the driver and the backend platform are connected through the transmission protocol, and the frontend page and the backend platform are connected through the communication protocol to obtain a data channel.
[0056] S105. Perform IoT access processing on the plug-and-play device according to the data channel to obtain the access result.
[0057] This invention provides a method for enabling IoT access using plug-and-play devices in web systems. This method addresses the increasing security measures implemented by mainstream web browsers. When an IoT application platform is opened in a mainstream web browser and a plug-and-play device is used on a terminal computer, the device connects to a pre-configured driver. Through the computer terminal's network, the connected driver connects to the backend platform of the IoT application platform. Then, a script on the frontend page of the IoT application platform in the web browser connects to the IoT backend, establishing a data channel between the IoT application platform and the plug-and-play device. This reduces the limitations of using plug-and-play devices on the frontend page of the IoT application platform and improves the efficiency of IoT access. In this invention, authentication is performed before establishing a data path between the connected driver and the IoT application platform to enhance IoT access security. When authentication is successful, the connected driver and backend platform are connected via a transport protocol, and the frontend page and backend platform are connected via a communication protocol, establishing a data channel. The transport protocol in this invention can be the TLS-based MQTT protocol, and the communication protocol can be the TLS-based WebSocket protocol. This invention requires minimal device modification; virtually no changes are needed. Only minor driver modifications are required to add TLS-based MQTT protocol functionality. This bypasses various web browser security restrictions, minimizing maintenance costs associated with web browser version upgrades. Furthermore, by transmitting data via TLS-based MQTT and WebSocket protocols, this invention achieves transmission security second only to local transmission, while also providing auditable security through the platform.
[0058] As a further preferred embodiment, the step of configuring the driver to obtain a configured driver includes:
[0059] Install the driver on the computer terminal;
[0060] The IoT application platform is monitored and processed. When the monitoring requires connection to a plug-and-play device, the driver is run to obtain the configured driver.
[0061] In this embodiment of the invention, configuring the driver requires installing the driver on a computer terminal. There are three methods for installing the plug-and-play device driver on the computer terminal: 1. The user manually obtains or runs it; 2. By inserting the plug-and-play device, which is virtualized as a CD or USB drive, the user installs from the CD or USB drive; 3. No installation required; when running, the user inserts the plug-and-play device, which is virtualized as a CD or USB drive, and runs from the CD or USB drive. After the driver is installed, the IoT application platform monitors the device. When the system detects a need to connect to a plug-and-play device, the driver is run. There are three methods for running the driver: 1. The driver starts automatically when the user's computer terminal operating system starts; 2. The user starts it manually; 3. A custom hyperlink is embedded on the page, and the driver is activated when the user clicks the link. After completing the above configuration, the configured driver is obtained.
[0062] As a further preferred embodiment, the authentication process is performed between the connected driver and the IoT application platform to obtain an authentication result. The IoT application platform includes a front-end page and a back-end platform, including:
[0063] The plug-and-play device is connected to the backend platform via the driver program.
[0064] The front-end page processes the information transmission of the driver program to obtain authentication information and send it to the back-end platform.
[0065] The backend platform performs authentication processing on the plug-and-play device based on the authentication information to obtain the authentication result, which is used by the plug-and-play device to register with the Internet of Things platform.
[0066] In this embodiment of the invention, the plug-and-play device is connected to and registered with the backend platform of the IoT application platform using the TLS-based MQTT protocol via a driver. Authentication is required during registration, and authentication information needs to be passed from the web page to the driver. There are three ways to pass the authentication information: 1. The authentication information is transmitted to the driver via an iframe embedded in the IoT application platform's web page. This local web service is provided by the driver and is only available to the local computer terminal, i.e., accessed via IP address 127.0.0.1; 2. A custom hyperlink is embedded in the page, waking up the driver when the user clicks the link, with the hyperlink carrying the authentication information; 3. The driver automatically displays an interface for the user to input authentication information upon waking. Finally, the registration result is authenticated based on the user-input authentication information to obtain the authentication result.
[0067] As a further preferred embodiment, the step of performing IoT access processing on the plug-and-play device according to the data channel to obtain the access result includes:
[0068] The access result includes the instruction execution result and the event processing result;
[0069] The device command is sent through the front-end page, and the command execution process is performed on the plug-and-play device according to the data channel to obtain the command execution result.
[0070] Device events are sent through the plug-and-play device, and the IoT application platform performs event response processing according to the data channel to obtain the event processing result.
[0071] In this embodiment of the invention, a data channel enables plug-and-play devices to access the Internet of Things (IoT), allowing them to operate according to instructions issued by the IoT or upload device events to the IoT for display, thereby obtaining access results. These access results include instruction execution results and event processing results. Specifically, the user's computer terminal's web page sends device instructions via a WebSocket connection, which are then transmitted to the plug-and-play device for instruction execution processing via the data channel, resulting in an instruction execution result. Alternatively, the plug-and-play device can send device events, which are then processed by the IoT application platform via the data channel to obtain event processing results.
[0072] As a further preferred embodiment, the step of sending device commands through the front-end page, performing command execution processing on the plug-and-play device according to the data channel, and obtaining the command execution result includes:
[0073] Send device commands through the aforementioned front-end page;
[0074] The device instructions are forwarded from the backend platform to the driver via a transmission protocol according to the data channel.
[0075] The driver program operates the plug-and-play device to obtain instruction execution results.
[0076] In this embodiment of the invention, the web page of the user's computer terminal sends device instructions through a WebSocket connection. The device instructions are transmitted according to the established data channel and forwarded to the driver by the backend platform of the IoT application platform through the MQTT protocol. The driver then operates the plug-and-play device to complete the instructions and obtain the instruction execution results.
[0077] As a further preferred embodiment, the step of sending device events through the plug-and-play device, performing event response processing on the IoT application platform according to the data channel, and obtaining the event processing result includes:
[0078] Send device events via the plug-and-play device;
[0079] The device event is reported to the backend platform through the driver, and the backend platform forwards the device event to the frontend page.
[0080] The device events are responded to and processed through the front-end page to obtain the event processing results, which are then displayed through the front-end page.
[0081] In this embodiment of the invention, events of the plug-and-play device can be actively reported to the platform backend by its driver via the MQTT protocol, and the platform backend can forward them to the user's web page via the WebSocket protocol. The script in the user's web page responds to and processes the events, and displays the processing results to the user through the web page.
[0082] As a further preferred embodiment, the method also includes:
[0083] The execution result of the instruction is returned to the backend platform through a transmission protocol, and then the execution result of the instruction is forwarded to the frontend page through a communication protocol by the backend platform.
[0084] In this embodiment of the invention, after the driver operates the plug-and-play device to complete the instruction, the instruction execution result can be returned to the platform backend via the MQTT protocol. The platform backend then forwards the instruction execution result to the user's web page via WebSocket.
[0085] On the other hand, embodiments of the present invention also provide an Internet of Things (IoT) access system, including:
[0086] The first module is used to configure the driver and obtain the configured driver.
[0087] The second module is used to connect the configured driver with the plug-and-play device to obtain the connected driver.
[0088] The third module is used to perform authentication processing with the IoT application platform through the connected driver and obtain the authentication result. The IoT application platform includes a front-end page and a back-end platform.
[0089] The fourth module is used to connect the connected driver and the backend platform through a transmission protocol when the authentication result is passed, and to connect the frontend page and the backend platform through a communication protocol to obtain a data channel;
[0090] The fifth module is used to perform IoT access processing on the plug-and-play device according to the data channel to obtain the access result.
[0091] and Figure 1 Corresponding to the method described above, this embodiment of the invention also provides an electronic device, including a processor and a memory; the memory is used to store a program; the processor executes the program to implement the method described above.
[0092] and Figure 1 Corresponding to the method described above, embodiments of the present invention also provide a computer-readable storage medium storing a program that is executed by a processor to implement the method described above.
[0093] This invention also discloses a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device can read the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, causing the computer device to perform... Figure 1 The method shown.
[0094] In related technologies, local web services using plug-and-play device drivers, such as http: / / 127.0.0.1:8083, are accessed by pages via scripts to utilize device capabilities. However, with the upgrading of web browser security, not only is the use of HTTPS protocol required on web platforms, but interaction with HTTP content is also prohibited within HTTPS pages. Therefore, this method is not feasible in the long run. The access method of this embodiment is not subject to this limitation. Furthermore, related technologies typically use web browser plugins to operate devices. From a security perspective, this method is more secure. However, due to the upgrading of web browser security, the security requirements for web browser plugins are becoming increasingly stringent, requiring various security certifications. In addition, the development of web browser plugins differs significantly from web platform development technologies, necessitating long-term adaptation to multiple web browsers and their version upgrades. Therefore, the development technology threshold and cost of this method are very high. The method of this embodiment establishes a data channel through a driver, thereby avoiding the limitations of web browsers and lowering the technology threshold and cost.
[0095] In summary, the embodiments of the present invention have the following advantages:
[0096] 1) Minimal equipment modification is required; basically, no equipment modification is needed. Only slight modifications to the driver are required to add TLS-based MQTT protocol functionality.
[0097] 2) By leveraging the various security restrictions of web browsers, there are virtually no maintenance costs associated with updating web browser versions.
[0098] 3) Data is transmitted via TLS-based MQTT and WebSocket protocols, achieving transmission security that is only slightly less secure than local transmission, and also providing auditable security for the platform.
[0099] 4) It supports both active device operation and passive device event handling modes.
[0100] 5) The access method mentioned in this embodiment of the invention includes authentication and data transmission, and can provide complete middleware, including web page scripts, IoT backend programs, driver MQTT middleware. Plug-and-play device manufacturers or web application platform developers can use this middleware to quickly develop and rapidly and cost-effectively implement web page access to plug-and-play devices.
[0101] In some alternative embodiments, the functions / operations mentioned in the block diagrams may not occur in the order shown in the operation diagrams. For example, depending on the functions / operations involved, two consecutively shown blocks may actually be executed substantially simultaneously, or the blocks may sometimes be executed in reverse order. Furthermore, the embodiments presented and described in the flowcharts of this invention are provided by way of example to provide a more comprehensive 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 altered and sub-operations described as part of a larger operation are executed independently.
[0102] Furthermore, although the invention has been described in the context of functional modules, it should be understood that, unless otherwise stated, one or more of the described functions and / or features may be integrated into a single physical device and / or software module, or one or more functions and / or features may be implemented in a separate physical device or software module. It is also understood that a detailed discussion of the actual implementation of each module is unnecessary for understanding the invention. Rather, given the properties, functions, and internal relationships of the various functional modules in the apparatus disclosed herein, the actual implementation of the module will be understood within the scope of conventional skill of an engineer. Therefore, those skilled in the art can implement the invention as set forth in the claims using ordinary techniques without excessive experimentation. It is also understood that the specific concepts disclosed are merely illustrative and not intended to limit the scope of the invention, which is determined by the full scope of the appended claims and their equivalents.
[0103] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, essentially, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0104] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device.
[0105] More specific examples of computer-readable media (a non-exhaustive list) include: electrical connections (electronic devices) having one or more wires, portable computer disk drives (magnetic devices), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Furthermore, computer-readable media can even be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in computer memory.
[0106] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0107] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0108] Although embodiments of the invention have been shown and described, those skilled in the art will understand that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.
[0109] The above is a detailed description of the preferred embodiments of the present invention, but the present invention is not limited to the embodiments described. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of the present invention, and these equivalent modifications or substitutions are all included within the scope defined by the claims of this application.
Claims
1. An Internet of Things (IoT) access method, characterized in that, The method includes: Configure the driver to obtain a configured driver; The configured driver is connected to the plug-and-play device to obtain the connected driver. The connected driver performs authentication with the IoT application platform to obtain the authentication result. The IoT application platform includes a front-end page and a back-end platform. When the authentication result is successful, the driver and the backend platform are connected via the transmission protocol, and the frontend page and the backend platform are connected via the communication protocol to obtain a data channel; The plug-and-play device is processed for IoT access based on the data channel to obtain the access result; The process of configuring the driver to obtain a configured driver includes: Install the driver on the computer terminal; The IoT application platform is monitored and processed. When monitoring requires connection to a plug-and-play device, the driver program is run to obtain the configured driver program. The driver enables plug-and-play devices to connect and register with the backend platform of the IoT application platform using the TLS-based MQTT protocol. Events from plug-and-play devices are proactively reported to the platform backend by the driver via the MQTT protocol. The platform backend then forwards these events to the user's web page via the WebSocket protocol. The scripts on the user's web page respond to and process the events, and then display the processing results to the user through the web page.
2. The method according to claim 1, characterized in that, The connected driver performs authentication with the IoT application platform to obtain an authentication result. The IoT application platform includes a front-end page and a back-end platform, including: The plug-and-play device is connected to the backend platform via the driver program. The front-end page processes the information transmitted by the driver program to obtain authentication information, which is then sent to the back-end platform. The backend platform performs authentication processing on the plug-and-play device based on the authentication information to obtain the authentication result, which is used by the plug-and-play device to register with the Internet of Things platform.
3. The method according to claim 1, characterized in that, The step of performing IoT access processing on the plug-and-play device based on the data channel to obtain the access result includes: The access result includes the instruction execution result and the event processing result; The device command is sent through the front-end page, and the command execution process is performed on the plug-and-play device according to the data channel to obtain the command execution result. Device events are sent through the plug-and-play device, and the IoT application platform performs event response processing according to the data channel to obtain the event processing result.
4. The method according to claim 3, characterized in that, The step of sending device commands through the front-end page, performing command execution processing on the plug-and-play device according to the data channel, and obtaining the command execution result includes: Send device commands through the aforementioned front-end page; The device instructions are forwarded from the backend platform to the driver via a transmission protocol according to the data channel. The driver program operates the plug-and-play device to obtain instruction execution results.
5. The method according to claim 3, characterized in that, The process of sending device events through the plug-and-play device, performing event response processing on the IoT application platform according to the data channel, and obtaining the event processing result includes: Send device events via the plug-and-play device; The device event is reported to the backend platform through the driver, and the backend platform forwards the device event to the frontend page. The device events are responded to and processed through the front-end page to obtain the event processing results, which are then displayed through the front-end page.
6. The method according to claim 5, characterized in that, The method further includes: The execution result of the instruction is returned to the backend platform through a transmission protocol, and then the execution result of the instruction is forwarded to the frontend page through a communication protocol by the backend platform.
7. An Internet of Things (IoT) access system, characterized in that, The system is applied to the Internet of Things access method as described in any one of claims 1 to 6, the system comprising: The first module is used to configure the driver and obtain the configured driver. The second module is used to connect the configured driver with the plug-and-play device to obtain the connected driver. The third module is used to perform authentication processing with the IoT application platform through the connected driver and obtain the authentication result. The IoT application platform includes a front-end page and a back-end platform. The fourth module is used to connect the connected driver and the backend platform through a transmission protocol when the authentication result is passed, and to connect the frontend page and the backend platform through a communication protocol to obtain a data channel; The fifth module is used to perform IoT access processing on the plug-and-play device according to the data channel to obtain the access result.
8. An electronic device, characterized in that, The electronic device includes a memory and a processor; The memory is used to store programs; The processor executes the program to implement the method of any one of claims 1 to 6.
9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the method of any one of claims 1 to 6.