Hardware device-based processing method, apparatus and processing system
The configuration data of hardware devices is obtained and modified through the communication protocol in the target application, and the problem of network and power supply restrictions during the hardware device configuration process is solved, and an efficient and convenient configuration and debugging process is achieved.
Patent Information
- Application Number
- PCT/CN2025/071316
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-01-16
- Filing Date
- 2025-01-08
- Publication Date
- 2025-07-24
AI Technical Summary
There are limitations on network and power supply conditions during the configuration and debugging of existing hardware equipment, which leads to inefficient configuration and difficulty.
The configuration data of the hardware device is obtained through the near field communication protocol or the wireless LAN communication protocol in the target application, the data is modified by receiving user input, and the modified configuration data is sent to the hardware device based on the target communication protocol, providing dedicated processing tools to simplify the configuration process.
Effectively respond to the limitations of network and power supply conditions during the configuration process, improve configuration efficiency, simple and convenient operation, high flexibility, high debugging efficiency and strong security.
Smart Images

Figure CN2025071316_24072025_PF_FP_ABST
Abstract
Description
Processing method, device and processing system based on hardware equipment
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application is based on the Chinese patent application with application number: 2024100649010 and application date of January 16, 2024, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby introduced into this application as a reference. Technical Field
[0003] The present application relates to the field of software development technology, and in particular to a processing method, apparatus, and processing system based on hardware equipment. Background Art
[0004] Existing hardware products such as digital sensors and thermostats require configuration and debugging. In related technologies, engineers primarily perform these tasks on-site. However, on-site configuration and debugging often lacks appropriate tools, and the process is subject to various limitations such as network and power supply conditions. This results in low efficiency and a difficult configuration process, impacting both configuration and debugging effectiveness. Summary of the Invention
[0005] This application aims to solve at least one of the technical problems existing in the prior art. To this end, this application proposes a hardware-based processing method, apparatus, and processing system that effectively addresses limitations such as network and power supply conditions during the configuration process, performs configuration through target applications, provides dedicated processing tools, is simple and convenient to operate, and improves configuration efficiency.
[0006] In a first aspect, the present application provides a hardware device-based processing method, which is applied to a target application program, wherein the target application program encapsulates a target communication protocol, and the method comprises:
[0007] Based on the target communication protocol, obtaining first configuration data of the hardware device sent by the hardware device; the target communication protocol includes: at least one of a near field communication protocol and a wireless local area network communication protocol;
[0008] receiving a first input from a user to the target application;
[0009] In response to the first input, modify the first configuration data to obtain second configuration data;
[0010] The second configuration data is sent to the hardware device based on the target communication protocol.
[0011] According to the hardware device-based processing method of the present application, the first configuration data of the hardware device sent by the hardware device is obtained through the near-field communication protocol or the wireless local area network communication protocol in the target communication protocol. Based on the target communication protocol, the target application is effectively connected to the hardware device, so that the target application and the hardware device communicate with each other, and the first configuration data of the hardware device is effectively obtained. The acquisition method is simple and convenient, and the operability is strong. When the user has a modification requirement, the data input by the user into the target application is directly received to obtain the second configuration data. Based on the communication method encapsulated in the target application, it is not restricted by the on-site network, and the data can be directly transmitted and modified when there is a modification requirement. The second configuration data is sent to the hardware device based on the target communication protocol, and the configuration of the hardware device is efficiently completed. The limitations of network and power supply conditions during the configuration process are effectively dealt with. The configuration is performed through the target application, and a dedicated processing tool is provided. The operation is simple and convenient, and the configuration efficiency is improved.
[0012] According to the hardware device-based processing method of the present application, when the target communication protocol is a wireless local area network communication protocol, modifying the first configuration data to obtain the second configuration data includes:
[0013] The first configuration data is modified based on target program logic to obtain the second configuration data; the target program logic is stored in the target application program.
[0014] According to the hardware device-based processing method of the present application, after modifying the first configuration data based on the target program logic to obtain the second configuration data, the method further includes:
[0015] Based on the target program logic, modify the first parameter information corresponding to the hardware device to obtain second parameter information;
[0016] The second parameter information is sent to the hardware device based on the target communication protocol.
[0017] According to the hardware device-based processing method of the present application, when the target communication protocol is the wireless local area network communication protocol, the first configuration data includes first point information corresponding to the hardware device and second point information corresponding to the home appliance device connected to the hardware device.
[0018] According to the hardware device-based processing method of the present application, after obtaining the first configuration data of the hardware device sent by the hardware device based on the target communication protocol, the method includes:
[0019] When the configuration state of the first configuration data is configured and the debugging state of the hardware device is debugged, controlling the hardware device to operate based on the first configuration data;
[0020] Obtain operating parameter information of the hardware device.
[0021] According to the hardware device-based processing method of the present application, after controlling the hardware device to operate based on the first configuration data, the method further includes:
[0022] receiving a second input from a user, where the second input is used to input password information of the hardware device;
[0023] If the password information is correct and it is determined to return to the debugging state, the first input of the user to the target application is received.
[0024] According to the hardware device-based processing method of the present application, modifying the first configuration data to obtain the second configuration data includes:
[0025] decrypting the first configuration data based on a target decryption algorithm to obtain decrypted first configuration data;
[0026] Modifying the decrypted first configuration data to obtain the second configuration data;
[0027] The sending the second configuration data to the hardware device based on the target communication protocol includes:
[0028] encrypting the second configuration data based on a target encryption algorithm to obtain encrypted second configuration data;
[0029] Based on the target communication protocol, the encrypted second configuration data is sent to the hardware device.
[0030] According to the hardware device-based processing method of the present application, after sending the second configuration data to the hardware device based on the target communication protocol, the method further includes:
[0031] Sending the second configuration data to the cloud for storage;
[0032] Modifying the second configuration data stored in the cloud, and storing the modified second configuration data in the cloud;
[0033] When the target application establishes a communication connection with the hardware device based on the target communication protocol, the target application receives the modified second configuration data from the cloud and sends the modified second configuration data to the hardware device.
[0034] In a second aspect, the present application provides a hardware-based processing device, which is applied to a target application program, wherein the target application program encapsulates a target communication protocol, and the device comprises:
[0035] A first processing module is configured to obtain first configuration data of the hardware device sent by the hardware device based on the target communication protocol; the target communication protocol includes at least one of a near field communication protocol and a wireless local area network communication protocol;
[0036] A second processing module is configured to receive a first input from a user to the target application;
[0037] a third processing module, configured to modify the first configuration data in response to the first input to obtain second configuration data;
[0038] A fourth processing module is configured to send the second configuration data to the hardware device based on the target communication protocol.
[0039] According to the hardware device-based processing device of the present application, the first configuration data of the hardware device sent by the hardware device is obtained through the near field communication protocol or the wireless local area network communication protocol in the target communication protocol. Based on the target communication protocol, the target application is effectively connected to the hardware device, so that the target application and the hardware device communicate with each other, and the first configuration data of the hardware device is effectively obtained. The acquisition method is simple and convenient, and the operability is strong. When the user has a modification requirement, the data input by the user into the target application is directly received to obtain the second configuration data. Based on the communication method encapsulated in the target application, it is not restricted by the on-site network, and the data can be directly transmitted and modified when there is a modification requirement. The second configuration data is sent to the hardware device based on the target communication protocol, and the configuration of the hardware device is efficiently completed. The limitations of network and power supply conditions during the configuration process are effectively dealt with. The configuration is performed through the target application, and a dedicated processing tool is provided. The operation is simple and convenient, and the configuration efficiency is improved.
[0040] In a third aspect, the present application provides a processing system based on the hardware device processing method as described in the first aspect, comprising:
[0041] Data acquisition module;
[0042] User input module; the user input module is connected to the data acquisition module;
[0043] Processing module; the processing module is connected to the user input module.
[0044] In a fourth aspect, the present application provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the hardware device-based processing method as described in the first aspect above.
[0045] In a fifth aspect, the present application provides a computer program product, comprising a computer program, which, when executed by a processor, implements the hardware device-based processing method as described in the first aspect above.
[0046] In a sixth aspect, the present application provides a computer program, which includes instructions. When the instructions are executed by a processing device, the processing device executes the hardware device-based processing method as described in the first aspect.
[0047] In a seventh aspect, the present application provides a computer device comprising a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the processing method based on the hardware device as described in the first aspect.
[0048] The above one or more technical solutions in the embodiments of the present application have at least one of the following technical effects:
[0049] Through the near field communication protocol or wireless local area network communication protocol in the target communication protocol, the first configuration data of the hardware device sent by the hardware device is obtained. Based on the target communication protocol, the target application is effectively connected to the hardware device, so that the target application and the hardware device communicate with each other, and the first configuration data of the hardware device is effectively obtained. The acquisition method is simple and convenient with strong operability. When the user has modification requirements, the data input by the user into the target application is directly received to obtain the second configuration data. Based on the communication method encapsulated in the target application, it is not restricted by the on-site network and the data can be directly transmitted and modified when there is a modification requirement. The second configuration data is sent to the hardware device based on the target communication protocol, and the configuration of the hardware device is efficiently completed. It effectively copes with the limitations of network and power supply conditions during the configuration process. The configuration is performed through the target application, and a dedicated processing tool is provided. The operation is simple and convenient, which improves the efficiency of the configuration.
[0050] Furthermore, when the hardware device is configured through the wireless local area network communication protocol, on the basis of the configuration of the hardware device, the first parameter information in the logic parameters of the hardware device is further modified through the information in the target program logic to obtain the modified second parameter information, so as to perform parameter debugging on the hardware device and put the hardware device under the required parameter conditions. The debugging based on the target program logic provides a modification reference to facilitate the modification of the first parameter information. The second parameter information is sent to the hardware device through the target application based on the target communication protocol to complete the debugging of the hardware device. The control logic is simple, the operation is convenient, and the functions are more powerful and diverse.
[0051] Furthermore, by determining that the password information entered by the user is correct and that the user needs to return to the debugging state, the user's first input to the target application is received, and based on the real-time operating status of the hardware device and current needs, debugging is performed multiple times to meet the user's current needs for the hardware device. It has high flexibility, simple control logic, high debugging efficiency and can effectively ensure the security of debugging.
[0052] Furthermore, by storing the second configuration data in the cloud, the user can remotely modify the second configuration data. The second configuration data can be modified without the user being at the configuration site. After the second configuration data in the cloud is modified, the modified second configuration data is still stored in the cloud. When the target application establishes a communication connection with the hardware device according to the target communication protocol, the modified second configuration data is downloaded to the target application, and then the modified second configuration data is sent to the hardware device to complete the processing of the hardware device. The required data is prepared before configuration and debugging, and there is no need to modify the configuration data again on site, which significantly improves the efficiency of configuration and debugging and saves time.
[0053] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become obvious from the description below, or will be learned through practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0055] FIG1 is a flowchart of a hardware-based processing method according to an embodiment of the present invention;
[0056] FIG2 is a second flow chart of a processing method based on hardware devices provided in an embodiment of the present application;
[0057] FIG3 is a third flow chart of a processing method based on hardware devices provided in an embodiment of the present application;
[0058] FIG4 is a schematic diagram of the structure of a processing device based on a hardware device according to an embodiment of the present application;
[0059] FIG5 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0060] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.
[0061] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification and claims refers to at least one of the connected objects, and the character " / " generally indicates that the objects connected are in an "or" relationship.
[0062] Below, in conjunction with the accompanying drawings, the hardware device-based processing method, hardware device-based processing device, application program and readable storage medium provided in the embodiments of the present application are described in detail through specific embodiments and their application scenarios.
[0063] The processing method based on hardware devices may be applied to a terminal, and may be specifically executed by hardware or software in the terminal.
[0064] The terminal includes but is not limited to portable communication devices such as mobile phones or tablet computers. It should also be understood that in some embodiments, the terminal may not be a portable communication device, but a desktop computer.
[0065] In the following embodiments, a terminal including a display and a touch-sensitive surface is described. However, it should be understood that the terminal may include one or more other physical user interface devices such as a physical keyboard, a mouse, and a joystick.
[0066] The embodiment of the present application provides a hardware device-based processing method. The execution subject of the hardware device-based processing method can be an electronic device or a functional module or functional entity in the electronic device that can implement the hardware device-based processing method. The electronic devices mentioned in the embodiment of the present application include but are not limited to mobile phones, tablets, computers, cameras and wearable devices. The hardware device-based processing method provided in the embodiment of the present application is explained below using an electronic device as an example of the execution subject.
[0067] As shown in FIG1 , the hardware device-based processing method is applied to a target application, and a target communication protocol is encapsulated in the target application. The method includes steps 110 , 120 , 130 , and 140 .
[0068] The target application is the application used to configure, tune, and control the hardware device.
[0069] The target application can be implemented based on the Flutter framework.
[0070] Of course, the target application can also be developed based on any other feasible methods.
[0071] The target application can support multiple platforms (such as Android and iOS).
[0072] Step 110: Acquire first configuration data of the hardware device sent by the hardware device based on the target communication protocol;
[0073] In this step, the target communication protocol is a protocol that the hardware device and the target application can communicate with.
[0074] Based on the target communication protocol, hardware devices can be debugged, configured, and controlled.
[0075] Hardware devices include: digital sensors, thermostats and other hardware devices.
[0076] The first configuration data is data required for configuring the hardware device.
[0077] As shown in FIG. 2 , in some embodiments, the target communication protocol may include at least one of a wireless local area network communication protocol and a near field communication protocol.
[0078] In this embodiment, the near field communication protocol is a protocol for exchanging data between a hardware device and a target application within a target area.
[0079] The specific value of the target area can be determined based on actual conditions and is not limited in this application.
[0080] The wireless local area network communication protocol is a communication protocol that uses wireless communication technology to interconnect hardware devices and target applications, forming a communication protocol that can communicate with each other and realize resource sharing.
[0081] During the actual implementation process, one of the target communication protocols can be selected to configure the hardware device based on actual needs.
[0082] It is understandable that after entering the target application, a near field communication protocol or a wireless local area network communication protocol may be selected on the digital sensor page of the target application.
[0083] During the actual execution process, when the target communication protocol is a near-field communication protocol, the target application can be placed in the target area of the near-field communication chip of the hardware device, so that the target application is connected to the hardware device for communication, thereby reading the first configuration data sent by the input and output of the hardware device.
[0084] The specific size of the target area can be determined based on the near-field communication chip, and this application does not limit it.
[0085] As shown in Figure 2, during the actual execution process, when the target application and the hardware device are connected through the near-field communication protocol, if the target application and the hardware device fail to establish a communication connection for the target number of times or the time for establishing the communication connection exceeds the target time, the position of the target application can be appropriately adjusted, and the target application and the hardware device can be connected again through the near-field communication protocol to interact with data.
[0086] Continuing to refer to Figure 2, when the target communication protocol selected by the user is the wireless LAN communication protocol, the hardware device is turned on in access point mode, HTTP is started, and then a hotspot connection is made. The wireless LAN of the electronic device where the target application is located is turned on, and the wireless LAN is connected to connect the electronic device where the target application is located to the network corresponding to the access point service of the hardware device, so that the target application communicates and interacts with the hardware device, and obtains the first configuration data sent by the hardware device to the target application.
[0087] In some embodiments, when the target communication protocol is a wireless local area network communication protocol, the first configuration data includes second point information corresponding to the home appliance connected to the hardware device and first point information corresponding to the hardware device.
[0088] In this embodiment, the first point information is information about the hardware device's opening point, closing point, and temperature point.
[0089] Home appliances are some home appliances that can be connected to hardware devices, including refrigerators, air conditioners, and lamps.
[0090] The second location information is the location information of the virtual device corresponding to the home appliance.
[0091] It can be understood that the first configuration data obtained when the target communication protocol is a wireless local area network communication protocol is different from the first configuration data obtained when the target communication protocol is a near field communication protocol.
[0092] When the target communication protocol is a near field communication protocol, the acquired first configuration data is basic attribute data and network information data of the hardware device.
[0093] The first configuration data may include: product model of the hardware device, software version, communication address of the hardware device and other data.
[0094] When the configuration quantity of the first configuration data is small, the overall configuration data is less than the target bytes, the real-time parameter data of the hardware device is not the main parameter attribute and pre-configuration is required without the hardware device being powered on, the target communication protocol can be selected as the near-field communication protocol to configure the hardware device.
[0095] The specific size of the target byte can be determined based on actual conditions and is not limited in this application. For example, the target byte can be 888 bytes.
[0096] When the target communication protocol is a wireless local area network communication protocol, the first configuration data obtained is real-time location information of the hardware device and location control instructions and other information.
[0097] When it is necessary to obtain real-time position information of the hardware device, issue position control instructions, and configure a number of not less than the target bytes, the target communication protocol can be selected as the wireless LAN communication protocol to configure the hardware device.
[0098] According to the hardware device-based processing method provided in the embodiment of the present application, by determining which specific target communication protocol is used, the specific information of the first configuration data is determined. When the target communication protocol is a wireless local area network communication protocol, it is determined that the first configuration data includes first point information and second point information. The data to be configured is large and can obtain real-time point information of the hardware device and issue control instructions, effectively obtaining more information, and the acquisition method is simple.
[0099] Step 120: Receive a first input from the user to the target application;
[0100] In this step, the first input is used to input first configuration data modified by the user.
[0101] The first input may be in at least one of the following ways:
[0102] First, the first input may be a touch operation, including but not limited to a click operation, a slide operation, and a press operation.
[0103] In this embodiment, receiving the first input from the user may be receiving a touch operation of the user on the display area of the terminal display screen.
[0104] In order to reduce the user error rate, the effective area of the first input can be limited to a specific area, such as the upper middle area of the modification interface; or when the modification interface is displayed, the target control is displayed on the current interface, and the first input can be achieved by touching the target control; or the first input can be set to a continuous multiple tapping operation on the display area within a target time interval.
[0105] Secondly, the first input may be a physical key input.
[0106] In this embodiment, a physical button corresponding to the modification is provided on the terminal body, and receiving the user's first input may be receiving the operation of the user pressing the corresponding physical button; the first input may also be a combined operation of pressing multiple physical buttons at the same time.
[0107] Third, the first input may be voice input.
[0108] In this embodiment, upon receiving a voice message such as "change the communication address to A", the terminal may modify the original communication address in the first configuration data to A.
[0109] Of course, in other embodiments, the first input may also be in other forms, including but not limited to character input, etc., which can be determined according to actual needs and is not limited in this embodiment of the present application.
[0110] Step 130: In response to the first input, modify the first configuration data to obtain second configuration data;
[0111] In this step, the second configuration data is the modified first configuration data.
[0112] During actual execution, the method of modifying the first configuration data may be different depending on the target communication protocol.
[0113] For example, when the target communication protocol is a near-field communication protocol, the first configuration data can be modified by directly modifying the modification page within the target application. The modified first configuration data can be the communication address, IP address, and wireless LAN switch data of the hardware device, and the modified first configuration data is determined as the second configuration data.
[0114] For another example, when the target communication protocol is a wireless local area network communication protocol, the data in the configuration file corresponding to the first configuration data may be modified, and the data corresponding to the modified configuration file may be determined as the second configuration data.
[0115] In some embodiments, when the target communication protocol is a wireless local area network communication protocol, step 130 may further include:
[0116] The first configuration data is modified based on the target program logic to obtain second configuration data.
[0117] In this embodiment, the target program logic can be stored in the target application program.
[0118] The target program logic is a predefined program logic that is used as a reference for configuring and debugging the hardware device.
[0119] During the actual execution process, the target program logic can be imported into the target application through the negotiated interface.
[0120] The negotiated interfaces include: login interface, upload interface, download interface, HTTP interface and other interfaces.
[0121] It is understandable that different hardware devices may correspond to different target program logics.
[0122] During the actual execution process, it is possible to determine how to modify the first configuration data based on the specific content of the target program logic, thereby obtaining the modified first configuration data, ie, the second configuration data.
[0123] According to the hardware device-based processing method provided in the embodiment of the present application, by determining that the target communication protocol is a wireless local area network communication protocol, the first configuration data is modified based on the specific content of the target program logic to obtain the second configuration data, and reference information for modifying the first configuration data is provided, thereby improving the efficiency of modifying the first configuration data. The method is simple, convenient, and easy to operate.
[0124] Step 140: Send the second configuration data to the hardware device based on the target communication protocol.
[0125] In this step, the method of sending the second parameter information varies depending on the target communication protocol.
[0126] When the target communication protocol is a near field communication protocol, the target application can be placed in the target area of the near field communication chip of the hardware device, and the second configuration data can be sent to the hardware device to be configured by clicking the configuration button.
[0127] When the target communication protocol is a wireless local area network communication protocol, the second configuration data may be sent to the hardware device through the target application to complete the configuration of the hardware device.
[0128] It is understandable that after the configuration of the hardware device is completed, the configuration status of the hardware device will be marked as configured.
[0129] According to the hardware device-based processing method provided in the embodiment of the present application, the first configuration data of the hardware device sent to the target application is obtained through the near field communication protocol or the wireless local area network communication protocol in the target communication protocol. Based on the target communication protocol, the target application is effectively connected to the hardware device, so that the target application and the hardware device communicate with each other, and the first configuration data in the hardware device is effectively obtained. The acquisition method is simple and convenient with strong operability. When the user has a modification requirement, the data input by the user into the target application is directly received, and the second configuration data corresponding to the modification of the first configuration data is obtained. Based on the communication method encapsulated in the target application, it is not restricted by the on-site network, and data can be directly transmitted and modified when there is a modification requirement. Based on the target communication protocol, the second configuration data is sent to the hardware device through the target application, and the configuration of the hardware device is efficiently completed. The limitations of network and power supply conditions during the configuration process are effectively dealt with. The configuration is performed through the target application, and a dedicated processing tool is provided. The operation is simple and convenient, and the configuration efficiency is improved.
[0130] In some embodiments, after modifying the first configuration data based on the target program logic to obtain the second configuration data, the method may further include:
[0131] Based on the target program logic, modify the first parameter information corresponding to the hardware device to obtain the second parameter information;
[0132] The second parameter information is sent to the hardware device based on the target communication protocol.
[0133] In this embodiment, the first parameter information is parameter information required for debugging the hardware device.
[0134] The second parameter information is the parameter information corresponding to the modified first parameter information.
[0135] The target program logic may be a preset algorithm logic stored in the target application program, and is used to provide a reference in the process of modifying the first parameter information and the first configuration data.
[0136] During the actual execution process, the first parameter information of the hardware device can be modified based on the specific content of the target program logic to obtain the modified second parameter information, and then the second parameter information can be sent to the hardware device through the target application based on the sending method corresponding to the target communication protocol, thereby completing the debugging of the hardware device.
[0137] It is understandable that the user can select the target program logic corresponding to the combined air-conditioning box, the pre-cooling air-conditioning box, and the bypass valve control, and perform module and channel matching.
[0138] During actual execution, after the hardware device has completed debugging, the hardware device may be marked as debugged.
[0139] According to the hardware device-based processing method provided in the embodiment of the present application, when the hardware device is configured through the wireless local area network communication protocol, on the basis of the configuration of the hardware device, the first parameter information in the logic parameters of the hardware device is further modified through the information in the target program logic to obtain the modified second parameter information, so as to perform parameter debugging on the hardware device and put the hardware device under the required parameter conditions. The debugging based on the target program logic provides a modification reference to facilitate the modification of the first parameter information. The second parameter information is sent to the hardware device through the target application based on the target communication protocol to complete the debugging of the hardware device. The control logic is simple, the operation is convenient, and the functions are more powerful and diverse.
[0140] In some embodiments, after obtaining the first configuration data of the hardware device sent by the hardware device based on the target communication protocol, the method may further include:
[0141] When the configuration state of the first configuration data is configured and the debugging state of the hardware device is debugged, controlling the hardware device to operate based on the first configuration data;
[0142] Get the operating parameter information of the hardware device.
[0143] In this embodiment, the configuration status is a status corresponding to whether the hardware device has been configured.
[0144] Configuration states include: Configured and Not Configured.
[0145] The debugging status indicates whether the hardware device has completed debugging.
[0146] The debugging status includes: debugged and not debugged.
[0147] Controlling the hardware device may include controlling operations such as turning the hardware device on and off, and setting the temperature.
[0148] During actual execution, when the acquired first configuration data indicates that the configuration state is configured and the hardware device has completed debugging, ie, debugged, the hardware device is controlled to operate based on the state of the hardware device corresponding to the first configuration data.
[0149] In a case where the acquired first configuration data shows that the configuration status is unconfigured and the modulation status of the hardware device is undebugged, modifications are made based on the first configuration data, the hardware device is configured and debugged, and the operation of the hardware device is controlled through the target application based on the status of the hardware device corresponding to the configuration data after configuration and debugging.
[0150] Continuing to refer to Figure 2, when the wireless LAN communication protocol is selected for communication, the target application is connected to the network corresponding to the access point service of the hardware device through the hotspot to obtain the first configuration data of the hardware device. When the first configuration data shows that the hardware device is not configured and not debugged, you can enter the logic configuration page, modify the first configuration data based on the program logic in the target program logic, obtain the second configuration data corresponding to the modified first configuration data, send the second configuration data to the target application, and then debug based on the target program logic, modify the first parameter information to obtain the second parameter information. When the debugging is completed, mark the debugging status of the hardware device as debugged, and send the second parameter information of the hardware device to the hardware device, and cache the second parameter information and the second configuration data in the target application. At this time, the configuration status of the hardware device is configured, and the debugging status is debugged. Based on the current status of the hardware device, a control instruction can be issued to the hardware device to control the hardware device to turn on or set its temperature to a certain value.
[0151] According to the hardware device-based processing method provided in the embodiment of the present application, the next operation of the hardware device is determined by determining the configuration and debugging status of the hardware device displayed by the first configuration data. When it is determined that the hardware device has completed configuration and modulation, the hardware device is controlled according to the real-time status information of the hardware device corresponding to the first configuration data. The control logic is simple and the operation is convenient.
[0152] In some embodiments, after controlling the hardware device to operate based on the first configuration data, the method may further include:
[0153] receiving a second input from the user;
[0154] If the password information is correct and it is determined to return to the debugging state, a first input of the user to the target application is received.
[0155] In this embodiment, the second input is used to input password information of the hardware device.
[0156] The second input may be the same as the first input, such as touch input, physical key input, voice input, character input, or any other feasible input, which will not be described in detail in this application.
[0157] The password information is the password corresponding to the hardware device.
[0158] During the actual execution process, when the user's second input is received and the information corresponding to the second input is consistent with the password corresponding to the hardware device and the user chooses to return to the debugging state, the user's first input in the target application is received and the hardware device continues to be debugged.
[0159] According to the hardware device-based processing method provided in the embodiment of the present application, by determining that the password information entered by the user is correct and that the user needs to return to the debugging state, the user's first input to the target application is received, and based on the real-time operating status and current needs of the hardware device, debugging is performed multiple times to meet the user's current needs for the hardware device. It has high flexibility, simple control logic, high debugging efficiency and can effectively ensure the security of debugging.
[0160] In some embodiments, step 130 may further include:
[0161] decrypting the first configuration data based on a target decryption algorithm to obtain the decrypted first configuration data;
[0162] Modify the decrypted first configuration data to obtain second configuration data;
[0163] Step 140 may also include:
[0164] encrypting the second configuration data based on the target encryption algorithm to obtain encrypted second configuration data;
[0165] Based on the target communication protocol, the encrypted second configuration data is sent to the hardware device.
[0166] In this embodiment, the target decryption algorithm is an algorithm used to decrypt the first configuration data.
[0167] The specific selection of the target decryption algorithm can be determined based on actual conditions and is not limited in this application.
[0168] The decrypted first configuration data is data that can be directly recognized by the user.
[0169] The target encryption algorithm is an encryption algorithm used to encrypt the second configuration data.
[0170] The specific selection of the target encryption algorithm can be determined based on actual conditions and is not limited in this application.
[0171] During the actual execution process, the first configuration data in the hardware device sent by the hardware device is encrypted data. The first configuration data is decrypted by the target decryption algorithm to obtain the decrypted first configuration data that can be recognized by the user. The first configuration data that can be recognized by the user after decryption is modified to obtain the second configuration data.
[0172] Before sending the second configuration data to the hardware device to complete the configuration of the hardware device, the second configuration data needs to be encrypted using a target encryption algorithm and the encrypted second configuration data is sent to the hardware device.
[0173] According to the hardware device-based processing method provided in the embodiment of the present application, by decrypting the acquired first configuration data, first configuration data that can be identified by the user is obtained, so that the user can modify the information in the first configuration data to obtain second configuration data for configuring the hardware device. After obtaining the required second configuration data, the second configuration data is encrypted and sent to the hardware device, effectively ensuring the security of the data.
[0174] As shown in FIG3 , in some embodiments, after step 140, the method may further include:
[0175] sending the second configuration data to the cloud for storage;
[0176] Modifying the second configuration data stored in the cloud, and storing the modified second configuration data in the cloud;
[0177] When the target application establishes a communication connection with the hardware device based on the target communication protocol, the target application receives the modified second configuration data from the cloud and sends the modified second configuration data to the hardware device.
[0178] In this embodiment, the cloud is a software platform for application virtualization technology.
[0179] The cloud can perform operations such as data storage, data sharing, and data backup.
[0180] The second configuration data may be stored in the cloud.
[0181] The communication connection enables communication between the target application and the hardware device.
[0182] During the actual execution process, the second configuration data can be sent to the cloud for storage. In an actual application scenario, the second configuration data stored in the cloud can be modified, and the modified second configuration data can continue to be stored in the cloud for subsequent use.
[0183] When the target application establishes a communication connection with the hardware device according to the target communication protocol, the second configuration data modified in the cloud can be downloaded to the target application when the target application and the hardware device have not established a communication connection, so that the modified second configuration data can be directly sent to the hardware device to process the hardware device and empower the hardware device that cannot connect to the external network.
[0184] Continuing to refer to FIG. 3 , in some embodiments, the second configuration data is sent to the cloud for storage. The user may first log in to the cloud account and then select a function list.
[0185] The function list includes: digital sensor series product module, configuration management module and home page module.
[0186] In the digital sensor series product module, you can select the corresponding sensor type.
[0187] In the configuration management module, you can manage the configuration of hardware devices, including local configuration management and cloud configuration management.
[0188] The local configuration management includes: sharing the second configuration data with a third party, importing the second configuration data into a target application, and uploading the second configuration data to the cloud.
[0189] The cloud configuration management includes: downloading the second configuration data in the cloud to the target application, classifying the second configuration data based on the content corresponding to the second configuration data, and pre-editing the second configuration data.
[0190] In the homepage module, you can manage the user's basic information and choose to log out of the current login state.
[0191] According to the hardware device-based processing method provided in the embodiment of the present application, by storing the second configuration data in the cloud, the user can remotely modify the second configuration data. The second configuration data can be modified without the user being at the configuration site. After the second configuration data on the cloud is modified, the modified second configuration data is still stored in the cloud. When the target application establishes a communication connection with the hardware device according to the target communication protocol, the modified second configuration data is downloaded to the target application, and the modified second configuration data is sent to the hardware device to complete the processing of the hardware device. The required data is prepared before configuration and debugging, and there is no need to modify the configuration data again on site, which significantly improves the efficiency of configuration and debugging and saves time.
[0192] The hardware-based processing method provided in the embodiment of the present application can be executed by a hardware-based processing device. In the embodiment of the present application, the hardware-based processing device provided in the embodiment of the present application is described by taking a hardware-based processing device executing the hardware-based processing method as an example.
[0193] An embodiment of the present application also provides a processing device based on a hardware device, which is applied to a target application program, and a target communication protocol is encapsulated in the target application program.
[0194] As shown in FIG. 4 , the hardware-based processing device includes a first processing module 410 , a second processing module 420 , a third processing module 430 and a fourth processing module 440 .
[0195] The first processing module 410 is configured to obtain first configuration data sent by the hardware device to the hardware device based on a target communication protocol; the target communication protocol includes at least one of a near field communication protocol and a wireless local area network communication protocol;
[0196] The second processing module 420 is configured to receive a first input from a user to a target application;
[0197] A third processing module 430 is configured to modify the first configuration data in response to the first input to obtain second configuration data;
[0198] The fourth processing module 440 is configured to send the second configuration data to the hardware device based on the target communication protocol.
[0199] According to the hardware device-based processing device provided in the embodiment of the present application, the first configuration data of the hardware device sent to the target application is obtained through the near field communication protocol or the wireless local area network communication protocol in the target communication protocol. Based on the target communication protocol, the target application is effectively connected to the hardware device, so that the target application and the hardware device communicate with each other, and the first configuration data in the hardware device is effectively obtained. The acquisition method is simple and convenient, and the operability is strong. When the user has a modification requirement, the data input by the user into the target application is directly received, and the second configuration data corresponding to the modification of the first configuration data is obtained. Based on the communication method encapsulated in the target application, it is not restricted by the on-site network, and data is directly transmitted and modified when there is a modification requirement. Based on the target communication protocol, the second configuration data is sent to the hardware device through the target application, and the configuration of the hardware device is efficiently completed. The limitations of network and power supply conditions during the configuration process are effectively dealt with. The configuration is performed through the target application, and a dedicated processing tool is provided. The operation is simple and convenient, and the configuration efficiency is improved.
[0200] In some embodiments, the third processing module 430 may also be configured to:
[0201] The first configuration data is modified based on the target program logic to obtain the second configuration data; the target program logic is stored in the target application program.
[0202] In some embodiments, the apparatus may further include a fifth processing module configured to:
[0203] Based on the target program logic, modify the first parameter information corresponding to the hardware device to obtain the second parameter information;
[0204] The second parameter information is sent to the hardware device based on the target communication protocol.
[0205] In some embodiments, the apparatus may further include a sixth processing module configured to:
[0206] When the configuration state of the first configuration data is configured and the debugging state of the hardware device is debugged, controlling the hardware device to operate based on the first configuration data;
[0207] Get the operating parameter information of the hardware device.
[0208] In some embodiments, the apparatus may further include a seventh processing module configured to:
[0209] receiving a second input from the user, where the second input is used to input password information of the hardware device;
[0210] If the password information is correct and it is determined to return to the debugging state, a first input of the user to the target application is received.
[0211] In some embodiments, the third processing module 430 may also be configured to:
[0212] Modifying the first configuration data to obtain the second configuration data includes:
[0213] decrypting the first configuration data based on a target decryption algorithm to obtain the decrypted first configuration data;
[0214] Modify the decrypted first configuration data to obtain second configuration data;
[0215] The fourth processing module 440 may also be used to:
[0216] encrypting the second configuration data based on the target encryption algorithm to obtain encrypted second configuration data;
[0217] Based on the target communication protocol, the encrypted second configuration data is sent to the hardware device.
[0218] In some embodiments, the apparatus may further include an eighth processing module configured to:
[0219] sending the second configuration data to the cloud for storage;
[0220] Modifying the second configuration data stored in the cloud, and storing the modified second configuration data in the cloud;
[0221] When the target application establishes a communication connection with the hardware device based on the target communication protocol, the target application receives the modified second configuration data from the cloud and sends the modified second configuration data to the hardware device.
[0222] The hardware-based processing device in the embodiment of the present application can be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other device other than a terminal. For example, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a mobile Internet device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc. It can also be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., and the embodiment of the present application does not specifically limit it.
[0223] The hardware-based processing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0224] The hardware-based processing device provided in the embodiment of the present application can implement each process implemented in the method embodiments of Figures 1 to 3. To avoid repetition, they will not be described here.
[0225] An embodiment of the present application further provides a processing system based on the hardware device processing method as described in any of the above embodiments, comprising: a data acquisition module, a user input module, and a processing module.
[0226] In this embodiment, the data acquisition module is encapsulated with a target communication protocol.
[0227] The data acquisition module acquires first configuration data of the hardware device based on the target communication protocol.
[0228] The user input module is used to receive modification data input by a user corresponding to the first configuration data.
[0229] The user input module is connected to the data acquisition module.
[0230] The processing module is connected to the user input module.
[0231] According to the processing system based on the hardware device processing method as described in any of the above embodiments provided by the embodiments of the present application, the first configuration data of the hardware device sent to the target application is obtained through the near field communication protocol or the wireless local area network communication protocol in the target communication protocol. Based on the target communication protocol, the target application is effectively connected to the hardware device, so that the target application and the hardware device communicate with each other, and the first configuration data in the hardware device is effectively obtained. The acquisition method is simple and convenient, and the operability is strong. When the user has a modification requirement, the data input by the user into the target application is directly received, and the second configuration data corresponding to the modification of the first configuration data is obtained. Based on the communication method encapsulated in the target application, it is not restricted by the on-site network, and data is directly transmitted and modified when there is a modification requirement. Based on the target communication protocol, the second configuration data is sent to the hardware device through the target application, and the configuration of the hardware device is efficiently completed. The limitations of network and power supply conditions during the configuration process are effectively dealt with. The configuration is performed through the target application, and a dedicated processing tool is provided. The operation is simple and convenient, and the configuration efficiency is improved.
[0232] In some embodiments, as shown in Figure 5, an embodiment of the present application also provides an electronic device 500, including a processor 501, a memory 502, and a computer program stored on the memory 502 and executable on the processor 501. When the program is executed by the processor 501, the various processes of the above-mentioned hardware device-based processing method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0233] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0234] An embodiment of the present application also provides a non-transitory computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the various processes of the above-mentioned hardware device-based processing method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0235] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0236] An embodiment of the present application also provides a computer program product, including a computer program, which implements the above-mentioned hardware device-based processing method when executed by a processor.
[0237] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0238] An embodiment of the present application further provides a computer program, which includes instructions. When the instructions are executed by a processing device, the processing device executes the above-mentioned processing method based on the hardware device.
[0239] An embodiment of the present application further provides a computer device, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the processing method of the above-mentioned hardware device.
[0240] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned hardware device-based processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0241] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0242] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0243] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0244] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.
[0245] Throughout this specification, reference to terms such as "one embodiment," "some embodiments," "illustrative embodiments," "examples," "specific examples," or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
[0246] Although the embodiments of the present application have been shown and described, those skilled in the art will appreciate that various changes, modifications, substitutions, and variations may be made to the embodiments without departing from the principles and intent of the present application, and that the scope of the present application is defined by the claims and their equivalents.
Claims
1. A processing method based on a hardware device, characterized in that, Applied to a target application, where a target communication protocol is encapsulated in the target application, the method includes: Based on the target communication protocol, obtain first configuration data of the hardware device sent by the hardware device; the target communication protocol includes at least one of a near-field communication protocol and a wireless local area network communication protocol; Receive a first input from a user to the target application; In response to the first input, modify the first configuration data to obtain second configuration data; Send the second configuration data to the hardware device based on the target communication protocol.
2. The processing method based on a hardware device according to claim 1, wherein When the target communication protocol is a wireless local area network communication protocol, the modifying the first configuration data to obtain second configuration data includes: Modify the first configuration data based on target program logic to obtain the second configuration data; the target program logic is stored in the target application.
3. The processing method based on a hardware device according to claim 2, wherein After modifying the first configuration data based on target program logic to obtain the second configuration data, the method further includes: Modify first parameter information corresponding to the hardware device based on the target program logic to obtain second parameter information; Send the second parameter information to the hardware device based on the target communication protocol.
4. The processing method based on a hardware device according to any one of claims 1-3, characterized in that When the target communication protocol is the wireless local area network communication protocol, the first configuration data includes first position information corresponding to the hardware device and second position information corresponding to a home appliance device used to connect to the hardware device.
5. The processing method based on a hardware device according to any one of claims 1-4, characterized in that, After obtaining the first configuration data of the hardware device sent by the hardware device based on the target communication protocol, the method includes: When the configuration status of the first configuration data is configured and the debugging status of the hardware device is debugged, control the hardware device to work based on the first configuration data; Obtain working parameter information of the hardware device.
6. The processing method based on a hardware device according to claim 5, wherein After controlling the hardware device to work based on the first configuration data, the method further includes: Receive a second input from the user, where the second input is used to input password information of the hardware device; When the password information is correct and it is determined to return to the debugging status, receive the first input from the user to the target application.
7. The processing method based on a hardware device according to any one of claims 1-6, characterized in that The modifying the first configuration data to obtain second configuration data includes: Decrypt the first configuration data based on a target decryption algorithm to obtain decrypted first configuration data; Modify the decrypted first configuration data to obtain the second configuration data; The sending the second configuration data to the hardware device based on the target communication protocol includes: Encrypt the second configuration data based on a target encryption algorithm to obtain encrypted second configuration data; Send the encrypted second configuration data to the hardware device based on the target communication protocol.
8. The processing method based on a hardware device according to any one of claims 1-7, characterized in that After sending the second configuration data to the hardware device based on the target communication protocol, the method further includes: Send the second configuration data to the cloud for storage; Modify the second configuration data stored in the cloud, and store the modified second configuration data in the cloud; When the target application establishes a communication connection with the hardware device based on the target communication protocol, the target application receives the modified second configuration data from the cloud and sends the modified second configuration data to the hardware device.
9. A processing device based on a hardware device, characterized in that, Applied to a target application, the target application encapsulates a target communication protocol, and the device includes: A first processing module, configured to obtain the first configuration data of the hardware device sent by the hardware device based on the target communication protocol; the target communication protocol includes at least one of a near-field communication protocol and a wireless local area network communication protocol; A second processing module, configured to receive a first input from a user to the target application; A third processing module, configured to modify the first configuration data in response to the first input to obtain second configuration data; A fourth processing module, configured to send the second configuration data to the hardware device based on the target communication protocol.
10. A processing system based on the processing method of a hardware device as described in any one of claims 1-8, characterized in that, Including: A data acquisition module; A user input module; The user input module is connected to the data acquisition module; A processing module; The processing module is connected to the user input module.
11. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the processing method based on a hardware device according to any one of claims 1-8.
12. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the processing method based on a hardware device according to any one of claims 1-8.
13. A computer program, the computer program comprising instructions, characterized in that, When the instruction is run by a processing device, the processing device is caused to execute the processing method based on a hardware device according to any one of claims 1-8.
14. A computer device, comprising a memory, a processor, and a computer program stored on the memory, characterized in that, The processor executes the computer program to implement the processing method based on a hardware device according to any one of claims 1-8.
Citation Information
Patent Citations
Debug system and method
CN103678078A
Application program configuration management method and system
CN110543335A
Configuration file loading method and system
CN110569085A
QEMU simulation-based hardware debugging system and debugging method
CN116974945A
Application program generation method, system and device, electronic equipment and storage medium
CN117270942A