Disclosure of Invention
The present application aims to solve at least one of the technical problems existing in the prior art. Therefore, the processing method, the device and the processing system based on the hardware equipment effectively limit the conditions of network, power supply and the like in the configuration process, the configuration is carried out through the target application program, a special processing tool is provided, the operation is simple and convenient, and the configuration efficiency is improved.
In a first aspect, the present application provides a processing method based on a hardware device, applied to a target application program, where a target communication protocol is encapsulated in the target application program, the method includes:
acquiring first configuration data of the hardware equipment, which is sent by the hardware equipment, based on the target communication protocol, wherein the target communication protocol comprises at least one of a near field communication protocol and a wireless local area network communication protocol;
Receiving a first input of a user to the target application;
Modifying the first configuration data in response to the first input to obtain second configuration data;
The second configuration data is sent to the hardware device based on the target communication protocol.
According to the processing method based on the hardware equipment, the first configuration data of the hardware equipment transmitted by the hardware equipment is acquired through the near field communication protocol or the wireless local area network communication protocol in the target communication protocol, the target application program is effectively connected with the hardware equipment based on the target communication protocol, the target application program and the hardware equipment are enabled to communicate, the first configuration data of the hardware equipment is effectively acquired, the acquisition mode is simple and convenient, the operability is high, the data input into the target application program by a user is directly received under the condition that the user has modification requirements, the second configuration data is obtained, the communication method packaged in the target application program is not limited by a field network, the data is directly transmitted and modified under the condition that the modification requirements are provided, the second configuration data is transmitted to the hardware equipment based on the target communication protocol, the configuration of the hardware equipment is effectively completed, the limitation on the conditions such as network and power supply in the configuration process is effectively met, the special processing tool is provided, the operation is simple and convenient, and the configuration efficiency is improved.
According to the processing method based on hardware equipment of the present application, 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:
And modifying the first configuration data based on target program logic to obtain the second configuration data, wherein the target program logic is stored in the target application program.
According to the processing method based on the hardware device 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:
modifying the first parameter information corresponding to the hardware equipment based on the target program logic to obtain second parameter information;
And sending the second parameter information to the hardware equipment based on the target communication protocol.
According to the processing method based on the hardware device, when the target communication protocol is the wireless local area network communication protocol, the first configuration data comprises first point location information corresponding to the hardware device and second point location information corresponding to the household appliance connected with the hardware device.
According to the processing method based on the hardware device, after the first configuration data of the hardware device sent by the hardware device is obtained based on the target communication protocol, the method comprises the following steps:
Controlling the hardware equipment to work based on the first configuration data under the condition that the configuration state of the first configuration data is configured and the debugging state of the hardware equipment is debugged;
And acquiring the working parameter information of the hardware equipment.
According to the processing method based on the hardware device of the present application, after the controlling the hardware device to work based on the first configuration data, the method further includes:
Receiving a second input of a user, wherein the second input is used for inputting password information of the hardware equipment;
The first input of a user to the target application is received if the cryptographic information is correct and a return to a debug state is determined.
According to the hardware-device-based processing method of the present application, the modifying the first configuration data to obtain second configuration data includes:
decrypting the first configuration data based on a target decryption algorithm to obtain decrypted first configuration data;
modifying 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:
encrypting the second configuration data based on a target encryption algorithm to obtain encrypted second configuration data;
And sending the encrypted second configuration data to the hardware equipment based on the target communication protocol.
According to the hardware device-based processing method of the present application, after the second configuration data is sent to the hardware device based on the target communication protocol, the method further includes:
the second configuration data is sent to a cloud for storage;
modifying the second configuration data stored in the cloud end, and storing the modified second configuration data in the cloud end;
And under the condition that the target application program establishes communication connection with the hardware equipment based on the target communication protocol, the target application program receives the modified second configuration data from the cloud end and sends the modified second configuration data to the hardware equipment.
In a second aspect, the present application provides a processing apparatus based on a hardware device, applied to a target application program, where a target communication protocol is encapsulated in the target application program, the apparatus includes:
The first processing module is used for acquiring first configuration data of the hardware equipment, which is sent by the hardware equipment, based on the target communication protocol, wherein the target communication protocol comprises at least one of a near field communication protocol and a wireless local area network communication protocol;
The second processing module is used for receiving a first input of a user to the target application program;
The third processing module is used for responding to the first input, modifying the first configuration data and obtaining second configuration data;
And a fourth processing module, configured to send the second configuration data to the hardware device based on the target communication protocol.
According to the processing device based on the hardware equipment, the first configuration data of the hardware equipment transmitted by the hardware equipment is acquired through the near field communication protocol or the wireless local area network communication protocol in the target communication protocol, the target application program is effectively connected with the hardware equipment based on the target communication protocol, the target application program and the hardware equipment are enabled to communicate, the first configuration data of the hardware equipment is effectively acquired, the acquisition mode is simple and convenient, the operability is high, the data input into the target application program by a user is directly received under the condition that the user has a modification requirement, the second configuration data is obtained, the communication method packaged in the target application program is not limited by a field network, the data is directly transmitted and modified under the condition that the modification requirement is met, the second configuration data is transmitted to the hardware equipment based on the target communication protocol, the configuration of the hardware equipment is effectively completed, the limitation on the conditions such as network, power supply and the like in the configuration process is effectively met, the special processing tool is provided, the operation is simple and convenient, and the configuration efficiency is improved.
In a third aspect, the present application provides a processing system based on the processing method based on a hardware device according to the first aspect, including:
a data acquisition module;
the user input module is connected with the data acquisition module;
the processing module is connected with the user input module.
In a fourth aspect, the present application provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a hardware device based processing method as described in the first aspect above.
In a fifth aspect, the present application provides a computer program product comprising a computer program which, when executed by a processor, implements a hardware device based processing method as described in the first aspect above.
The above technical solutions in the embodiments of the present application have at least one of the following technical effects:
The method comprises the steps of acquiring first configuration data of hardware equipment transmitted by the hardware equipment through a near field communication protocol or a wireless local area network communication protocol in a target communication protocol, effectively connecting a target application program with the hardware equipment based on the target communication protocol, enabling the target application program to communicate with the hardware equipment, effectively acquiring the first configuration data of the hardware equipment, enabling the acquisition mode to be simple and convenient, enabling the operability to be high, directly receiving data input into the target application program by a user under the condition that the user has modification requirements, acquiring second configuration data, enabling the second configuration data to be directly transmitted and modified under the condition that the user has modification requirements based on a communication method packaged in the target application program without being limited by a field network, and transmitting the second configuration data to the hardware equipment based on the target communication protocol.
Further, under the condition that the hardware equipment is configured through the wireless local area network communication protocol, on the basis that the hardware equipment is configured, first parameter information in logic parameters of the hardware equipment is further modified through information in the target program logic, and modified second parameter information is obtained, so that parameter debugging is conducted on the hardware equipment, the hardware equipment is enabled to be under the required parameter condition, modification references are provided based on the target program logic for debugging, the first parameter information is convenient to modify, the second parameter information is sent to the hardware equipment through the target application program based on the target communication protocol, debugging on the hardware equipment is completed, the control logic is simple, the operation is convenient, and the functions are more powerful and various.
Furthermore, the user input password information is determined to be correct and the user needs to return to the debugging state, the first input of the user to the target application program is received, and the debugging is performed for a plurality of times based on the real-time running state and the current requirement of the hardware equipment, so that the current requirement of the user to the hardware equipment is met, the flexibility is high, the control logic is simple, the debugging efficiency is high, and the debugging safety can be effectively ensured.
Still further, the second configuration data is stored in the cloud to realize remote modification of the second configuration data by a user, the second configuration data can be modified without the need of the user being on a configuration site, after the second configuration data of the cloud is modified, the modified second configuration data is still stored in the cloud, and the modified second configuration data is downloaded to the target application program under the condition that the target application program establishes communication connection with the hardware device according to the target communication protocol, so that the modified second configuration data is issued to the hardware device to complete processing of the hardware device, the required data is prepared before configuration and debugging, the configuration data is not required to be modified again on the site, the configuration and debugging efficiency is remarkably improved, and the time is saved.
Additional aspects and advantages of the application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the application.
Detailed Description
The technical solutions of the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which are obtained by a person skilled in the art based on the embodiments of the present application, fall within the scope of protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type, and are not limited to the number of objects, such as the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The processing method based on the hardware device, the processing apparatus based on the hardware device, the application program and the readable storage medium provided by the embodiment of the application are described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
The processing method based on the hardware device can be applied to the terminal, and can be specifically executed by hardware or software in the terminal.
The terminal includes, but is not limited to, a portable communication device such as a mobile phone or tablet computer. It should also be appreciated that in some embodiments, the terminal may not be a portable communication device, but rather a desktop computer.
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, mouse, and joystick.
The execution main body of the processing method based on the hardware device provided by the embodiment of the application can be the electronic device or a functional module or a functional entity in the electronic device which can realize the processing method based on the hardware device, the electronic device in the embodiment of the present application includes, but is not limited to, a mobile phone, a tablet computer, a camera, a wearable device, and the like, and the processing method based on the hardware device provided in the embodiment of the present application is described below by taking the electronic device as an execution body as an example.
As shown in fig. 1, the processing method based on the hardware device is applied to a target application program, and the target communication protocol is encapsulated in the target application program, and the method comprises the steps of 110,120, 130 and 140.
The target application is an application used for configuring, modulating and controlling the hardware device.
The target application may be implemented based on Flutter framework.
Of course, the target application may also be developed based on any other realizable means.
The target application may support multiple platforms (e.g., android and ios, etc.).
Step 110, acquiring first configuration data of a hardware device sent by the hardware device based on a target communication protocol;
In this step, the target communication protocol is a protocol in which the hardware device and the target application can communicate.
The hardware device can be debugged, configured, controlled and the like based on the target communication protocol.
The hardware equipment comprises digital sensors, temperature controllers and other hardware equipment.
The first configuration data is data required for configuring the hardware device.
As shown in fig. 2, in some embodiments, the target communication protocol may include at least one of a wireless local area network communication protocol and a near field communication protocol.
In this embodiment, the near field communication protocol is a protocol that exchanges data within a target area between the hardware device and the target application.
The specific value of the target area may be determined based on actual conditions, and the present application is not limited.
The wireless local area network communication protocol is a communication protocol which is formed by interconnecting hardware equipment and a target application program by applying a wireless communication technology and can mutually communicate and realize resource sharing.
In the actual implementation process, one of the target communication protocols can be selected to configure the hardware device based on the actual requirements.
It will be appreciated that after entering the target application, a near field communication protocol or a wireless local area network communication protocol may be selected at the digital sensor page of the target application.
In the actual implementation process, under the condition that the target communication protocol is the near field communication protocol, the target application program can be placed in a target area of a near field communication chip of the hardware device, so that the target application program is connected with the hardware device for communication, and the input/output access of the hardware device is read to send the first configuration data.
The specific size of the target area may be determined based on the near field communication chip, and the present application is not limited.
As shown in fig. 2, in the actual execution process, when the target application program and the hardware device are connected through the near field communication protocol, and when the number of times of establishing the communication connection between the target application program and the hardware device fails or the duration of establishing the communication connection exceeds the target duration, the placement position of the target application program may be appropriately adjusted, and the target application program and the hardware device are connected again through the near field communication protocol, so as to perform data interaction.
With continued reference to fig. 2, when the target communication protocol selected by the user is a wireless local area network communication protocol, the hardware device starts an access point mode, starts HTTP, then performs hot spot connection, starts a wireless local area network of the electronic device where the target application program is located, connects the wireless local area network to a network corresponding to an access point service of the hardware device, and enables the target application program to communicate and interact with the hardware device, so as to obtain first configuration data sent to the target application program by the hardware device.
In some embodiments, in the case where the target communication protocol is a wireless local area network communication protocol, the first configuration data includes second point location information for a home device connected to the hardware device and first point location information for the hardware device.
In this embodiment, the first bit information is information of the on bit, the off bit, the temperature bit, and other bits of the hardware device.
The household appliances are some household appliances which can be connected with hardware equipment, and comprise a refrigerator, an air conditioner, a lamp and the like.
The second point location information is the point location information of the virtual device corresponding to the home appliance.
It will be appreciated that the target communication protocol is a wireless local area network communication protocol and the target communication protocol is different from the first configuration data acquired by the target communication protocol for the near field communication protocol.
And under the condition that the target communication protocol is a near field communication protocol, the acquired first configuration data are basic attribute data and network information data of the hardware equipment.
The first configuration data may include data such as a product model number of the hardware device, a software version, a communication address of the hardware device, and the like.
And under the condition that the configuration quantity of the first configuration data is small, the configuration data is wholly less than the target byte, the real-time parameter data of the hardware equipment is not a main parameter attribute, and the hardware equipment is required to be pre-configured under the condition that the hardware equipment is not powered on, the target communication protocol can be selected as the near field communication protocol to configure the hardware equipment.
The specific size of the target byte may be determined based on practical situations, and the present application is not limited, and for example, the target byte may be 888 bytes.
When the target communication protocol is a wireless local area network communication protocol, the acquired first configuration data are information such as real-time point location information and point location control instructions of the hardware equipment.
Under the condition that the real-time point location information of the hardware equipment needs to be acquired, the point location control instruction is issued and the configuration quantity is not less than the target bytes, the target communication protocol can be selected to be the wireless local area network communication protocol to configure the hardware equipment.
According to the processing method based on the hardware equipment, which is provided by the embodiment of the application, the specific information of the first configuration data is determined by determining the specific one of the target communication protocols, when the target communication protocol is the wireless local area network communication protocol, the first configuration data is determined to comprise the first point location information and the second point location information, the data to be configured is larger, the real-time point location information of the hardware equipment can be acquired, the control instruction can be issued, more information can be effectively acquired, and the acquisition mode is simple.
Step 120, receiving a first input of a user to a target application program;
In this step, a first input is used to input first configuration data modified by the user.
Wherein the first input may be at least one of:
First, the first input may be a touch operation including, but not limited to, a click operation, a slide operation, a press operation, and the like.
In this embodiment, the receiving the first input of the user may be receiving a touch operation of the user in a display area of the terminal display screen.
In order to reduce the misoperation rate of a user, the action area of the first input can be limited in a specific area, such as the upper middle area of the modification interface, or in a state of displaying the modification interface, a target control is displayed on the current interface, and the first input can be realized by touching the target control, or the first input is set to be continuous multi-tap operation on the display area in a target time interval.
Second, the first input may be a physical key input.
In this embodiment, the body of the terminal is provided with an entity key corresponding to the modification, and the first input of the user is received, or the operation of pressing the corresponding entity key by the user is received, or the first input may be a combined operation of simultaneously pressing a plurality of entity keys.
Third, the first input may be a voice input.
In this embodiment, when receiving a voice, for example, "modify communication address to a", the terminal may modify the original communication address in the first configuration data to a.
Of course, in other embodiments, the first input may also be in other forms, including but not limited to character input, etc., which may be specifically determined according to actual needs, which is not limited in the embodiments of the present application.
Step 130, responding to the first input, and modifying the first configuration data to obtain second configuration data;
in this step, the second configuration data is the modified first configuration data.
In actual implementation, the target communication protocol may be different, and the manner in which the first configuration data is modified may also be different.
For example, when the target communication protocol is a near field communication protocol, the modified first configuration data may be a modification page in the target application program, the first configuration data may be a communication address, an IP address, a switch wireless local area network, and the like of the hardware device, and the modified first configuration data is determined as the second configuration data.
For another example, when the target communication protocol is a wireless local area network communication protocol, data in a configuration file corresponding to the first configuration data may be modified, and the data corresponding to the modified configuration file is determined to be the second configuration data.
In some embodiments, where the target communication protocol is a wireless local area network communication protocol, step 130 may further comprise:
The first configuration data is modified based on the target program logic to obtain second configuration data.
In this embodiment, the target program logic can be stored in the target application.
The target program logic is a predefined program logic which needs to be referred to for configuring and debugging the hardware device.
In the actual execution process, the target program logic can be imported to the target application program through the negotiated interface.
The negotiated interfaces comprise a login interface, an uploading interface, a downloading interface, an HTTP interface and the like.
It will be appreciated that the target program logic for different hardware devices may be different.
In the actual execution process, it may be determined how to modify the first configuration data based on the specific content of the target program logic, so as to obtain modified first configuration data, i.e. second configuration data.
According to the processing method based on the hardware equipment, the first configuration data is modified based on the specific content of the target program logic by determining that the target communication protocol is the wireless local area network communication protocol, the second configuration data is obtained, the reference information for modifying the first configuration data is provided, the efficiency of modifying the first configuration data is improved, and the processing method is simple, convenient and easy to operate.
Step 140, sending the second configuration data to the hardware device based on the target communication protocol.
In this step, the target communication protocol is different, and the manner of transmitting the second parameter information is also different.
In the case that the target communication protocol is a near field communication protocol, the target application program may be placed in a target area of a near field communication chip of the hardware device, and the second configuration data is sent to the hardware device to be configured by clicking a key for issuing configuration.
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 program, so that the configuration of the hardware device is completed.
It will be appreciated that after the configuration of the hardware device is completed, the configuration state of the hardware device will be marked as configured.
According to the processing method based on the hardware equipment, the first configuration data of the hardware equipment transmitted to the target application program is obtained through the near field communication protocol or the wireless local area network communication protocol in the target communication protocol, the target application program is effectively connected with the hardware equipment based on the target communication protocol, communication is conducted between the target application program and the hardware equipment, the first configuration data in the hardware equipment is effectively obtained, the obtaining mode is simple and convenient, operability is high, under the condition that a user has modification requirements, the data input into the target application program by the user is directly received, the corresponding second configuration data after the first configuration data is obtained, based on the communication method packaged in the target application program, the data transmission and modification are directly conducted under the condition that the modification requirements are met, based on the target communication protocol, the second configuration data is issued to the hardware equipment through the target application program, configuration of the hardware equipment is effectively completed, limitation on the network, power supply and other conditions in the configuration process is effectively limited, a special processing tool is provided, the operation is simple and convenient, and the configuration efficiency is improved.
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 comprise:
Modifying the first parameter information corresponding to the hardware equipment based on the target program logic to obtain second parameter information;
the second parameter information is sent to the hardware device based on the target communication protocol.
In this embodiment, 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 preset algorithm logic stored in the target application program for providing a reference in modifying the first parameter information and the first configuration data.
In the actual execution process, the first parameter information of the hardware equipment can be modified based on the specific content of the target program logic to obtain modified second parameter information, and then the second parameter information is sent to the hardware equipment through the target application program based on the sending mode corresponding to the target communication protocol, so that the debugging of the hardware equipment is completed.
It will be appreciated that the user may select the corresponding target program logic for the combined air conditioning unit, pre-chilled air conditioning unit, bypass valve control, etc., and perform module and channel matching.
In an actual execution process, after the hardware device completes debugging, the hardware device may be marked as debugged.
According to the processing method based on the hardware equipment, under the condition that the hardware equipment is configured through the wireless local area network communication protocol, on the basis of the configuration of the hardware equipment, the first parameter information in the logic parameters of the hardware equipment is further modified through the information in the target program logic, the modified second parameter information is obtained, so that the hardware equipment is subjected to parameter debugging, the hardware equipment is subjected to parameter debugging under the required parameter condition, the modification reference is provided based on the debugging of the target program logic, the modification of the first parameter information is facilitated, the second parameter information is sent to the hardware equipment through the target application program based on the target communication protocol, the debugging of the hardware equipment is completed, the control logic is simple, the operation is convenient, and the functions are more powerful and various.
In some embodiments, after acquiring the first configuration data of the hardware device transmitted by the hardware device based on the target communication protocol, the method may further include:
Controlling the hardware equipment to work based on the first configuration data under the condition that the configuration state of the first configuration data is configured and the debugging state of the hardware equipment is debugged;
And acquiring the working parameter information of the hardware equipment.
In this embodiment, the configuration state is a state of whether the hardware device has performed configuration correspondence.
The configuration state includes configured and unconfigured.
The debug status is a status of whether the hardware device has completed the debug correspondence.
Debug status includes debugged and un-debugged.
Controlling the hardware device may be controlling the opening, closing, and temperature setting of the hardware device.
In the actual execution process, the configuration state is displayed in the acquired first configuration data, and when the hardware equipment is configured and debugged, namely, the hardware equipment is debugged, the hardware equipment is controlled to work based on the state of the hardware equipment corresponding to the first configuration data.
And under the condition that the obtained first configuration data shows that the configuration state is at least one of unconfigured and the modulation state of the hardware equipment is not debugged, modifying the hardware equipment based on the first configuration data, configuring and debugging the hardware equipment, and controlling the hardware equipment to work through a target application program based on the state of the hardware equipment corresponding to the configured and debugged configuration data.
With continued reference to fig. 2, in the case of selecting a wireless lan communication protocol to perform communication, connecting a target application program with a network corresponding to an access point service of a hardware device through a hotspot, obtaining first configuration data of the hardware device, when the hardware device is not configured and is not debugged, displaying the first configuration data in the first configuration data, entering a logic configuration page, modifying the first configuration data based on program logic in target program logic, obtaining second configuration data corresponding to the modified first configuration data, transmitting the second configuration data to the target application program, then debugging based on target program logic, modifying the first parameter information to obtain second parameter information, in the case of completing debugging, marking a debugging state of the hardware device as debugged, transmitting the second parameter information of the hardware device to the hardware device, and caching the second parameter information and the second configuration data in the target application program, wherein the configuration state of the hardware device is configured, the debugging state is debugged, and a control instruction can be issued to the hardware device based on the state of the current hardware device to control the hardware device to turn on or set the hardware device to a certain value.
According to the processing method based on the hardware equipment, the configuration condition and the debugging condition of the hardware equipment displayed by the first configuration data are determined, the next operation on the hardware equipment is determined, and when the hardware equipment is determined to be configured and modulated, the hardware equipment is controlled to work according to the real-time state information of the hardware equipment corresponding to the first configuration data, so that the control logic is simple and the operation is convenient.
In some embodiments, after controlling the hardware device to operate based on the first configuration data, the method may further include:
receiving a second input from the user;
In the event that the password information is correct and it is determined to return to the debug state, a first input by the user to the target application is received.
In this embodiment, the second input is for entering cryptographic information of the hardware device.
The second input may be the same touch input, physical key input, voice input, character input, and any other input that can be implemented as the first input, which is not described herein.
The password information is a password corresponding to the hardware device.
In the actual execution process, when the second input of the user is received, the information corresponding to the second input is consistent with the password corresponding to the hardware equipment, and the user selects to return to the debugging state, the first input of the user in the target application program is received, and the hardware equipment is continuously debugged.
According to the processing method based on the hardware equipment, the first input of the target application program by the user is received by determining that the password information input by the user is correct and determining that the user needs to return to the debugging state, and the debugging is performed for a plurality of times based on the real-time running state and the current requirement of the hardware equipment, so that the current requirement of the user on the hardware equipment is met, the flexibility is high, the control logic is simple, the debugging efficiency is high, and the debugging safety can be effectively ensured.
In some embodiments, step 130 may further comprise:
decrypting the first configuration data based on the target decryption algorithm to obtain decrypted first configuration data;
modifying the decrypted first configuration data to obtain second configuration data;
Step 140 may further include:
encrypting the second configuration data based on the target encryption algorithm to obtain encrypted second configuration data;
And sending the encrypted second configuration data to the hardware device based on the target communication protocol.
In this embodiment, the target decryption algorithm is the algorithm used to decrypt the first configuration data.
The specific choice of the target decryption algorithm may be determined based on practical circumstances, and the present application is not limited.
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 choice of the target encryption algorithm may be determined based on practical situations, and the present application is not limited.
In the actual execution process, the first configuration data in the hardware equipment transmitted by the obtained hardware equipment is encrypted data, the first configuration data is decrypted through a target decryption algorithm to obtain decrypted first configuration data which can be identified by a user, and the decrypted first configuration data which can be identified by the user is modified to obtain second configuration data.
Before the second configuration data is issued to the hardware device, the second configuration data is required to be encrypted through a target encryption algorithm before the configuration of the hardware device is completed, and the encrypted second configuration data is issued to the hardware device.
According to the processing method based on the hardware equipment, the acquired first configuration data is decrypted to obtain the first configuration data which can be identified by the user, so that the user can modify information in the first configuration data to obtain second configuration data for configuring the hardware equipment, the second configuration data is encrypted after the required second configuration data is obtained, and the encrypted second configuration data is sent to the hardware equipment, so that the safety of the data is effectively guaranteed.
As shown in fig. 3, in some embodiments, after step 140, the method may further include:
Sending the second configuration data to the cloud for storage;
modifying the second configuration data stored in the cloud end, and storing the modified second configuration data in the cloud end;
and under the condition that the target application program establishes communication connection with the hardware device based on the target communication protocol, the target application program receives the modified second configuration data from the cloud end and sends the modified second configuration data to the hardware device.
In this embodiment, the cloud is a software platform for the application's virtualization technology.
The cloud end can perform operations such as data storage, data sharing and data backup.
The second configuration data may be stored at the cloud.
The communication connection is a communication between the target application and the hardware device.
In the actual execution process, the second configuration data can be sent to the cloud for storage, and in the actual application scene, the second configuration data stored in the cloud can be modified, and the modified second configuration data is continuously stored in the cloud for subsequent use.
When the target application program establishes communication connection with the hardware device according to the target communication protocol, the second configuration data modified by the cloud end can be downloaded to the target application program under the condition that the communication connection between the target application program and the hardware device is not established, so that the modified second configuration data is directly transmitted to the hardware device to process the hardware device and enable the hardware device which cannot be connected with the external network.
With continued reference to fig. 3, in some embodiments, the second configuration data is sent to the cloud end for storage, and the cloud end account may be logged in first, and after entering, the function list is selected.
The function list comprises a digital sensor series product module, a configuration management module and a home page module.
The corresponding sensor type may be selected at the digital sensor family product module.
The configuration management module can manage the configuration of the hardware equipment, including local configuration management and cloud configuration management.
The local configuration management comprises the steps of sharing the second configuration data to a third party, importing the second configuration data into a target application program and uploading the second configuration data to the cloud.
The cloud configuration management comprises the steps of downloading second configuration data of the cloud to a target application program, classifying the second configuration data based on content corresponding to the second configuration data, and pre-editing the second configuration data.
The home page module can manage the basic information of the user and select to exit the current login state.
According to the processing method based on the hardware equipment, the second configuration data is stored in the cloud end, remote modification of the second configuration data by a user is achieved, the second configuration data can be modified without the need of the user being on a configuration site, after the second configuration data of the cloud end is modified, the modified second configuration data is still stored in the cloud end, the modified second configuration data is downloaded to the target application program under the condition that the target application program establishes communication connection with the hardware equipment according to a target communication protocol, and accordingly the modified second configuration data is issued to the hardware equipment to complete processing of the hardware equipment, required data is prepared before configuration and debugging, the configuration data is not required to be modified again on site, configuration and debugging efficiency is remarkably improved, and time is saved.
According to the processing method based on the hardware equipment provided by the embodiment of the application, the execution main body can be a processing device based on the hardware equipment. In the embodiment of the present application, a processing apparatus based on a hardware device executes a processing method based on a hardware device as an example, which is described in the embodiment of the present application.
The embodiment of the application also provides a processing device based on the hardware equipment, which is applied to the target application program, and the target application program is internally packaged with the target communication protocol.
As shown in fig. 4, the hardware device-based processing apparatus includes a first processing module 410, a second processing module 420, a third processing module 430, and a fourth processing module 440.
A first processing module 410, configured to obtain first configuration data sent by the hardware device to the hardware device based on a target communication protocol, where 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 420 for receiving a first input from a user to a target application;
A third processing module 430, configured to modify the first configuration data in response to the first input, to obtain second configuration data;
The fourth processing module 440 is configured to send the second configuration data to the hardware device based on the target communication protocol.
According to the processing device based on the hardware equipment, the first configuration data of the hardware equipment transmitted to the target application program is obtained through the near field communication protocol or the wireless local area network communication protocol in the target communication protocol, the target application program is effectively connected with the hardware equipment based on the target communication protocol, communication is conducted between the target application program and the hardware equipment, the first configuration data in the hardware equipment is effectively obtained, the obtaining mode is simple and convenient, operability is high, under the condition that a user has modification requirements, the data input into the target application program by the user is directly received, the corresponding second configuration data after the first configuration data is obtained, based on the communication method packaged in the target application program, the data transmission and modification are directly conducted under the condition that the modification requirements are met, based on the target communication protocol, the second configuration data is issued to the hardware equipment through the target application program, configuration of the hardware equipment is effectively completed, limitation on the network, power supply and other conditions in the configuration process is effectively limited, a special processing tool is provided, the operation is simple and convenient, and the configuration efficiency is improved.
In some embodiments, the third processing module 430 may also be configured to:
And modifying the first configuration data based on the target program logic to obtain second configuration data, wherein the target program logic is stored in the target application program.
In some embodiments, the apparatus may further include a fifth processing module for:
Modifying the first parameter information corresponding to the hardware equipment based on the target program logic to obtain second parameter information;
the second parameter information is sent to the hardware device based on the target communication protocol.
In some embodiments, the apparatus may further include a sixth processing module for:
Controlling the hardware equipment to work based on the first configuration data under the condition that the configuration state of the first configuration data is configured and the debugging state of the hardware equipment is debugged;
And acquiring the working parameter information of the hardware equipment.
In some embodiments, the apparatus may further include a seventh processing module to:
Receiving a second input of a user, wherein the second input is used for inputting password information of the hardware equipment;
In the event that the password information is correct and it is determined to return to the debug state, a first input by the user to the target application is received.
In some embodiments, the third processing module 430 may also be configured to:
Modifying the first configuration data to obtain second configuration data, including:
decrypting the first configuration data based on the target decryption algorithm to obtain decrypted first configuration data;
modifying the decrypted first configuration data to obtain second configuration data;
the fourth processing module 440 may also be configured to:
encrypting the second configuration data based on the target encryption algorithm to obtain encrypted second configuration data;
And sending the encrypted second configuration data to the hardware device based on the target communication protocol.
In some embodiments, the apparatus may further include an eighth processing module to:
Sending the second configuration data to the cloud for storage;
modifying the second configuration data stored in the cloud end, and storing the modified second configuration data in the cloud end;
and under the condition that the target application program establishes communication connection with the hardware device based on the target communication protocol, the target application program receives the modified second configuration data from the cloud end and sends the modified second configuration data to the hardware device.
The processing device based on the hardware device in the embodiment of the application may be an electronic device, or may be a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices than a terminal. The electronic device may be a Mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a Mobile internet appliance (Mobile INTERNET DEVICE, MID), an augmented reality (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., and may also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a Television (TV), a teller machine, a self-service machine, etc., which are not particularly limited in the embodiments of the present application.
The processing device based on the hardware device in the embodiment 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, and the embodiment of the present application is not limited specifically.
The processing device based on hardware equipment provided in the embodiment of the present application can implement each process implemented by the embodiments of the method of fig. 1to 3, and in order to avoid repetition, a description is omitted here.
The embodiment of the application also provides a processing system based on the hardware equipment processing method according to any embodiment, which comprises a data acquisition module, a user input module and a processing module.
In this embodiment, the data acquisition module encapsulates the target communication protocol.
The data acquisition module acquires first configuration data of the hardware device based on the target communication protocol.
The user input module is used for receiving modification data corresponding to the first configuration data, which is input by a user.
The user input module is connected with the data acquisition module.
The processing module is connected with the user input module.
According to the processing system based on the hardware device processing method, which is provided by the embodiment of the application, the first configuration data of the hardware device sent to the target application program is obtained through the near field communication protocol or the wireless local area network communication protocol in the target communication protocol, the target application program is effectively connected with the hardware device based on the target communication protocol, the target application program and the hardware device are enabled to communicate with each other, the first configuration data in the hardware device is effectively obtained, the obtaining mode is simple and convenient, the operability is high, under the condition that a user has a modification requirement, the data input into the target application program by the user is directly received, the corresponding second configuration data after the first configuration data is obtained, the data transmission and modification are directly carried out under the condition that the modification requirement is met based on the communication method packaged in the target application program, the limitation of the field network is avoided, the second configuration data is issued to the hardware device through the target communication protocol, the configuration of the hardware device is effectively completed, the limitation of the network, the power supply and other conditions in the configuration process is effectively carried out through the target application program, the special processing tool is provided, the operation is simple and the operation is convenient, and the configuration tool is improved.
In some embodiments, as shown in fig. 5, an electronic device 500 is further provided in the embodiments of the present application, which includes a processor 501, a memory 502, and a computer program stored in the memory 502 and capable of running on the processor 501, where the program when executed by the processor 501 implements the processes of the embodiments of the processing method based on hardware devices, and the same technical effects can be achieved, and for avoiding repetition, a detailed description is omitted herein.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
The embodiment of the application also provides a non-transitory computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the processes of the above embodiment of the processing method based on hardware devices, and can achieve the same technical effects, so that repetition is avoided and redundant description is omitted.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes computer readable storage medium such as computer readable memory ROM, random access memory RAM, magnetic or optical disk, etc.
The embodiment of the application also provides a computer program product, which comprises a computer program, wherein the computer program is executed by a processor to realize the processing method based on the hardware device.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes computer readable storage medium such as computer readable memory ROM, random access memory RAM, magnetic or optical disk, etc.
The embodiment of the application further provides a chip, which comprises a processor and a communication interface, wherein the communication interface is coupled with the processor, and the processor is used for running programs or instructions to realize the processes of the embodiment of the processing method based on the hardware device, and the same technical effects can be achieved, so that repetition is avoided, and the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.
In the description of the present specification, reference to the terms "one embodiment," "some embodiments," "illustrative embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present application have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made therein without departing from the spirit and scope of the application as defined by the appended claims and their equivalents.