WO2025152829A1 - 基于硬件设备的处理方法、装置和处理系统 - Google Patents

基于硬件设备的处理方法、装置和处理系统

Info

Publication number
WO2025152829A1
WO2025152829A1 PCT/CN2025/071316 CN2025071316W WO2025152829A1 WO 2025152829 A1 WO2025152829 A1 WO 2025152829A1 CN 2025071316 W CN2025071316 W CN 2025071316W WO 2025152829 A1 WO2025152829 A1 WO 2025152829A1
Authority
WO
WIPO (PCT)
Prior art keywords
hardware device
configuration data
target
communication protocol
processing method
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
PCT/CN2025/071316
Other languages
English (en)
French (fr)
Inventor
韩立丰
杜泽明
吴宇盛
闫锐
林昊
胡炯培
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Kong Intelligent Building Co Ltd
GD Midea Heating and Ventilating Equipment Co Ltd
Original Assignee
Shanghai Kong Intelligent Building Co Ltd
GD Midea Heating and Ventilating Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Kong Intelligent Building Co Ltd, GD Midea Heating and Ventilating Equipment Co Ltd filed Critical Shanghai Kong Intelligent Building Co Ltd
Publication of WO2025152829A1 publication Critical patent/WO2025152829A1/zh
Anticipated expiration legal-status Critical
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W80/00Wireless network protocols or protocol adaptations to wireless operation

Definitions

  • 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.
  • the present application aims to solve at least one of the technical problems existing in the prior art.
  • the present application proposes a processing method, device and processing system based on hardware devices, which effectively copes with the limitations of network and power supply conditions during the configuration process, performs configuration through the target application, provides a dedicated processing tool, is simple and convenient to operate, and improves the efficiency of configuration.
  • the present application provides a processing method based on a hardware device, which is applied to a target application program, wherein the target application program encapsulates a target communication protocol, and the method comprises:
  • 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.
  • 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.
  • the data input by the user into the target application is directly received to obtain the second configuration data.
  • the communication method encapsulated in the target application it is not restricted by the on-site network, and the data is 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.
  • the first configuration data is modified based on a target program logic to obtain the second configuration data; the target program logic is stored in the target application program.
  • the method further includes:
  • the second parameter information is sent to the hardware device based on the target communication protocol.
  • the first configuration data when the target communication protocol is the wireless local area network communication protocol, includes first point information corresponding to the hardware device and second point information corresponding to the home appliance connected to the hardware device.
  • the target application In a case where 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.
  • a fourth processing module is used to send the second configuration data to the hardware device based on the target communication protocol.
  • 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.
  • the data input by the user into the target application is directly received to obtain the second configuration data.
  • the communication method encapsulated in the target application Based on the communication method encapsulated in the target application, it is not restricted by the on-site network, and the data is directly transmitted and modified when there is a modification demand; 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.
  • the present application provides a processing system based on the hardware device processing method as described in the first aspect, including:
  • the present application provides a non-transitory computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the processing method based on a hardware device as described in the first aspect above is implemented.
  • the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the processing method based on a hardware device as described in the first aspect above.
  • the present application provides a computer program, which includes instructions.
  • the processing device executes the processing method based on the hardware device as described in the first 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.
  • the first configuration data of the hardware device sent by the hardware device is obtained.
  • 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.
  • the data input by the user into the target application is directly received to obtain the second configuration data.
  • 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.
  • 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.
  • Debugging based on the target program logic provides a modification reference to facilitate 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.
  • the user can remotely modify the second configuration data.
  • the second configuration data can be modified without the user being at the configuration site.
  • the modified second configuration data is still stored in the cloud.
  • 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.
  • the specific value of the target area can be determined based on actual conditions and is not limited in this application.
  • the target communication protocol can be selected as the near-field communication protocol to configure the hardware device.
  • the specific size of the target byte can be determined based on actual conditions and is not limited in this application.
  • the target byte may be 888 bytes.
  • the first configuration data obtained is information such as real-time point information and point control instructions of the hardware device.
  • the target communication protocol can be selected as the wireless LAN communication protocol to configure the hardware devices.
  • the specific information of the first configuration data is determined.
  • the target communication protocol is a wireless local area network communication protocol
  • the data to be configured is relatively large and can obtain real-time point information of the hardware device and issue control instructions, thereby effectively obtaining more information, and the acquisition method is simple.
  • Step 120 receiving a first input from a user to a target application
  • the first input is used to input first configuration data modified by a user.
  • the first input may be in at least one of the following ways:
  • the first input may be a touch operation, including but not limited to a click operation, a slide operation, and a press operation.
  • receiving the first input from the user may be receiving a touch operation of the user in the display area of the terminal display screen.
  • 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 implemented 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.
  • the first input may be a physical key input.
  • a physical key 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 key; the first input may also be a combined operation of pressing multiple physical keys at the same time.
  • the first input may be voice input.
  • the terminal may modify the original communication address in the first configuration data to A upon receiving a voice message such as "modify the communication address to A".
  • 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.
  • Step 130 In response to the first input, modify the first configuration data to obtain second configuration data;
  • the second configuration data is the modified first configuration data.
  • the target communication protocol is different, and the way of modifying the first configuration data may also be different.
  • 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.
  • the modified first configuration data is determined as the second configuration data.
  • 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.
  • step 130 may further include:
  • the first configuration data is modified based on the target program logic to obtain the second configuration data.
  • the target program logic can be stored in the target application program.
  • the target program logic is a predefined program logic that needs to be referenced for configuring and debugging the hardware device.
  • the target program logic can be imported into the target application through the negotiated interface.
  • the negotiated interfaces include: login interface, upload interface, download interface, HTTP interface and other interfaces.
  • the target program logic determines how to modify the first configuration data based on the specific content of the target program logic, so as to obtain the modified first configuration data, that is, the second configuration data.
  • the hardware device-based processing method 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 to improve the efficiency of modifying the first configuration data.
  • the method is simple, convenient and easy to operate.
  • Step 140 Send the second configuration data to the hardware device based on the target communication protocol.
  • the target communication protocol is different, and the manner of sending the second parameter information is also different.
  • the target application may be placed in a target area of a near field communication chip of the hardware device, and the second configuration data may be sent to the hardware device to be configured by clicking a button for sending the configuration.
  • 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.
  • the communication method encapsulated in the target application Based on the communication method encapsulated in the target application, it is not restricted by the on-site network, and the 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.
  • the method may further include:
  • the second parameter information is sent to the hardware device based on the target communication protocol.
  • the first parameter information is parameter information required for debugging the hardware device.
  • the second parameter information is parameter information corresponding to the modified first parameter information.
  • the target program logic may be a preset algorithm logic stored in a target application program, and is used to provide a reference in the process of modifying the first parameter information and the first configuration data.
  • 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.
  • 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.
  • the hardware device may be marked as debugged.
  • the processing method based on hardware devices 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.
  • the method may further include:
  • the configuration status is a status corresponding to whether the hardware device has been configured.
  • Configuration states include: configured and unconfigured.
  • the debugging status is a status corresponding to whether the hardware device has completed debugging.
  • the debugging status includes: debugged and not debugged.
  • Controlling the work of the hardware device may include controlling operations such as turning the hardware device on, off, and setting the temperature.
  • the hardware device In the actual execution process, when the configuration status is displayed as configured in the acquired first configuration data and the hardware device has completed debugging, that is, has been debugged, the hardware device is controlled to work based on the status of the hardware device corresponding to the first configuration data.
  • 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 to configure and debug the hardware device, 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.
  • the target application 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.
  • the logic 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, and the second configuration data is sent to the target application. Then, debugging is performed based on the target program logic, and the first parameter information is modified to obtain the second parameter information.
  • the debugging status of the hardware device is marked as debugged, and the second parameter information of the hardware device is sent to the hardware device, and the second parameter information and the second configuration data are cached in the target application.
  • the configuration status of the hardware device is configured, and the debugging status is debugged.
  • 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.
  • the next operation of the hardware device is determined by determining the configuration status and debugging status of the hardware device displayed by the first configuration data.
  • the hardware device is controlled 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.
  • the method may further include:
  • the password information is the password corresponding to the hardware device.
  • the hardware device-based processing method 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.
  • step 130 may further include:
  • Step 140 may also include:
  • the encrypted second configuration data is sent to the hardware device.
  • the specific selection of the target decryption algorithm can be determined based on actual conditions and is not limited in this application.
  • the decrypted first configuration data is data that can be directly recognized by the user.
  • the target encryption algorithm is an encryption algorithm used to encrypt the second configuration data.
  • the specific selection of the target encryption algorithm can be determined based on actual conditions and is not limited in this application.
  • 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.
  • the acquired first configuration data is decrypted to obtain first configuration data that the user can identify, so that the user can modify the information in the first configuration data to obtain second configuration data for configuring the hardware device.
  • the second configuration data is encrypted and sent to the hardware device, thereby effectively ensuring the security of the data.
  • the target application 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.
  • the second configuration data may be stored in the cloud.
  • the second configuration data may be sent to the cloud for storage.
  • the second configuration data stored in the cloud may be modified, and the modified second configuration data may continue to be stored in the cloud for subsequent use.
  • the second configuration data modified in the cloud can be downloaded to the target application when no communication connection is established between the target application and the hardware device, thereby directly sending the modified second configuration data to the hardware device to process the hardware device and empower the hardware device that cannot connect to the external network.
  • the third processing module 430 may also be used to:
  • the apparatus may further include a sixth processing module, configured to:
  • the apparatus may further include a seventh processing module, configured to:
  • 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-based processing method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
  • the technical solution of the present application can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
  • a storage medium such as ROM/RAM, a disk, or an optical disk
  • a terminal which can be a mobile phone, a computer, a server, or a network device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Communication Control (AREA)

Abstract

本申请公开了一种基于硬件设备的处理方法、装置和处理系统,属于软件开发技术领域。基于硬件设备的处理方法,应用于目标应用程序,目标应用程序内封装有目标通信协议,方法包括:基于目标通信协议,获取硬件设备发送的硬件设备的第一配置数据;接收用户对目标应用程序的第一输入;响应于第一输入,修改第一配置数据,得到第二配置数据;基于目标通信协议将第二配置数据发送至硬件设备。

Description

基于硬件设备的处理方法、装置和处理系统
相关申请的交叉引用
本申请基于申请号为:2024100649010,申请日为2024年01月16日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本申请涉及软件开发技术领域,具体而言,涉及一种基于硬件设备的处理方法、装置和处理系统。
背景技术
现有的数字传感器以及温控器等硬件产品需要进行配置与调试。相关技术中,工程师主要在现场对硬件设备进行配置与调试等处理。但是,现场进行配置与调试往往缺少适配的工具,且在处理过程中存在网络以及供电等各种条件的限制,处理效率低以及配置过程较为困难,影响配置与调试效果。
发明内容
本申请旨在至少解决现有技术中存在的技术问题之一。为此,本申请提出一种基于硬件设备的处理方法、装置和处理系统,有效应对配置过程中网络以及供电等条件的限制,通过目标应用程序进行配置,提供专用的处理工具,操作简单便捷,提高配置的效率。
第一方面,本申请提供了一种基于硬件设备的处理方法,应用于目标应用程序,所述目标应用程序内封装有目标通信协议,该方法包括:
基于所述目标通信协议,获取硬件设备发送的所述硬件设备的第一配置数据;所述目标通信协议包括:近场通信协议以及无线局域网通信协议中的至少一种;
接收用户对所述目标应用程序的第一输入;
响应于所述第一输入,修改所述第一配置数据,得到第二配置数据;
基于所述目标通信协议将所述第二配置数据发送至所述硬件设备。
根据本申请的基于硬件设备的处理方法,通过目标通信协议中的近场通信协议或者无线局域网通信协议,获取硬件设备发送的硬件设备的第一配置数据,基于目标通信协议,有效将目标应用程序与硬件设备进行连接,使目标应用程序与硬件设备之间进行通信,有效获取硬件设备的第一配置数据,获取方式简单便捷,可操作性强;在用户具有修改需求的情况下,直接接收用户输入至目标应用程序中的数据,得到第二配置数据,基于目标应用程序中封装的通信方法,不受现场网络的限制,在具有修改需求的情况下直接进行数据的传输和修改;基于目标通信协议将第二配置数据发送至硬件设备,高效完成对硬件设备的配置,有效应对配置过程中网络以及供电等条件的限制,通过目标应用程序进行配置,提供专用的处理工具,操作简单便捷,提高配置的效率。
根据本申请的基于硬件设备的处理方法,在所述目标通信协议为无线局域网通信协议的情况下,所述修改所述第一配置数据,得到第二配置数据,包括:
基于目标程序逻辑修改所述第一配置数据,得到所述第二配置数据;所述目标程序逻辑存储于所述目标应用程序。
根据本申请的基于硬件设备的处理方法,在基于目标程序逻辑修改所述第一配置数据,得到所述第二配置数据之后,所述方法还包括:
基于所述目标程序逻辑,修改所述硬件设备对应的第一参数信息,得到第二参数信息;
基于所述目标通信协议将所述第二参数信息发送至所述硬件设备。
根据本申请的基于硬件设备的处理方法,在所述目标通信协议为所述无线局域网通信协议的情况下,所述第一配置数据包括所述硬件设备对应的第一点位信息以及用于与所述硬件设备连接的家电设备对应的第二点位信息。
根据本申请的基于硬件设备的处理方法,在所述基于所述目标通信协议,获取硬件设备发送的所述硬件设备的第一配置数据之后,所述方法包括:
在所述第一配置数据的配置状态为已配置且所述硬件设备的调试状态为已调试的情况下,基于所述第一配置数据控制所述硬件设备工作;
获取所述硬件设备的工作参数信息。
根据本申请的基于硬件设备的处理方法,在所述基于所述第一配置数据控制所述硬件设备工作之后,所述方法还包括:
接收用户的第二输入,所述第二输入用于输入所述硬件设备的密码信息;
在所述密码信息正确且确定返回调试状态的情况下,接收用户对所述目标应用程序的所述第一输入。
根据本申请的基于硬件设备的处理方法,所述修改所述第一配置数据,得到第二配置数据,包括:
基于目标解密算法解密所述第一配置数据,得到解密后的第一配置数据;
修改所述解密后的第一配置数据,得到所述第二配置数据;
所述基于所述目标通信协议将所述第二配置数据发送至所述硬件设备,包括:
基于目标加密算法加密所述第二配置数据,得到加密后的第二配置数据;
基于所述目标通信协议,将所述加密后的第二配置数据发送至所述硬件设备。
根据本申请的基于硬件设备的处理方法,在所述基于所述目标通信协议将所述第二配置数据发送至所述硬件设备之后,所述方法还包括:
将所述第二配置数据发送至云端进行存储;
修改所述云端内存储的所述第二配置数据,并在所述云端存储修改后的第二配置数据;
在所述目标应用程序基于所述目标通信协议建立与所述硬件设备之间的通信连接的情况下,所述目标应用程序从所述云端接收所述修改后的第二配置数据,并将所述修改后的第二配置数据发送至所述硬件设备。
第二方面,本申请提供了一种基于硬件设备的处理装置,应用于目标应用程序,所述目标应用程序内封装有目标通信协议,该装置包括:
第一处理模块,用于基于所述目标通信协议,获取硬件设备发送的所述硬件设备的第一配置数据;所述目标通信协议包括:近场通信协议以及无线局域网通信协议中的至少一种;
第二处理模块,用于接收用户对所述目标应用程序的第一输入;
第三处理模块,用于响应于所述第一输入,修改所述第一配置数据,得到第二配置数据;
第四处理模块,用于基于所述目标通信协议将所述第二配置数据发送至所述硬件设备。
根据本申请的基于硬件设备的处理装置,通过目标通信协议中的近场通信协议或者无线局域网通信协议,获取硬件设备发送的硬件设备的第一配置数据,基于目标通信协议,有效将目标应用程序与硬件设备进行连接,使目标应用程序与硬件设备之间进行通信,有效获取硬件设备的第一配置数据,获取方式简单便捷,可操作性强;在用户具有修改需求的情况下,直接接收用户输入至目标应用程序中的数据,得到第二配置数据,基于目标应用程序中封装的通信方法,不受现场网络的限制,在具有修改需求的情况下直接进行数据的传输和修改;基于目标通信协议将第二配置数据发送至硬件设备,高效完成对硬件设备的配置,有效应对配置过程中网络以及供电等条件的限制,通过目标应用程序进行配置,提供专用的处理工具,操作简单便捷,提高配置的效率。
第三方面,本申请提供了一种基于如第一方面所述的基于硬件设备处理方法的处理系统,包括:
数据获取模块;
用户输入模块;所述用户输入模块与所述数据获取模块连接;
处理模块;所述处理模块与所述用户输入模块连接。
第四方面,本申请提供了一种非暂态计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上述第一方面所述的基于硬件设备的处理方法。
第五方面,本申请提供了一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如上述第一方面所述的基于硬件设备的处理方法。
第六方面,本申请提供了一种计算机程序,计算机程序包括指令,所述指令被处理装置运行时,使所述处理装置执行如第一方面所述的基于硬件设备的处理方法。
第七方面,本申请提供了一种计算机设备,包括存储器、处理器及存储在存储器上的计算机程序,所述处理器执行所述计算机程序以实现如第一方面所述的基于硬件设备的处理方法。
本申请实施例中的上述一个或多个技术方案,至少具有如下技术效果之一:
通过目标通信协议中的近场通信协议或者无线局域网通信协议,获取硬件设备发送的硬件设备的第一配置数据,基于目标通信协议,有效将目标应用程序与硬件设备进行连接,使目标应用程序与硬件设备之间进行通信,有效获取硬件设备的第一配置数据,获取方式简单便捷,可操作性强;在用户具有修改需求的情况下,直接接收用户输入至目标应用程序中的数据,得到第二配置数据,基于目标应用程序中封装的通信方法,不受现场网络的限制,在具有修改需求的情况下直接进行数据的传输和修改;基于目标通信协议将第二配置数据发送至硬件设备,高效完成对硬件设备的配置,有效应对配置过程中网络以及供电等条件的限制,通过目标应用程序进行配置,提供专用的处理工具,操作简单便捷,提高配置的效率。
进一步地,在通过无线局域网通信协议对硬件设备进行配置的情况下,在对硬件设备进行配置的基础上,进一步的通过目标程序逻辑内的信息,修改硬件设备的逻辑参数中的第一参数信息,得到修改后的第二参数信息,以对硬件设备进行参数调试,使硬件设备处于所需的参数条件下,基于目标程序逻辑进行调试提供修改参考,便于对第一参数信息进行修改,基于目标通信协议通过目标应用程序发送第二参数信息至硬件设备,完成对硬件设备的调试,控制逻辑简单,操作便捷,功能更加强大多样。
更进一步地,通过确定用户输入的密码信息正确且确定用户需要返回调试状态,接收用户对目标应用程序的第一输入,基于硬件设备的实时运行状态以及当前需求,多次进行调试,以满足用户当前对硬件设备的需求,灵活性高,控制逻辑简单,调试效率高且能够有效保障调试的安全性。
再进一步地,通过将第二配置数据存储在云端,实现用户对第二配置数据的远程修改,无需用户处于配置现场,即可对第二配置数据进行修改,在对云端的第二配置数据进行修改之后,仍将修改后的第二配置数据存储在云端,在目标应用程序根据目标通信协议与硬件设备之间建立通信连接的情况下,将修改后的第二配置数据下载至目标应用程序,从而将修改后的第二配置数据下发至硬件设备,以完成对硬件设备的处理,在进行配置与调试前准备好所需的数据,无需在现场重新修改配置数据,显著提高配置与调试的效率,节省时间。
本申请的附加方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本申请的实践了解到。
附图说明
本申请的上述和/或附加的方面和优点从结合下面附图对实施例的描述中将变得明显和容易理解,其中:
图1是本申请实施例提供的基于硬件设备的处理方法的流程示意图之一;
图2是本申请实施例提供的基于硬件设备的处理方法的流程示意图之二;
图3是本申请实施例提供的基于硬件设备的处理方法的流程示意图之三;
图4是本申请实施例提供的基于硬件设备的处理装置的结构示意图;
图5是本申请实施例提供的电子设备的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的基于硬件设备的处理方法、基于硬件设备的处理装置、应用程序和可读存储介质进行详细地说明。
其中,基于硬件设备的处理方法可应用于终端,具体可由,终端中的硬件或软件执行。
该终端包括但不限于移动电话或平板电脑等便携式通信设备。还应当理解的是,在某些实施例中,该终端可以不是便携式通信设备,而是台式计算机。
以下各个实施例中,描述了包括显示器和触摸敏感表面的终端。然而,应当理解的是,终端可以包括诸如物理键盘、鼠标和控制杆的一个或多个其它物理用户接口设备。
本申请实施例提供的基于硬件设备的处理方法,该基于硬件设备的处理方法的执行主体可以为电子设备或者电子设备中能够实现该基于硬件设备的处理方法的功能模块或功能实体,本申请实施例提及的电子设备包括但不限于手机、平板电脑、电脑、相机和可穿戴设备等,下面以电子设备作为执行主体为例对本申请实施例提供的基于硬件设备的处理方法进行说明。
如图1所示,该基于硬件设备的处理方法应用于目标应用程序,目标通信协议封装在目标应用程序中,该方法包括:步骤110、步骤120、步骤130和步骤140。
目标应用程序为对硬件设备进行配置、调制以及控制所用的应用程序。
目标应用程序可以基于Flutter框架实现。
当然,目标应用程序还可以基于其他任意可实现的方式进行开发。
目标应用程序可以支持多平台(如安卓以及ios等平台)。
步骤110、基于目标通信协议,获取硬件设备发送的硬件设备的第一配置数据;
在该步骤中,目标通信协议为硬件设备和目标应用程序能够进行通信的协议。
基于目标通信协议可以对硬件设备进行调试、配置以及控制等操作。
硬件设备包括:数字传感器以及温控器等硬件设备。
第一配置数据为对硬件设备进行配置所需的数据。
如图2所示,在一些实施例中,目标通信协议可以包括:无线局域网通信协议以及近场通信协议中的至少一种。
在该实施例中,近场通信协议为在硬件设备与目标应用程序间隔目标区域内进行数据交换的协议。
目标区域的具体数值可以基于实际情况确定,本申请不作限定。
无线局域网通信协议为应用无线通信技术将硬件设备与目标应用程序互联,构成可以互相通信和实现资源共享的通信协议。
在实际执行过程中,可以基于实际需求,选择目标通信协议中的其中一个对硬件设备进行配置。
可以理解的是,在进入目标应用程序之后,在目标应用程序的数字传感器页面可以选择近场通信协议或者无线局域网通信协议。
在实际执行过程中,在目标通信协议为近场通信协议的情况下,可以将目标应用程序放置于硬件设备的近场通信芯片的目标区域内,使目标应用程序与硬件设备连接以进行通信,从而读取硬件设备的输入输出通达发送的第一配置数据。
目标区域的具体大小可以基于近场通信芯片确定,本申请不作限定。
如图2所示,在实际执行过程中,在目标应用程序与硬件设备通过近场通信协议进行连接的情况下,目标应用程序与硬件设备建立通信连接失败目标次数或者建立通信连接的时长超过目标时长的情况下,可以适当调整目标应用程序放置的位置,再次将目标应用程序与硬件设备通过近场通信协议进行连接,以进行数据交互。
继续参考图2,在用户选择的目标通信协议是无线局域网通信协议时,使硬件设备开启接入点模式,启动HTTP,然后进行热点连接,开启目标应用程序所在电子设备的无线局域网,连接无线局域网将目标应用程序所在的电子设备接入硬件设备的接入点服务所对应的网络,使目标应用程序与硬件设备进行通信和交互,获取硬件设备发送到目标应用程序的第一配置数据。
在一些实施例中,在目标通信协议是无线局域网通信协议的情况下,第一配置数据包括用于与硬件设备连接的家电设备对应的第二点位信息以及硬件设备对应的第一点位信息。
在该实施例中,第一点位信息为硬件设备的开启点位、关闭点位以及温度点位等点位的信息。
家电设备为可以与硬件设备连接的一些家电设备,包括:冰箱、空调以及灯具等。
第二点位信息为家电设备对应的虚拟设备的点位信息。
可以理解的是,目标通信协议是无线局域网通信协议与目标通信协议为近场通信协议获取的第一配置数据不同。
在目标通信协议为近场通信协议的情况下,获取的第一配置数据为硬件设备的基础属性数据以及网络信息数据。
第一配置数据可以包括:硬件设备的产品型号、软件版本、硬件设备的通讯地址等数据。
在第一配置数据的配置数量较少,在配置数据整体少于目标字节、硬件设备的实时参数数据不是主要的参数属性且需要在硬件设备不上电的情况下进行预先配置的情况下,可以选取目标通信协议为近场通信协议对硬件设备进行配置。
目标字节的具体大小可以基于实际情况确定,本申请不作限定,例如,目标字节可以是888字节。
在目标通信协议是无线局域网通信协议时,获取的第一配置数据为硬件设备的实时点位信息以及点位控制指令等信息。
在需要获取硬件设备的实时点位信息、下发点位控制指令以及配置数量不少于目标字节的情况下,可以选取目标通信协议是无线局域网通信协议对硬件设备进行配置。
根据本申请实施例提供的基于硬件设备的处理方法,通过确定目标通信协议的具体为哪一种,确定第一配置数据的具体信息,在目标通信协议是无线局域网通信协议时,确定第一配置数据包括第一点位信息与第二点位信息,进行配置的数据较大且能够获取硬件设备的实时点位信息并下发控制指令,有效获取更多信息,且获取方式简单。
步骤120、接收用户对目标应用程序的第一输入;
在该步骤中,第一输入用于输入用户修改的第一配置数据。
其中,第一输入可以为如下至少一种方式:
其一,第一输入可以为触控操作,包括但不限于点击操作、滑动操作和按压操作等。
在该实施方式中,接收用户的第一输入,可以为,接收用户在终端显示屏的显示区域的触控操作。
为了降低用户误操作率,可以将第一输入的作用区域限定在特定的区域内,比如修改界面的上部中间区域;或者在显示修改界面的状态下,在当前界面显示目标控件,触摸目标控件,即可实现第一输入;或者将第一输入设置为在目标时间间隔内对显示区域的连续多次敲击操作。
其二,第一输入可以为实体按键输入。
在该实施方式中,终端的机身上设有与修改对应的实体按键,接收用户的第一输入,可以为,接收用户按压对应的实体按键的操作;第一输入还可以为同时按压多个实体按键的组合操作。
其三,第一输入可以为语音输入。
在该实施方式中,终端可以在接收到语音如“将通讯地址修改为A”时,将第一配置数据中原有的通信地址修改为A。
当然,在其他实施例中,第一输入也可以为其他形式,包括但不限于字符输入等,具体可根据实际需要决定,本申请实施例对此不作限定。
步骤130、响应于第一输入,修改第一配置数据,得到第二配置数据;
在该步骤中,第二配置数据为修改后的第一配置数据。
在实际执行过程中,目标通信协议不同,修改第一配置数据的方式可能也有所不同。
如,在目标通信协议是近场通信协议时,修改第一配置数据可以是在目标应用程序内的修改页面,直接修改第一配置数据,修改的第一配置数据可以是硬件设备的通讯地址、IP地址以及开关无线局域网等数据,将修改后的第一配置数据确定为第二配置数据。
又如,在目标通信协议是无线局域网通信协议时,可以修改第一配置数据对应的配置文件中的数据,将修改后的配置文件对应的数据确定为第二配置数据。
在一些实施例中,在目标通信协议是无线局域网通信协议的情况下,步骤130还可以包括:
基于目标程序逻辑修改第一配置数据,得到第二配置数据。
在该实施例中,目标程序逻辑能够存储在目标应用程序中。
目标程序逻辑为预先定义的对硬件设备进行配置与调试需要参照的程序逻辑。
在实际执行过程中,可以通过协商好的接口将目标程序逻辑导入至目标应用程序。
协商好的接口包括:登录接口、上传接口、下载接口以及HTTP接口等接口。
可以理解的是,不同的硬件设备对应的目标程序逻辑可能不同。
在实际执行过程中,可以基于目标程序逻辑的具体内容,确定如何修改第一配置数据,从而得到修改后的第一配置数据,即第二配置数据。
根据本申请实施例提供的基于硬件设备的处理方法,通过确定目标通信协议是无线局域网通信协议,基于目标程序逻辑的具体内容修改第一配置数据,得到第二配置数据,提供修改第一配置数据的参考信息,提高修改第一配置数据的效率,简单便捷,操作简单。
步骤140、基于目标通信协议将第二配置数据发送至硬件设备。
在该步骤中,目标通信协议不同,发送第二参数信息的方式也不同。
在目标通信协议为近场通信协议的情况下,可以将目标应用程序放置在硬件设备的近场通信芯片的目标区域内,通过点击下发配置的按键,将第二配置数据发送到需要配置的硬件设备中。
在目标通信协议是无线局域网通信协议时,可以通过目标应用程序将第二配置数据发送至硬件设备,完成对硬件设备的配置。
可以理解的是,在完成对硬件设备的配置之后,将把硬件设备的配置状态标记为已配置。
根据本申请实施例提供的基于硬件设备的处理方法,通过目标通信协议中的近场通信协议或者无线局域网通信协议,得到发送到目标应用程序的硬件设备的第一配置数据,基于目标通信协议,有效将目标应用程序与硬件设备进行连接,使目标应用程序与硬件设备之间进行通信,有效获取硬件设备中的第一配置数据,获取方式简单便捷,可操作性强;在用户具有修改需求的情况下,直接接收用户输入至目标应用程序中的数据,得到修改第一配置数据之后对应的第二配置数据,基于目标应用程序中封装的通信方法,不受现场网络的限制,在具有修改需求的情况下直接进行数据的传输和修改;基于目标通信协议,通过目标应用程序将第二配置数据下发至硬件设备,高效完成对硬件设备的配置,有效应对配置过程中网络以及供电等条件的限制,通过目标应用程序进行配置,提供专用的处理工具,操作简单便捷,提高配置的效率。
在一些实施例中,在基于目标程序逻辑修改第一配置数据,得到第二配置数据之后,该方法还可以包括:
基于目标程序逻辑,修改硬件设备对应的第一参数信息,得到第二参数信息;
基于目标通信协议将第二参数信息发送至硬件设备。
在该实施例中,第一参数信息为对硬件设备进行调试所需的参数信息。
第二参数信息为修改后的第一参数信息对应的参数信息。
目标程序逻辑可以为预先设置的存储于目标应用程序中的算法逻辑,用于在修改第一参数信息和第一配置数据的过程中提供参考。
在实际执行过程中,可以基于目标程序逻辑的具体内容,修改硬件设备的第一参数信息,得到修改后的第二参数信息,然后基于目标通信协议对应的发送方式通过目标应用程序发送第二参数信息到硬件设备内,从而完成对硬件设备的调试。
可以理解的是,用户可以选择组合式空调箱、预冷空调箱以及旁通阀控制等对应的目标程序逻辑,并进行模块和通道匹配。
在实际执行过程中,在硬件设备完成调试后,可以把硬件设备标记为已调试。
根据本申请实施例提供的基于硬件设备的处理方法,在通过无线局域网通信协议对硬件设备进行配置的情况下,在对硬件设备进行配置的基础上,进一步的通过目标程序逻辑内的信息,修改硬件设备的逻辑参数中的第一参数信息,得到修改后的第二参数信息,以对硬件设备进行参数调试,使硬件设备处于所需的参数条件下,基于目标程序逻辑进行调试提供修改参考,便于对第一参数信息进行修改,基于目标通信协议通过目标应用程序发送第二参数信息至硬件设备,完成对硬件设备的调试,控制逻辑简单,操作便捷,功能更加强大多样。
在一些实施例中,在基于目标通信协议,获取硬件设备发送的硬件设备的第一配置数据之后,该方法还可以包括:
在第一配置数据的配置状态为已配置且硬件设备的调试状态为已调试的情况下,基于第一配置数据控制硬件设备工作;
获取硬件设备的工作参数信息。
在该实施例中,配置状态为硬件设备是否已经进行配置对应的状态。
配置状态包括:已配置和未配置。
调试状态为硬件设备是否已经完成调试对应的状态。
调试状态包括:已调试和未调试。
控制硬件设备工作可以是控制硬件设备的开启、关闭以及温度的设置等操作。
在实际执行过程中,在获取的第一配置数据中显示配置状态为已配置且硬件设备完成调试,即已调试时,基于第一配置数据对应的硬件设备的状态控制硬件设备工作。
在获取的第一配置数据中显示配置状态为未配置和硬件设备的调制状态为未调试中的至少一种的情况下,基于第一配置数据进行修改,对硬件设备进行配置与调试,基于配置与调试后的配置数据对应的硬件设备的状态通过目标应用程序控制硬件设备工作。
继续参考图2,在选择无线局域网通信协议进行通信的情况下,通过热点将目标应用程序与硬件设备的接入点服务对应的网络进行连接,获取硬件设备的第一配置数据,在第一配置数据内显示硬件设备未配置且未调试时,可以进入逻辑配置页面,基于目标程序逻辑中的程序逻辑修改第一配置数据,得到修改后的第一配置数据对应的第二配置数据,将第二配置数据发送到目标应用程序,然后基于目标程序逻辑进行调试,修改第一参数信息得到第二参数信息,在调试完成的情况下,将硬件设备的调试状态标记为已调试,并发送硬件设备的第二参数信息到硬件设备,并将第二参数信息以及第二配置数据缓存在目标应用程序中,此时,硬件设备的配置状态为已配置,调试状态为已调试,可以基于当前硬件设备的状态,向硬件设备下发控制指令,控制该硬件设备开启或者设置其温度为某一数值。
根据本申请实施例提供的基于硬件设备的处理方法,通过确定第一配置数据显示的硬件设备的配置情况与调试情况,确定对硬件设备的下一步的操作,在确定硬件设备完成配置与调制时,根据第一配置数据对应的硬件设备的实时状态信息控制硬件设备工作,控制逻辑简单,操作便捷。
在一些实施例中,在基于第一配置数据控制硬件设备工作之后,该方法还可以包括:
接收用户的第二输入;
在密码信息正确且确定返回调试状态的情况下,接收用户对目标应用程序的第一输入。
在该实施例中,第二输入用于输入硬件设备的密码信息。
第二输入可以为与第一输入相同的触控输入、实体按键输入、语音输入、字符输入以及其他任意可实现的输入,本申请在此不作赘述。
密码信息为硬件设备对应的密码。
在实际执行过程中,在接收到用户的第二输入并且第二输入对应的信息与硬件设备对应的密码一致且用户选择返回调试状态时,接收用户在目标应用程序中的第一输入,继续对硬件设备进行调试。
根据本申请实施例提供的基于硬件设备的处理方法,通过确定用户输入的密码信息正确且确定用户需要返回调试状态,接收用户对目标应用程序的第一输入,基于硬件设备的实时运行状态以及当前需求,多次进行调试,以满足用户当前对硬件设备的需求,灵活性高,控制逻辑简单,调试效率高且能够有效保障调试的安全性。
在一些实施例中,步骤130还可以包括:
基于目标解密算法解密第一配置数据,得到解密后的第一配置数据;
修改解密后的第一配置数据,得到第二配置数据;
步骤140还可以包括:
基于目标加密算法加密第二配置数据,得到加密后的第二配置数据;
基于目标通信协议,将加密后的第二配置数据发送至硬件设备。
在该实施例中,目标解密算法为解密第一配置数据所用的算法。
目标解密算法的具体选择可以基于实际情况确定,本申请不作限定。
解密后的第一配置数据为用户可以直接识别的数据。
目标加密算法为对第二配置数据进行加密所用的加密算法。
目标加密算法的具体选择可以基于实际情况确定,本申请不作限定。
在实际执行过程中,获取的硬件设备发送的硬件设备中的第一配置数据为加密的数据,通过目标解密算法对第一配置数据解密,得到用户能够识别的解密后的第一配置数据,对解密后获得的用户可以识别的第一配置数据进行修改得到第二配置数据。
在将第二配置数据下发到硬件设备,完成对硬件设备的配置之前,需要通过目标加密算法对第二配置数据进行加密,将加密后的第二配置数据下发到硬件设备。
根据本申请实施例提供的基于硬件设备的处理方法,通过对获取的第一配置数据进行解密,得到用户可以识别的第一配置数据,从而使用户可以修改第一配置数据中的信息,得到对硬件设备进行配置的第二配置数据,在得到所需的第二配置数据之后对第二配置数据进行加密,发送加密后的第二配置数据到硬件设备,有效保障数据的安全性。
如图3所示,在一些实施例中,在步骤140之后,该方法还可以包括:
将第二配置数据发送至云端进行存储;
修改云端内存储的第二配置数据,并在云端存储修改后的第二配置数据;
在目标应用程序基于目标通信协议建立与硬件设备之间的通信连接的情况下,目标应用程序从云端接收修改后的第二配置数据,并将修改后的第二配置数据发送至硬件设备。
在该实施例中,云端为应用程序的虚拟化技术的软件平台。
云端可以进行数据存储、数据共享和数据备份等操作。
第二配置数据可以存储在云端。
通信连接为目标应用程序与硬件设备之间可以进行通信。
在实际执行过程中,第二配置数据可以发送至云端进行存储,在实际应用场景下,可以修改存储在云端的第二配置数据,并将修改之后的第二配置数据继续存储在云端,以供后续使用。
在目标应用程序根据目标通信协议与硬件设备之间建立通信连接时,可以将目标应用程序与硬件设备没有建立通信连接的情况下,在云端修改的第二配置数据下载至目标应用程序中,从而直接将修改后的第二配置数据下发至硬件设备,以对硬件设备进行处理,为不能连接外网的硬件设备赋能。
继续参考图3,在一些实施例中,将第二配置数据发送至云端进行存储,可以先登录云端账号,进入之后对功能清单进行选择。
功能清单包括:数字传感器系列产品模块、配置管理模块以及首页模块。
在数字传感器系列产品模块可以选择对应的传感器类型。
在配置管理模块可以对硬件设备的配置进行管理,包括本地配置管理和云端配置管理。
其中,本地配置管理包括:将第二配置数据分享至第三方、将第二配置数据导入目标应用程序以及将第二配置数据上传到云端。
云端配置管理包括:将云端的第二配置数据下载到目标应用程序、基于第二配置数据对应的内容对第二配置数据进行分类以及对第二配置数据进行预编辑。
在首页模块可以管理用户的基本信息,并选择退出当前登录状态。
根据本申请实施例提供的基于硬件设备的处理方法,通过将第二配置数据存储在云端,实现用户对第二配置数据的远程修改,无需用户处于配置现场,即可对第二配置数据进行修改,在对云端的第二配置数据进行修改之后,仍将修改后的第二配置数据存储在云端,在目标应用程序根据目标通信协议与硬件设备之间建立通信连接的情况下,将修改后的第二配置数据下载至目标应用程序,从而将修改后的第二配置数据下发至硬件设备,以完成对硬件设备的处理,在进行配置与调试前准备好所需的数据,无需在现场重新修改配置数据,显著提高配置与调试的效率,节省时间。
本申请实施例提供的基于硬件设备的处理方法,执行主体可以为基于硬件设备的处理装置。本申请实施例中以基于硬件设备的处理装置执行基于硬件设备的处理方法为例,说明本申请实施例提供的基于硬件设备的处理装置。
本申请实施例还提供一种基于硬件设备的处理装置,应用于目标应用程序,目标应用程序内封装有目标通信协议。
如图4所示,该基于硬件设备的处理装置包括:第一处理模块410、第二处理模块420、第三处理模块430和第四处理模块440。
第一处理模块410,用于基于目标通信协议,获取硬件设备发送至硬件设备的第一配置数据;目标通信协议包括:近场通信协议以及无线局域网通信协议中的至少一种;
第二处理模块420,用于接收用户对目标应用程序的第一输入;
第三处理模块430,用于响应于第一输入,修改第一配置数据,得到第二配置数据;
第四处理模块440,用于基于目标通信协议将第二配置数据发送至硬件设备。
根据本申请实施例提供的基于硬件设备的处理装置,通过目标通信协议中的近场通信协议或者无线局域网通信协议,得到发送到目标应用程序的硬件设备的第一配置数据,基于目标通信协议,有效将目标应用程序与硬件设备进行连接,使目标应用程序与硬件设备之间进行通信,有效获取硬件设备中的第一配置数据,获取方式简单便捷,可操作性强;在用户具有修改需求的情况下,直接接收用户输入至目标应用程序中的数据,得到修改第一配置数据之后对应的第二配置数据,基于目标应用程序中封装的通信方法,不受现场网络的限制,在具有修改需求的情况下直接进行数据的传输和修改;基于目标通信协议,通过目标应用程序将第二配置数据下发至硬件设备,高效完成对硬件设备的配置,有效应对配置过程中网络以及供电等条件的限制,通过目标应用程序进行配置,提供专用的处理工具,操作简单便捷,提高配置的效率。
在一些实施例中,第三处理模块430还可以用于:
基于目标程序逻辑修改第一配置数据,得到第二配置数据;目标程序逻辑存储于目标应用程序。
在一些实施例中,该装置还可以包括第五处理模块,用于:
基于目标程序逻辑,修改硬件设备对应的第一参数信息,得到第二参数信息;
基于目标通信协议将第二参数信息发送至硬件设备。
在一些实施例中,该装置还可以包括第六处理模块,用于:
在第一配置数据的配置状态为已配置且硬件设备的调试状态为已调试的情况下,基于第一配置数据控制硬件设备工作;
获取硬件设备的工作参数信息。
在一些实施例中,该装置还可以包括第七处理模块,用于:
接收用户的第二输入,第二输入用于输入硬件设备的密码信息;
在密码信息正确且确定返回调试状态的情况下,接收用户对目标应用程序的第一输入。
在一些实施例中,第三处理模块430还可以用于:
修改第一配置数据,得到第二配置数据,包括:
基于目标解密算法解密第一配置数据,得到解密后的第一配置数据;
修改解密后的第一配置数据,得到第二配置数据;
第四处理模块440还可以用于:
基于目标加密算法加密第二配置数据,得到加密后的第二配置数据;
基于目标通信协议,将加密后的第二配置数据发送至硬件设备。
在一些实施例中,该装置还可以包括第八处理模块,用于:
将第二配置数据发送至云端进行存储;
修改云端内存储的第二配置数据,并在云端存储修改后的第二配置数据;
在目标应用程序基于目标通信协议建立与硬件设备之间的通信连接的情况下,目标应用程序从云端接收修改后的第二配置数据,并将修改后的第二配置数据发送至硬件设备。
本申请实施例中的基于硬件设备的处理装置可以是电子设备,也可以是电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性的,电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、移动上网装置(Mobile Internet Device,MID)、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、机器人、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,还可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的基于硬件设备的处理装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为IOS操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。
本申请实施例提供的基于硬件设备的处理装置能够实现图1至图3的方法实施例实现的各个过程,为避免重复,这里不再赘述。
本申请实施例还提供一种基于如上任意实施例所述的基于硬件设备处理方法的处理系统,包括:数据获取模块、用户输入模块以及处理模块。
在该实施例中,数据获取模块封装有目标通信协议。
数据获取模块基于目标通信协议获取硬件设备的第一配置数据。
用户输入模块用于接收用户输入的与第一配置数据对应的修改数据。
用户输入模块与数据获取模块连接。
处理模块与用户输入模块连接。
根据本申请实施例提供的基于如上任意实施例所述的基于硬件设备处理方法的处理系统,通过目标通信协议中的近场通信协议或者无线局域网通信协议,得到发送到目标应用程序的硬件设备的第一配置数据,基于目标通信协议,有效将目标应用程序与硬件设备进行连接,使目标应用程序与硬件设备之间进行通信,有效获取硬件设备中的第一配置数据,获取方式简单便捷,可操作性强;在用户具有修改需求的情况下,直接接收用户输入至目标应用程序中的数据,得到修改第一配置数据之后对应的第二配置数据,基于目标应用程序中封装的通信方法,不受现场网络的限制,在具有修改需求的情况下直接进行数据的传输和修改;基于目标通信协议,通过目标应用程序将第二配置数据下发至硬件设备,高效完成对硬件设备的配置,有效应对配置过程中网络以及供电等条件的限制,通过目标应用程序进行配置,提供专用的处理工具,操作简单便捷,提高配置的效率。
在一些实施例中,如图5所示,本申请实施例还提供一种电子设备500,包括处理器501、存储器502及存储在存储器502上并可在处理器501上运行的计算机程序,该程序被处理器501执行时实现上述基于硬件设备的处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。
本申请实施例还提供一种非暂态计算机可读存储介质,该非暂态计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述基于硬件设备的处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器ROM、随机存取存储器RAM、磁碟或者光盘等。
本申请实施例还提供一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现上述基于硬件设备的处理方法。
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器ROM、随机存取存储器RAM、磁碟或者光盘等。
本申请实施例还提供了一种计算机程序,计算机程序包括指令,该指令被处理装置运行时,使处理装置执行上述基于硬件设备的处理方法。
本申请实施例还提供了一种计算机设备,包括存储器、处理器及存储在存储器上的计算机程序,处理器执行计算机程序以实现上述硬件设备的处理方法。
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述基于硬件设备的处理方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示意性实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。
尽管已经示出和描述了本申请的实施例,本领域的普通技术人员可以理解:在不脱离本申请的原理和宗旨的情况下可以对这些实施例进行多种变化、修改、替换和变型,本申请的范围由权利要求及其等同物限定。

Claims (14)

  1. 一种基于硬件设备的处理方法,其特征在于,应用于目标应用程序,所述目标应用程序内封装有目标通信协议,所述方法包括:
    基于所述目标通信协议,获取硬件设备发送的所述硬件设备的第一配置数据;所述目标通信协议包括:近场通信协议以及无线局域网通信协议中的至少一种;
    接收用户对所述目标应用程序的第一输入;
    响应于所述第一输入,修改所述第一配置数据,得到第二配置数据;
    基于所述目标通信协议将所述第二配置数据发送至所述硬件设备。
  2. 根据权利要求1所述的基于硬件设备的处理方法,其特征在于,在所述目标通信协议为无线局域网通信协议的情况下,所述修改所述第一配置数据,得到第二配置数据,包括:
    基于目标程序逻辑修改所述第一配置数据,得到所述第二配置数据;所述目标程序逻辑存储于所述目标应用程序。
  3. 根据权利要求2所述的基于硬件设备的处理方法,其特征在于,在基于目标程序逻辑修改所述第一配置数据,得到所述第二配置数据之后,所述方法还包括:
    基于所述目标程序逻辑,修改所述硬件设备对应的第一参数信息,得到第二参数信息;
    基于所述目标通信协议将所述第二参数信息发送至所述硬件设备。
  4. 根据权利要求1-3任一项所述的基于硬件设备的处理方法,其特征在于,在所述目标通信协议为所述无线局域网通信协议的情况下,所述第一配置数据包括所述硬件设备对应的第一点位信息以及用于与所述硬件设备连接的家电设备对应的第二点位信息。
  5. 根据权利要求1-4任一项所述的基于硬件设备的处理方法,其特征在于,在所述基于所述目标通信协议,获取硬件设备发送的所述硬件设备的第一配置数据之后,所述方法包括:
    在所述第一配置数据的配置状态为已配置且所述硬件设备的调试状态为已调试的情况下,基于所述第一配置数据控制所述硬件设备工作;
    获取所述硬件设备的工作参数信息。
  6. 根据权利要求5所述的基于硬件设备的处理方法,其特征在于,在所述基于所述第一配置数据控制所述硬件设备工作之后,所述方法还包括:
    接收用户的第二输入,所述第二输入用于输入所述硬件设备的密码信息;
    在所述密码信息正确且确定返回调试状态的情况下,接收用户对所述目标应用程序的所述第一输入。
  7. 根据权利要求1-6任一项所述的基于硬件设备的处理方法,其特征在于,
    所述修改所述第一配置数据,得到第二配置数据,包括:
    基于目标解密算法解密所述第一配置数据,得到解密后的第一配置数据;
    修改所述解密后的第一配置数据,得到所述第二配置数据;
    所述基于所述目标通信协议将所述第二配置数据发送至所述硬件设备,包括:
    基于目标加密算法加密所述第二配置数据,得到加密后的第二配置数据;
    基于所述目标通信协议,将所述加密后的第二配置数据发送至所述硬件设备。
  8. 根据权利要求1-7任一项所述的基于硬件设备的处理方法,其特征在于,在所述基于所述目标通信协议将所述第二配置数据发送至所述硬件设备之后,所述方法还包括:
    将所述第二配置数据发送至云端进行存储;
    修改所述云端内存储的所述第二配置数据,并在所述云端存储修改后的第二配置数据;
    在所述目标应用程序基于所述目标通信协议建立与所述硬件设备之间的通信连接的情况下,所述目标应用程序从所述云端接收所述修改后的第二配置数据,并将所述修改后的第二配置数据发送至所述硬件设备。
  9. 一种基于硬件设备的处理装置,其特征在于,应用于目标应用程序,所述目标应用程序内封装有目标通信协议,所述装置包括:
    第一处理模块,用于基于所述目标通信协议,获取硬件设备发送的所述硬件设备的第一配置数据;所述目标通信协议包括:近场通信协议以及无线局域网通信协议中的至少一种;
    第二处理模块,用于接收用户对所述目标应用程序的第一输入;
    第三处理模块,用于响应于所述第一输入,修改所述第一配置数据,得到第二配置数据;
    第四处理模块,用于基于所述目标通信协议将所述第二配置数据发送至所述硬件设备。
  10. 一种基于如权利要求1-8任一项所述的基于硬件设备的处理方法的处理系统,其特征在于,包括:
    数据获取模块;
    用户输入模块;所述用户输入模块与所述数据获取模块连接;
    处理模块;所述处理模块与所述用户输入模块连接。
  11. 一种非暂态计算机可读存储介质,其上存储有计算机程序,其特征在于,该计算机程序被处理器执行时实现如权利要求1-8任一项所述的基于硬件设备的处理方法。
  12. 一种计算机程序产品,包括计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1-8任一项所述的基于硬件设备的处理方法。
  13. 一种计算机程序,所述计算机程序包括指令,其特征在于,所述指令被处理装置运行时,使所述处理装置执行如权利要求1-8任一项所述的基于硬件设备的处理方法。
  14. 一种计算机设备,包括存储器、处理器及存储在存储器上的计算机程序,其特征在于,所述处理器执行所述计算机程序以实现如权利要求1-8任一项所述的基于硬件设备的处理方法。
PCT/CN2025/071316 2024-01-16 2025-01-08 基于硬件设备的处理方法、装置和处理系统 Pending WO2025152829A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202410064901.0A CN120343571A (zh) 2024-01-16 2024-01-16 基于硬件设备的处理方法、装置和处理系统
CN202410064901.0 2024-01-16

Publications (1)

Publication Number Publication Date
WO2025152829A1 true WO2025152829A1 (zh) 2025-07-24

Family

ID=96367844

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2025/071316 Pending WO2025152829A1 (zh) 2024-01-16 2025-01-08 基于硬件设备的处理方法、装置和处理系统

Country Status (2)

Country Link
CN (1) CN120343571A (zh)
WO (1) WO2025152829A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130254750A1 (en) * 2010-11-25 2013-09-26 Freescale Semiconductor, Inc. Method of debugging software and corresponding computer program product
CN103678078A (zh) * 2012-09-25 2014-03-26 深圳市中兴微电子技术有限公司 一种调试系统及方法
CN110543335A (zh) * 2019-08-15 2019-12-06 上海易点时空网络有限公司 应用程序配置管理方法及系统
CN110569085A (zh) * 2019-08-15 2019-12-13 上海易点时空网络有限公司 配置文件加载方法及系统
CN116974945A (zh) * 2023-08-29 2023-10-31 深圳中微电科技有限公司 一种基于qemu仿真的硬件调试系统及调试方法
CN117270942A (zh) * 2023-09-08 2023-12-22 杭州萤石软件有限公司 应用程序生成方法、系统、装置、电子设备及存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130254750A1 (en) * 2010-11-25 2013-09-26 Freescale Semiconductor, Inc. Method of debugging software and corresponding computer program product
CN103678078A (zh) * 2012-09-25 2014-03-26 深圳市中兴微电子技术有限公司 一种调试系统及方法
CN110543335A (zh) * 2019-08-15 2019-12-06 上海易点时空网络有限公司 应用程序配置管理方法及系统
CN110569085A (zh) * 2019-08-15 2019-12-13 上海易点时空网络有限公司 配置文件加载方法及系统
CN116974945A (zh) * 2023-08-29 2023-10-31 深圳中微电科技有限公司 一种基于qemu仿真的硬件调试系统及调试方法
CN117270942A (zh) * 2023-09-08 2023-12-22 杭州萤石软件有限公司 应用程序生成方法、系统、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN120343571A (zh) 2025-07-18

Similar Documents

Publication Publication Date Title
CN102930705B (zh) 一种设备控制方法和装置
CN102707994B (zh) 局域网络中手持移动设备控制电脑的方法
CN108021382A (zh) 一种嵌入式设备远程升级系统、方法以及嵌入式设备
CN110430280B (zh) 账号自动登录方法及系统、存储介质及云桌面服务器
US20150200975A1 (en) Tool for Sharing Applications Across Client Devices
CN105629786B (zh) 一种家电控制指令发送方法及装置
TWI463364B (zh) 觸控裝置之外部操作系統與方法
CN105389175A (zh) 一种应用程序共享方法及移动终端
CN108733403B (zh) 一种bios设置方法和装置
JP2015166971A (ja) 情報処理装置、情報処理システム、情報処理方法、及び、情報処理プログラム
CN103546345A (zh) 一种测试通信设备性能的方法及装置
CN103634419B (zh) 终端的远程控制方法及终端
CN112416195A (zh) 设备控制功能的生成方法和装置
CN107515740A (zh) 移动终端的远程控制方法、装置及系统
CN106952426B (zh) 数据处理方法及装置
WO2018000623A1 (zh) 一种网页的操控方法及装置
CN102736926B (zh) 一种基于任务模板的升级方法及装置、批量升级系统
WO2025152829A1 (zh) 基于硬件设备的处理方法、装置和处理系统
CN116127426A (zh) 一种设备控制方法、装置、存储介质及电子设备
CN118672685B (zh) 目标文件重定向方法及装置、计算机设备
WO2011006363A1 (zh) 一种基于即时通信系统的远程服务系统和方法
JP2007251630A (ja) リモートデスクトップ表示方法
CN108595973B (zh) 指令确定方法、设备控制方法、装置和系统
CN108418869B (zh) 一种应用程序的分享、安装方法、装置、系统和介质
CN113326223A (zh) 一种信息交互、串口配置方法、装置、设备和介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 25741391

Country of ref document: EP

Kind code of ref document: A1