Processing method, device and processing system based on hardware equipment
The target application uses near-field communication or wireless LAN communication protocol to obtain and modify the configuration data of the hardware device, solving the problem of network and power supply limitations during the hardware device configuration and debugging process, and achieving efficient configuration and debugging process.
Patent Information
- Application Number
- CN202410064901.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-16
- Publication Date
- 2025-07-18
AI Technical Summary
There are limitations on network and power supply conditions during the configuration and debugging of existing hardware equipment, which leads to low processing efficiency and difficulty.
The target application uses the near-field communication protocol or wireless LAN communication protocol to obtain the configuration data of the hardware device, receive user input to modify the data, and send the modified configuration data to the hardware device based on the target communication protocol to realize the configuration and debugging of the hardware device.
It effectively solves the limitations of network and power supply conditions, improves the efficiency of configuration and debugging, is simple and convenient to operate, and provides dedicated processing tools.
Smart Images

Figure CN120343571A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the technical field of software development, and particularly relates to a processing method, device, and processing system based on a hardware device. Background Art
[0002] Existing hardware products such as digital sensors and thermostats need to be configured and debugged. In related technologies, engineers mainly perform processing such as configuration and debugging of hardware devices on-site. However, on-site configuration and debugging often lack suitable tools, and there are various restrictions such as network and power supply during the processing, resulting in low processing efficiency and difficult configuration process, which affects the configuration and debugging effects. Summary of the Invention
[0003] This application aims to solve at least one of the technical problems existing in the prior art. For this purpose, this application proposes a processing method, device, and processing system based on a hardware device, which effectively addresses the restrictions such as network and power supply during the configuration process, performs configuration through a target application program, provides a dedicated processing tool, is simple and convenient to operate, and improves the configuration efficiency.
[0004] In a first aspect, this application provides a processing method based on a hardware device, which is applied to a target application program. The target application program encapsulates a target communication protocol. The method includes:
[0005] 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;
[0006] Receive a first input from a user to the target application program;
[0007] In response to the first input, modify the first configuration data to obtain second configuration data;
[0008] Based on the target communication protocol, send the second configuration data to the hardware device.
[0009] 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, enabling communication between the target application and the hardware device. The first configuration data of the hardware device can be effectively obtained, and the acquisition method is simple, convenient, and highly operable. In the case where 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 data transmission and modification can be directly performed in the case of a modification requirement. The second configuration data is sent to the hardware device based on the target communication protocol, efficiently completing the configuration of the hardware device, effectively coping with the limitations of conditions such as network and power supply during the configuration process, and providing a dedicated processing tool through the target application, with simple and convenient operation and improved configuration efficiency.
[0010] 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, modifying the first configuration data to obtain the second configuration data includes:
[0011] Modifying the first configuration data based on the target program logic to obtain the second configuration data; the target program logic is stored in the target application.
[0012] 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:
[0013] Modifying the first parameter information corresponding to the hardware device based on the target program logic to obtain the second parameter information;
[0014] Sending the second parameter information to the hardware device based on the target communication protocol.
[0015] 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 the first point position information corresponding to the hardware device and the second point position information corresponding to the home appliance device used to connect to the hardware device.
[0016] 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:
[0017] 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;
[0018] Obtain the working parameter information of the hardware device.
[0019] According to the processing method based on the hardware device of the present application, after controlling the hardware device to work based on the first configuration data, the method further includes:
[0020] Receive a second input from the user, where the second input is used to input the password information of the hardware device;
[0021] When the password information is correct and it is determined to return to the debugging state, receive the first input of the user for the target application.
[0022] According to the processing method based on the hardware device of the present application, the modifying the first configuration data to obtain the second configuration data includes:
[0023] Decrypt the first configuration data based on the target decryption algorithm to obtain the decrypted first configuration data;
[0024] Modify the decrypted first configuration data to obtain the second configuration data;
[0025] The sending the second configuration data to the hardware device based on the target communication protocol includes:
[0026] Encrypt the second configuration data based on the target encryption algorithm to obtain the encrypted second configuration data;
[0027] Based on the target communication protocol, send the encrypted second configuration data to the hardware device.
[0028] According to the processing method based on the hardware device of the present application, after sending the second configuration data to the hardware device based on the target communication protocol, the method further includes:
[0029] Send the second configuration data to the cloud for storage;
[0030] Modify the second configuration data stored in the cloud and store the modified second configuration data in the cloud;
[0031] 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.
[0032] In a second aspect, the present application provides a processing device based on a hardware device, which is applied to a target application program. The target application program encapsulates a target communication protocol. The device includes:
[0033] A first processing module, 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;
[0034] A second processing module, configured to receive a first input of the user to the target application program;
[0035] A third processing module, configured to modify the first configuration data in response to the first input to obtain second configuration data;
[0036] A fourth processing module, configured to send the second configuration data to the hardware device based on the target communication protocol.
[0037] According to the processing device based on a hardware device of the present application, through the near-field communication protocol or the 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 program is effectively connected to the hardware device, enabling communication between the target application program and the hardware device, effectively obtaining the first configuration data of the hardware device, with a simple and convenient acquisition method and strong operability; in the case where the user has a modification requirement, the data input by the user into the target application program is directly received to obtain second configuration data. Based on the communication method encapsulated in the target application program, it is not restricted by the on-site network, and data transmission and modification can be directly performed in the case of a modification requirement; the second configuration data is sent to the hardware device based on the target communication protocol, efficiently completing the configuration of the hardware device, effectively coping with the limitations of conditions such as network and power supply during the configuration process, and performing configuration through the target application program, providing a dedicated processing tool, with simple and convenient operation and improved configuration efficiency.
[0038] In a third aspect, the present application provides a processing system based on the processing method of the hardware device as described in the first aspect, including:
[0039] A data acquisition module;
[0040] A user input module; the user input module is connected to the data acquisition module;
[0041] A processing module; the processing module is connected to the user input module.
[0042] Fourthly, the present application provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the processing method based on a hardware device as described in the first aspect above.
[0043] Fifthly, the present application provides a computer program product, including a computer program, and when the computer program is executed by a processor, it implements the processing method based on a hardware device as described in the first aspect above.
[0044] One or more of the above technical solutions in the embodiments of the present application have at least one of the following technical effects:
[0045] By using the near field communication protocol or the 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 program is effectively connected to the hardware device, enabling communication between the target application program and the hardware device, effectively obtaining the first configuration data of the hardware device. The acquisition method is simple and convenient, and the operability is strong; in the case where the user has a modification requirement, the data input by the user into the target application program is directly received to obtain the second configuration data. Based on the communication method encapsulated in the target application program, it is not restricted by the on-site network, and data transmission and modification can be directly performed in the case of a modification requirement; the second configuration data is sent to the hardware device based on the target communication protocol, efficiently completing the configuration of the hardware device, effectively coping with the limitations of conditions such as network and power supply during the configuration process, and providing a dedicated processing tool through the target application program for configuration, which is simple and convenient to operate and improves the configuration efficiency.
[0046] Further, in the case of configuring the hardware device through the wireless local area network communication protocol, on the basis of configuring the hardware device, further modify the first parameter information in the logical parameters of the hardware device 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, make the hardware device under the required parameter conditions, provide a modification reference based on the target program logic for modifying the first parameter information, and send the second parameter information to the hardware device through the target application program 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 function is more powerful and diverse.
[0047] Furthermore, by determining that the password information input by the user is correct and determining that the user needs to return to the debugging state, receive the first input of the user to the target application program, and perform debugging multiple times based on the real-time operating state and current requirements of the hardware device to meet the current needs of the user for the hardware device. It has high flexibility, simple control logic, high debugging efficiency and can effectively ensure the security of debugging.
[0048] Furthermore, by storing the second configuration data in the cloud, the user can remotely modify the second configuration data without being at the configuration site. After modifying the second configuration data in the cloud, 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 on-site again, which significantly improves the efficiency of configuration and debugging and saves time.
[0049] Additional aspects and advantages of the present application will be given in part in the following description, become apparent in part from the following description, or be learned through the practice of the present application. Brief Description of the Drawings
[0050] The above and / or additional aspects and advantages of the present application will become apparent and be readily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0051] Figure 1 is one of the schematic flowcharts of the processing method based on the hardware device provided by the embodiment of the present application;
[0052] Figure 2 is another schematic flowchart of the processing method based on the hardware device provided by the embodiment of the present application;
[0053] Figure 3 is yet another schematic flowchart of the processing method based on the hardware device provided by the embodiment of the present application;
[0054] Figure 4 is the schematic structural diagram of the processing device based on the hardware device provided by the embodiment of the present application;
[0055] Figure 5 is the schematic structural diagram of the electronic device provided by the embodiment of the present application. Detailed Description of the Embodiments
[0056] The technical solutions in the embodiments of the present application will be clearly described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art belong to the scope of protection of the present application.
[0057] The terms "first", "second", etc. in the description and claims of this application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of this application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same category, and do not limit the number of objects. For example, the first object can be one or more. In addition, "and / or" in the description and claims means at least one of the connected objects, and the character " / ", generally represents an "or" relationship between the associated objects before and after.
[0058] The following will, with reference to the accompanying drawings, through specific embodiments and their application scenarios, describe in detail the processing method based on a hardware device, the processing device based on a hardware device, the application program, and the readable storage medium provided by the embodiments of this application.
[0059] Among them, the processing method based on a hardware device can be applied to a terminal, and can be specifically executed by hardware or software in the terminal.
[0060] The terminal includes but is not limited to portable communication devices such as mobile phones or tablets. It should also be understood that in some embodiments, the terminal may not be a portable communication device, but a desktop computer.
[0061] In the following various 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.
[0062] The processing method based on a hardware device provided by the embodiments of this application, the execution subject of the processing method based on a hardware device can be an electronic device or a functional module or functional entity in the electronic device that can implement the processing method based on a hardware device. The electronic devices mentioned in the embodiments of this application include but are not limited to mobile phones, tablets, computers, cameras, and wearable devices, etc. The following takes the electronic device as the execution subject to illustrate the processing method based on a hardware device provided by the embodiments of this application.
[0063] As Figure 1 shown, the processing method based on a hardware device is applied to a target application program, and the target communication protocol is encapsulated in the target application program. The method includes: step 110, step 120, step 130, and step 140.
[0064] The target application program is an application program used to configure, modulate, and control the hardware device.
[0065] The target application program can be implemented based on the Flutter framework.
[0066] Of course, the target application can also be developed based on any other implementable method.
[0067] The target application can support multiple platforms (such as Android and iOS platforms, etc.).
[0068] Step 110: Obtain the first configuration data of the hardware device sent by the hardware device based on the target communication protocol;
[0069] In this step, the target communication protocol is the protocol through which the hardware device and the target application can communicate.
[0070] Based on the target communication protocol, operations such as debugging, configuring, and controlling the hardware device can be performed.
[0071] The hardware device includes: hardware devices such as digital sensors and thermostats.
[0072] The first configuration data is the data required for configuring the hardware device.
[0073] For example Figure 2 As shown, 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.
[0074] In this embodiment, the near-field communication protocol is a protocol for data exchange within a target area between the hardware device and the target application.
[0075] The specific value of the target area can be determined based on the actual situation, and this application does not make any limitations.
[0076] The wireless local area network communication protocol is a communication protocol that uses wireless communication technology to interconnect the hardware device and the target application, forming a communication protocol that can communicate with each other and achieve resource sharing.
[0077] In the actual execution process, one of the target communication protocols can be selected based on actual requirements to configure the hardware device.
[0078] It can be understood that after entering the target application, the near-field communication protocol or the wireless local area network communication protocol can be selected on the digital sensor page of the target application.
[0079] In the actual execution process, when the target communication protocol is the near-field communication protocol, the target application can be placed within 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.
[0080] The specific size of the target area can be determined based on the near-field communication chip, and this application does not make any limitations.
[0081] As Figure 2 shown, during the actual execution process, when the target application and the hardware device are connected through the near-field communication protocol, if the number of failed attempts to establish a communication connection between the target application and the hardware device or the duration of establishing the communication connection exceeds the target duration, the placement position of the target application can be appropriately adjusted, and the target application and the hardware device are connected through the near-field communication protocol again to perform data interaction.
[0082] Continuing to refer to Figure 2 , when the target communication protocol selected by the user is the wireless local area network communication protocol, the hardware device is made to enter the access point mode, HTTP is started, and then a hotspot connection is made. The wireless local area network of the electronic device where the target application is located is turned on, and the electronic device where the target application is located is connected to the wireless local area network to access the network corresponding to the access point service of the hardware device, enabling the target application and the hardware device to communicate and interact, and obtaining the first configuration data sent by the hardware device to the target application.
[0083] In some embodiments, when the target communication protocol is the wireless local area network communication protocol, the first configuration data includes the second position information corresponding to the home appliance device for connecting to the hardware device and the first position information corresponding to the hardware device.
[0084] In this embodiment, the first position information is the information of positions such as the on position, off position, and temperature position of the hardware device.
[0085] The home appliance device is some home appliance devices that can be connected to the hardware device, including: refrigerators, air conditioners, and lamps, etc.
[0086] The second position information is the position information of the virtual device corresponding to the home appliance device.
[0087] It can be understood that the first configuration data obtained when the target communication protocol is the wireless local area network communication protocol is different from that obtained when the target communication protocol is the near-field communication protocol.
[0088] When the target communication protocol is the near-field communication protocol, the first configuration data obtained is the basic attribute data and network information data of the hardware device.
[0089] The first configuration data may include: data such as the product model of the hardware device, software version, and communication address of the hardware device.
[0090] When the number of configurations of the first configuration data is small, when the overall configuration data is less than the target number of bytes, the real-time parameter data of the hardware device is not the main parameter attribute, and pre-configuration needs to be performed when the hardware device is not powered on, the target communication protocol can be selected as the near-field communication protocol to configure the hardware device.
[0091] The specific size of the target number of bytes can be determined based on the actual situation, and the present application does not make a limitation. For example, the target number of bytes can be 888 bytes.
[0092] When the target communication protocol is the wireless local area network communication protocol, the first configuration data obtained is information such as the real-time position information of the hardware device and the position control instruction.
[0093] When it is necessary to obtain the real-time position information of the hardware device, issue a position control instruction, and the number of configurations is not less than the target number of bytes, the target communication protocol can be selected as the wireless local area network communication protocol to configure the hardware device.
[0094] According to the processing method based on the hardware device provided by the embodiments of the present application, by determining which specific target communication protocol is, the specific information of the first configuration data is determined. When the target communication protocol is the wireless local area network communication protocol, it is determined that the first configuration data includes the first position information and the second position information. The data to be configured is large and the real-time position information of the hardware device can be obtained and a control instruction can be issued, effectively obtaining more information, and the acquisition method is simple.
[0095] Step 120: Receive a first input from the user for the target application program;
[0096] In this step, the first input is used to input the first configuration data modified by the user.
[0097] Among them, the first input can be at least one of the following methods:
[0098] First, the first input can be a touch operation, including but not limited to click operations, swipe operations, and press operations, etc.
[0099] In this embodiment, receiving the first input from the user can be receiving a touch operation of the user in the display area of the terminal display screen.
[0100] In order to reduce the user's misoperation rate, the action area of the first input can be limited to a specific area, such as the upper middle area of the modification interface; or in the state of displaying the modification interface, a target control is displayed on the current interface, and touching the target control can achieve the first input; or the first input is set as a continuous multiple tapping operation on the display area within a target time interval.
[0101] Second, the first input can be an input of a physical button.
[0102] In this embodiment, a physical button corresponding to the modification is provided on the body of the terminal, and a first input from the user can be, for example, receiving an operation of the user pressing the corresponding physical button; the first input can also be a combined operation of pressing multiple physical buttons simultaneously.
[0103] Thirdly, the first input can be a voice input.
[0104] In this embodiment, when the terminal receives a voice such as "Modify the communication address to A", the original communication address in the first configuration data can be modified to A.
[0105] Of course, in other embodiments, the first input can also be in other forms, including but not limited to character input, etc., which can be specifically determined according to actual needs, and the embodiments of the present application do not limit this.
[0106] Step 130: In response to the first input, modify the first configuration data to obtain second configuration data;
[0107] In this step, the second configuration data is the modified first configuration data.
[0108] In the actual execution process, due to different target communication protocols, the method of modifying the first configuration data may also be different.
[0109] For example, when the target communication protocol is the near - field communication protocol, modifying the first configuration data can be directly modifying the first configuration data on the modification page within the target application program. The modified first configuration data can be data such as the communication address, IP address of the hardware device, and turning on / off the wireless local area network, etc., and the modified first configuration data is determined as the second configuration data.
[0110] Another example is that when the target communication protocol is the wireless local area network communication protocol, the data in the configuration file corresponding to the first configuration data can be modified, and the data corresponding to the modified configuration file is determined as the second configuration data.
[0111] In some embodiments, when the target communication protocol is the wireless local area network communication protocol, step 130 may further include:
[0112] Modify the first configuration data based on the target program logic to obtain second configuration data.
[0113] In this embodiment, the target program logic can be stored in the target application program.
[0114] The target program logic is a pre - defined program logic for configuring and debugging the hardware device for reference.
[0115] During the actual execution process, the target program logic can be imported into the target application through the negotiated interface.
[0116] The negotiated interfaces include: login interface, upload interface, download interface, and HTTP interface, etc.
[0117] It can be understood that the target program logic corresponding to different hardware devices may be different.
[0118] During the actual execution process, based on the specific content of the target program logic, it can be determined how to modify the first configuration data to obtain the modified first configuration data, that is, the second configuration data.
[0119] According to the processing method based on the hardware device provided by the embodiments of the present application, by determining that the target communication protocol is a wireless local area network communication protocol, modifying the first configuration data based on the specific content of the target program logic to obtain the second configuration data, providing reference information for modifying the first configuration data, improving the efficiency of modifying the first configuration data, which is simple and convenient, and easy to operate.
[0120] Step 140: Send the second configuration data to the hardware device based on the target communication protocol.
[0121] In this step, when the target communication protocol is different, the way of sending the second parameter information is also different.
[0122] 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 by clicking the configured button, the second configuration data can be sent to the hardware device to be configured.
[0123] When the target communication protocol is a wireless local area network communication protocol, the second configuration data can be sent to the hardware device through the target application to complete the configuration of the hardware device.
[0124] It can be understood that after completing the configuration of the hardware device, the configuration status of the hardware device will be marked as configured.
[0125] According to the processing method based on a hardware device provided by an embodiment of the present application, first configuration data of the hardware device sent to a target application is obtained through a near-field communication protocol or a wireless local area network communication protocol in a target communication protocol. Based on the target communication protocol, the target application is effectively connected to the hardware device, enabling communication between the target application and the hardware device, and effectively obtaining the first configuration data in the hardware device. The acquisition method is simple, convenient, and highly operable. In the case where a user has a modification requirement, data input by the user into the target application is directly received to obtain second configuration data corresponding to after modifying the first configuration data. Based on the communication method encapsulated in the target application, it is not restricted by the on-site network, and data transmission and modification can be directly performed in the case of a modification requirement. Based on the target communication protocol, the second configuration data is sent to the hardware device through the target application, efficiently completing the configuration of the hardware device, effectively coping with limitations such as network and power supply conditions during the configuration process. Configuration is performed through the target application, providing a dedicated processing tool, with simple and convenient operation, and improving the configuration efficiency.
[0126] 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:
[0127] Based on the target program logic, the first parameter information corresponding to the hardware device is modified to obtain second parameter information;
[0128] Based on the target communication protocol, the second parameter information is sent to the hardware device.
[0129] In this embodiment, the first parameter information is parameter information required for debugging the hardware device.
[0130] The second parameter information is parameter information corresponding to the modified first parameter information.
[0131] The target program logic may be an algorithm logic preset and stored in the target application, which is used to provide a reference during the process of modifying the first parameter information and the first configuration data.
[0132] During actual execution, based on the specific content of the target program logic, the first parameter information of the hardware device can be modified to obtain the modified second parameter information, and then the second parameter information is sent into 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.
[0133] It can be understood that the user can select the target program logic corresponding to a modular air handling unit, a pre-cooling air handling unit, bypass valve control, etc., and perform module and channel matching.
[0134] During the actual execution process, after the hardware device is debugged, the hardware device can be marked as debugged.
[0135] According to the processing method based on a hardware device provided by an embodiment of the present application, when configuring the hardware device through a wireless local area network communication protocol, on the basis of configuring the hardware device, further modify the first parameter information in the logical parameters of the hardware device 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, make the hardware device under the required parameter conditions, provide a modification reference for debugging based on the target program logic, facilitate the modification of the first parameter information, and send the second parameter information to the hardware device through the target application program 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 function is more powerful and diverse.
[0136] 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:
[0137] 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;
[0138] Obtain the working parameter information of the hardware device.
[0139] In this embodiment, the configuration status is the status corresponding to whether the hardware device has been configured.
[0140] The configuration status includes: configured and unconfigured.
[0141] The debugging status is the status corresponding to whether the hardware device has been completed with debugging.
[0142] The debugging status includes: debugged and not debugged.
[0143] Controlling the hardware device to work can be operations such as controlling the opening, closing, and temperature setting of the hardware device.
[0144] During the actual execution process, when the configuration status shown in the obtained first configuration data is configured and the hardware device is completed with debugging, that is, debugged, control the hardware device to work based on the status of the hardware device corresponding to the first configuration data.
[0145] When at least one of the configuration status shown in the obtained first configuration data is unconfigured and the modulation status of the hardware device is not debugged, modify based on the first configuration data, configure and debug the hardware device, and control the hardware device to work through the target application program based on the status of the hardware device corresponding to the configured and debugged configuration data.
[0146] Continue to refer to Figure 2 When communicating by selecting a wireless local area network communication protocol, connect the target application to the network corresponding to the access point service of the hardware device through a hotspot, and obtain the first configuration data of the hardware device. When it is shown in the first configuration data that the hardware device is not configured and not debugged, the logical configuration page can be entered, and the first configuration data can be modified based on the program logic in the target program logic to obtain the second configuration data corresponding to the modified first configuration data. Send the second configuration data to the target application, and then perform debugging 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 sent to the hardware device to control the hardware device to turn on or set its temperature to a certain value.
[0147] According to the processing method based on the hardware device provided by the embodiment of the present application, by determining the configuration and debugging conditions of the hardware device shown in the first configuration data, determine the next operation of the hardware device. When it is determined that the hardware device has completed configuration and modulation, control the hardware device to work 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.
[0148] In some embodiments, after controlling the hardware device to work based on the first configuration data, the method may further include:
[0149] Receive a second input from the user;
[0150] Receive a first input from the user to the target application when the password information is correct and it is determined to return to the debugging state.
[0151] In this embodiment, the second input is used to input the password information of the hardware device.
[0152] The second input can be the same touch input, physical button input, voice input, character input as the first input, and any other achievable input, which will not be elaborated in this application.
[0153] The password information is the password corresponding to the hardware device.
[0154] In the actual execution process, when receiving the second input from the user and the information corresponding to the second input is consistent with the password corresponding to the hardware device and the user selects to return to the debugging state, receive the first input from the user in the target application and continue to debug the hardware device.
[0155] According to the processing method based on a hardware device provided by an embodiment of the present application, by determining that the password information input by the user is correct and determining that the user needs to return to the debugging state, receiving a first input of the user to a target application, and performing debugging multiple times based on the real-time operating state and current requirements of the hardware device to meet the current requirements of the user for the hardware device, it has high flexibility, simple control logic, high debugging efficiency, and can effectively ensure the security of debugging.
[0156] In some embodiments, step 130 may further include:
[0157] Decrypt the first configuration data based on a target decryption algorithm to obtain the decrypted first configuration data;
[0158] Modify the decrypted first configuration data to obtain the second configuration data;
[0159] Step 140 may further include:
[0160] Encrypt the second configuration data based on a target encryption algorithm to obtain the encrypted second configuration data;
[0161] Based on a target communication protocol, send the encrypted second configuration data to the hardware device.
[0162] In this embodiment, the target decryption algorithm is the algorithm used to decrypt the first configuration data.
[0163] The specific selection of the target decryption algorithm can be determined based on the actual situation, and the present application does not make any limitations.
[0164] The decrypted first configuration data is data that the user can directly recognize.
[0165] The target encryption algorithm is the encryption algorithm used to encrypt the second configuration data.
[0166] The specific selection of the target encryption algorithm can be determined based on the actual situation, and the present application does not make any limitations.
[0167] In the actual execution process, the first configuration data in the hardware device sent by the obtained hardware device is encrypted data. Decrypt the first configuration data through the target decryption algorithm to obtain the decrypted first configuration data that the user can recognize, and modify the first configuration data that the user can recognize obtained after decryption to obtain the second configuration data.
[0168] Before the second configuration data is sent to the hardware device to complete the configuration of the hardware device, it is necessary to encrypt the second configuration data through the target encryption algorithm and send the encrypted second configuration data to the hardware device.
[0169] According to the processing method based on a hardware device provided by an embodiment of the present application, by decrypting the obtained first configuration data, the first configuration data recognizable by the user is obtained, so that the user can modify the information in the first configuration data to obtain the second configuration data for configuring the hardware device. After the required second configuration data is obtained, the second configuration data is encrypted and the encrypted second configuration data is sent to the hardware device, effectively ensuring the security of the data.
[0170] As Figure 3 shown, in some embodiments, after step 140, the method may further include:
[0171] Sending the second configuration data to the cloud for storage;
[0172] Modifying the second configuration data stored in the cloud and storing the modified second configuration data in the cloud;
[0173] 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.
[0174] In this embodiment, the cloud is a software platform for the virtualization technology of the application.
[0175] The cloud can perform operations such as data storage, data sharing, and data backup.
[0176] The second configuration data can be stored in the cloud.
[0177] The communication connection enables communication between the target application and the hardware device.
[0178] In the actual execution process, the second configuration data can be sent to the cloud for storage. In the actual application scenario, the second configuration data stored in the cloud can be modified, and the modified second configuration data is continued to be stored in the cloud for subsequent use.
[0179] 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 when the target application and the hardware device are not in a communication connection can be downloaded to the target application, 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.
[0180] Continuing to refer to Figure 3 , in some embodiments, to send the second configuration data to the cloud for storage, the cloud account can be logged in first, and after entering, the function list can be selected.
[0181] The function list includes: digital sensor series product modules, configuration management modules, and home page modules.
[0182] In the digital sensor series product modules, the corresponding sensor types can be selected.
[0183] In the configuration management module, the configuration of the hardware device can be managed, including local configuration management and cloud configuration management.
[0184] Among them, 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.
[0185] Cloud configuration management includes: downloading the second configuration data in the cloud to a target application, classifying the second configuration data based on the content corresponding to the second configuration data, and pre-editing the second configuration data.
[0186] In the home page module, the user's basic information can be managed, and the current login status can be selected to log out.
[0187] According to the processing method based on a hardware device provided by an embodiment of the present application, by storing the second configuration data in the cloud, the user can remotely modify the second configuration data without the user being at the configuration site. After modifying the second configuration data in the cloud, the modified second configuration data is still stored in the cloud. When a communication connection is established between the target application and 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 on-site again, which significantly improves the efficiency of configuration and debugging and saves time.
[0188] For the processing method based on a hardware device provided by an embodiment of the present application, the execution subject can be a processing device based on a hardware device. In an embodiment of the present application, taking the processing device based on a hardware device executing the processing method based on a hardware device as an example, the processing device based on a hardware device provided by an embodiment of the present application is described.
[0189] An embodiment of the present application further provides a processing device based on a hardware device, which is applied to a target application, and a target communication protocol is encapsulated in the target application.
[0190] As Figure 4 shown, the processing device based on a hardware device includes: a first processing module 410, a second processing module 420, a third processing module 430, and a fourth processing module 440.
[0191] The first processing module 410 is configured to obtain first configuration data sent from a 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;
[0192] The second processing module 420 is configured to receive a first input from a user to a target application;
[0193] The third processing module 430 is configured to modify the first configuration data in response to the first input to obtain second configuration data;
[0194] The fourth processing module 440 is configured to send the second configuration data to the hardware device based on the target communication protocol.
[0195] According to the processing device based on a hardware device provided in an 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, enabling communication between the target application and the hardware device, effectively obtaining the first configuration data in the hardware device, with a simple and convenient acquisition method and strong operability; in the case where the user has a modification requirement, the data input by the user to the target application is directly received, and the corresponding second configuration data after modifying 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 transmission and modification can be directly performed in the case of a modification requirement; based on the target communication protocol, the second configuration data is sent to the hardware device through the target application, efficiently completing the configuration of the hardware device, effectively coping with the limitations of conditions such as network and power supply during the configuration process, providing a dedicated processing tool through the target application, with simple and convenient operation, and improving the configuration efficiency.
[0196] In some embodiments, the third processing module 430 may further be configured to:
[0197] Modify the first configuration data based on the target program logic to obtain second configuration data; the target program logic is stored in the target application.
[0198] In some embodiments, the device may further include a fifth processing module, configured to:
[0199] Modify the first parameter information corresponding to the hardware device based on the target program logic to obtain second parameter information;
[0200] Send the second parameter information to the hardware device based on the target communication protocol.
[0201] In some embodiments, the device may further include a sixth processing module, configured to:
[0202] 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;
[0203] Obtain the working parameter information of the hardware device.
[0204] In some embodiments, the device may further include a seventh processing module for:
[0205] Receive a second input from the user, where the second input is used to input the password information of the hardware device;
[0206] When the password information is correct and it is determined to return to the debugging state, receive the first input from the user for the target application.
[0207] In some embodiments, the third processing module 430 may also be used for:
[0208] Modify the first configuration data to obtain the second configuration data, including:
[0209] Decrypt the first configuration data based on the target decryption algorithm to obtain the decrypted first configuration data;
[0210] Modify the decrypted first configuration data to obtain the second configuration data;
[0211] The fourth processing module 440 may also be used for:
[0212] Encrypt the second configuration data based on the target encryption algorithm to obtain the encrypted second configuration data;
[0213] Based on the target communication protocol, send the encrypted second configuration data to the hardware device.
[0214] In some embodiments, the device may further include an eighth processing module for:
[0215] Send the second configuration data to the cloud for storage;
[0216] Modify the second configuration data stored in the cloud and store the modified second configuration data in the cloud;
[0217] 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.
[0218] The processing device based on a hardware device in the embodiments of the present application may be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal or other devices other than terminals. Exemplarily, the electronic device may be a mobile phone, a tablet computer, a laptop computer, a handheld computer, a vehicle-mounted 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 may 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. The embodiments of the present application do not make specific limitations.
[0219] The processing device based on a hardware device in the embodiments of the present application may be a device with an operating system. The operating system may be an Android operating system, an IOS operating system, or other possible operating systems. The embodiments of the present application do not make specific limitations.
[0220] The processing device based on a hardware device provided in the embodiments of the present application can implement Figures 1 to 3 each process implemented by the method embodiments. To avoid repetition, it will not be elaborated here.
[0221] The embodiments of the present application further provide a processing system based on the hardware device processing method described in any of the above embodiments, including: a data acquisition module, a user input module, and a processing module.
[0222] In this embodiment, the data acquisition module encapsulates a target communication protocol.
[0223] The data acquisition module acquires first configuration data of the hardware device based on the target communication protocol.
[0224] The user input module is used to receive modification data corresponding to the first configuration data input by the user.
[0225] The user input module is connected to the data acquisition module.
[0226] The processing module is connected to the user input module.
[0227] According to the processing system based on the hardware device processing method described in any of the above embodiments provided by the present application, through the near-field communication protocol or the wireless local area network communication protocol in the target communication protocol, the first configuration data of the hardware device sent to the target application is obtained. Based on the target communication protocol, the target application is effectively connected to the hardware device, enabling communication between the target application and the hardware device, and effectively obtaining the first configuration data in the hardware device. The acquisition method is simple and convenient, and the operability is strong. In the case where the user has a modification requirement, the data input by the user into the target application is directly received to obtain the corresponding second configuration data after modifying the first configuration data. Based on the communication method encapsulated in the target application, it is not restricted by the on-site network, and data transmission and modification can be directly performed in the case of a modification requirement. Based on the target communication protocol, the second configuration data is sent to the hardware device through the target application, efficiently completing the configuration of the hardware device, effectively coping with the limitations of conditions such as network and power supply during the configuration process, providing a dedicated processing tool through the target application for configuration, with simple and convenient operation, and improving the configuration efficiency.
[0228] In some embodiments, as Figure 5 shown, the embodiments of the present application further provide 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, it implements each process of the above embodiments of the processing method based on the hardware device, and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.
[0229] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
[0230] The embodiments of the present application further provide a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements each process of the above embodiments of the processing method based on the hardware device, and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.
[0231] Among them, the processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory ROM, random access memory RAM, magnetic disks, or optical discs, etc.
[0232] The embodiments of the present application further provide a computer program product, including a computer program, which implements the above-mentioned processing method based on the hardware device when executed by a processor.
[0233] Among them, the processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory ROM, random access memory RAM, magnetic disks, or optical discs, etc.
[0234] Another embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement each process of the above-mentioned embodiment of the processing method based on hardware devices, and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.
[0235] It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, system chip, chip system, or system-on-chip, etc.
[0236] It should be noted that in this article, the term "including", "comprising", or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article, or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such process, method, article, or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article, or device including that element. In addition, it should be pointed out that the methods and devices in the embodiments of the present application are 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 reverse order according to the functions involved. For example, the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, the features described with reference to certain examples may be combined in other examples.
[0237] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases, the former is a better implementation method. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disc), and includes several instructions for causing a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present application.
[0238] The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above specific embodiments. The above specific embodiments are merely illustrative and not restrictive. Under the inspiration of the present application, those of ordinary skill in the art can also make many forms without departing from the purpose of the present application and the scope protected by the claims, and all of them fall within the protection scope of the present application.
[0239] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples", etc. means that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0240] Although the embodiments of the present application have been shown and described, those of ordinary skill in the art can understand that various changes, modifications, substitutions, and variations can be made to these embodiments without departing from the principles and purposes of the present application. 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; Based on the target communication protocol, send the second configuration data to the hardware device.
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: Based on target program logic, modify the first configuration data 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 to obtain the second configuration data based on the target program logic, the method further includes: Based on the target program logic, modify first parameter information corresponding to the hardware device to obtain second parameter information; Based on the target communication protocol, send the second parameter information to the hardware device.
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 point position information corresponding to the hardware device and second point position information corresponding to a household 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-3, 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-3, 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; Based on the target communication protocol, send the encrypted second configuration data to the hardware device.
8. The processing method based on a hardware device according to any one of claims 1-3, 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 according to 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 configuration and debugging method of the 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 configuration and debugging method of the hardware device according to any one of claims 1-8.