Equipment access method and device and related product

By generating and parsing device access configuration files, communication connections between different types of devices and the Internet of Things platform are achieved, which solves the problem of customized modification of device programs in the prior art and reduces labor costs and work burdens.

CN120017737APending Publication Date: 2025-05-16TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311519186.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-14
Publication Date
2025-05-16

AI Technical Summary

Technical Problem

When the prior art realizes communication connection between different types of devices and the Internet of Things platform, custom modifications to the device programs need to be made, resulting in increased labor costs and work burdens.

Method used

By obtaining the device access profile of the target device, parsing the profile to obtain the target communication protocol and the target acquisition task, and sending the acquisition task and data to the device based on these protocols and tasks, and finally sending the device operation data to the Internet of Things platform.

Benefits of technology

The communication connection between different types of devices and the Internet of Things platform is realized, reducing labor costs and work burdens, and users can understand the operating status of the devices in real time through the Internet of Things platform.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120017737A_ABST
    Figure CN120017737A_ABST
Patent Text Reader

Abstract

The invention discloses an equipment access method and device which can be applied to various scenes such as cloud technology, artificial intelligence, intelligent traffic and auxiliary driving, and related products. The method comprises the following steps: acquiring a device access configuration file of a target device; the device access configuration file is generated in response to a configuration operation of a user on a communication protocol and a configuration operation on an acquisition task; analyzing the equipment access configuration file to obtain a target communication protocol and a target acquisition task; sending the target acquisition task to the target device based on the target communication protocol; receiving equipment operation data sent by the target equipment based on the target communication protocol; the equipment operation data is acquired by executing a target acquisition task by target equipment; and sending the equipment operation data to the Internet of Things platform. Thus, only simple configuration of communication protocols and acquisition tasks for different types of equipment needs to be carried out manually, and communication connection between different types of equipment and the Internet of Things platform can be realized under the condition of reducing labor cost and workload.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a device access method, apparatus and related products. Background Art

[0002] In order to enable users to grasp the real-time dynamic data of multiple devices and make more accurate decisions, multiple devices can be digitally transformed. Taking multiple devices in a factory workshop as an example, if users need to understand the production efficiency and production progress of multiple devices, multiple devices can be connected to the IoT platform so that users can grasp the real-time dynamic data of multiple devices through the IoT platform and control and manage multiple devices through the IoT platform.

[0003] However, there are usually many devices that need to be connected to the IoT platform, and there are many types of devices, and the ways in which different types of devices communicate and connect with the IoT platform may be different. In related technologies, adapter programs can be customized for different types of devices to achieve communication and connection with the IoT platform. It is also possible to modify the programs of different types of devices and integrate the software development kit (SDK) of the IoT platform into it, thereby achieving communication and connection between the device and the IoT platform.

[0004] However, both of the above methods require customized modifications to the programs of different types of equipment. The wide variety of equipment types can easily increase labor costs and workload. Summary of the invention

[0005] The embodiments of the present application provide a device access method, apparatus, and related products, the purpose of which is to achieve communication connection between different types of devices and an Internet of Things platform while reducing labor costs and workload.

[0006] The first aspect of the present application provides a device access method, including:

[0007] Acquire a device access configuration file of the target device; the device access configuration file is generated in response to a configuration operation on a communication protocol and a configuration operation on a collection task;

[0008] Parsing the device access configuration file to obtain a target communication protocol and a target acquisition task;

[0009] Sending the target acquisition task to the target device based on the target communication protocol;

[0010] Receiving device operation data sent by the target device based on the target communication protocol; the device operation data is collected by the target device when executing the target collection task;

[0011] The device operation data is sent to the Internet of Things platform.

[0012] A second aspect of the present application provides a device access apparatus, including:

[0013] A file acquisition module, used to acquire a device access configuration file of a target device; the device access configuration file is generated in response to a configuration operation on a communication protocol and a configuration operation on a collection task;

[0014] A file parsing module, used to parse the device access configuration file to obtain a target communication protocol and a target acquisition task;

[0015] A task sending module, used for sending the target acquisition task to the target device based on the target communication protocol;

[0016] A data receiving module, configured to receive device operation data sent by the target device based on the target communication protocol; the device operation data is collected by the target device when executing the target collection task;

[0017] The data sending module is used to send the device operation data to the Internet of Things platform.

[0018] A third aspect of the present application provides a computer device, the device comprising a processor and a memory:

[0019] The memory is used to store a computer program and transmit the computer program to the processor;

[0020] The processor is used to execute the steps of the device access method provided in the first aspect according to the computer program.

[0021] A fourth aspect of the present application provides a computer-readable storage medium, which is used to store a computer program. When the computer program is executed by a computer device, the steps of the device access method provided in the first aspect are implemented.

[0022] A fifth aspect of the present application provides a computer program product, including a computer program, which, when executed by a computer device, implements the steps of the device access method provided in the first aspect.

[0023] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:

[0024] In the technical solution of the present application, a device access configuration file for the target device is generated based on the user's configuration operations on the communication protocol and the configuration operations on the collection task; after obtaining the device access configuration file of the target device, it is parsed to obtain the target communication protocol and the target collection task; based on the target communication protocol, the target collection task is sent to the target device; the target device executes the target collection task to collect and obtain device operation data; the device operation data returned by the target device is received, and finally, the device operation data of the target device is sent to the Internet of Things platform.

[0025] This application can obtain the corresponding device access configuration file for the target device, that is, the device access configuration files corresponding to different types of devices can be obtained based on user operations. Based on the configuration content of the device access configuration file, the device operation data collected by the target device itself can be received based on the target communication protocol, and uploaded to the Internet of Things platform. In this way, only simple configuration of communication protocols and collection tasks is required for different types of devices, and there is no need to customize the modification program for each type of device. It can realize the communication connection between different types of devices and the Internet of Things platform while reducing labor costs and workload, and then users can understand the operating status of the device in real time through the Internet of Things platform. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 A scenario architecture diagram of a device access method provided in an embodiment of the present application;

[0027] Figure 2 A technical architecture diagram of a device access method provided in an embodiment of the present application;

[0028] Figure 3 A flow chart of a device access method provided in an embodiment of the present application;

[0029] Figure 4a A schematic diagram of a display device access configuration page provided in an embodiment of the present application;

[0030] Figure 4b A schematic diagram of a channel configuration page provided in an embodiment of the present application;

[0031] Figure 5 A schematic diagram of obtaining a device access configuration file provided in an embodiment of the present application;

[0032] Figure 6 A schematic diagram of a collection task configuration sub-page provided in an embodiment of the present application;

[0033] Figure 7 A schematic diagram of a communication protocol in a configuration file provided in an embodiment of the present application;

[0034] Figure 8 A schematic diagram of a collection task in a configuration file provided in an embodiment of the present application;

[0035] Fig. 9 A schematic diagram of a communication protocol in another configuration file provided in an embodiment of the present application;

[0036] Fig.10 A schematic diagram of a collection task in another configuration file provided in an embodiment of the present application;

[0037] Fig.11 A schematic diagram of a device access configuration interface provided in an embodiment of the present application;

[0038] Fig.12 A schematic diagram of an alarm condition configuration page provided in an embodiment of the present application;

[0039] Fig.13a A schematic diagram of a device information page provided in an embodiment of the present application;

[0040] Fig.13b A schematic diagram of another device information page provided in an embodiment of the present application;

[0041] Fig.14a A diagram of an implementation architecture of a device access method provided in an embodiment of the present application;

[0042] Fig.14b A diagram of an implementation architecture of another device access method provided in an embodiment of the present application;

[0043] Fig.15 A schematic diagram of the structure of a device access apparatus provided in an embodiment of the present application;

[0044] Fig.16 A schematic diagram of the structure of a server provided in an embodiment of the present application;

[0045] Fig.17 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0046] At present, the following two methods are usually used to connect devices to the IoT platform. One method is to manually write an adapter program for each type of device. Taking multiple devices in a workshop as an example, a gateway server is configured for each type of device in the workshop to run the corresponding adapter program to achieve communication connection between different types of devices and the IoT platform. However, the adapter program has low reusability, and different types of devices need to be customized. Another method is for the device manufacturer to modify the device program to support the SDK embedding docking of the IoT platform, integrate the SDK into the device program, and then burn and update it to the device to achieve communication connection between different types of devices and the IoT platform. This method also requires modification and update of the device program. Therefore, both of the above two device access methods require the program to be written or modified, and when there is a change in device information such as a change in the device communication address, the program also needs to be modified accordingly, which is easy to increase labor costs and workload.

[0047] In view of the above problems, a device access method, apparatus and related products are provided in the present application, the purpose of which is to achieve communication connection between different types of devices and the Internet of Things platform while reducing labor costs and workload. In the technical solution provided in the present application, the device access configuration file of the target device is first obtained; the device access configuration file is generated in response to the user's configuration operation on the communication protocol and the configuration operation on the collection task; the device access configuration file is then parsed to obtain the target communication protocol and the target collection task; then, the target collection task is sent to the target device based on the target communication protocol; then, the device operation data sent by the target device is received based on the target communication protocol; the device operation data is collected by the target device when executing the target collection task; finally, the device operation data is sent to the Internet of Things platform.

[0048] In this way, only simple configuration of communication protocols and collection tasks is required for different types of devices. There is no need to customize the program for each type of device. This can achieve communication connections between different types of devices and the IoT platform while reducing labor costs and workload. Users can then understand the operating status of the device in real time through the IoT platform.

[0049] First, several terms that may be involved in the embodiments of the present application are explained below.

[0050] Internet of Things Platform: Based on Internet of Things technology and spatial information processing technology, it uses cloud-edge collaborative infrastructure to extend and enable data processing, logic orchestration, alarm linkage, video artificial intelligence algorithms, edge computing and other functional units, providing a platform for full system interoperability, comprehensive real-time data, offline calculation results and spatial rendering information for user interaction of real digital twins. In the embodiment of the present application, the device access method refers to connecting the device to the Internet of Things platform to achieve communication connection between the two. In the field of digital twin business, the Internet of Things platform is also generally referred to as the twin foundation.

[0051] Equipment point: refers to the data collection address corresponding to each equipment attribute of the equipment. In the embodiment of the present application, taking lighting equipment as an example, the equipment point includes red light, yellow light, etc.; taking air conditioning equipment as an example, the equipment point includes set temperature, etc.

[0052] Object model: It is a digital description of a product and defines the functions of the product. The object model abstracts and summarizes the functions of products of different brands and categories into a "standard object model" to facilitate all parties to describe, control and understand product functions in a unified language. In the embodiment of the present application, the object model is a data model that can report device data to the IoT platform, allowing the IoT platform to quickly understand the meaning of device data.

[0053] The execution subject of the device access method provided in the embodiment of the present application can be a data processing device such as a terminal device or a server (also referred to as a device access tool). As an example, the terminal device can specifically include but is not limited to mobile phones, desktop computers, tablet computers, laptops, PDAs, intelligent voice interaction devices, smart home appliances, vehicle terminals, aircraft, etc. As an example, the server can be an independent physical server, or it can be a server cluster or distributed system composed of multiple physical servers. In addition, the server can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.

[0054] In addition, the device access method provided in the embodiment of the present application can also be executed by the terminal device and the server in collaboration. Among them, the terminal and the server can be directly or indirectly connected through wired or wireless communication, and the present application does not limit this. Therefore, the implementation subject of the technical solution of the present application is not limited in the embodiment of the present application. For details, please refer to Figure 1 , which exemplarily shows a scenario architecture diagram of a device access method, Figure 1 It includes the servers mentioned above and various forms of terminal devices.

[0055] The embodiments of the present invention can be applied to various scenarios, including but not limited to cloud technology, artificial intelligence, smart transportation, assisted driving, etc.

[0056] See also Figure 2 , which is a technical architecture diagram of a device access method provided by an embodiment of the present application. Figure 2 As shown, first collect information about the devices, then perform a number of preparatory tasks such as device sorting and building online modeling for the devices to enter the IoT platform, then configure and connect the southbound devices to achieve communication between the devices and the IoT platform, and then connect the northbound applications so that users can understand the operating status of the devices in real time.

[0057] The device access method provided in the embodiment of the present application mainly involves Figure 2 The southbound device configuration access part in . Among them, the cloud channel (gateway) is enabled, that is, based on the configured target communication protocol, the communication connection between the device and the Internet of Things platform is realized. The device point model format organization refers to the unified organization of the data collection addresses corresponding to each device attribute of the device. Exemplarily, the points of each device can be unified into a table for subsequent use. Device point import refers to importing the organized device points. Codeless task configuration refers to the configuration of the device access file of the device without modifying the program. Exemplarily, in an embodiment of the present application, it may be possible to provide a device access configuration page for the user to perform codeless task configuration.

[0058] Next, taking the device access tool as the execution body, the device access method provided in the embodiment of the present application is specifically introduced.

[0059] See also Figure 3 , which is a flow chart of a device access method provided by an embodiment of the present application. Figure 3 The device access method shown includes the following steps:

[0060] S301: Obtain a device access configuration file of a target device.

[0061] In the embodiment of the present application, the target device refers to any device that needs to access the IoT platform. The device access profile refers to the device access profile obtained in order to enable the target device to access the IoT platform, which is generated by the user's configuration operation on the communication protocol and the configuration operation on the collection task.

[0062] In a possible implementation manner of the present application, the device access configuration file may be obtained by following the steps below:

[0063] A1: Display the device access configuration entry of the target device.

[0064] Display the device access configuration entry of the target device to the user. Exemplarily, the device access configuration entry can be displayed through the display screen of the device access tool. In an embodiment of the present application, the device access configuration entry refers to an entry for entering the device access configuration page of the target device. As an example, the device access configuration entry can be an entry control, and the control is marked with a corresponding logo, which is used to prompt the user of the corresponding changes in the display screen of the device access tool after triggering the control. It should be noted that the logo on the control includes but is not limited to the text corresponding to the device access configuration page, or the image corresponding to the device access configuration page, so that the user can clearly understand the function of the entry. Exemplarily, the device access configuration control may have the text "Configure", or the text "Edit", etc.

[0065] A2: In response to a triggering operation on a device access configuration entry, a device access configuration page is displayed.

[0066] After the user operation triggers the device access configuration entry, the device access tool displays the device access configuration page of the target device in response to the user operation.

[0067] In a possible implementation of the present application, the device access configuration page may include communication protocol configuration items and collection task configuration items. Among them, the communication protocol configuration item is a communication protocol for configuring the cloud channel, that is, the communication protocol of the channel that enables the device to transmit data to the Internet of Things platform. The collection task configuration item is used to configure the collection task for the device so that the device executes the collection task to obtain data that can be uploaded to the Internet of Things platform. In addition, the device access configuration page may also include multiple configuration items such as the collection address configuration item and the collection task execution cycle, which are not limited in this application.

[0068] As an example, see Figure 4a , which is a schematic diagram of a display device access configuration page in an embodiment of the present application. Figure 4a As shown in the figure, taking device 1 as the target device, after the user clicks the "Configure" control (i.e., the device access configuration entry), the device access tool can display the device access configuration page, which includes the channel configuration subpage and the acquisition task configuration subpage. The channel configuration subpage includes the communication protocol configuration item, and the user can choose between multiple communication protocols. Figure 4a As shown, the user triggers and selects the serial communication protocol Modbuds protocol. The acquisition task configuration subpage may include acquisition task configuration items. The acquisition task may include multiple acquisition steps. The user may configure the step request content of each acquisition step. For example, taking the target device as a lighting device, step 1 may be to obtain a list of light emitting diodes (LEDs) of the lighting device; step 2 may be to obtain the lighting brightness of each LED.

[0069] It should be noted that Figure 4a The device access tool configuration page shown is only an example, and the device access tool configuration page may also include a channel configuration entry for triggering access to the channel configuration page; the device access tool configuration page may also include a collection task configuration entry for triggering access to the collection task configuration page. That is, the communication protocol configuration items and the collection task configuration items may be displayed on one page or on different pages, and this application does not limit this.

[0070] It is understandable that for different communication protocols, the content required to be configured in the channel configuration page is also different. As an example, see Figure 4b , which is a schematic diagram of a channel configuration page provided in an embodiment of the present application. Figure 4b As shown, the communication protocol of the channel configured by the user is the Hyper Text Transfer Protocol (HTTP) protocol. You can also configure the main address of the collection service of the communication protocol, the backup address of the collection service, whether the down-control switch is turned on, the heartbeat reporting interval and the log level to avoid communication failure, etc.

[0071] In this way, users are provided with an entry point for configuring different types of devices. The device access tool can generate a device access configuration file based on the user configuration content, so that the access configuration file can be loaded later to achieve communication connection between the device and the IoT platform. It can be seen that users only need to perform simple configuration for different types of devices without modifying the device program. The operation is simple, reducing labor costs and workload. When the device information changes, only part of the configuration content of the device access file needs to be modified, without updating the device program, which also reduces labor costs and workload.

[0072] A3: In response to the configuration operation on the communication protocol configuration item and the configuration operation on the collection task configuration item, information for prompting successful configuration is displayed to obtain the device access configuration file of the target device.

[0073] The user can configure the communication protocol configuration items and collection task configuration items in the device access configuration page. When the configuration is completed, a message prompting the user that the configuration is successful can be displayed, and the device access configuration file of the target device can be obtained based on the user's configuration operation.

[0074] As an example, see Figure 5 , which is a schematic diagram of obtaining a device access configuration file provided by an embodiment of the present application. Figure 5As shown, when the user completes the configuration of the device access content of the target device, he can click to trigger the "OK" control, and then the device access tool will display "Configuration Successful" to the user, prompting the user that the device access of the target device has been configured. It should be noted that this application does not limit the text content of the information used to prompt the successful configuration, and it can be used to prompt the user.

[0075] In addition, it should be noted that the above A1-A3 are not shown in the drawings, and they are respectively used to simply distinguish different steps for obtaining the access profile in the embodiment of the present application.

[0076] S302: Parse the device access configuration file to obtain the target communication protocol and the target collection task.

[0077] After obtaining the device access configuration file, it can be parsed to obtain the user configuration content, including the target communication protocol and the target collection task.

[0078] In a possible implementation of the present application, taking the target device as a lighting device as an example, the above S302 may specifically be: parsing the device access configuration file to obtain the Modbus protocol and the collection task of collecting the lighting brightness of the lighting device. In order to subsequently realize the communication connection between the lighting device and the device access tool based on the Modbus protocol. The device access tool may issue the task of collecting the lighting brightness of the lighting device to the lighting device.

[0079] S303: Sending the target acquisition task to the target device based on the target communication protocol.

[0080] The device access tool sends the target collection task to the target device based on the target communication protocol.

[0081] S304: Receive device operation data sent by the target device based on the target communication protocol.

[0082] After receiving the target collection task, the target device executes the target collection task to collect its own device operation data, and returns the device operation data to the device access tool based on the target communication protocol.

[0083] S305: Sending device operation data to the IoT platform.

[0084] The device access tool uploads the device operation data of the target device to the Internet of Things platform. Exemplarily, the device access tool can upload the device operation data to the Internet of Things platform based on the Message Queuing Telemetry Transport (MQTT) protocol.

[0085] As an example, the communication protocol between the device access tool and the IoT platform can be pre-set, and the device operation data can be directly uploaded to the IoT platform after receiving the device operation data. It is also possible that when the user configures the device access content of the device, the communication protocol between the device access tool and the IoT platform is also configured, so that the device access tool establishes a communication connection with the IoT platform based on the content configured by the user. This application does not limit this.

[0086] In this way, target communication protocols that can be connected are configured for different types of devices to enable the devices to access the Internet of Things platform. The device access tool then uploads the device operation data based on the communication protocol between the Internet of Things platforms to achieve protocol conversion for different types of devices to access the Internet of Things platform.

[0087] In a possible implementation of the present application, in order to realize the communication connection between the device access tool and the device, the two can be connected by wire or wirelessly. For example, the communication connection can be carried out by a limited method such as a serial port RS232 or RS485 serial port line, or a network port line such as an RJ45, or a wireless gateway is used at both ends to carry out wireless communication connection.

[0088] It is understandable that the data uploaded by different devices of the same type may not be in a unified data format, and it is difficult for the IoT platform to perform statistical analysis after receiving it. Therefore, in a possible implementation of the present application, the user can configure the model mapping information configuration item, and the generated device access configuration file can include the model mapping information. Then the device access method can also include the following steps:

[0089] B1: Parse the device access configuration file to obtain model mapping information.

[0090] In an embodiment of the present application, the model mapping information may be generated in response to a user's configuration operation on a model mapping information configuration item. The model mapping information represents the mapping relationship between the point field of the target device and the model reporting field. Among them, the point field of the target device refers to the attribute field of the target device, and the model reporting field refers to the field used to report to the Internet of Things platform. In an embodiment of the present application, the model mapping information may be referred to as relevant information of the object model, and the user configures the relevant information of the object model so that the data returned by the device can be converted into data that facilitates the Internet of Things platform to analyze different devices of the same type according to the corresponding relationship of the configuration.

[0091] In a possible implementation of the present application, the model mapping information configuration item may be displayed on the device access configuration page. For example, it may be displayed in the collection task configuration subpage within the device access configuration page; it may also be displayed in the model mapping information configuration subpage within the device access configuration page, which is not limited in the present application. Figure 6 , which is a schematic diagram of a collection task configuration subpage provided in an embodiment of the present application. Figure 6 As shown, the device access configuration page may include a model mapping information configuration item, that is, to configure the object model of the target device. The model mapping information configuration item includes a one-to-one corresponding point field and a model reporting field. Figure 6 The content shown can take the target device as an access control device as an example, and the point field (that is, Figure 6 The fields under the name in the model are replaced one by one with the model reported fields (that is, Figure 6 fields under Identity in .

[0092] B1: Based on the model mapping information, the point fields in the equipment operation data are converted into corresponding model reporting fields.

[0093] After receiving the device operation data of the target device, the device access tool converts the point fields therein into corresponding model reporting fields.

[0094] Accordingly, the above S305 may specifically be: the device access tool sends the converted device operation data to the Internet of Things platform.

[0095] It should be noted that the above B1-B2 are not shown in the drawings, and they are each used for simple distinguishing steps in the embodiments of the present application.

[0096] In this way, a unified description language is constructed to convert the device operation data of different devices of the same type into a standard object model, standardize the device capability expression and interaction methods, and accelerate the IoT platform's ability to understand and analyze device operation data.

[0097] In a possible implementation of the present application, take the case where the user completes the configuration of the communication protocol configuration item, the collection task configuration item, and the model mapping information configuration item in the device access configuration page as an example. The device access tool can identify the keyword key and the value corresponding to the key in the configuration content based on the user's configuration content, and identify the point field and the model reporting field in the object model, and convert the identified content into an object structure of the programming language; it also establishes an independent coroutine task according to the step configuration information of the target collection task, and then generates a device access configuration file for the target device. Exemplarily, the object structure can be a map or a struct, which is not limited in the present application.

[0098] As an example, see Figure 7 , which is a schematic diagram of a communication protocol in a configuration file provided in an embodiment of the present application. Figure 8 , which is a schematic diagram of a collection task in a configuration file provided in an embodiment of the present application. Figure 7 and Figure 8 As shown, the target device is a lighting device in a factory workshop. The communication protocol configured by the user can be the Modbus protocol, the configured model mapping information can include the correspondence between the register address of the lighting device and the model reporting field of the object model, and the configured collection task can be to collect the brightness of the blue light, green light, red light and warm light of the lighting device respectively.

[0099] As an example, see Fig. 9 , which is a schematic diagram of a communication protocol in another configuration file provided in an embodiment of the present application. Fig.10 , which is a schematic diagram of another collection task in a configuration file provided in an embodiment of the present application. Fig. 9 and Fig.10 As shown, taking the target device as an air conditioning device in a factory workshop as an example, the communication protocol that the user can configure for it can be the HTTP protocol, the configured model mapping information can include the correspondence between the json data on the device side and the model reporting fields of the object model, and the configured collection task can be to collect the set temperature of the air conditioning device.

[0100] It is understandable that, based on the user's configuration, after the device is connected to the IoT platform, the device can not only upload data to the IoT platform, but the IoT platform can also issue control tasks to the device. Therefore, in a possible implementation of the present application, the device access tool may also include the following steps:

[0101] C1: Get the point control task of the target device.

[0102] In the embodiment of the present application, the point control task refers to a task issued by the Internet of Things platform to control the point of the target device. For example, taking the target device as a lighting device, the point control task can be a device startup task or a device lighting brightness adjustment task.

[0103] In a possible implementation of the present application, the point control task may be generated in response to a user's configuration operation on a point control task configuration item. The point control task configuration item may be displayed on a down-control task configuration page of the Internet of Things platform. For example, the device access configuration interface may include a down-control task configuration entry, and after the user clicks on the trigger, the down-control task configuration page including the point control task configuration item is entered.

[0104] It should be noted that the above-mentioned down-control task configuration page is only an example, and the device access configuration interface may also include a down-control task configuration sub-page, which includes point control task configuration items.

[0105] As an example, see Fig.11 , which is a schematic diagram of a device access configuration interface provided by an embodiment of the present application. The device access configuration page mentioned above may include a down-control task configuration subpage, so when the user configures the communication protocol and acquisition task of the target device, the user may also configure the down-control task, that is, configure the down-control task configuration items in the down-control task configuration subpage.

[0106] As an implementation method, the device access tool can generate a device access configuration file based on the user's configuration content for the communication protocol, collection tasks, and down-control tasks. Accordingly, based on the above example, C1 can specifically be: parsing the device access configuration file to obtain the point control task of the target device.

[0107] C2: If a point control request corresponding to the point control task is received from the IoT platform, the point control task is sent to the target device based on the target communication protocol so that the target device executes the point control task.

[0108] When the Internet of Things platform sends a point control request corresponding to a point control task to the device access tool, the device access tool can send the point control task to the target device based on the target communication protocol, thereby enabling the target device to execute the point control task.

[0109] It should be noted that the above C1-C2 are not shown in the accompanying drawings. In the embodiment of the present application, they are each used to simply distinguish the control steps of the Internet of Things platform for the target device.

[0110] In this way, when users configure the target device, they can not only configure the communication protocol, collection tasks, etc., but also configure the down-control tasks. Based on the configuration content of the target device by the user, the device access tool can not only enable the target device to upload the device operation data to the IoT platform (i.e. uplink data), but also enable the IoT platform to control the target device (i.e. downlink control). The operation is simple and there is no need to modify the program, which greatly reduces labor costs and workload.

[0111] In a possible implementation of the present application, taking the target device as a lighting device, and the point control task including adjusting the lighting brightness of the lighting device to a preset brightness as an example, C2 may specifically be: if the Internet of Things platform sends a request to the device access tool to adjust the lighting brightness of the lighting device to a preset brightness, the device access tool may send a point control task to the lighting device based on the Modbus protocol, thereby causing the lighting device to adjust the lighting brightness to the preset brightness, thereby realizing the control of the lighting device by the Internet of Things platform.

[0112] It is understandable that anomalies may occur during the operation of the device. In order to enable users such as technicians to promptly discover anomalies through the Internet of Things platform, alarm conditions can be configured for the point operation status of the device. In a possible implementation of the present application, the device access method may also include:

[0113] D1: Get the alarm conditions of the point operation status of the target device.

[0114] In the embodiments of the present application, the point operation status refers to the operation status of each attribute of the target device. Exemplarily, taking a lighting device as an example, the point operation status may be whether the light is on after the switch is turned on; or whether the light is off after the switch is turned off, and this application does not limit this. The alarm condition may be that when the point operation status is a preset state, the alarm condition is triggered. Exemplarily, taking a lighting device as an example, the alarm condition may be that the light is not on after the switch is turned on; or the light is not off after the switch is turned off, and this application does not limit this. In these cases, it is indicated that the point operation status of the target device is abnormal, and an alarm needs to be issued to the user.

[0115] In a possible implementation of the present application, the alarm condition may be generated in response to a user's configuration operation on an alarm condition configuration item. The alarm condition configuration item may be displayed on an alarm condition configuration page of the target device. For example, the device access configuration interface may include an alarm condition configuration entry, and after the user clicks on the trigger, the user enters the alarm condition configuration page including the alarm condition configuration item. As an example, see Fig.12 , which is a schematic diagram of an alarm condition configuration page provided in an embodiment of the present application. The alarm condition configuration page includes alarm condition configuration items. After the user completes the configuration, he can click "Confirm Control". It should be noted that the above-mentioned alarm condition configuration page and the alarm condition configuration items can also be displayed in the device access configuration page mentioned above, and this application does not limit this.

[0116] D2: Send an alarm condition to the target device based on the target communication protocol.

[0117] The device access tool sends the alarm condition to the target device based on the target communication protocol.

[0118] D3: If the point operation status of the target device triggers an alarm condition, the alarm prompt information sent by the target device is received based on the target communication protocol.

[0119] After the target device receives the alarm condition, if the point operation status triggers the alarm condition, an alarm prompt information can be returned to the device access tool. In the embodiment of the present application, the alarm prompt information is used to prompt the user that the point operation status of the target device is abnormal.

[0120] In a possible implementation of the present application, the target device is an air conditioning device; the alarm condition is that the set temperature of the air conditioning device exceeds the temperature threshold. The above D3 can be specifically: if the set temperature of the air conditioning device exceeds the temperature threshold, the alarm prompt information of the set temperature exceeding the temperature threshold sent by the air conditioning device is received based on the target communication protocol.

[0121] D4: Send alarm information to the IoT platform.

[0122] After receiving the alarm prompt information sent by the target device, the device access tool can send the alarm prompt information to the Internet of Things platform to prompt the user to perform maintenance as soon as possible.

[0123] It should be noted that the above D1-D4 are not shown in the drawings, and they are each used for simple distinguishing steps in the embodiments of the present application.

[0124] In this way, alarm conditions are configured for the point operation status of the target device. When the point operation of the target device is abnormal, an alarm can be promptly issued to the user through the Internet of Things platform to enable the user to maintain the stable operation of the target device.

[0125] It is understandable that after the user has configured the relevant content of the target device, he may have the need to modify the configuration content. Then new device access configuration content will be generated. Therefore, in a possible implementation of the present application, the device access method may also include the following steps:

[0126] E1: Regularly obtain the latest device access configuration content of the target device according to a preset period.

[0127] In the embodiment of the present application, the preset period refers to a preset time period. Exemplarily, the preset period can be 12 hours, 2 days, etc., and the present application does not limit this. The latest device access configuration content is obtained in response to the latest configuration operation of the collection task. That is, when the user modifies the configuration content of the target device, the device access configuration content of the information will be generated.

[0128] It should be noted that the method of obtaining the latest device access configuration content is only an example. It may also be the user's latest configuration operation on the alarm condition configuration item, the latest configuration operation on the point control task configuration item, etc. This application does not limit this. It can be any new configuration operation related to the target device.

[0129] As an example, when the user completes the configuration of the target device, or subsequently modifies the configuration content of the target device, it can trigger Figure 4a Click the "Send Configuration" control in the Device Access Tool configuration page to enable the Device Access Tool to receive the user's configuration content for the target device.

[0130] E2: Update the device access configuration file based on the latest device access configuration content, and parse the updated device access configuration file again to obtain the updated target collection task.

[0131] The device access tool updates the device access configuration file of the target device based on the latest device access configuration content to obtain an updated device access configuration file. The device access tool can then parse the updated device access configuration file again to obtain an updated target collection task so that the target device executes the updated target collection task.

[0132] In the related art, modifying the code may require restarting the device, which is likely to affect the stable operation and daily production of the device. However, the present application uses the above-mentioned steps of regularly obtaining the latest device access configuration content of the target device according to the preset period. If the device changes, the device access configuration file can be updated regularly based on the user's latest configuration operation, and the device access tool re-parses the updated device access configuration file to load and run the updated device access configuration file. In this way, when the configuration content of the device changes, there is no need to restart or modify the code, and hot loading and smooth upgrade can be achieved, thereby avoiding affecting the stable operation and daily production of the device.

[0133] It should be noted that the above E1-E2 are not shown in the drawings, and they are each used for simple distinguishing steps in the embodiments of the present application.

[0134] In the related art, after the program of different types of devices is modified, each type of device needs to be developed one by one, which greatly reduces the efficiency of device access to the Internet of Things platform, with a large workload and a long development cycle. However, this application performs codeless configuration on the visual page, and the device access tool generates a device access configuration file based on the device access configuration content of the device and loads and runs it, which greatly improves the speed of device access to the Internet of Things platform. While reducing labor costs and workload, it also improves the efficiency of device access to the Internet of Things platform.

[0135] In addition, after completing the device access configuration for the device, the user may have the need to view the configured content of the device. In this case, the device access tool can be used to provide users with data access services about the device, so that users can view the basic information of the device, device access configuration content, etc. at any time. Fig.13a and Fig.13b An exemplary description is given.

[0136] See also Fig.13a , which is a schematic diagram of a device information page provided by an embodiment of the present application. Fig.13a As shown in the figure, the device information page displays the basic information of the device, including device information, device shadow, and device data. The device operation data in the device data is the device operation data sent by the received device, and the model reporting data is the data converted based on the model mapping relationship, which is used to report to the IoT platform. Fig.13b , which is a schematic diagram of another device information page provided by an embodiment of the present application. Fig.13b As shown, the device information page displays the device location of the device, including the communication protocol of the channel, model mapping relationship, etc.

[0137] See also Fig.14a , which is a diagram of the implementation architecture of a device access method provided in an embodiment of the present application. Fig.14a As shown, it includes the IoT platform, device access tool and target device. The device access tool includes edge access configuration page, edge application programming interface (API), data access service, configuration center, data center and acquisition control service.

[0138] Combination Fig.14a As shown, the edge access configuration page is an interactive and practical page provided for users. Users can configure the relevant content of device access to the Internet of Things platform through the edge access configuration page. It can include the configuration items corresponding to the communication protocols, collection tasks, control tasks and alarm conditions mentioned above. The edge API can be used for front-end and back-end interaction. At the same time, the edge API can provide data access services for third-party edge applications so that customers and other users can access the data of device configuration information. The edge API will generate a device access configuration file based on the device access configuration content obtained by the user's configuration operation. The edge API then sends the generated device access configuration file to the configuration center. The collection control service can obtain the configuration file from the configuration center and can also interact with the device.

[0139] like Fig.14aAs shown in the figure, the acquisition control service will regularly pull the latest configuration content from the configuration center according to the preset cycle to update the previously obtained device access configuration file, so hot loading and smooth upgrade can be achieved. The acquisition control service parses the device access configuration file to obtain the communication protocol, acquisition task and model mapping information, and then sends the acquisition task to the device through the communication protocol. After obtaining the device operation data sent by the device, the device operation data is converted into a standard object model based on the model mapping information. The acquisition control service reports the converted device operation data to the data center first. The data center can regularly pull the latest device access configuration content from the configuration center to obtain the communication protocol between the device access tool and the Internet of Things platform, and establish a communication connection with the Internet of Things platform, and then report the device operation data reported by the acquisition control service to the Internet of Things platform after data cleaning, displacement reporting and other processing.

[0140] See also Fig.14b , which is a diagram of the implementation architecture of another device access method provided in an embodiment of the present application. Fig.14b As shown in the figure, it includes the IoT platform, device access tool and target device. The device access tool includes the access tool front-end configuration page, edge API, configuration center, database (Data Base, DB), southbound acquisition control service, local disk and edge data processing center.

[0141] Before the user configures the device access information of the device, the device access tool can obtain the basic information data of the device from the IoT platform based on the MQTT protocol, so as to generate the front-end configuration page of the access tool based on the basic information data of the device. The basic information data may include a list of device types, a list of object models, and a list of alarm types. In this way, by entering these basic information data, the following can be generated: Figure 4a The device access tool configuration page shown in the figure includes a list of different types of devices. You can also generate relevant information about the object model for each type of device based on the object model list. For details, see Figure 6 . You can also obtain the alarm types corresponding to different types of equipment according to the alarm type list. For example, the alarm type of the lighting equipment is the brightness alarm type, and the alarm type of the air conditioning equipment is the temperature alarm type. For details, please refer to Fig.12 The alarm condition configuration page is shown.

[0142] like Fig.14bAs shown, the edge data processing center will obtain these basic information data from the IoT platform through the following standard command words, and then temporarily store them in the DB, so that the front-end configuration page of the access tool can read and operate them through the edge API. For example, 30007 is the request device list, 30006 is the receiving device list; 30035 is the request object model list, 30036 is the receiving object model list; 30031 is the request alarm type list, and 30032 is the receiving alarm type list.

[0143] Then, based on the front-end configuration page of the access tool, the user can configure the communication address of the device access tool to receive and send data, the corresponding relationship between the device and the device access tool (in order to accurately find the corresponding device), model mapping information, collection tasks, channel communication protocols, etc. After the configuration is completed, the user can click Figure 4a The "Send Configuration" control shown. The edge API can store the user's configuration content for the device into the DB. The edge API then generates a device access configuration file based on the device configuration content stored in the DB. The edge API can send it to the configuration center. After the device access configuration file is generated, when the user adds or modifies the configuration, the edge API can send the latest device access configuration content to the configuration center. The southbound acquisition control service can periodically pull the latest device access configuration content from the configuration center, update the device access configuration file based on this, and persist it on the local disk.

[0144] Therefore, if you enter a period when you do not need to update the device access configuration file, you can delete the DB, edge API, configuration center, and access tool front-end configuration page in the device access tool, and only keep the edge data processing center and southbound acquisition control service running based on the device access configuration file in the local disk. This will not affect the communication connection between the device and the IoT device, and can save memory resources of the device access tool.

[0145] Based on the device access method provided in the above embodiment, the present application also provides a device access apparatus accordingly. The device access apparatus provided in the embodiment of the present application is specifically introduced below.

[0146] See also Fig.15 , which is a schematic diagram of the structure of a device access apparatus provided in an embodiment of the present application. Fig.15 As shown, the device access apparatus 1500 may specifically include:

[0147] The file acquisition module 1510 is used to acquire a device access configuration file of the target device; the device access configuration file is generated in response to a configuration operation on the communication protocol and a configuration operation on the acquisition task;

[0148] The file parsing module 1520 is used to parse the device access configuration file to obtain the target communication protocol and the target collection task;

[0149] The task sending module 1530 is used to send the target acquisition task to the target device based on the target communication protocol;

[0150] The data receiving module 1540 is used to receive the device operation data sent by the target device based on the target communication protocol; the device operation data is collected by the target device when executing the target collection task;

[0151] The data sending module 1550 is used to send device operation data to the Internet of Things platform.

[0152] As an implementation method, the device access configuration file may be obtained through the following units:

[0153] An entry display unit, used to display a device access configuration entry of a target device;

[0154] A page display unit, for displaying a device access configuration page in response to a trigger operation on a device access configuration entry; the device access configuration page includes a communication protocol configuration item and a collection task configuration item;

[0155] The information display unit is used to display information for prompting successful configuration in response to the configuration operation of the communication protocol configuration item and the configuration operation of the collection task configuration item, so as to obtain the device access configuration file of the target device.

[0156] As an implementation manner, the device access apparatus 1500 may further include:

[0157] A task acquisition module is used to acquire a point control task of a target device; the point control task is generated in response to a configuration operation on a point control task configuration item; the point control task configuration item is displayed on a down-control task configuration page of the Internet of Things platform;

[0158] The task sending module is used to send the point control task to the target device based on the target communication protocol if a point control request corresponding to the point control task is received from the Internet of Things platform, so that the target device executes the point control task.

[0159] As an implementation manner, the device access apparatus 1500 may further include:

[0160] The condition acquisition module is used to obtain the alarm condition of the point operation status of the target device; the alarm condition is generated by the configuration operation of the alarm condition configuration item; the alarm condition configuration item is displayed on the alarm condition configuration page of the target device;

[0161] The conditional sending module is useless. It sends alarm conditions to the target device based on the target communication protocol.

[0162] An information receiving module is used to receive the alarm prompt information sent by the target device based on the target communication protocol if the point operation status of the target device triggers the alarm condition;

[0163] The information sending module is used to send alarm prompt information to the Internet of Things platform.

[0164] As an implementation manner, the device access apparatus 1500 may further include:

[0165] An information parsing module is used to parse the device access configuration file to obtain model mapping information; the model mapping information is generated in response to a configuration operation on the model mapping information configuration item; the model mapping information represents a mapping relationship between a point field of the target device and a model reporting field; the model mapping information configuration item is displayed on the device access configuration page;

[0166] A field conversion module, used to convert the point field in the equipment operation data into the corresponding model reporting field based on the model mapping information;

[0167] Accordingly, the data sending module 1550 may be specifically used for:

[0168] Send the converted equipment operation data to the IoT platform.

[0169] As an implementation manner, the device access apparatus 1500 may further include:

[0170] A content acquisition module is used to periodically acquire the latest device access configuration content of the target device according to a preset period; the latest device access configuration content is obtained in response to the latest configuration operation of the acquisition task;

[0171] The file update module is used to update the device access configuration file based on the latest device access configuration content, and parse the updated device access configuration file again to obtain the updated target collection task.

[0172] As an implementation manner, the target device may be a lighting device, and the file parsing module 1520 includes:

[0173] Parse the device access configuration file to obtain the Modbus protocol and the collection task of collecting the lighting brightness of the lighting device.

[0174] As an implementation manner, the target device is a lighting device, and the point control task includes adjusting the lighting brightness of the lighting device to a preset brightness; the task sending module can be specifically used for:

[0175] If a request for adjusting the lighting brightness of a lighting device is received from the IoT platform, a point control task is sent to the lighting device based on the target communication protocol so that the lighting device adjusts the lighting brightness to a preset brightness.

[0176] As an implementation mode, the target device is an air-conditioning device; the alarm condition is that the set temperature of the air-conditioning device exceeds the temperature threshold; the information receiving module can be specifically used for:

[0177] If the set temperature of the air-conditioning device exceeds the temperature threshold, an alarm prompt message that the set temperature exceeds the temperature threshold sent by the air-conditioning device is received based on the target communication protocol.

[0178] An embodiment of the present application provides a computer device, which may be a server. Fig.16 : is a structural diagram of a server provided in an embodiment of the present application. The server 900 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 922 (for example, one or more processors) and memory 932, and one or more storage media 930 (for example, one or more mass storage devices) storing application programs 942 or data 944. Among them, the memory 932 and the storage medium 930 can be short-term storage or permanent storage. The program stored in the storage medium 930 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the server. Furthermore, the central processing unit 922 can be configured to communicate with the storage medium 930 to execute a series of instruction operations in the storage medium 930 on the server 900.

[0179] The server 900 may also include one or more power supplies 926, one or more wired or wireless network interfaces 950, one or more input and output interfaces 958, and / or one or more operating systems 941, such as Windows Server 2000. TM , Mac OS X TM , Unix TM ,Linux TM , FreeBSD TM etc.

[0180] The CPU 922 is used to execute the following steps:

[0181] Acquire a device access configuration file of the target device; the device access configuration file is generated in response to a configuration operation on a communication protocol and a configuration operation on a collection task;

[0182] Parsing the device access configuration file to obtain a target communication protocol and a target acquisition task;

[0183] Sending the target acquisition task to the target device based on the target communication protocol;

[0184] Receiving device operation data sent by the target device based on the target communication protocol; the device operation data is collected by the target device when executing the target collection task;

[0185] The device operation data is sent to the Internet of Things platform.

[0186] The present application embodiment also provides another computer device, which may be a terminal device. Fig.17 For the sake of convenience, only the parts related to the embodiments of the present application are shown. For specific technical details not disclosed, please refer to the method part of the embodiments of the present application. Take the terminal device as a mobile phone as an example:

[0187] Fig.17 The block diagram shows a partial structure of a mobile phone provided in an embodiment of the present application. Fig.17 The mobile phone includes: a radio frequency (RF) circuit 1010, a memory 1020, an input unit 1030, a display unit 1040, a sensor 1050, an audio circuit 1060, a wireless fidelity (WiFi) module 1070, a processor 1080, and a power supply 1090. Those skilled in the art can understand that Fig.17 The mobile phone structure shown in the figure does not constitute a limitation on the mobile phone, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0188] Combine the following Fig.17 A detailed introduction to the various components of the mobile phone:

[0189] The RF circuit 1010 can be used for receiving and sending signals during information transmission or calls. In particular, after receiving the downlink information of the base station, it is sent to the processor 1080 for processing; in addition, the designed uplink data is sent to the base station. Generally, the RF circuit 1010 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (full name: LowNoiseAmplifier, English abbreviation: LNA), a duplexer, etc. In addition, the RF circuit 1010 can also communicate with the network and other devices through wireless communication. The above-mentioned wireless communications can use any communication standard or protocol, including but not limited to Global System of Mobile communications (Global System of Mobile communication, English abbreviation: GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access, English abbreviation: CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (Long Term Evolution, English abbreviation: LTE), e-mail, Short Messaging Service (SMS), etc.

[0190] The memory 1020 can be used to store software programs and modules. The processor 1080 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 1020. The memory 1020 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 1020 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0191] The input unit 1030 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the mobile phone. Specifically, the input unit 1030 may include a touch panel 1031 and other input devices 1032. The touch panel 1031, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 1031 or near the touch panel 1031 using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program. Optionally, the touch panel 1031 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the processor 1080, and can receive and execute commands sent by the processor 1080. In addition, the touch panel 1031 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 1031, the input unit 1030 may further include other input devices 1032. Specifically, the other input devices 1032 may include but are not limited to one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.

[0192] The display unit 1040 can be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 1040 may include a display panel 1041. Optionally, the display panel 1041 may be configured in the form of a liquid crystal display (full name in English: Liquid Crystal Display, English abbreviation: LCD), an organic light-emitting diode (full name in English: Organic Light-Emitting Diode, English abbreviation: OLED), etc. Further, the touch panel 1031 may cover the display panel 1041. When the touch panel 1031 detects a touch operation on or near it, it is transmitted to the processor 1080 to determine the type of touch event. Subsequently, the processor 1080 provides a corresponding visual output on the display panel 1041 according to the type of touch event. Although in Fig.17 In the embodiment, the touch panel 1031 and the display panel 1041 are used as two independent components to realize the input and output functions of the mobile phone, but in some embodiments, the touch panel 1031 and the display panel 1041 can be integrated to realize the input and output functions of the mobile phone.

[0193] The mobile phone may also include at least one sensor 1050, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1041 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 1041 and / or the backlight when the mobile phone is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can be configured in the mobile phone, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.

[0194] The audio circuit 1060, the speaker 1061, and the microphone 1062 can provide an audio interface between the user and the mobile phone. The audio circuit 1060 can transmit the received audio data to the speaker 1061 after converting the received audio data into an electrical signal, which is converted into a sound signal for output; on the other hand, the microphone 1062 converts the collected sound signal into an electrical signal, which is received by the audio circuit 1060 and converted into audio data, and then the audio data is output to the processor 1080 for processing, and then sent to another mobile phone through the RF circuit 1010, or the audio data is output to the memory 1020 for further processing.

[0195] WiFi is a short-range wireless transmission technology. The mobile phone can help users send and receive emails, browse web pages and access streaming media through the WiFi module 1070. It provides users with wireless broadband Internet access. Fig.17 A WiFi module 1070 is shown, but it is understandable that it is not an essential component of the mobile phone and can be omitted as needed without changing the essence of the invention.

[0196] The processor 1080 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and / or modules stored in the memory 1020, and calling data stored in the memory 1020, it executes various functions of the mobile phone and processes data, thereby collecting overall data and information of the mobile phone. Optionally, the processor 1080 may include one or more processing units; preferably, the processor 1080 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user pages and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 1080.

[0197] The mobile phone also includes a power supply 1090 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 1080 through a power management system, so that the power management system can manage functions such as charging, discharging, and power consumption.

[0198] Although not shown, the mobile phone may also include a camera, a Bluetooth module, etc., which will not be described in detail here.

[0199] In the embodiment of the present application, the processor 1080 included in the mobile phone also has the following functions:

[0200] Acquire a device access configuration file of the target device; the device access configuration file is generated in response to a configuration operation on a communication protocol and a configuration operation on a collection task;

[0201] Parsing the device access configuration file to obtain a target communication protocol and a target acquisition task;

[0202] Sending the target acquisition task to the target device based on the target communication protocol;

[0203] Receiving device operation data sent by the target device based on the target communication protocol; the device operation data is collected by the target device when executing the target collection task;

[0204] The device operation data is sent to the Internet of Things platform.

[0205] An embodiment of the present application further provides a computer-readable storage medium for storing a computer program. When the computer program is executed on a computer device, the computer device executes any one of the implementation methods of a device access method described in the aforementioned embodiments.

[0206] The embodiment of the present application also provides a computer program product including a computer program, which, when executed on a computer device, enables the computer device to execute any one of the implementations of a device access method described in the aforementioned embodiments.

[0207] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems and devices described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0208] In the several embodiments provided in the present application, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are only schematic. For example, the division of the system is only a logical function division. There may be other division methods in actual implementation, such as multiple systems can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0209] The systems described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0210] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0211] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (full name in English: Read-Only Memory, English abbreviation: ROM), random access memory (full name in English: Random Access Memory, English abbreviation: RAM), disk or optical disk and other media that can store computer programs.

[0212] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A device access method, characterized in that: The method comprises: Acquire a device access configuration file of the target device; the device access configuration file is generated in response to a configuration operation on a communication protocol and a configuration operation on a collection task; Parsing the device access configuration file to obtain a target communication protocol and a target acquisition task; Sending the target acquisition task to the target device based on the target communication protocol; Receiving device operation data sent by the target device based on the target communication protocol; the device operation data is collected by the target device when executing the target collection task; The device operation data is sent to the Internet of Things platform.

2. The method according to claim 1, characterized in that The device access configuration file is obtained by following the steps below: Displaying the device access configuration entry of the target device; In response to a trigger operation on the device access configuration entry, a device access configuration page is displayed; the device access configuration page includes a communication protocol configuration item and a collection task configuration item; In response to the configuration operation on the communication protocol configuration item and the configuration operation on the acquisition task configuration item, information for prompting successful configuration is displayed to obtain a device access configuration file of the target device.

3. The method according to claim 1, characterized in that: The method further comprises: Acquire a point control task of the target device; the point control task is generated in response to a configuration operation on a point control task configuration item; the point control task configuration item is displayed on a down-control task configuration page of the Internet of Things platform; If a point control request corresponding to the point control task is received from the Internet of Things platform, the point control task is sent to the target device based on the target communication protocol so that the target device executes the point control task.

4. The method according to claim 1, characterized in that: The method further comprises: Acquire the alarm condition of the point operation status of the target device; the alarm condition is generated by the configuration operation of the alarm condition configuration item; the alarm condition configuration item is displayed on the alarm condition configuration page of the target device; sending the alarm condition to the target device based on the target communication protocol; If the point operation status of the target device triggers the alarm condition, receiving the alarm prompt information sent by the target device based on the target communication protocol; Send the warning information to the Internet of Things platform.

5. The method according to claim 2, characterized in that: The method further comprises: Parsing the device access configuration file to obtain model mapping information; the model mapping information is generated in response to a configuration operation on a model mapping information configuration item; the model mapping information represents a mapping relationship between a point field of the target device and a model reporting field; the model mapping information configuration item is displayed on the device access configuration page; Converting the point field in the device operation data into a corresponding model reporting field based on the model mapping information; The sending the device operation data to the Internet of Things platform includes: The converted device operation data is sent to the Internet of Things platform.

6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: Regularly acquiring the latest device access configuration content of the target device according to a preset period; the latest device access configuration content is obtained in response to the latest configuration operation of the acquisition task; The device access configuration file is updated based on the latest device access configuration content, and the updated device access configuration file is parsed again to obtain an updated target acquisition task.

7. The method according to claim 1, characterized in that The target device is a lighting device, and the step of parsing the device access configuration file to obtain a target communication protocol and a target acquisition task includes: The device access configuration file is parsed to obtain the Modbus protocol and a collection task for collecting the lighting brightness of the lighting device.

8. The method according to claim 3, characterized in that The target device is a lighting device, and the point control task includes adjusting the lighting brightness of the lighting device to a preset brightness; if a point control request corresponding to the point control task is received from the Internet of Things platform, the point control task is sent to the target device based on the target communication protocol so that the target device executes the point control task, including: If a request for adjusting the lighting brightness of the lighting device is received from the Internet of Things platform, the point control task is sent to the lighting device based on the target communication protocol, so that the lighting device adjusts the lighting brightness to the preset brightness.

9. The method according to claim 4, characterized in that The target device is an air conditioning device; the alarm condition is that the set temperature of the air conditioning device exceeds a temperature threshold; if the point operation state of the target device triggers the alarm condition, the alarm prompt information sent by the target device is received based on the target communication protocol, including: If the set temperature of the air-conditioning device exceeds the temperature threshold, an alarm prompt message that the set temperature exceeds the temperature threshold and is sent by the air-conditioning device is received based on the target communication protocol.

10. A device access apparatus, characterized in that: The device comprises: A file acquisition module, used to acquire a device access configuration file of a target device; the device access configuration file is generated in response to a configuration operation on a communication protocol and a configuration operation on a collection task; A file parsing module, used to parse the device access configuration file to obtain a target communication protocol and a target acquisition task; A task sending module, used for sending the target acquisition task to the target device based on the target communication protocol; A data receiving module, configured to receive device operation data sent by the target device based on the target communication protocol; the device operation data is collected by the target device when executing the target collection task; The data sending module is used to send the device operation data to the Internet of Things platform.

11. A computer device, characterized in that: The device comprises a processor and a memory: The memory is used to store a computer program and transmit the computer program to the processor; The processor is configured to execute the steps of the device access method according to any one of claims 1 to 9 according to the computer program.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and when the computer program is executed by a computer device, the steps of the device access method according to any one of claims 1 to 9 are implemented.

13. A computer program product, characterized in that It includes a computer program, which, when executed by a computer device, implements the steps of the device access method described in any one of claims 1 to 9.