Information processing method, device and equipment, computer storage medium and computer program product
By acquiring the first and second codes within the device access framework of the IoT platform and utilizing the target execution engine to process device access and data acquisition, the problems of long development cycles and low flexibility in IoT device access methods are solved, achieving efficient device access and data processing.
Patent Information
- Application Number
- CN202411143885.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2026-03-03
AI Technical Summary
Existing technologies for IoT device access suffer from long development cycles and low flexibility. In particular, the increasing variety of device protocols adds complexity to IoT platforms, leading to low development efficiency.
The first code of the device to be connected is obtained from the device access framework of the target platform, and the second code is determined to be used to obtain device data. The second code is processed by the target execution engine to realize device access and data acquisition. Plugins are avoided. The script execution engine and standard device access framework technology are used for device access and data processing.
It improves the flexibility and development efficiency of device access, simplifies the complexity of device access, reduces the development cycle, and enhances the system's flexibility and code reusability.
Smart Images

Figure CN121597199A_ABST
Abstract
Description
Technical Field
[0001] This application relates to information processing technology in the field of communications, and more particularly to an information processing method, apparatus, device, computer storage medium, and computer program product. Background Technology
[0002] With the increasing number and variety of IoT device protocols, the workload of IoT device access is growing, and customers are demanding faster access speeds. Currently, there are two main methods for IoT device access: one is to couple the device access code with the IoT platform code, compiling, packaging, testing, deploying, and restarting them together; the other is to develop, compile, package, and deploy the device access code separately in advance, dynamically loading the corresponding protocol plugin when the device is connected. However, these solutions suffer from long development cycles and low flexibility, and the increasing variety of device protocols adds to the complexity of the IoT platform, leading to low development efficiency. Summary of the Invention
[0003] To address the aforementioned technical problems, embodiments of this application provide an information processing method, apparatus, device, computer storage medium, and computer program product, which solves the problems of long development cycles and low flexibility in related technologies, and improves development efficiency.
[0004] To achieve the above objectives, the technical solution of this application embodiment is implemented as follows:
[0005] An information processing method, the method comprising:
[0006] Obtain the first code corresponding to the device to be connected from the device access framework of the target platform;
[0007] Determine the second code corresponding to the device to be accessed; wherein the second code is used to obtain data from the device to be accessed;
[0008] Based on the first code, the device to be connected is connected to the target platform;
[0009] Upon receiving a data acquisition request, the second code is processed by the target execution engine of the target platform to obtain the target data of the device to be accessed.
[0010] In the above scheme, determining the second code corresponding to the device to be accessed includes:
[0011] The target platform receives initial code input by the user to obtain data from the device to be accessed through the target access channel.
[0012] When it is determined that the initial code conforms to the target standard, the initial code is determined to be the second code.
[0013] In the above scheme, the step of connecting the device to be accessed to the target platform based on the first code includes:
[0014] The access request of the device to be accessed is obtained through the target access channel of the target platform.
[0015] Based on the access request and the first code, the device to be accessed is connected to the target platform.
[0016] In the above scheme, the step of processing the second code through the target execution engine of the target platform to obtain the target data of the device to be accessed includes:
[0017] The second code is executed by the target execution engine to obtain the initial data of the device to be connected;
[0018] The initial data is processed based on the device access framework to obtain the target data.
[0019] In the above scheme, the step of executing the second code through the target execution engine to obtain the initial data of the device to be accessed includes:
[0020] The execution result is obtained by executing the second code through the target execution engine.
[0021] Based on the execution result, the initial data is obtained through the network component of the target platform.
[0022] In the above scheme, obtaining the initial data through the network component of the target platform based on the execution result includes:
[0023] Based on the execution result, the access parameters of the device to be accessed are obtained from the target access channel of the target platform;
[0024] Based on the execution result and the access parameters, the initial data is obtained through the network component.
[0025] The method in the above scheme further includes:
[0026] Through the target access channel, the system receives user input of modification information for the second code of the device to be accessed;
[0027] When it is determined that the modified information meets the target standard, the second code is updated based on the modified information.
[0028] An information processing apparatus, the apparatus comprising:
[0029] The acquisition unit is used to acquire the first code corresponding to the device to be accessed from the device access framework of the target platform;
[0030] A determining unit is configured to determine a second code corresponding to the device to be accessed; wherein the second code is used to obtain data from the device to be accessed;
[0031] An access unit is configured to connect the device to be accessed to the target platform based on the first code.
[0032] The processing unit is used to process the second code through the target execution engine of the target platform after receiving the data acquisition request, so as to obtain the target data of the device to be accessed.
[0033] An information processing device, the device comprising: a processor, a memory, and a communication bus;
[0034] The communication bus is used to realize the communication connection between the processor and the memory;
[0035] The processor is used to execute the information processing program in the memory to implement the steps of the information processing method described above.
[0036] A computer-readable storage medium storing one or more programs that can be executed by one or more processors to implement the steps of the information processing method described above.
[0037] A computer program product includes a computer program that, when executed by a processor, implements the map determination method described above.
[0038] The information processing method, apparatus, device, computer storage medium, and computer program product provided in the embodiments of this application can obtain the first code corresponding to the device to be accessed in the device access framework of the target platform. The first code is used to access the device to be accessed to the target platform. A second code corresponding to the device to be accessed is determined for obtaining the data of the device to be accessed. The programming language of the second code is the target programming language. Based on the first code, the device to be accessed is accessed to the target platform. After receiving a data acquisition request, the second code is processed by the target execution engine of the target platform to obtain the target data of the device to be accessed. In this way, the first code (i.e., general code) used for device access can be stored in the device access framework of the target platform, and the second code (i.e., personalized code) used for obtaining device data can be determined. Then, the device can be accessed to the target platform and the device data can be obtained according to the first code and the second code. This does not require the use of plugins, solves the problems of long development cycle and low flexibility of related technologies, and improves development efficiency. Attached Figure Description
[0039] Figure 1 A flowchart illustrating an information processing method provided for an embodiment of this application;
[0040] Figure 2 A flowchart illustrating another information processing method provided for an embodiment of this application;
[0041] Figure 3 A schematic diagram of the architecture of an Internet of Things (IoT) platform in an information processing method provided for an embodiment of this application;
[0042] Figure 4 A schematic diagram of the structure of an information processing device provided for an embodiment of this application;
[0043] Figure 5 This is a schematic diagram of the structure of an information processing device provided for an embodiment of this application. Detailed Implementation
[0044] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.
[0045] It should be understood that the phrases "embodiments of this application" or "foreign embodiments" throughout the specification mean that a specific feature, structure, or characteristic related to an embodiment is included in at least one embodiment of this application. Therefore, "embodiments of this application" or "in the foreign embodiments" appearing throughout the specification do not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. In the various embodiments of this application, the sequence numbers of the above-described processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. The sequence numbers of the above-described embodiments are merely descriptive and do not represent the superiority or inferiority of the embodiments.
[0046] Unless otherwise specified, any step in the embodiments of this application performed by the electronic device may be executed by the processor of the electronic device. It is also worth noting that the embodiments of this application do not limit the order in which the electronic device performs the following steps. Furthermore, the methods used to process data in different embodiments may be the same or different methods. It should also be noted that any step in the embodiments of this application can be executed independently by the electronic device; that is, when the electronic device performs any step in the following embodiments, it may not depend on the execution of other steps.
[0047] It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of this application.
[0048] This application provides an information processing method, which can be applied to an information processing device, as described above. Figure 1 As shown, the method may include the following steps:
[0049] Step 101: Obtain the first code corresponding to the device to be connected in the device access framework of the target platform.
[0050] The first code is used to connect the device to the target platform.
[0051] In this embodiment, the target platform may refer to an Internet of Things (IoT) platform; the device access framework may refer to a device access standard framework within the IoT platform used to implement device access. The first code may be encapsulated within the device access framework. In one feasible implementation, the information processing device may refer to the IoT platform.
[0052] It should be noted that the first code can refer to general code for all devices that need to access the IoT platform (i.e., devices to be accessed); in a feasible implementation, the first code can refer to code that can implement general functions such as device registration, device monitoring framework, polling data acquisition framework, distributed scheduling, and error handling.
[0053] Step 102: Determine the second code corresponding to the device to be connected.
[0054] The second code is used to obtain data from the device to be connected; the programming language of the second code is the target programming language.
[0055] In this embodiment, the second code can refer to customized code used to implement the customized functions of each device to be accessed (i.e., message processing for that accessed device); it should be noted that the second code can be code used by each device to obtain data from that device. The second code can be input online by the user into the IoT platform. It should be noted that the target programming language can refer to JavaScript.
[0056] Step 103: Connect the device to be connected to the target platform based on the first code.
[0057] In this embodiment of the application, a communication connection between the device to be connected and the IoT platform can be established by executing the first code encapsulated in the device access standard framework in the IoT platform, thereby enabling the device to be connected to the IoT platform.
[0058] Step 104: After receiving the data acquisition request, the second code is processed by the target execution engine of the target platform to obtain the target data of the device to be connected.
[0059] In this embodiment of the application, after the device access standard frame in the Internet of Things platform receives a data acquisition request from other terminals connected to it for obtaining data of the device to be accessed, the device access standard frame can forward the data acquisition request to the target execution engine, and then the target execution engine can process the second code to obtain the target data of the device to be accessed.
[0060] It should be noted that if the second code is a script, the target execution engine can refer to the script execution engine.
[0061] The information processing method provided in the embodiments of this application can store a first code (i.e., a general code) for device access in the device access framework of the target platform and determine a second code (i.e., a personalized code) for obtaining device data. Then, the device can be accessed to the target platform and the device data can be obtained according to the first code and the second code. This does not require the use of plugins, solves the problems of long development cycle and low flexibility of related technologies, and improves development efficiency.
[0062] Based on the foregoing embodiments, embodiments of this application provide an information processing method, referring to... Figure 2 As shown, the method may include the following steps:
[0063] Step 201: The information processing device obtains the first code corresponding to the device to be accessed in the device access framework of the target platform.
[0064] The first code is used to connect the device to the target platform.
[0065] Step 202: The information processing device receives the initial code input by the user for obtaining data from the device to be accessed through the target access channel of the target platform.
[0066] The target access channel can refer to, for example, Figure 3 The diagram illustrates the device access channel of the IoT platform. In this embodiment, users can input code scripts (initial code) for the device to be connected into the IoT platform online through the device access channel. Simultaneously, this method of obtaining second code online in real time allows for flexible addition or modification of data conversion and processing capabilities as needed.
[0067] It should be noted that users can use the Code Mirror library to edit the initial code. Based on the Code Mirror library, there are many script code editing functions that support script syntax highlighting, auto-completion, code folding, syntax error warnings, font and theme selection, which ensures the accuracy of the final input initial code.
[0068] Step 203: When it is determined that the initial code meets the target standard, the information processing device determines the initial code as the second code.
[0069] In this embodiment, the target standard can be the encoding requirements of the target programming language; if the initial code conforms to the encoding requirements of the target programming language, then the initial code is considered to conform to the target standard. Specifically, the syntax of the initial code can be checked based on the JSR223 JavaScript Application Programming Interface (API). When it is determined that the syntax of the initial code conforms to the syntax requirements of JavaScript, the initial code is determined to be the final second code.
[0070] It should be noted that the device access standard framework defines standard interfaces for device registration, deregistration, data collection, and command issuance. The device access script (i.e., the second code) only needs to implement the necessary scripts for the standard interfaces according to the device access standard framework guidelines, which greatly simplifies the complexity of device access.
[0071] Step 204: The information processing device obtains the access request of the device to be accessed through the target access channel of the target platform.
[0072] In this embodiment of the application, the device to be accessed can send an access request to the Internet of Things (IoT) platform through the device access channel of the IoT platform.
[0073] Step 205: Based on the access request and the first code, the information processing device connects the device to be accessed to the target platform.
[0074] In this embodiment, the IoT platform responds to the access request and executes the first code in the device access standard framework, thereby establishing a communication connection between the device to be accessed and the IoT platform, that is, the device to be accessed is connected to the IoT platform.
[0075] Step 206: After receiving the data acquisition request, the information processing device executes the second code through the target execution engine to obtain the initial data of the device to be connected.
[0076] In this embodiment of the application, the IoT platform can obtain the initial data of the device to be connected through the target execution engine, and together with the network components and second code in the IoT platform.
[0077] It should be noted that the IoT platform can include network components corresponding to different network protocols. The network components are responsible for the underlying communication or scheduling functions of the network protocol. In other words, for each network protocol, network components for that protocol can be added to the IoT platform in a componentized manner.
[0078] In one feasible implementation, the network component provides basic HTTP server functionality for the Hypertext Transfer Protocol (HTTP). Specifically, this basic functionality can include HTTP connection management, port listening, HTTP protocol processing, HTTP message reception, and HTTP message processing script callbacks. Furthermore, the IoT platform allows for the dynamic registration of new Representational State Transfer (REST) API addresses via scripts, enabling rapid data push to third-party systems, avoiding long development cycles, and minimizing system intrusion.
[0079] It should be noted that step 206 can be achieved in the following way:
[0080] Step 206a: The information processing device executes the second code through the target execution engine to obtain the execution result.
[0081] In the embodiments of this application, it can be achieved through, as follows Figure 3 The script execution engine in the IoT platform shown executes the second code to obtain the execution result.
[0082] Specifically, during the execution of a device-connected script via a script execution engine, standard JavaScript code can be executed, and Java objects can be passed to the JavaScript script for processing. Simultaneously, the JavaScript script can send the object data back to Java for processing, thereby obtaining the execution result.
[0083] Step 206b: Based on the execution result, the information processing device obtains initial data through the network components of the target platform.
[0084] In this embodiment of the application, the IoT platform can call the corresponding network component in the IoT platform according to the execution result, thereby obtaining the initial data of the device to be connected.
[0085] In one feasible implementation, such as Figure 3As shown, network components can include HTTP network components, MQTT network components, and Job components. The HTTP network component, upon receiving an HTTP request, passes the request message body to the device access script for message processing. The MQTT network component invokes the device access script upon receiving an MQTT message. The Job component executes the device access script periodically according to the Cron expression configuration. Furthermore, the Job component requires the device access script to handle the fetching of device data from third-party systems, such as via HTTP calls, thus enabling more flexible fetching of device data from third-party systems.
[0086] It should be noted that step 206b can be implemented in the following way:
[0087] Step 206b1: Based on the execution result, the information processing device obtains the access parameters of the device to be accessed from the target access channel of the target platform.
[0088] It should be noted that the device access channel is configured with some access parameters for the device to be accessed; therefore, when the basic second code obtains the data of the device to be accessed, the access parameters of the device to be accessed can be obtained from the device access channel based on the execution result of the device access script, so as to obtain the data of the device to be accessed.
[0089] In other embodiments of this application, the device access channel also includes configuration parameters of network components and configuration parameters of the device access script (i.e., second code).
[0090] Step 206b2: The information processing device obtains initial data through the network component based on the execution results and access parameters.
[0091] In this embodiment of the application, the IoT platform can obtain third-party data of the device to be connected through the network component based on the execution result of the device access script; then, the initial data of the device to be connected can be obtained based on the third-party data and the access parameters.
[0092] Step 207: The information processing device processes the initial data based on the device access framework to obtain the target data of the device to be accessed.
[0093] In this embodiment of the application, the initial data can be converted according to the data format corresponding to the device access standard framework to obtain the target data of the device to be accessed.
[0094] Specifically, the initial data format can be converted to the standard format defined by the device access standard framework, and the target data can be transmitted to the device access standard framework. The device access standard framework then transmits the target data to various modules of the IoT platform, such as... Figure 3The data forwarding module, data storage module, etc., are shown in the diagram. Downlink data processing also follows this process. Furthermore, as... Figure 3 As shown, the IoT platform also includes a device management module, a device model management module, a device control module, and a device access management module. Among them, the device access management module includes functions such as online editing and management of device access scripts, and management, configuration, start and stop of device access channels. This allows users to access, modify and debug new protocol devices without leaving and restarting the IoT platform, greatly improving the efficiency of device access.
[0095] It should be noted that the device access standard framework also encapsulates several standard objects that are passed to the device access script to enable the processing capabilities of the device access extended script. For example, the context cache object can help the device access script pass context messages when it is called multiple times. This is very useful for HTTP interface calls that require authentication. The context cache object can put the HTTP authentication token in the cache and pass it to each subsequent script call, thereby avoiding re-authentication for each HTTP call.
[0096] In other embodiments of this application, the method may further include the following steps:
[0097] Step 208: The information processing device receives the modification information of the second code for the device to be accessed, input by the user, through the target access channel.
[0098] In this embodiment, if the data information of the device to be connected needs to be updated, the user can still use the Code Mirror library to edit the second code and input the modification information to be updated into the IoT platform through the device access channel. The modification information can refer to the code modification.
[0099] Step 209: When it is determined that the modified information meets the target standard, the information processing device updates the second code based on the modified information.
[0100] In this embodiment of the application, after receiving the modified code, the syntax of the modified code can be checked based on the JSR223 JavaScript API. When it is determined that the syntax of the modified code conforms to the syntax requirements of JavaScript, the modified code can be used to update the second code so that the IoT platform can obtain the updated data information of the device to be connected in a timely manner.
[0101] In other embodiments of this application, the network components, device access scripts, and device access channels can be decoupled, greatly improving system flexibility and code reusability. Furthermore, the device code is completely decoupled from the IoT platform, maintaining the universality and independence of the IoT platform code. Simultaneously, by employing a script execution engine and a standard device access framework, the access, debugging, or modification of new protocol devices can be completed through online script writing, eliminating the need for compilation, packaging, and deployment processes, significantly improving access efficiency. This is because... In addition, the device access script only needs to input the standard interface of the standard framework to the device to implement the customized parts related to the device's protocol, greatly simplifying the complexity of device access code development.
[0102] It should be noted that the descriptions of the same steps and contents as in other embodiments in this embodiment can be found in the descriptions in other embodiments, and will not be repeated here.
[0103] The information processing method provided in the embodiments of this application can store a first code (i.e., a general code) for device access in the device access framework of the target platform and determine a second code (i.e., a personalized code) for obtaining device data. Then, the device can be accessed to the target platform and the device data can be obtained according to the first code and the second code. This does not require the use of plugins, solves the problems of long development cycle and low flexibility of related technologies, and improves development efficiency.
[0104] Based on the foregoing embodiments, embodiments of this application provide an information processing apparatus that can be applied to... Figure 1 and Figure 2 In the information processing method provided in the corresponding embodiment, refer to Figure 4 As shown, the information processing device 3 may include: an acquisition unit 31, a determination unit 32, an access unit 33, and a processing unit 34, wherein:
[0105] The acquisition unit 31 is used to acquire the first code corresponding to the device to be accessed in the device access framework of the target platform;
[0106] The determining unit 32 is used to determine the second code corresponding to the device to be accessed; wherein the second code is used to obtain data from the device to be accessed;
[0107] Access unit 33 is used to connect the device to be accessed to the target platform based on the first code;
[0108] The processing unit 34 is used to process the second code through the target execution engine of the target platform after receiving the data acquisition request, so as to obtain the target data of the device to be connected.
[0109] In other embodiments of this application, the determining unit 32 is further configured to perform the following steps:
[0110] The target platform receives the initial code input by the user to obtain data from the device to be accessed through the target access channel.
[0111] Once it is determined that the initial code meets the target standard, the initial code is designated as the second code.
[0112] In other embodiments of this application, the access unit 33 is further configured to perform the following steps:
[0113] Obtain the access request from the device to be accessed through the target access channel of the target platform;
[0114] Based on the access request and the first code, the device to be accessed is connected to the target platform.
[0115] In other embodiments of this application, the processing unit 34 is further configured to perform the following steps:
[0116] The second code is executed by the target execution engine to obtain the initial data of the device to be connected.
[0117] The initial data is processed based on the device access framework to obtain the target data.
[0118] In other embodiments of this application, the processing unit 34 is further configured to perform the following steps:
[0119] The execution result is obtained by executing the second code through the target execution engine;
[0120] Based on the execution results, initial data is obtained through the network components of the target platform.
[0121] In other embodiments of this application, the processing unit 34 is further configured to perform the following steps:
[0122] Based on the execution results, obtain the access parameters of the device to be accessed from the target access channel of the target platform;
[0123] Based on the execution results and access parameters, initial data is obtained through network components.
[0124] In other embodiments of this application, the processing unit 34 is further configured to perform the following steps:
[0125] Through the target access channel, receive user input of modification information for the second code of the device to be accessed;
[0126] Once it is determined that the modified information meets the target criteria, the second code is updated based on the modified information.
[0127] It should be noted that the specific implementation process of the steps performed by each unit in the embodiments of this application can be referred to Figure 1 and Figure 2The implementation process of the information processing method provided in the corresponding embodiments will not be described in detail here.
[0128] The information processing apparatus provided in the embodiments of this application can store a first code (i.e., a general code) for device access in the device access framework of the target platform and determine a second code (i.e., a personalized code) for obtaining device data. Then, the device can be accessed to the target platform and the device data can be obtained according to the first code and the second code. This does not require the use of plugins, which solves the problems of long development cycle and low flexibility of related technologies and improves development efficiency.
[0129] Based on the foregoing embodiments, embodiments of this application provide an information processing device that can be applied to... Figure 1 and Figure 2 In the information processing method provided in the corresponding embodiment, refer to Figure 5 As shown, the information processing device 4 may include: a processor 41, a memory 42, and a communication bus 43, wherein:
[0130] Communication bus 43 is used to realize the communication connection between processor 41 and memory 42;
[0131] The processor 41 is used to execute the information processing program in the memory 42 to perform the following steps:
[0132] Obtain the first code corresponding to the device to be connected from the device access framework of the target platform;
[0133] Determine the second code corresponding to the device to be connected;
[0134] The device to be connected is connected to the target platform based on the first code;
[0135] Upon receiving a data acquisition request, the second code is processed by the target execution engine of the target platform to obtain the target data of the device to be connected.
[0136] In other embodiments of this application, the processor 41 is used to execute the second code corresponding to the information processing program in the memory 42 to determine the device to be accessed, in order to implement the following steps:
[0137] The target platform receives the initial code input by the user to obtain data from the device to be accessed through the target access channel.
[0138] Once it is determined that the initial code meets the target standard, the initial code is designated as the second code.
[0139] In other embodiments of this application, the processor 41 is used to execute the information processing program in the memory 42 based on the first code to connect the device to the target platform, thereby implementing the following steps:
[0140] Obtain the access request from the device to be accessed through the target access channel of the target platform;
[0141] Based on the access request and the first code, the device to be accessed is connected to the target platform.
[0142] In other embodiments of this application, the processor 41 is used to execute the information processing program in the memory 42, process the second code through the target execution engine of the target platform, and obtain the target data of the device to be accessed, so as to implement the following steps:
[0143] The second code is executed by the target execution engine to obtain the initial data of the device to be connected.
[0144] The initial data is processed based on the device access framework to obtain the target data.
[0145] In other embodiments of this application, the processor 41 is used to execute the information processing program in the memory 42 by executing the second code through the target execution engine to obtain the initial data of the device to be accessed, so as to implement the following steps:
[0146] The execution result is obtained by executing the second code through the target execution engine;
[0147] Based on the execution results, initial data is obtained through the network components of the target platform.
[0148] In other embodiments of this application, the processor 41 is used to execute the information processing program in the memory 42 based on the execution result, and obtain initial data through the network component of the target platform to achieve the following steps:
[0149] Based on the execution results, obtain the access parameters of the device to be accessed from the target access channel of the target platform;
[0150] Based on the execution results and access parameters, initial data is obtained through network components.
[0151] In other embodiments of this application, the processor 41 is used to execute the information processing program in the memory 42, and may also implement the following steps:
[0152] Through the target access channel, receive user input of modification information for the second code of the device to be accessed;
[0153] Once it is determined that the modified information meets the target criteria, the second code is updated based on the modified information.
[0154] It should be noted that a detailed description of the steps performed by the processor can be found in [reference needed]. Figure 1 and Figure 2 The information processing methods provided in the corresponding embodiments will not be described in detail here.
[0155] The information processing device provided in the embodiments of this application can store a first code (i.e., a general code) for device access in the device access framework of the target platform and determine a second code (i.e., a personalized code) for obtaining device data. Then, the device can be accessed to the target platform and the device data can be obtained according to the first code and the second code. This does not require the use of plugins, which solves the problems of long development cycle and low flexibility of related technologies and improves development efficiency.
[0156] Based on the foregoing embodiments, embodiments of this application provide a computer-readable storage medium storing one or more programs, which can be executed by one or more processors to implement... Figure 1 and Figure 2 The corresponding embodiments provide the steps of the information processing method.
[0157] Based on the foregoing embodiments, embodiments of this application provide a computer program product, including a computer program that can be executed by a processor 41 to perform... Figure 1 and Figure 2 The corresponding embodiments provide the steps of the information processing method.
[0158] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of hardware embodiments, software embodiments, or embodiments combining software and hardware aspects. Furthermore, this application can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage and optical storage) containing computer-usable program code.
[0159] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0160] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0161] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0162] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. An information processing method, characterized in that, The method includes: Obtain the first code corresponding to the device to be connected from the device access framework of the target platform; Determine the second code corresponding to the device to be accessed; wherein the second code is used to obtain data from the device to be accessed; Based on the first code, the device to be connected is connected to the target platform; Upon receiving a data acquisition request, the second code is processed by the target execution engine of the target platform to obtain the target data of the device to be accessed.
2. The method according to claim 1, characterized in that, Determining the second code corresponding to the device to be accessed includes: The target platform receives initial code input by the user to obtain data from the device to be accessed through the target access channel. When it is determined that the initial code conforms to the target standard, the initial code is determined to be the second code.
3. The method according to claim 1, characterized in that, The step of connecting the device to be accessed to the target platform based on the first code includes: The access request of the device to be accessed is obtained through the target access channel of the target platform. Based on the access request and the first code, the device to be accessed is connected to the target platform.
4. The method according to claim 1, characterized in that, The step of processing the second code through the target execution engine of the target platform to obtain the target data of the device to be accessed includes: The second code is executed by the target execution engine to obtain the initial data of the device to be connected; The initial data is processed based on the device access framework to obtain the target data.
5. The method according to claim 4, characterized in that, The step of executing the second code through the target execution engine to obtain the initial data of the device to be accessed includes: The execution result is obtained by executing the second code through the target execution engine. Based on the execution result, the initial data is obtained through the network component of the target platform.
6. The method according to claim 5, characterized in that, The step of obtaining the initial data through the network component of the target platform based on the execution result includes: Based on the execution result, the access parameters of the device to be accessed are obtained from the target access channel of the target platform; Based on the execution result and the access parameters, the initial data is obtained through the network component.
7. The method according to claim 2, characterized in that, The method further includes: Through the target access channel, the system receives user input of modification information for the second code of the device to be accessed; When it is determined that the modified information meets the target standard, the second code is updated based on the modified information.
8. An information processing device, characterized in that, The device includes: The acquisition unit is used to acquire the first code corresponding to the device to be accessed from the device access framework of the target platform; A determining unit is configured to determine a second code corresponding to the device to be accessed; wherein the second code is used to obtain data from the device to be accessed; An access unit is configured to connect the device to be accessed to the target platform based on the first code. The processing unit is used to process the second code through the target execution engine of the target platform after receiving the data acquisition request, so as to obtain the target data of the device to be accessed.
9. An information processing device, characterized in that, The device includes: a processor, a memory, and a communication bus; The communication bus is used to realize the communication connection between the processor and the memory; The processor is used to execute an information processing program in the memory to implement the steps of the information processing method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores one or more programs, which can be executed by one or more processors to implement the steps of the information processing method as described in any one of claims 1 to 7.
11. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the information processing method according to any one of claims 1 to 7.