CN110858847A - Device configuration method and device, electronic device and storage medium - Google Patents

Device configuration method and device, electronic device and storage medium Download PDF

Info

Publication number
CN110858847A
CN110858847A CN201810963092.1A CN201810963092A CN110858847A CN 110858847 A CN110858847 A CN 110858847A CN 201810963092 A CN201810963092 A CN 201810963092A CN 110858847 A CN110858847 A CN 110858847A
Authority
CN
China
Prior art keywords
configuration
information
equipment
infrared
signal
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.)
Granted
Application number
CN201810963092.1A
Other languages
Chinese (zh)
Other versions
CN110858847B (en
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201810963092.1A priority Critical patent/CN110858847B/en
Publication of CN110858847A publication Critical patent/CN110858847A/en
Application granted granted Critical
Publication of CN110858847B publication Critical patent/CN110858847B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/22Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks comprising specially adapted graphical user interfaces [GUI]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Human Computer Interaction (AREA)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application provides an equipment configuration method and device, electronic equipment and a storage medium, so that the equipment of the Internet of things can be conveniently configured. The method comprises the following steps: acquiring configuration information corresponding to equipment to be configured and equipment certificate information of the equipment to be configured; determining a corresponding infrared configuration signal according to the configuration information and the equipment certificate information; and sending an infrared configuration signal corresponding to the configuration information through an infrared interface. Can be through the convenient equipment configuration that carries on of infrared mode, improve configuration efficiency and can guarantee the affiliation of equipment.

Description

Device configuration method and device, electronic device and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to an apparatus configuration method, a configuration apparatus, an electronic apparatus, and a storage medium.
Background
The Internet of things (IoT) is an Internet with which things are connected, and with the rise of the Internet of things, Internet of things devices are increasingly diversified.
There are various thing networking devices in the thing networking, intelligent equipment such as existing cell-phone, computer, mobile device also have other equipment such as household electrical appliances, router, entrance guard, security protection, and not all equipment have provided the part that the user can directly carry out the configuration on equipment such as screen. Therefore, such internet of things devices usually need a relatively complex configuration mode to perform basic configuration such as network configuration.
Disclosure of Invention
The embodiment of the application provides an equipment configuration method, which is used for conveniently configuring equipment of the Internet of things.
Correspondingly, the embodiment of the application also provides a configuration device, an electronic device and a storage medium, which are used for ensuring the realization and the application of the system.
In order to solve the above problem, an embodiment of the present application discloses an apparatus configuration method, which is applied to a control apparatus, and the method includes: acquiring configuration information corresponding to equipment to be configured and equipment certificate information of the equipment to be configured; determining a corresponding infrared configuration signal according to the configuration information and the equipment certificate information; and sending an infrared configuration signal corresponding to the configuration information through an infrared interface.
Optionally, the determining a corresponding infrared signal according to the credential information of the configuration information device includes: adding the configuration information to a configuration data field of an infrared configuration signal; adding the device credential information to an optional information field of the infrared configuration signal.
Optionally, the method further includes: and calculating the verification data of the configuration information according to a set verification algorithm, and adding the verification data into the data verification field of the infrared configuration signal.
Optionally, the step of obtaining configuration information corresponding to at least one of the following devices to be configured includes: acquiring network configuration information of a network corresponding to the device to be configured, wherein the network configuration information comprises: a network name and password; and calling a positioning module to acquire positioning information.
Optionally, the infrared interface is disposed on the control device or on an external infrared emitter of the control device.
The embodiment of the application also discloses an equipment configuration method, which is applied to equipment to be configured, and the method comprises the following steps: receiving an infrared configuration signal of the control equipment through an infrared interface; acquiring configuration information and equipment certificate information from the infrared configuration signal; and carrying out equipment configuration according to the configuration information and the equipment certificate information.
Optionally, the acquiring configuration information and device credential information from the infrared configuration signal includes: and acquiring configuration information from a configuration data field of the infrared configuration signal, and acquiring equipment certificate information from an optional information field of the infrared configuration signal.
Optionally, the following at least one device configuration step is performed according to the configuration information: connecting a corresponding wireless network according to the network configuration information in the configuration information; and setting corresponding position information according to the positioning information in the configuration information.
Optionally, the step of configuring the device according to the device credential information includes: and verifying the equipment according to the equipment certificate information.
Optionally, the method further includes: acquiring verification data from a data verification domain of the infrared configuration signal; and calculating verification data corresponding to the configuration information according to a set verification algorithm, and verifying the configuration information according to the calculated verification data and the acquired verification data.
The embodiment of the application also discloses an equipment configuration method, which is applied to control equipment, and the method comprises the following steps: acquiring configuration information corresponding to equipment to be configured and equipment certificate information of the equipment to be configured; determining a corresponding wireless configuration signal according to the configuration information and the equipment certificate information; and sending a wireless configuration signal corresponding to the configuration information.
Optionally, the wireless configuration signal includes at least one of: an infrared wireless configuration signal; a wireless configuration signal for a wireless local area network; a wireless configuration signal of a near field communication system.
The embodiment of the application also discloses an equipment configuration method, which is applied to equipment to be configured, and the method comprises the following steps: receiving a wireless configuration signal of a control device; acquiring configuration information and equipment certificate information from the wireless configuration signal; and carrying out equipment configuration according to the configuration information and the equipment certificate information.
Optionally, the wireless configuration signal includes a wireless configuration signal of a wireless local area network; after receiving the wireless configuration signal of the control device, the method further includes: calculating distance information of the equipment to be configured and the control equipment according to the wireless configuration signal; judging whether the control equipment meets equipment attribution conditions or not according to the distance information; and executing equipment configuration when the control equipment meets equipment attribution conditions.
Optionally, the wireless configuration signal includes at least one of: an infrared wireless configuration signal; a wireless configuration signal for a wireless local area network; a wireless configuration signal of a near field communication system.
The embodiment of the application also discloses a configuration device, which is applied to the control equipment, and the device comprises: the configuration acquisition module is used for acquiring configuration information corresponding to the equipment to be configured and equipment certificate information of the equipment to be configured; the configuration module is used for determining a corresponding infrared configuration signal according to the configuration information and the equipment certificate information; and the sending module is used for sending the infrared configuration signal corresponding to the configuration information through an infrared interface.
Optionally, the configuration module is configured to add the configuration information to a configuration data field of an infrared configuration signal, and add the device credential information to an optional information field of the infrared configuration signal.
Optionally, the configuration module is further configured to calculate verification data of the configuration information according to a set verification algorithm, and add the verification data to a data verification field of the infrared configuration signal.
Optionally, the configuration obtaining module is configured to obtain network configuration information of a network corresponding to the device to be configured, where the network configuration information includes: a network name and password; and/or calling a positioning module to acquire positioning information.
Optionally, the infrared interface is disposed on the control device or on an external infrared emitter of the control device.
The embodiment of the application also discloses a configuration device, which is applied to equipment to be configured, and the device comprises: the receiving module is used for receiving an infrared configuration signal of the control equipment through an infrared interface; and the equipment configuration module is used for acquiring configuration information and equipment certificate information from the infrared configuration signal and configuring equipment according to the configuration information and the equipment certificate information.
Optionally, the device configuration module includes: and the acquisition submodule is used for acquiring configuration information from a configuration data field of the infrared configuration signal and acquiring equipment certificate information from an optional information field of the infrared configuration signal.
Optionally, the device configuration module includes: the configuration submodule is used for connecting a corresponding wireless network according to the network configuration information in the configuration information; and/or setting corresponding position information according to the positioning information in the configuration information.
Optionally, the device configuration module includes: and the equipment checking submodule is used for carrying out equipment checking according to the equipment certificate information.
Optionally, the device configuration module further includes: a data check submodule; the acquisition submodule is used for acquiring verification data from a data verification domain of the infrared configuration signal; and the data checking submodule is used for calculating checking data corresponding to the configuration information according to a set checking algorithm and checking the configuration information according to the calculated checking data and the acquired checking data.
The embodiment of the application also discloses a configuration device, which is applied to the control equipment, and the device comprises: the information acquisition module is used for acquiring configuration information corresponding to the equipment to be configured and equipment certificate information of the equipment to be configured; the signal configuration module is used for determining a corresponding wireless configuration signal according to the configuration information and the equipment certificate information; and the signal sending module is used for sending the wireless configuration signal corresponding to the configuration information.
Optionally, the wireless configuration signal includes at least one of: an infrared wireless configuration signal; a wireless configuration signal for a wireless local area network; a wireless configuration signal of a near field communication system.
The embodiment of the application also discloses a configuration device, which is applied to equipment to be configured, and the device comprises: the signal receiving module is used for receiving a wireless configuration signal of the control equipment; and the information configuration module is used for acquiring configuration information and equipment certificate information from the wireless configuration signal and configuring equipment according to the configuration information and the equipment certificate information.
Optionally, the wireless configuration signal includes a wireless configuration signal of a wireless local area network; further comprising: the attribution checking module is used for calculating the distance information between the equipment to be configured and the control equipment according to the wireless configuration signal; judging whether the control equipment meets equipment attribution conditions or not according to the distance information; and when the control equipment meets the equipment attribution condition, triggering an information configuration module.
Optionally, the wireless configuration signal includes at least one of: an infrared wireless configuration signal; a wireless configuration signal for a wireless local area network; a wireless configuration signal of a near field communication system.
The embodiment of the application also discloses an electronic device, which comprises: a processor; and a memory having executable code stored thereon, which when executed, causes the processor to perform a device configuration method as described in one or more of the embodiments of the present application.
One or more machine-readable media having stored thereon executable code that, when executed, causes a processor to perform a device configuration method as described in one or more of the embodiments of the present application are also disclosed.
The embodiment of the application also discloses an electronic device, which comprises: a processor; and a memory having executable code stored thereon, which when executed, causes the processor to perform a device configuration method as described in one or more of the embodiments of the present application.
One or more machine-readable media having stored thereon executable code that, when executed, causes a processor to perform a device configuration method as described in one or more of the embodiments of the present application are also disclosed.
The embodiment of the application also discloses an electronic device, which comprises: a processor; and a memory having executable code stored thereon, which when executed, causes the processor to perform a device configuration method as described in one or more of the embodiments of the present application.
One or more machine-readable media having stored thereon executable code that, when executed, causes a processor to perform a device configuration method as described in one or more of the embodiments of the present application are also disclosed.
The embodiment of the application also discloses an electronic device, which comprises: a processor; and a memory having executable code stored thereon, which when executed, causes the processor to perform a device configuration method as described in one or more of the embodiments of the present application.
One or more machine-readable media having stored thereon executable code that, when executed, causes a processor to perform a device configuration method as described in one or more of the embodiments of the present application are also disclosed.
Compared with the prior art, the embodiment of the application has the following advantages:
in the embodiment of the application, the control device can acquire the configuration information and the device certificate information of the device to be configured, then determine the corresponding infrared configuration information according to the configuration information and the device certificate information, and send the infrared configuration information through the infrared interface, so that the device to be configured is received through the infrared interface, and acquires the corresponding configuration information and the device certificate information to configure the device, the device configuration can be conveniently performed in an infrared mode, the configuration efficiency is improved, and the attribution of the device can be ensured.
Drawings
FIG. 1 is a schematic diagram of a device configuration system in an embodiment of the present application;
FIG. 2 is a schematic diagram of an infrared-based device configuration system according to an embodiment of the present application;
FIG. 3 is a schematic diagram of interaction processing of an infrared-based device in an embodiment of the present application;
FIG. 4 is a flowchart illustrating steps of a control device side according to an embodiment of a device configuration method of the present application;
fig. 5 is a flowchart illustrating steps of a device to be configured according to an embodiment of a device configuration method in the present application;
fig. 6 is a flowchart of steps of a device to be configured side according to another device configuration method embodiment of the present application;
FIG. 7 is a block diagram of an embodiment of an infrared-based configuration apparatus of the present application;
FIG. 8 is a block diagram of another embodiment of an infrared-based configuration apparatus of the present application;
FIG. 9 is a block diagram of an alternative embodiment of an infrared-based configuration apparatus of the present application;
FIG. 10 is a block diagram of an embodiment of a configuration apparatus of the present application;
FIG. 11 is a block diagram of an alternative embodiment of a configuration device according to the present application;
fig. 12 is a schematic structural diagram of an apparatus according to an embodiment of the present application.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description.
The embodiment of the application can be applied to the field of the Internet of things. For some Internet of things devices which are difficult to directly configure on the devices by users, the devices are conveniently configured, the configuration efficiency is improved, and the attribution of the devices can be ensured. In the embodiment of the application, the internet of things device needing configuration is called a device to be configured, and the device which transmits configuration information for the device to be configured is called a control device. The control device can be a user device such as a mobile phone, a tablet computer and a personal computer, and the device to be configured can be an internet of things device which is difficult to directly configure on the device.
Referring to fig. 1, a schematic diagram of a device configuration system in an embodiment of the present application is shown.
The system comprises: the control device 10 and the device to be configured 20 may interact with each other in a wireless manner, so that the control device 10 may transmit a wireless configuration signal to the device to be configured 20, where the wireless configuration signal carries configuration information, and the device to be configured may perform configuration required by the device according to the configuration information, such as initialization configuration operation such as networking.
In the embodiment of the present application, the wireless mode refers to a mode of data interaction through radio or radio waves, and the wireless mode includes: an infrared mode, a WIreless local area network mode, a Near Field Communication (NFC) mode, a Bluetooth (Bluetooth) mode, etc., where the WIreless local area network mode may be implemented based on a WIreless-FIdelity (WiFi) technology.
By taking an infrared mode as an example, the control device and the device to be configured are provided with the infrared interfaces, so that the transmission of configuration information can be realized by transmitting and receiving infrared signals, and the configuration of the device to be configured can be conveniently executed. If the infrared interface of the control device is used as the infrared transmitter, the infrared interface of the device to be configured can be used as a signal receiver.
The control equipment can be internally provided with an infrared interface to transmit infrared signals including infrared configuration signals, and can be externally connected with an infrared transmitter for the control equipment which is not internally provided with the infrared interface, and the infrared interface modulates the data of the control equipment into the infrared signals to be transmitted.
The equipment to be configured refers to target equipment for configuration, and the equipment to be configured can comprise a main controller, an infrared interface, some functional devices and circuits and the like. The main controller is used for completing the main body function of the electronic equipment and decoding the infrared signal; the infrared interface is used for receiving signals sent by the infrared interface (infrared transmitter).
As shown in fig. 2, the control device 10 includes an infrared interface 110, and the device to be equipped 20 includes an infrared interface 210. The device configuration method between the control device and the device to be configured can be as shown in fig. 3:
step 302, the control device obtains configuration information corresponding to the device to be configured.
The control device can assist the device to be configured to configure, and the control device can obtain configuration information corresponding to the device to be configured. A configuration interface may be displayed on the control device, and the configuration interface may be an interface of an operating system or an interface of an Application (APP). Various configuration information which can be configured and corresponds to the equipment to be configured can be displayed on the configuration interface, wherein some configuration information control equipment can be automatically acquired, and some configuration information needs to be set on the control equipment by a user, so that the configuration information of the equipment to be configured can be determined in various modes.
In one example, for configuration information that can be automatically acquired by the control device, the control device may start a corresponding module to acquire corresponding configuration information, such as location information, and the configuration device may start a location module to acquire location information and then use the location information as the configuration information. In order to ensure the attribution characteristics of the to-be-configured equipment, the control equipment performs close-range configuration on the to-be-configured equipment, the distance between the control equipment and the to-be-configured equipment is usually within a certain range, the infrared mode is within the infrared recognizable range, the recognizing ranges are limited within 2 meters and 3 meters by the wireless local area network mode and the Bluetooth mode, and therefore when the position of the to-be-configured equipment is configured, the positioning information of the control equipment can be used for configuring the position information of the to-be-configured equipment and the like.
In another example, for configuration information that cannot be automatically acquired by the control device, an input control corresponding to the configuration information may be set in the configuration interface, and the required configuration information may be acquired according to the input control. For example, the device to be configured needs to connect to a local area network to connect to the internet for network communication, so the network name and password of the local area network can be configured in the configuration interface as the network configuration information in the configuration information, and the device to be configured can access to the local area network based on the network configuration information to connect to the internet.
Configuration information required by other devices to be configured may also be obtained by the control device calling its own module, so that the other devices obtain the configuration information, or obtaining the configuration information by receiving information input by a user in a configuration interface.
And step 304, the control device determines a corresponding infrared configuration signal according to the configuration information.
After the control device acquires the configuration information, the configuration information is transmitted in an infrared mode, so that the corresponding infrared configuration signal is determined according to the configuration information. The configuration information can be converted according to the data format of the infrared signal, so that the configuration information with the set format is obtained, and the configuration information with the set format is configured according to the data transmission format of the infrared signal, so that the infrared configuration signal is obtained.
In an optional embodiment, in order to ensure accuracy of corresponding configuration of the device to be provisioned, the control device may further obtain device credential information of the device to be provisioned, where the device credential information refers to information capable of characterizing the device, such as a device identifier, a device serial number, and the like. For example, a user sees the device credential information in a package, a specification, and the like of the device to be configured, then inputs the device credential information in a configuration interface, and if the device credential information is configured in the package, the specification through a two-dimensional code, a barcode, and the like, the control device may scan data such as the two-dimensional code, the barcode, and the like through a camera and the like, and further analyze and acquire the corresponding device credential information. Then, the device certificate information can be converted according to the data format of the infrared signal, so that the device certificate information with the set format is obtained and added into the infrared configuration signal.
In another alternative embodiment, the data may be erroneous due to various reasons in the processes of reading, writing, transmitting, etc., so that the infrared configuration signal may also carry verification data, thereby facilitating verification of the configuration information. The control device and the device to be configured may agree with a verification algorithm in advance, or a verification algorithm is preset in the device to be configured, and then the control device adopts the verification algorithm supported by the device to be configured. The control device may calculate the Check data of the configuration information according to a set Check algorithm, for example, calculate the characteristic data of the configuration information as the Check data according to a Cyclic Redundancy Check (CRC) algorithm, and calculate the Check sum as the Check data according to a checksum (checksum) algorithm, for example, and then add the Check data to the infrared configuration signal.
In the embodiment of the present application, a transmission data format of an infrared configuration signal is shown in table 1:
optional information field Configuration data field Data check field
TABLE 1
The device credential information is thus added to the optional information field, the configuration information is added to the configuration data field, the verification data is added to the data verification field, and the required infrared configuration signal is generated.
And step 306, sending an infrared configuration signal corresponding to the configuration information to the device to be configured through an infrared interface.
The control equipment is provided with an infrared interface, and an infrared configuration signal can be sent to the equipment to be configured through the infrared interface, so that configuration information can be transmitted between the control equipment and the equipment to be configured. The control device can be internally provided with an infrared interface for transmitting infrared signals including infrared configuration signals, and can be externally connected with an infrared transmitter for the control device which is not internally provided with the infrared interface, the infrared transmitter is used for modulating the data of the control device into the infrared signals to be transmitted, for example, the infrared transmitter of a Universal Serial Bus (USB), the control device can transmit various information such as configuration information, verification data of the configuration information, device certificate information and the like which are configured for the device to be configured to the infrared transmitter through the USB interface, the infrared transmitter modulates the various information, adds the various information into a corresponding data domain to obtain the infrared configuration signals, and then transmits the infrared configuration signals.
And 308, the equipment to be configured acquires configuration information from the infrared configuration signal.
The device to be configured can receive the infrared configuration signal through the infrared interface so as to configure the device. The infrared configuration signal can be analyzed, data in each data domain can be obtained and analyzed, corresponding configuration information and verification data can be obtained, and equipment certificate information can also be obtained, so that equipment configuration is facilitated.
In an optional embodiment, the device to be configured may be configured in a scenario where there is no valid configuration, such as initial start, start after factory reset, configuration failure due to unknown reasons, and the like, and accordingly, the device may be configured by starting a mode to be configured in the device to be configured. When the equipment is configured through the to-be-configured mode, the decoding function of the infrared configuration signal can be activated in the to-be-configured mode, and hardware resources (such as general input/output pins and a main controller) can be multiplexed, so that the hardware cost is effectively reduced.
The main controller can start a decoding function (for example, starting in a to-be-configured mode), and then decode the infrared configuration signal to obtain corresponding configuration information and verification data, and can also obtain equipment certificate information.
And 310, the equipment to be configured performs equipment configuration according to the configuration information.
And after the equipment to be configured acquires the configuration information, the equipment can be configured. Wherein, the following at least one equipment configuration step is carried out according to the configuration information: connecting a corresponding wireless network according to the network configuration information in the configuration information; and setting corresponding position information according to the positioning information in the configuration information.
The configuration information includes: the network configuration information can obtain a network name and a password from the network configuration information, then search for a wireless local area network corresponding to the network name, and establish connection through the password, thereby realizing the networking configuration of the equipment to be configured. The configuration information comprises positioning information, the main controller of the equipment to be configured can acquire the positioning information from the configuration information, and then the position information of the main controller is set according to the positioning information, so that the position configuration is realized. For other configuration information in the configuration information, corresponding configuration operation may also be executed based on actual configuration information, which is not limited in this embodiment of the application.
In order to ensure the accuracy of configuration, various verification operations including verification of devices, verification of data, and the like can be performed. And executing the equipment configuration after the verification is passed, and if the verification is not passed, not executing the equipment configuration.
In an optional embodiment, the device credential information is obtained from the infrared configuration signal, and device verification is performed according to the device credential information. The method comprises the steps of obtaining equipment certificate information such as equipment identification, equipment serial number and the like, comparing the equipment certificate information such as the equipment identification and the equipment serial number with the equipment certificate information of the equipment, determining whether the equipment certificate information is matched, if so, passing equipment verification, and otherwise, failing to pass the equipment verification. And determining that the equipment to be configured erroneously receives the configuration information of other equipment, and not configuring the equipment according to the configuration information.
In another optional embodiment, verification data is obtained from a data verification domain of the infrared configuration signal; and calculating verification data corresponding to the configuration information according to a set verification algorithm, and verifying the configuration information according to the calculated verification data and the acquired verification data. The verification data (which may be referred to as first verification data) may be acquired from the data verification domain, the configuration information in the configuration data domain may be calculated according to a set verification algorithm to obtain corresponding verification data (which may be referred to as second verification data), and then the calculated verification data (second verification data) and the acquired verification data (first verification data) may be compared to determine whether the two are matched, if so, the data verification is passed, otherwise, the data verification cannot be passed. For the case of data verification error, it can be determined that the data has an error during transmission, reading, writing, etc., and cannot be configured according to the configuration information.
The configuration of the equipment to be configured can be realized based on the process, so that the equipment to be configured can be rapidly configured.
Referring to fig. 4, a flowchart illustrating steps of a control device side according to an embodiment of the device configuration method of the present application is shown.
Step 402, obtaining configuration information and device credential information corresponding to a device to be configured.
The method comprises the following steps of obtaining configuration information corresponding to at least one device to be configured: acquiring network configuration information of a network corresponding to the device to be configured, wherein the network configuration information comprises: a network name and password; and calling a positioning module to acquire positioning information. The control device may obtain the network name and password of the wireless lan as the network configuration information based on various means such as user input, automatic acquisition, transmission by other devices, and the like. The control equipment can also call a positioning module of the control equipment to acquire positioning information, and the positioning information is used as configuration information.
The configuration interface of the control device may also be used to obtain device credential information, for example, if a user sees the device credential information in a package, a specification, or the like of the device to be configured, and then inputs the device credential information in the configuration interface, and if the package, the specification configures the device credential information in a two-dimensional code, a barcode, or the like, the control device may scan data such as the two-dimensional code, the barcode, or the like through a camera or other device, and then analyze and obtain the corresponding device credential information.
And step 404, calculating the verification data of the configuration information according to a set verification algorithm.
The control device and the device to be configured may agree with a verification algorithm in advance, or a verification algorithm is preset in the device to be configured, and then the control device adopts the verification algorithm supported by the device to be configured. The control device may calculate the check data of the configuration information according to a set check algorithm, for example, calculate the feature data of the configuration information as the check data according to a CRC algorithm, or calculate the check sum as the check data according to a checksum algorithm, or the like
Step 406, adding the configuration information to a configuration data field of an infrared configuration signal, adding the device credential information to the infrared configuration signal, and adding verification data to a data verification field of the infrared configuration signal.
And step 408, sending an infrared configuration signal corresponding to the configuration information through an infrared interface.
The control equipment is provided with an infrared interface, and an infrared configuration signal can be sent to the equipment to be configured through the infrared interface, so that configuration information can be transmitted between the control equipment and the equipment to be configured. The control equipment can be internally provided with an infrared interface to transmit infrared signals including infrared configuration signals, and can be externally connected with an infrared transmitter for the control equipment which is not internally provided with the infrared interface, and the infrared transmitter is used for modulating the data of the control equipment into the infrared signals to transmit.
Referring to fig. 5, a flowchart of steps of a device to be configured side in an embodiment of the device configuration method according to the present application is shown.
Step 502, receiving an infrared configuration signal of the control device through an infrared interface.
The to-be-configured mode can be set in the to-be-configured equipment, the equipment configuration can be carried out only when the to-be-configured mode is started in the to-be-configured equipment, and the equipment configuration is not carried out in other modes. The device to be configured can perform the standby configuration mode in the absence of effective configuration, and the scene of the absence of effective configuration includes but is not limited to initial start, start after the device is restored from a factory, configuration failure caused by unknown reasons, and the like. And activating a decoding function of the infrared configuration signal in the to-be-configured mode so as to analyze the infrared configuration signal, and thus obtaining the equipment certificate information, the configuration information and the verification data from the analyzed infrared configuration information.
Step 504, obtaining the device certificate information from the infrared configuration signal, and determining to perform device verification according to the device certificate information.
At step 506, the device checks if it passes.
The method comprises the steps of obtaining equipment certificate information such as equipment identification, equipment serial number and the like, comparing the equipment certificate information such as the equipment identification and the equipment serial number with the equipment certificate information of the equipment, determining whether the equipment certificate information is matched, if so, passing equipment verification, and otherwise, failing to pass the equipment verification.
If yes, i.e. the device passes the verification, step 508 may be executed; if not, namely the device verification fails, the device to be configured is represented to receive the configuration information of other devices in error, and the device configuration is not performed according to the configuration information, so that the process can be ended.
Step 508, obtaining configuration information from a configuration data field of the infrared configuration signal.
Step 510, obtaining verification data from a data verification domain of the infrared configuration signal.
After the device passes the verification, the configuration information can be obtained from the configuration data field of the infrared configuration signal, and the verification data can be obtained from the data verification field of the infrared configuration signal.
And 512, calculating verification data corresponding to the configuration information according to a set verification algorithm, and verifying the configuration information according to the calculated verification data and the acquired verification data.
At step 514, the data is checked for a pass.
The verification data can be obtained from the data verification domain, the configuration information in the configuration data domain is calculated according to a set verification algorithm to obtain corresponding verification data, then the calculated verification data and the obtained verification data can be compared to determine whether the two are matched, if so, the data verification is passed, otherwise, the data verification cannot be passed.
If yes, i.e. the data check is passed, step 516 may be executed; if not, the data check is not passed, and it can be determined that an error occurs in the data in the processes of transmission, reading, writing, and the like, and the configuration cannot be performed according to the configuration information, so that the process can be ended.
In this embodiment, the sequence of each step is not limited, for example, after the device credential information, the configuration information, and the verification data are all acquired, device verification and data verification may be performed, and if data verification is performed first and then device verification is performed.
Step 516, performing device configuration according to the configuration information.
According to the configuration information, the device can be configured with corresponding information, such as network connection, location, etc. The network configuration information comprises network name and password, and the wireless local area network corresponding to the network name is searched, and connection is established through the password, so that the networking configuration of the equipment to be configured is realized; the positioning information can be obtained from the configuration information, and then the position information of the positioning information is set according to the positioning information, so that the configuration of the position and the like are realized.
According to the embodiment of the application, the configuration information transmission in an infrared mode can be realized through the built-in infrared interface of the equipment or in a mode of externally connecting the equipment with an infrared transmitter, the convenience of data transmission is improved, and the equipment such as various mobile phones can be conveniently adopted as control equipment.
In the equipment to be configured, the decoding of the infrared signal can be controlled by the main controller, so that the infrared decoding function can be activated in the mode to be configured, and the multiplexing of hardware resources (such as GPIO pins and the main controller) is achieved, thereby effectively reducing the hardware cost.
The embodiment of the application can also verify the attribution of the equipment through the equipment certificate information, thereby reducing the possibility of mis-configuration of other equipment, and the configuration is carried out according to the configuration information passing the verification and the success rate of the configuration is improved.
The device configuration method is discussed by taking an infrared mode as an example, and device configuration can be performed in practical processing through WiFi, Bluetooth, NFC and other modes.
The control equipment can acquire configuration information corresponding to the equipment to be configured; and then determining a corresponding wireless configuration signal according to the configuration information, and sending the wireless configuration signal corresponding to the configuration information. The wireless configuration signal includes at least one of: an infrared wireless configuration signal; a wireless configuration signal for a wireless local area network; a wireless configuration signal of a near field communication mode; and configuring signals through Bluetooth in a Bluetooth mode. The manner of acquiring the configuration information corresponding to the device to be configured by the control device is similar to that in the above embodiment, and therefore, the details are not repeated. For generating the corresponding wireless configuration signal according to the configuration information, a signal conversion method can be determined according to the corresponding wireless transmission technology, so that the wireless configuration signal with the corresponding format is generated. The wireless configuration signal can also be provided with optional information field carrying equipment certificate information, configuration data field carrying configuration information, data verification field carrying verification data and the like correspondingly in an infrared mode.
For the equipment to be configured, a wireless configuration signal of the control equipment can be received; and acquiring configuration information from the wireless configuration signal, and configuring the equipment according to the configuration information. The wireless configuration signal of the control device may be received in a corresponding wireless manner, and then the configuration information may be obtained through analysis, and the device to be configured may perform device configuration according to the configuration information, and the configuration manner is similar to that in the above embodiment, and thus is not described again. In addition, if the device credential information and/or the verification data are carried in the wireless configuration signal, so as to perform corresponding device verification and/or data verification, the verification process is similar to the above embodiment, and thus is not described again.
The infrared mode and the NFC mode are generally implemented in a relatively short distance, and may be regarded as a mode of transmitting signals within the user line of sight, while for WiFi, bluetooth and other modes, the transmission distance of the signals may be longer, and if the transmission distance exceeds the user line of sight, the mode may be implemented within a certain range, so as to ensure the ownership of the device. The device to be configured may therefore calculate the distance to the control device based on the received wireless signal, thereby determining whether to perform the device configuration.
In an alternative embodiment, the configuration method of the device to be configured is shown in fig. 6.
Step 602, a wireless configuration signal of a control device is received.
Step 604, calculating distance information between the device to be configured and the control device according to the wireless configuration signal.
The equipment to be matched can receive the wireless configuration signal of the control equipment, and then the distance information between the equipment to be matched and the control equipment is calculated according to the wireless configuration signal. For example, the distance information between the equipment to be configured and the control equipment is calculated according to parameters such as signal strength, WiFi fingerprint (fingerprint), signal arrival angle, signal flight time and the like.
Step 606, according to the distance information, judging whether the control equipment meets the equipment attribution condition.
It may then be determined, based on the distance information, whether the control device fulfils the device attribution condition, e.g. comparing the distance information with a distance threshold, which may be determined on demand, indoor situation, e.g. 2, 3 meters. If the distance information is less than the distance threshold, the control equipment can be determined to meet the equipment attribution condition; otherwise, if the distance information is not less than the distance threshold, it may be determined that the control device does not satisfy the device attribution condition.
If yes, the control device performs step 608 if the device ownership condition is satisfied; if not, that is, the control device does not satisfy the device attribution condition, the device to be configured is not attributed to the control device for configuration, and the process may be ended.
Step 608, obtaining configuration information from the wireless configuration signal, and performing device configuration according to the configuration information.
After the control device meets the device attribution condition, the configuration information may be obtained from the wireless configuration signal, and the device configuration may be performed according to the configuration information.
According to the embodiment of the application, the initial configuration capable of ensuring the ownership of the equipment can be carried out on electronic equipment such as IoT equipment without complex input and output components, the configuration of illegal users can be effectively eliminated through a signal transmission mode of in-line-of-sight transmission, the configuration is low in cost, and the configuration method is convenient and fast.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the embodiments are not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the embodiments. Further, those skilled in the art will also appreciate that the embodiments described in the specification are presently preferred and that no particular act is required of the embodiments of the application.
On the basis of the above embodiments, the present embodiment further provides a configuration device, which is applied to a control device.
Referring to fig. 7, a block diagram of an embodiment of an infrared-based configuration apparatus according to the present application is shown, which may specifically include the following modules:
the configuration obtaining module 702 is configured to obtain configuration information corresponding to a device to be provisioned and device credential information of the device to be provisioned.
A configuration module 704, configured to determine a corresponding infrared configuration signal according to the configuration information and the device credential information.
A sending module 706, configured to send an infrared configuration signal corresponding to the configuration information through an infrared interface.
The configuration module 704 is configured to add the configuration information to a configuration data field of an infrared configuration signal, and add the device credential information to an optional information field of the infrared configuration signal.
The configuration module 704 is further configured to calculate verification data of the configuration information according to a set verification algorithm, and add the verification data to a data verification field of the infrared configuration signal.
The configuration obtaining module 702 is configured to obtain network configuration information of a network corresponding to the device to be configured, where the network configuration information includes: a network name and password; and/or calling a positioning module to acquire positioning information.
The infrared interface is arranged on the control equipment or an external infrared emitter of the control equipment.
On the basis of the above embodiments, the present embodiment further provides a configuration device, which is applied to a device to be configured.
Referring to fig. 8, a block diagram of another infrared-based configuration apparatus according to an embodiment of the present application is shown, which may specifically include the following modules:
a receiving module 802, configured to receive an infrared configuration signal of a control device through an infrared interface;
and the device configuration module 804 is configured to acquire configuration information and device credential information from the infrared configuration signal, and perform device configuration according to the configuration information and the device credential information.
Referring to fig. 9, a block diagram of another alternative embodiment of the infrared-based configuration apparatus of the present application is shown, and specifically, the configuration apparatus may include the following modules:
a receiving module 802, configured to receive an infrared configuration signal of a control device through an infrared interface;
and the device configuration module 804 is configured to acquire configuration information and device credential information from the infrared configuration signal, and perform device configuration according to the configuration information and the device credential information.
Wherein the device configuration module 804 includes: an acquisition submodule 8042, an equipment verification submodule 8044, a data verification submodule 8046, and a configuration submodule 8048, wherein:
an obtaining submodule 8042, configured to obtain configuration information from a configuration data field of the infrared configuration signal; acquiring device credential information from an optional information field of the infrared configuration signal; and acquiring verification data from the data verification domain of the infrared configuration signal.
And the device verification submodule 8044 is configured to perform device verification according to the device credential information.
The data verification sub-module 8046 is configured to calculate verification data corresponding to the configuration information according to a set verification algorithm, and verify the configuration information according to the calculated verification data and the acquired verification data.
A configuration submodule 8048, configured to connect to a corresponding wireless network according to the network configuration information in the configuration information; and/or setting corresponding position information according to the positioning information in the configuration information.
According to the embodiment of the application, the configuration information transmission in an infrared mode can be realized through the built-in infrared interface of the equipment or in a mode of externally connecting the equipment with an infrared transmitter, the convenience of data transmission is improved, and the equipment such as various mobile phones can be conveniently adopted as control equipment.
In the equipment to be configured, the decoding of the infrared signal can be controlled by the main controller, so that the infrared decoding function can be activated in the mode to be configured, and the multiplexing of hardware resources (such as GPIO pins and the main controller) is achieved, thereby effectively reducing the hardware cost.
The embodiment of the application can also verify the attribution of the equipment through the equipment certificate information, thereby reducing the possibility of mis-configuration of other equipment, and the configuration is carried out according to the configuration information passing the verification and the success rate of the configuration is improved.
The device configuration method is discussed by taking an infrared mode as an example, and device configuration can be performed in practical processing through WiFi, Bluetooth, NFC and other modes.
On the basis of the above embodiments, the present embodiment further provides a configuration device, which is applied to a control device.
Referring to fig. 10, a block diagram of a configuration apparatus according to an embodiment of the present application is shown, which may specifically include the following modules:
the information obtaining module 1002 is configured to obtain configuration information corresponding to a device to be provisioned and device credential information of the device to be provisioned.
A signal configuration module 1004, configured to determine a corresponding wireless configuration signal according to the configuration information and the device credential information
A signal sending module 1006, configured to send a wireless configuration signal corresponding to the configuration information.
The wireless configuration signal includes at least one of: an infrared wireless configuration signal; a wireless configuration signal for a wireless local area network; a wireless configuration signal of a near field communication system.
On the basis of the above embodiments, the present embodiment further provides a configuration device, which is applied to a device to be configured.
Referring to fig. 11, a block diagram of another configuration apparatus embodiment of the present application is shown, which may specifically include the following modules:
a signal receiving module 1102, configured to receive a wireless configuration signal of a control device;
a home checking module 1106, configured to calculate distance information between the device to be configured and the control device according to the wireless configuration signal; judging whether the control equipment meets equipment attribution conditions or not according to the distance information; and when the control equipment meets the equipment attribution condition, triggering an information configuration module.
An information configuration module 1104, configured to obtain configuration information and device credential information from the wireless configuration signal, and perform device configuration according to the configuration information and the device credential information.
The wireless configuration signal includes at least one of: an infrared wireless configuration signal; a wireless configuration signal for a wireless local area network; a wireless configuration signal of a near field communication system.
According to the embodiment of the application, the initial configuration capable of ensuring the ownership of the equipment can be carried out on electronic equipment such as IoT equipment without complex input and output components, the configuration of illegal users can be effectively eliminated through a signal transmission mode of in-line-of-sight transmission, the configuration is low in cost, and the configuration method is convenient and fast.
The present application further provides a non-transitory, readable storage medium, where one or more modules (programs) are stored, and when the one or more modules are applied to a device, the device may execute instructions (instructions) of method steps in this application.
Embodiments of the present application provide one or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause an electronic device to perform the methods as described in one or more of the above embodiments. In the embodiment of the application, the electronic equipment comprises control equipment, equipment to be tested and other internet of things equipment.
Embodiments of the present disclosure may be implemented as an apparatus, which may include electronic devices such as servers (clusters), control devices, devices under test, terminal devices, IoT devices, and the like, using any suitable hardware, firmware, software, or any combination thereof, for a desired configuration. Fig. 12 schematically illustrates an example apparatus 1200 that can be used to implement various embodiments described herein.
For one embodiment, fig. 12 illustrates an example apparatus 1200 having one or more processors 1202, a control module (chipset) 1204 coupled to at least one of the processor(s) 1202, a memory 1206 coupled to the control module 1204, a non-volatile memory (NVM)/storage 1208 coupled to the control module 1204, one or more input/output devices 1210 coupled to the control module 1204, and a network interface 1212 coupled to the control module 1206.
The processor 1202 may include one or more single-core or multi-core processors, and the processor 1202 may include any combination of general-purpose or special-purpose processors (e.g., graphics processors, application processors, baseband processors, etc.). In some embodiments, the apparatus 1200 can be used as a control device, a device under test, or the like in embodiments of the present application.
In some embodiments, the apparatus 1200 may include one or more computer-readable media (e.g., the memory 1206 or NVM/storage 1208) having instructions 1214 and one or more processors 1202 in combination with the one or more computer-readable media and configured to execute the instructions 1214 to implement modules to perform the actions described in this disclosure.
For one embodiment, the control module 1204 may include any suitable interface controllers to provide any suitable interface to at least one of the processor(s) 1202 and/or to any suitable device or component in communication with the control module 1204.
The control module 1204 may include a memory controller module to provide an interface to the memory 1206. The memory controller module may be a hardware module, a software module, and/or a firmware module.
Memory 1206 may be used, for example, to load and store data and/or instructions 1214 for apparatus 1200. For one embodiment, memory 1206 may comprise any suitable volatile memory, such as suitable DRAM. In some embodiments, the memory 1206 may comprise a double data rate type four synchronous dynamic random access memory (DDR4 SDRAM).
For one embodiment, the control module 1204 may include one or more input/output controllers to provide an interface to the NVM/storage 1208 and the input/output device(s) 1210.
For example, NVM/storage 1208 may be used to store data and/or instructions 1214. NVM/storage 1208 may include any suitable non-volatile memory (e.g., flash memory) and/or may include any suitable non-volatile storage device(s) (e.g., one or more hard disk drive(s) (HDD (s)), one or more Compact Disc (CD) drive(s), and/or one or more Digital Versatile Disc (DVD) drive (s)).
The NVM/storage 1208 may include storage resources physically part of the device on which the apparatus 1200 is installed, or it may be accessible by the device and may not necessarily be part of the device. For example, the NVM/storage 1208 may be accessed over a network via the input/output device(s) 1210.
Input/output device(s) 1210 may provide an interface for apparatus 1200 to communicate with any other suitable device, input/output devices 1210 may include communication components, audio components, sensor components, and the like. The network interface 1212 may provide an interface for the device 1200 to communicate over one or more networks, and the device 1200 may wirelessly communicate with one or more components of a wireless network according to any of one or more wireless network standards and/or protocols, such as access to a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, etc., or a combination thereof.
For one embodiment, at least one of the processor(s) 1202 may be packaged together with logic for one or more controller(s) (e.g., memory controller module) of the control module 1204. For one embodiment, at least one of the processor(s) 1202 may be packaged together with logic for one or more controllers of the control module 1204 to form a System In Package (SiP). For one embodiment, at least one of the processor(s) 1202 may be integrated on the same die with logic for one or more controller(s) of the control module 1204. For one embodiment, at least one of the processor(s) 1202 may be integrated on the same die with logic of one or more controllers of the control module 1204 to form a system on a chip (SoC).
In various embodiments, the apparatus 1200 may be, but is not limited to being: a server, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet, a netbook, etc.), among other terminal devices. In various embodiments, the apparatus 1200 may have more or fewer components and/or different architectures. For example, in some embodiments, device 1200 includes one or more cameras, a keyboard, a Liquid Crystal Display (LCD) screen (including a touch screen display), a non-volatile memory port, multiple antennas, a graphics chip, an Application Specific Integrated Circuit (ASIC), and speakers.
The embodiment of the application provides an electronic device, such as control device, equipment to be furnished and the like, this electronic device includes: one or more processors; and one or more machine readable media having instructions stored thereon that, when executed by the one or more processors, cause the server to perform a device configuration method as described in one or more of the embodiments of the application.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the true scope of the embodiments of the application.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal 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 terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The above detailed description is provided for a device configuration method, a configuration apparatus, an electronic device and a storage medium, and specific examples are applied herein to explain the principles and embodiments of the present application, and the descriptions of the above embodiments are only used to help understand the method and the core ideas of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (38)

1. A device configuration method is applied to a control device, and comprises the following steps:
acquiring configuration information corresponding to equipment to be configured and equipment certificate information of the equipment to be configured;
determining a corresponding infrared configuration signal according to the configuration information and the equipment certificate information;
and sending an infrared configuration signal corresponding to the configuration information through an infrared interface.
2. The method of claim 1, wherein said determining a corresponding infrared signal based on said configuration information device credential information comprises:
adding the configuration information to a configuration data field of an infrared configuration signal;
adding the device credential information to an optional information field of the infrared configuration signal.
3. The method of claim 2, further comprising:
and calculating the verification data of the configuration information according to a set verification algorithm, and adding the verification data into the data verification field of the infrared configuration signal.
4. The method according to claim 1, wherein the step of obtaining configuration information corresponding to at least one of the following devices to be configured comprises:
acquiring network configuration information of a network corresponding to the device to be configured, wherein the network configuration information comprises: a network name and password;
and calling a positioning module to acquire positioning information.
5. The method according to any one of claims 1 to 4, wherein the infrared interface is provided on the control device or on an external infrared transmitter of the control device.
6. A device configuration method is applied to a device to be configured, and the method comprises the following steps:
receiving an infrared configuration signal of the control equipment through an infrared interface;
acquiring configuration information and equipment certificate information from the infrared configuration signal;
and carrying out equipment configuration according to the configuration information and the equipment certificate information.
7. The method of claim 6, wherein obtaining configuration information and device credential information from the infrared configuration signal comprises:
and acquiring configuration information from a configuration data field of the infrared configuration signal, and acquiring equipment certificate information from an optional information field of the infrared configuration signal.
8. The method according to claim 7, wherein said performing at least one of the following device configuration steps according to the configuration information:
connecting a corresponding wireless network according to the network configuration information in the configuration information;
and setting corresponding position information according to the positioning information in the configuration information.
9. The method of claim 7, wherein the step of configuring the device according to the device credential information comprises:
and verifying the equipment according to the equipment certificate information.
10. The method of claim 9, further comprising:
acquiring verification data from a data verification domain of the infrared configuration signal;
and calculating verification data corresponding to the configuration information according to a set verification algorithm, and verifying the configuration information according to the calculated verification data and the acquired verification data.
11. A device configuration method is applied to a control device, and comprises the following steps:
acquiring configuration information corresponding to equipment to be configured and equipment certificate information of the equipment to be configured;
determining a corresponding wireless configuration signal according to the configuration information and the equipment certificate information;
and sending a wireless configuration signal corresponding to the configuration information.
12. The method of claim 11, wherein the wireless configuration signal comprises at least one of:
an infrared wireless configuration signal;
a wireless configuration signal for a wireless local area network;
a wireless configuration signal of a near field communication system.
13. A device configuration method is applied to a device to be configured, and the method comprises the following steps:
receiving a wireless configuration signal of a control device;
acquiring configuration information and equipment certificate information from the wireless configuration signal;
and carrying out equipment configuration according to the configuration information and the equipment certificate information.
14. The method of claim 13, wherein the wireless configuration signal comprises a wireless configuration signal of a wireless local area network; after receiving the wireless configuration signal of the control device, the method further includes:
calculating distance information of the equipment to be configured and the control equipment according to the wireless configuration signal;
judging whether the control equipment meets equipment attribution conditions or not according to the distance information;
and executing equipment configuration when the control equipment meets equipment attribution conditions.
15. The method of claim 13, wherein the wireless configuration signal comprises at least one of:
an infrared wireless configuration signal;
a wireless configuration signal for a wireless local area network;
a wireless configuration signal of a near field communication system.
16. A configuration device is applied to control equipment, and the device comprises:
the configuration acquisition module is used for acquiring configuration information corresponding to the equipment to be configured and equipment certificate information of the equipment to be configured;
the configuration module is used for determining a corresponding infrared configuration signal according to the configuration information and the equipment certificate information;
and the sending module is used for sending the infrared configuration signal corresponding to the configuration information through an infrared interface.
17. The apparatus of claim 16,
the configuration module is used for adding the configuration information into a configuration data field of an infrared configuration signal and adding the device credential information into an optional information field of the infrared configuration signal.
18. The apparatus of claim 17,
the configuration module is further configured to calculate verification data of the configuration information according to a set verification algorithm, and add the verification data to a data verification field of the infrared configuration signal.
19. The apparatus of claim 16,
the configuration obtaining module is configured to obtain network configuration information of a network corresponding to the device to be configured, where the network configuration information includes: a network name and password; and/or calling a positioning module to acquire positioning information.
20. The apparatus of any one of claims 16-19, wherein the infrared interface is disposed on the control device or on an infrared transmitter external to the control device.
21. A configuration device is applied to equipment to be configured, and the device comprises:
the receiving module is used for receiving an infrared configuration signal of the control equipment through an infrared interface;
and the equipment configuration module is used for acquiring configuration information and equipment certificate information from the infrared configuration signal and configuring equipment according to the configuration information and the equipment certificate information.
22. The apparatus of claim 21, wherein the device configuration module comprises:
and the acquisition submodule is used for acquiring configuration information from a configuration data field of the infrared configuration signal and acquiring equipment certificate information from an optional information field of the infrared configuration signal.
23. The apparatus of claim 22, wherein the device configuration module comprises:
the configuration submodule is used for connecting a corresponding wireless network according to the network configuration information in the configuration information; and/or setting corresponding position information according to the positioning information in the configuration information.
24. The apparatus of claim 22, wherein the device configuration module comprises:
and the equipment checking submodule is used for carrying out equipment checking according to the equipment certificate information.
25. The apparatus of claim 24, wherein the device configuration module further comprises: a data check submodule;
the acquisition submodule is used for acquiring verification data from a data verification domain of the infrared configuration signal;
and the data checking submodule is used for calculating checking data corresponding to the configuration information according to a set checking algorithm and checking the configuration information according to the calculated checking data and the acquired checking data.
26. A configuration device is applied to control equipment, and the device comprises:
the information acquisition module is used for acquiring configuration information corresponding to the equipment to be configured and equipment certificate information of the equipment to be configured;
the signal configuration module is used for determining a corresponding wireless configuration signal according to the configuration information and the equipment certificate information;
and the signal sending module is used for sending the wireless configuration signal corresponding to the configuration information.
27. The apparatus of claim 26, wherein the wireless configuration signal comprises at least one of: an infrared wireless configuration signal; a wireless configuration signal for a wireless local area network; a wireless configuration signal of a near field communication system.
28. A configuration device is applied to equipment to be configured, and the device comprises:
the signal receiving module is used for receiving a wireless configuration signal of the control equipment;
and the information configuration module is used for acquiring configuration information and equipment certificate information from the wireless configuration signal and configuring equipment according to the configuration information and the equipment certificate information.
29. The apparatus of claim 28, wherein the wireless configuration signal comprises a wireless configuration signal of a wireless local area network; further comprising:
the attribution checking module is used for calculating the distance information between the equipment to be configured and the control equipment according to the wireless configuration signal; judging whether the control equipment meets equipment attribution conditions or not according to the distance information; and when the control equipment meets the equipment attribution condition, triggering an information configuration module.
30. The apparatus of claim 28, wherein the wireless configuration signal comprises at least one of: an infrared wireless configuration signal; a wireless configuration signal for a wireless local area network; a wireless configuration signal of a near field communication system.
31. An electronic device, comprising:
a processor; and
memory having stored thereon executable code which, when executed, causes the processor to perform a device configuration method as claimed in one or more of claims 1-5.
32. One or more machine-readable media having executable code stored thereon that, when executed, causes a processor to perform a device configuration method as recited in one or more of claims 1-5.
33. An electronic device, comprising:
a processor; and
memory having stored thereon executable code which, when executed, causes the processor to perform a device configuration method as claimed in one or more of claims 6-10.
34. One or more machine-readable media having executable code stored thereon that, when executed, causes a processor to perform a device configuration method as recited in one or more of claims 6-10.
35. An electronic device, comprising:
a processor; and
memory having stored thereon executable code which, when executed, causes the processor to perform a device configuration method as claimed in one or more of claims 11-12.
36. One or more machine-readable media having executable code stored thereon that, when executed, causes a processor to perform a device configuration method as recited in one or more of claims 11-12.
37. An electronic device, comprising:
a processor; and
memory having stored thereon executable code which, when executed, causes the processor to perform a device configuration method as claimed in one or more of claims 13-15.
38. One or more machine-readable media having executable code stored thereon that, when executed, causes a processor to perform a device configuration method as recited in one or more of claims 13-15.
CN201810963092.1A 2018-08-22 2018-08-22 Device configuration method and device, electronic device and storage medium Active CN110858847B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810963092.1A CN110858847B (en) 2018-08-22 2018-08-22 Device configuration method and device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810963092.1A CN110858847B (en) 2018-08-22 2018-08-22 Device configuration method and device, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN110858847A true CN110858847A (en) 2020-03-03
CN110858847B CN110858847B (en) 2022-05-10

Family

ID=69634954

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810963092.1A Active CN110858847B (en) 2018-08-22 2018-08-22 Device configuration method and device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN110858847B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101859364A (en) * 2009-04-08 2010-10-13 捷讯研究有限公司 Systems, devices, and methods for displaying barcode at computing device
US20140280958A1 (en) * 2013-03-15 2014-09-18 Chef Software Inc. Configuration management for a resource with prerequisites
US20150382198A1 (en) * 2014-06-30 2015-12-31 Libre Wireless Technologies, Inc. Systems and techniques for wireless device configuration
CN105703829A (en) * 2016-01-21 2016-06-22 青岛海尔智能家电科技有限公司 WiFi network node information transmission method, and WiFi network node information access method and device
CN107181651A (en) * 2017-06-23 2017-09-19 海信集团有限公司 Intelligent home device collocation method and device
CN107342884A (en) * 2016-05-03 2017-11-10 施耐德电气工业公司 For network configuration and the method and apparatus of connection
US20180176774A1 (en) * 2016-12-19 2018-06-21 John Miller System and Method for Ensuring Secure Connections

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101859364A (en) * 2009-04-08 2010-10-13 捷讯研究有限公司 Systems, devices, and methods for displaying barcode at computing device
US20140280958A1 (en) * 2013-03-15 2014-09-18 Chef Software Inc. Configuration management for a resource with prerequisites
US20150382198A1 (en) * 2014-06-30 2015-12-31 Libre Wireless Technologies, Inc. Systems and techniques for wireless device configuration
CN105703829A (en) * 2016-01-21 2016-06-22 青岛海尔智能家电科技有限公司 WiFi network node information transmission method, and WiFi network node information access method and device
CN107342884A (en) * 2016-05-03 2017-11-10 施耐德电气工业公司 For network configuration and the method and apparatus of connection
US20180176774A1 (en) * 2016-12-19 2018-06-21 John Miller System and Method for Ensuring Secure Connections
CN107181651A (en) * 2017-06-23 2017-09-19 海信集团有限公司 Intelligent home device collocation method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
LL-KYU HWANG ET AL: ""Home network configuring scheme for all electric appliances using ZigBee-based integrated remote controller"", 《IEEE TRANSACTIONS ON CONSUMER ELECTRONICS》 *
殷瑞蔓: ""基于WoT的微信智能控制系统的设计与实现"", 《中国优秀硕士学位论文全文数据库(电子期刊)》 *

Also Published As

Publication number Publication date
CN110858847B (en) 2022-05-10

Similar Documents

Publication Publication Date Title
US11055392B2 (en) Proximity unlock and lock operations for electronic devices
US10430568B2 (en) Device security utilizing continually changing QR codes
KR102061913B1 (en) Method and apparatus for controlling operations of electronic device
CN105306204B (en) Security verification method, device and system
RU2646354C2 (en) Method, device and system for installation of transmission connection
US20140206288A1 (en) Device, method, and system for securely pairing mobile communication devices using movement
KR101808217B1 (en) Wireless access method and relevant device and system
US10104538B2 (en) Apparatus and method for providing a mobile device management service
US10481569B2 (en) Household appliance control method and device, and central processing device
KR102173242B1 (en) Local wireless data communication system, method and apparatus for automactic setup of imformation
KR102190436B1 (en) Electronic device and method for transceiving data
US20150288528A1 (en) Method for application installation, electronic device, and certificate system
US11451539B2 (en) Identity identification and preprocessing
US20130282903A1 (en) Method, system and apparatus for accessing a communications network
KR20170121242A (en) Identity authentication methods, devices and systems
CN106375096B (en) short message verification method and device
EP2753048B1 (en) Apparatus and method for providing a near field communication function in a portable terminal
CN104703252A (en) Terminal device accessing into wireless network method and device
CN105657781B (en) WiFi network access method and device
CN110474879B (en) Identity recognition preprocessing method, identity recognition method, and equipment and system thereof
AU2015273144A1 (en) Methods and systems for authentication of a communication device
CN110858847B (en) Device configuration method and device, electronic device and storage medium
CN105574400A (en) Information processing method and electronic device
WO2014079292A1 (en) A method for controlling web application through a smart terminal and a smart terminal for controlling web application
JP2022076942A (en) Communication apparatus, control method for communication apparatus, and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40024920

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant