WO2022095709A1 - 一种设备配网方法及装置 - Google Patents

一种设备配网方法及装置 Download PDF

Info

Publication number
WO2022095709A1
WO2022095709A1 PCT/CN2021/125317 CN2021125317W WO2022095709A1 WO 2022095709 A1 WO2022095709 A1 WO 2022095709A1 CN 2021125317 W CN2021125317 W CN 2021125317W WO 2022095709 A1 WO2022095709 A1 WO 2022095709A1
Authority
WO
WIPO (PCT)
Prior art keywords
network
identity information
routing
information
distributed
Prior art date
Application number
PCT/CN2021/125317
Other languages
English (en)
French (fr)
Inventor
王杭
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022095709A1 publication Critical patent/WO2022095709A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W60/00Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals

Definitions

  • the present application relates to the field of smart devices, and in particular, to a device network distribution method and device.
  • the architecture diagram of smart devices connecting to the Internet is usually connected to the Internet by first connecting the smart devices to the gateway device through the access protocol, and then connecting the smart devices to the gateway device through the gateway device. Convert the access protocol into a communication protocol to access the Internet.
  • the process of connecting the smart device to the gateway device is the device network configuration.
  • the gateway device includes a router as an example.
  • the device network configuration method in the related art requires at least the following operations: First, in step 1, the user The user account needs to be registered on the device application (Application, APP). In step 2, the user needs to manually add information of the smart device on the device APP, such as the category of the smart device, whether it is a smart light or a smart speaker. Under the prompt of the device APP, in step 3, the user needs to manually operate the device controls on the smart device to make the smart device enter the network distribution state. In this case, in step 4, the smart device enters the network distribution state and sends a signal to inform Users, such as flashing lights, making preset sounds, etc.
  • step 5 the user can manually confirm on the device APP that the smart device has entered the network configuration state. Based on this, in step 6, the device APP can start scanning for Wifi signals, and display the scanned Wifi signal names in the APP user interface. In step 7, the user can manually input the password under the Wifi signal name of the home or company. In step 8, the device APP can send the Wifi signal name and password to the smart device. In step 9, the smart device sends a connection request to the router and sends the Wifi password. In step 10, after passing the verification, the router sends a notification message that the network configuration is successful to the device APP, thus completing the network configuration of the smart device.
  • the device network distribution method in the related art requires a lot of manual operations by users, and the process is cumbersome, which is especially difficult for some users who are not very familiar with the operation of mobile phones. Based on this, there is an urgent need for an operation process in the related art. Simple device distribution network.
  • an embodiment of the present application provides a method for device network distribution, the method being applied to a network-distributed device, including:
  • This embodiment can provide a device network distribution method from the perspective of a network-distributed device.
  • the network-distributed device can establish a connection with a network-to-be-distributed device through a short-range communication protocol, and then obtain the network-to-be-distributed device based on the connection.
  • the device identity information of the router is sent to the network information to be configured.
  • the device identity information of the device to be deployed in the network is sent to the server, and the server performs identity authentication on the device to be deployed in the network.
  • the sending the device identity information of the device to be networked to the server includes: :
  • the user account information is sent to the server.
  • the server can verify the legitimacy of the user account that sends the device identity information.
  • the server can also establish a connection between the user account information and the routing device. In this way, even if the networked device is not connected to the server through the routing device, the server can obtain the device information of the corresponding routing device through the user account information.
  • the sending the device identity information of the device to be distributed to the server includes:
  • the device identity information of the to-be-configured device and the device information of the routing device are sent to the server.
  • the device identity information of the device to be networked may not be sent through the routing device.
  • This method can be applied to a network-configured device that is configured with a routing device, but does not use the routing device to access the Internet. For example, when the networked device is connected to the network using cellular mobile data, the network configuration of the to-be-configured device can also be completed.
  • the method further includes:
  • a message that an association relationship has been established between the device identity information of the device to be distributed and the user account registered with the server is received.
  • the network-configured device may determine that the network-to-be-configured device has completed the network configuration, so that the user can configure the network-configured device on the network-configured device. network equipment for control.
  • the short-range communication protocol includes at least one of the following: NFC, acoustic wave, Bluetooth, Wi-Fi, infrared, ZigBee, and RFID communication protocols.
  • the short-distance connection between the network-distributed device and the to-be-distributed device can be realized through a variety of short-range communication protocols, especially NFC and acoustic wave communication protocols, which can transmit data more securely.
  • the embodiments of the present application provide a method for device network distribution, including:
  • the device identity information is sent to a routing device, and the routing device and the network-configured device have completed network configuration.
  • This embodiment can provide a device network configuration method from the perspective of the server.
  • the server verifies that the identity of the device to be configured is a legitimate device, the server can send the device identity information of the device to be configured to the device Routing equipment, through such an interactive method, can automatically complete the network distribution of smart devices, reducing or unnecessary manual operations, making device network distribution simpler and easier to operate.
  • the receiving device identity information of the device to be configured on the network includes:
  • the device information of the routing device that completes network configuration with the network-configured device is determined according to the user account information.
  • an association relationship between the user account information and the routing device can also be established on the server side, so that even if the network-configured device is not connected to the server through the routing device, the server can use the user account information Obtain the device information of the corresponding routing device.
  • the receiving device identity information of the device to be configured on the network includes:
  • the device identity information of the device to be networked and the device information of the routing device that completes network configuration with the networked device are received.
  • the device identity information of the device to be networked may not be sent through the routing device.
  • This method can be applied to a network-configured device that is configured with a routing device, but does not use the routing device to access the Internet. For example, when the networked device is connected to the network using cellular mobile data, the network configuration of the to-be-configured device can also be completed.
  • the verifying the identity of the device to be configured according to the device identity information includes:
  • the device identity information set includes the device identity information, wherein in the case that the device identity information set includes the device identity information, it is determined that the identity of the device to be distributed is a legal device.
  • This embodiment provides a method for verifying the identity of the device to be deployed on the network. By comparing the device identity information of the device to be deployed on the network with a preset set of device identity information, the efficiency of identity verification can be improved.
  • the method further includes:
  • the device to be distributed is associated with the user account, so as to realize the control of the device to be distributed by the device that has been configured to the network.
  • the method further includes:
  • the account association request includes the device identity information of the device to be deployed on the network
  • the device to be configured may be associated with the user account after receiving the association request of the device to be configured. Receiving the association request indicates that the device to be configured has completed network configuration.
  • the operation of associating the device to be distributed with the user account is more secure and reliable when it is determined that the device to be distributed has completed the network distribution.
  • the embodiments of the present application provide a device network distribution method, which is applied to a device to be distributed, including:
  • This embodiment can provide a device network distribution method from the perspective of a device to be distributed.
  • the device to be distributed can establish a connection with a network-distributed device through a short-range communication protocol, and then, based on the connection, a network-to-be-distributed device can be sent.
  • the device identity information of the device can also receive the device information of the routing device.
  • a network configuration request may be sent to the routing device according to the device information.
  • the method further includes:
  • the router may send a notification message of completion of network configuration to the device to be configured, and the device to be configured can connect to the Internet after acquiring the message.
  • the method further includes:
  • a signal for completing the network configuration can be sent to let the user know that the device has completed the network configuration and can operate it.
  • the method further includes:
  • a request may be made to associate with the user account, so as to realize the control of the network configuration device to the network configuration device.
  • the embodiments of the present application provide a method for device network distribution, including:
  • the network distribution request includes the device identity information of the device to be distributed
  • This embodiment can provide a device network configuration method from the perspective of a router device.
  • the router device can receive a network configuration request from the device to be configured, and receive the verified device identity information of the server. In the case that the device identity information matches the verified device identity information, it is configured to network with the device to be networked.
  • the network distribution of the equipment to be distributed can be automatically completed, and the manual operation of the user is reduced or even unnecessary, making the equipment network distribution simpler and easier to operate.
  • the method further includes:
  • the router may send a notification message of completion of network configuration to the device to be configured, and the device to be configured can connect to the Internet after acquiring the message.
  • an embodiment of the present application provides a device for network distribution, characterized in that it includes:
  • memory for storing processor-executable instructions
  • the processor is configured to implement the device network configuration method provided by any possible implementation manner of any of the above aspects when executing the instructions.
  • the network-distribution equipment to the network-distributed equipment can be automatically completed, and the manual operation of the user is reduced or even unnecessary, so that the equipment can be network-distributed Simpler and easier to operate.
  • an embodiment of the present application provides a method for device network distribution, including:
  • the networked equipment establishes a connection with the equipment to be distributed through the short-range communication protocol
  • the network-configured device acquires the device identity information of the device to be configured, and sends the device information of the routing device to which the network configuration is completed to the device to be configured;
  • the configured network information sends the device identity information of the to-be-configured device to the server;
  • the device to be configured network sends a network configuration request to the routing device based on the device information of the routing device;
  • the server sends the device identity information of the to-be-configured device to the routing device when it is determined according to the device identity information that the to-be-configured device is a legitimate device;
  • the routing device allows the device to be configured to access the network in the case of determining that the device identity information requested to connect to the network matches the device identity information sent by the server.
  • the network-distribution equipment to the network-distributed equipment can be automatically completed, and the manual operation of the user is reduced or even unnecessary, so that the equipment can be network-distributed Simpler and easier to operate.
  • an embodiment of the present application provides a device network distribution system, including a network-distributed device, a network-to-be-configured device, a server, and a routing device, wherein,
  • the network-distributed device establishes a connection with the network-to-be-distributed device through a short-range communication protocol, and completes network distribution with the routing device, so as to obtain the device identity information of the network-to-be-distributed device, and to send the routing the device information of the device to the device to be distributed, and is also used to send the device identity information of the device to be distributed to the server;
  • the network device to be configured is configured to send a network configuration request to the routing device based on the device information of the routing device;
  • the server configured to send the device identity information of the device to be configured to the routing device when the device to be configured is determined to be a legitimate device according to the device identity information;
  • the routing device is configured to allow the device to be configured to access the network in the case of determining that the device identity information requested to connect to the network matches the device identity information sent by the server.
  • the network-distribution equipment to the network-distributed equipment can be automatically completed, and the manual operation of the user is reduced or even unnecessary, so that the equipment can be network-distributed Simpler and easier to operate.
  • a non-volatile computer-readable storage medium having computer program instructions stored thereon, when the computer program instructions are executed by a processor, realize the device configuration provided by any possible implementation manner of any of the above aspects. net method.
  • Figure 1 shows an architecture diagram of a smart device connecting to the Internet.
  • FIG. 2 shows an operation flow chart of equipment network distribution in the related art.
  • FIG. 3 shows a schematic structural diagram of a device network distribution system 300 provided by an embodiment of the present application.
  • FIG. 4 shows a schematic diagram of an interaction flow of a device network distribution method based on the device network distribution system 300 .
  • FIG. 3 shows a schematic structural diagram of a device network distribution system 300 provided by an embodiment of the present application
  • FIG. 4 shows a schematic diagram of an interaction flow of a device network distribution method based on the device network distribution system 300
  • the device network distribution system 300 may include: a network-distributed device 101 , a network-to-be-configured device 103 , a server 105 , and a routing device 107 , wherein,
  • the network-distributed device 101 establishes a connection with the network-to-be-distributed device 103 through the short-range communication protocol, and completes network distribution with the routing device 107, so as to obtain the device identity information of the network-to-be-distributed device 103, and also uses for sending the device information of the routing device 107 to the device 103 to be distributed, and also for sending the device identity information of the device 103 to be distributed to the server 105;
  • the network device 103 to be configured is configured to send a network configuration request to the routing device 107 based on the device information of the routing device 107;
  • the server 105 is configured to send the device identity information of the to-be-configured device 103 to the routing device 107 when the device 103 to be configured is determined to be a legitimate device according to the device identity information ;
  • the routing device 107 is configured to allow the device to be configured 103 to access the network under the condition that it is determined that the device identity information requested to connect to the network matches the device identity information sent by the server 105 .
  • both the network-configured device 101 and the network-to-be-configured device 103 can access the Internet through the routing device 107 .
  • the routing device 107 may include a routing-capable device capable of understanding multiple transmission protocols.
  • the routing device 107 is capable of connecting at least two networks and can forward received data from one network to the other.
  • the routing device 107 can connect the home area network and the Internet, and transmit data from the home area network to the Internet, or from the Internet to the home area network.
  • the network-configured device 101 has completed network configuration with the routing device 107 , and the completion of network configuration may include the routing device 107 completing identity authentication for the network-configured device 101 .
  • the received data can be forwarded from one network to another network, for example, the data received from the networked device 101 can be sent to the server 105, or the data received from the server 105 can be sent to the Distribution network equipment 101 .
  • the routing device 107 in this embodiment of the present application may include a wireless routing device, and the wireless routing device may include a routing device with a wireless coverage function.
  • the wireless routing device may support multiple communication protocol standards such as IEEE 802.11g, IEEE 802.11b, IEEE 802.11n, Wi-Fi, and the like.
  • the network-distributed device 101 and the network-to-be-distributed device 103 in the embodiments of the present application may include smart phones, computers (including notebook computers, desktop computers), tablet electronic devices (such as tablet computers, e-readers) devices), personal digital assistants (PDAs), wearable electronic devices (such as smart bracelets, smart watches), smart home appliances (sweeping robots, TVs, virtual reality devices, air conditioners, refrigerators, lamps, projectors, speakers, etc.), all
  • the network-configured device 101 and the network-to-be-configured device 103 may include devices capable of network configuration with the routing device 107 , which is not limited in this application.
  • the network-configured device 101 and the network-to-be-configured device 103 may establish a connection through a short-range communication protocol.
  • the short-range communication protocol may include at least one of the following: a near field communication (Near Field Communication, NFC) wireless communication protocol and an acoustic wave communication protocol.
  • both the network-distributed device 101 and the network-to-be-configured device 103 may include an NFC sensing module, and communication between different NFC sensing modules may be based on the NFC wireless communication protocol , the NFC wireless communication protocol may include ISO/IEC 18092 (NFCIP-1), ECMA-340, ECMA-352, ECMA-356, ECMA-362, ISO/IEC 21481 (NFCIP-2) and the like.
  • NFC technology transmits information through high-frequency radio waves. Therefore, the communication distance of NFC technology is relatively short, usually within 20cm.
  • the network-distributed device 101 when establishing the connection between the network-distributed device 101 and the network-to-be-distributed device 103 based on the NFC wireless communication protocol, the network-distributed device 101 needs to be close to the network-to-be-distributed device 103 or contact. Then, before establishing the connection relationship between the network-distributed device 101 and the network-to-be-distributed device 103, the precondition is that the user brings the network-distributed device 101 close to or contacts the network-to-be-distributed device 103. In this case, the user can freely choose the time or place to connect the networked device 101 and the to-be-configured device 103 to avoid unnecessary connections between the networked device 101 and the to-be-configured device 103 .
  • the network-distributed device 101 and the network-to-be-configured device 103 may include a sound wave sending module and a sound receiving module.
  • the device can encode the information to be transmitted, convert the information into a sound wave signal, and then send out the sound wave signal through the sound wave sending module. After receiving the sound wave, the sound receiving module can decode the sound wave signal and convert the sound wave signal into transmitted information.
  • the network-distributed device 101 and the network-to-be-configured device 103 can perform short-range communication.
  • connection between the network-distributed device 101 and the network-to-be-distributed device 103 is established by approaching or contacting in a short range, which can eliminate the manual operation of the user and realize a fully automatic operation without manual operation. distribution network.
  • the short-range communication protocol may include any communication protocol whose communication distance is less than a preset distance.
  • the communication distance may be set to 10cm, 16cm, 20cm, 25cm, etc. make restrictions.
  • the network-configured device 101 and the network-to-be-configured device 103 may also establish a connection based on short-range communication protocols such as Bluetooth, Wi-Fi, infrared, ZigBee, and RFID.
  • the connection between the network-configured device 101 and the network-to-be-configured device 103 may also be triggered manually by a user, such as a specified control on the network-to-be-configured device 103 to implement a preset Set the operation, such as long press the preset button for three seconds, short press the preset button three times, etc.
  • a device APP (usually provided by the device side) corresponding to the device to be configured 103 may be installed in the network-provisioned device 101 , and the configured network can be triggered in the device APP
  • the connection between the device 101 and the to-be-distributed device 103 is not limited in this application.
  • the network-configured device 101 may initiate a connection request first, or the network-to-be-configured device 103 may initiate a connection request first, which is not limited in this application.
  • the network-configured device 101 can The device 103 to be distributed obtains the device identity information of the device 103 to be distributed, and the device identity information can be used to identify the identity information of the device 103 to be distributed, such as a unique device identifier (Unique Device Identifier, UDID). )Wait.
  • a unique device identifier Unique Device Identifier, UDID
  • the network-configured device 101 may send a request to the network-to-be-configured device 103 to obtain the device identity information, or the network-to-be-configured device 103 may take the initiative to The device identity information is sent to the networked device 101, which is not limited in this application.
  • the network-configured device 101 may also send the device information of the routing device 107 to the network-to-be-configured device 103, and the network-to-be-configured device 103 can pass the The device information is connected to the routing device 107 .
  • the device information may include an IP address, a Media Access Control Address (MAC), a Service Set Identifier (SSID), and the like.
  • MAC Media Access Control Address
  • SSID Service Set Identifier
  • the network-configured device 101 needs to verify the legitimacy of the network-to-be-configured device 103 through the server 105, the device information of the routing device 107 is sent to the network-to-be-configured device in advance. 103 , the device 103 to be distributed can be made to send a network distribution request to the routing device 107 in time, and the network distribution efficiency can be improved regardless of whether the device 103 to be distributed is legal or not.
  • the network-configured device 101 may send the device identity information of the device to be configured 103 to the server 105 , and the server 105 will verify the device to be configured.
  • 103 Legality the smart device manufacturer can develop a corresponding smart control method according to the functional attributes of the smart device.
  • smart light bulbs have the function of adjusting color temperature and color. Therefore, users can adjust the color temperature or color of light bulbs through preset control methods (such as voice control, APP control, etc.).
  • other smart light bulbs may have different functional properties, such as only an on and off function. Therefore, for smart devices with different functional attributes, the device manufacturer can develop their smart control methods individually, which is not universal.
  • the device manufacturer may provide the server 105 by itself or through a third party, and the server 105 may include a hardware device with a data information processing function and necessary software required to drive the hardware device to work.
  • the server 105 may verify the validity of the received device identity information of the device 103 to be distributed.
  • the server 105 may provide a predetermined port, and the information provided by the network-configured device 101 may be received through the predetermined port.
  • the server 105 may perform network data interaction with the network-configured device 101 based on network protocols such as HTTP, TCP/IP, or FTP, and a network communication module.
  • the server 105 may include a single server, a server cluster, or a cloud server, which is not limited in this application.
  • the network-configured device 101 may also provide user account information registered by the user on the server 105 .
  • user account information registered by the user on the server 105 .
  • a user registers a user account on a client such as an APP and a small program provided by the device side, and the client can store the information of the user account, such as account name and password.
  • the networked device 101 sends the user account information at the same time as the device identity information of the to-be-configured device 103 .
  • the server 105 can also store the registered user account information, so that after receiving the user account information, the server 105 can first verify the user account information provided by the networked device 101, In the case that the user account information is passed, the legality of the identity of the device 103 to be distributed is re-verified.
  • the server 105 may acquire a preset device identity information set in the process of verifying the legitimacy of the network device 103 to be configured, and the device identity information set may store The device identity information of at least one smart device provided by the device party, such as various types and models of smart devices produced by company A. Then, it can be determined whether the device identity information set includes the device identity information of the device to be configured 103, wherein, in the case that the device identity information set includes the device identity information, determine the device identity information to be configured.
  • the identity of the distribution network device 103 is a legal device.
  • the server 105 by verifying the legitimacy of the network device 103 to be distributed by the server 105, it can be judged whether the network device 103 to be distributed is a smart device provided by the device manufacturer, so as to avoid the occurrence of unusable functions of the smart device situation occurs.
  • performing identity verification on the device 103 to be deployed on the network can also avoid security threats to the local network or the device after an unknown and illegal device from outside is connected to the local network.
  • the device 103 to be distributed may scan the devices around it, and send the distribution network when the routing device 107 is scanned.
  • the request is sent to the routing device 107, and the network configuration request may include the device identity information of the device to be configured 103, so that the routing device 107 can learn the identity information of the device requesting network configuration.
  • S403 can be implemented before S404, or can be implemented after S404, of course, can also be implemented at the same time, which is not limited in this application.
  • the server 105 in S405-1 may verify that the identity of the network device 103 to be configured is a legal identity, then in S405-2, the server 105 may The device identity information of the network device 103 is sent to the routing device 107, and the device identity information may be referred to as verified device identity information.
  • the routing device 107 may determine whether the verified device identity information matches the device identity information corresponding to the received network configuration request. If it is determined that the two match, the device 103 to be distributed is allowed to access the network, so far, the network distribution of the device 103 to be distributed is completed.
  • the routing device 107 may send a notification message to the device 103 to be configured to complete the network configuration to inform the device 103 to be configured to complete the network configuration.
  • Internet access is available.
  • the device 103 to be distributed may send a signal that the network distribution has been completed.
  • the signals include, for example, flashing lights, lighting a designated indicator light, making a predetermined sound, and the like. It should be noted that since this embodiment of the present application does not limit the execution order of S404 and S405-2, it is possible that after the routing device 107 receives the device identity information of the device 103 to be distributed , the network configuration request from the device to be configured 103 has not been received yet.
  • the routing device 107 may temporarily store the verified device identity information. After that, after receiving the device identity information sent by the server 105, the temporarily stored verified device identity information can be compared with the received device identity information to determine whether to allow the device requesting network allocation to access the network. There is no restriction on the application.
  • the network-provisioned device 101 cannot always be connected to the network-provisioned routing device 107 during the working process.
  • the networked device 101 can be connected to the Internet through a wireless router in the home, or can be connected to the Internet through a communication base station, such as a cellular mobile network such as 4G/5G.
  • the server 105 can directly obtain the device information of the routing device 107 .
  • the server 105 may have difficulty acquiring the device information of the routing device 107.
  • the server 105 may store the corresponding relationship between the user account corresponding to the network-configured device 101 and the device information of the routing device 107 that has completed the network configuration, so that in all
  • the server 105 can acquire the routing device 107 to which the network-provisioned device 101 is connected.
  • Table 1 provides a table of association relationships between user accounts and device information of routing devices.
  • the networked device 101 may The user account information registered with the server 105 is sent to the server 105 . After receiving the user account information, the server 105 can determine the corresponding user account information sent by the network configuration device 101 through the stored association between the user account and the device information of the routing device. The device information of the routing device 107 is described.
  • the network-provisioned device 101 when the network-provisioned device 101 sends information to the server 105 through other communication methods, the network-provisioned device 101 may also transfer the device of the routing device 107 The information is sent to the server 105 .
  • the server 105 may further establish a relationship between the device 103 to be configured and the user account registered by the device 101 that has been configured. relationship between.
  • the server 105 may further establish a relationship between the device 103 to be configured and the user account registered by the device 101 that has been configured. relationship between.
  • the user can control the device 103 to be configured through the configured device 101 .
  • the backend server of the intelligent sweeping robot associates the user account with the intelligent sweeping robot, then, after the user logs in the user account on the smartphone, the intelligent sweeping robot can The robot is in control.
  • Table 2 exemplarily shows the relationship table between the user account and the smart device.
  • an account association request may be sent to the server 105 , and the account association request includes all The device identity information of the device 103 to be distributed.
  • the server 105 may determine that the network configuration of the device 103 to be configured has been completed. In this case, by associating the user account with the device identity information of the device 103 to be configured in S408, it can be avoided that the device 103 to be configured has been associated with the user before the device 103 to be configured has completed the network configuration. account situation occurs.
  • the server 105 may associate the device identity information of the device 103 to be distributed with the user account.
  • the message that the association relationship has been established between them is sent to the network-configured device 101 , so that the user can determine that the network-configured device 101 can control the operation of the network-to-be-configured device 103 .
  • the present application provides a device network distribution method from the perspective of the network-distributed device 101, which is applied to the network-distributed device, include:
  • the sending the device identity information of the device to be configured to the server includes:
  • the sending the device identity information of the device to be configured to the server includes:
  • the device identity information of the to-be-configured device and the device information of the routing device are sent to the server.
  • the method further includes:
  • a message that an association relationship has been established between the device identity information of the device to be distributed and the user account registered with the server is received.
  • the medium and short-range communication protocol includes at least one of the following: NFC wireless communication protocol and acoustic wave communication protocol.
  • Another aspect of the present application further provides a device network configuration method from the perspective of the server 105, the method comprising:
  • the device identity information is sent to a routing device, and the routing device and the network-configured device have completed network configuration.
  • the receiving device identity information of the device to be configured on the network includes:
  • the device information of the routing device that completes network configuration with the network-configured device is determined according to the user account information.
  • the receiving device identity information of the device to be configured on the network includes:
  • the device identity information of the device to be networked and the device information of the routing device that completes network configuration with the networked device are received.
  • the verifying the identity of the device to be configured according to the device identity information includes:
  • the device identity information set includes the device identity information, wherein in the case that the device identity information set includes the device identity information, it is determined that the identity of the device to be distributed is a legal device.
  • the method further includes:
  • the method further includes:
  • the account association request includes the device identity information of the device to be deployed on the network
  • Another aspect of the present application further provides a device network distribution method from the perspective of the device to be distributed network 103, and the method includes:
  • the method further includes:
  • the method further includes:
  • the method further includes:
  • Another aspect of the present application further provides a device network configuration method from the perspective of the routing device 107, the method comprising:
  • the network distribution request includes the device identity information of the device to be distributed
  • the method further includes:
  • the party that initiates cross-device transmission of data and sends the data may be referred to as the source (source) end, and the party that receives the data may be referred to as the sink (sink) end.
  • a device that is a source end in a pair of relationships may also be a sink end in another pair of relationships. That is to say, the network-distributed device 101 , the network-to-be-configured device 103 , the server 105 , and the router device 107 in the embodiment of the present application may be either the source end of another terminal device, or the source end of another terminal device. Receiving end.
  • the networked device 101 involved in this application may refer to a device with a wireless connection function, and the wireless connection function means that it can be connected to other terminal devices through wireless connection methods such as wifi and Bluetooth.
  • the terminal device of this application may be a touch screen, a non-touch screen, or no screen, and a touch screen can control the terminal device by clicking, sliding, etc. on the display screen with a finger, a stylus pen, etc.
  • Non-touch screen devices can be connected to input devices such as mouse, keyboard, touch panel, etc., and the terminal device can be controlled through the input device.
  • devices without a screen can be a Bluetooth speaker without a screen.
  • the wireless communication function of the network-distributed device 101 can be implemented by antenna 1, antenna 2, a mobile communication module, a wireless communication module, a modulation and demodulation processor, a baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the networked device 101 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module can provide wireless communication solutions including 2G/3G/4G/5G etc. applied to the networked device 101 .
  • the mobile communication module may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like.
  • the mobile communication module can receive electromagnetic waves by the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into electromagnetic waves to radiate out through the antenna 1 .
  • at least part of the functional modules of the mobile communication module may be provided in the processor.
  • at least part of the functional modules of the mobile communication module may be provided in the same device as at least part of the modules of the processor. In this embodiment of the present application, the mobile communication module may also be used for information interaction with other terminal devices.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low frequency baseband signal is processed by the baseband processor and passed to the application processor.
  • the application processor outputs sound signals through audio devices (not limited to speakers, receivers, etc.), or displays images or videos through a display screen.
  • the modem processor may be a stand-alone device. In other embodiments, the modem processor may be independent of the processor, and be provided in the same device as the mobile communication module or other functional modules.
  • the wireless communication module can provide wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation applied on the networked device 101 .
  • WLAN wireless local area networks
  • BT wireless fidelity
  • BT wireless fidelity
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication technology
  • infrared technology infrared, IR
  • the wireless communication module may be one or more devices integrating at least one communication processing module.
  • the wireless communication module receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor.
  • the wireless communication module can also receive the signal to be sent from the processor, perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2 .
  • An embodiment of the present application provides a device network configuration device, including: a processor and a memory for storing instructions executable by the processor; wherein the processor is configured to implement the above method when executing the instructions.
  • Embodiments of the present application provide a non-volatile computer-readable storage medium on which computer program instructions are stored, and when the computer program instructions are executed by a processor, implement the above method.
  • Embodiments of the present application provide a computer program product, including computer-readable codes, or a non-volatile computer-readable storage medium carrying computer-readable codes, when the computer-readable codes are stored in a processor of an electronic device When running in the electronic device, the processor in the electronic device executes the above method.
  • a computer-readable storage medium may be a tangible device that can hold and store instructions for use by the instruction execution device.
  • the computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing.
  • Computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read-only memory (Electrically Programmable Read-Only-Memory, EPROM or flash memory), static random access memory (Static Random-Access Memory, SRAM), portable compact disk read-only memory (Compact Disc Read-Only Memory, CD - ROM), Digital Video Disc (DVD), memory sticks, floppy disks, mechanically encoded devices, such as punch cards or raised structures in grooves on which instructions are stored, and any suitable combination of the foregoing .
  • RAM random access memory
  • ROM read only memory
  • EPROM erasable programmable read-only memory
  • EPROM Errically Programmable Read-Only-Memory
  • SRAM static random access memory
  • portable compact disk read-only memory Compact Disc Read-Only Memory
  • CD - ROM Compact Disc Read-Only Memory
  • DVD Digital Video Disc
  • memory sticks floppy disks
  • Computer readable program instructions or code described herein may be downloaded to various computing/processing devices from a computer readable storage medium, or to an external computer or external storage device over a network such as the Internet, a local area network, a wide area network and/or a wireless network.
  • the network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers 107 .
  • a network adapter card or network interface in each computing/processing device receives computer-readable program instructions from a network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing/processing device .
  • the computer program instructions used to perform the operations of the present application may be assembly instructions, Instruction Set Architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or in one or more source or object code written in any combination of programming languages, including object-oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as the "C" language or similar programming languages.
  • the computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server 107 execute on.
  • the remote computer may be connected to the user's computer through any kind of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or, may be connected to an external computer (eg, use an internet service provider to connect via the internet).
  • electronic circuits such as programmable logic circuits, Field-Programmable Gate Arrays (FPGA), or Programmable Logic Arrays (Programmable Logic Arrays), are personalized by utilizing state information of computer-readable program instructions.
  • Logic Array, PLA the electronic circuit can execute computer readable program instructions to implement various aspects of the present application.
  • These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer or other programmable data processing apparatus to produce a machine that causes the instructions when executed by the processor of the computer or other programmable data processing apparatus , resulting in means for implementing the functions/acts specified in one or more blocks of the flowchart and/or block diagrams.
  • These computer readable program instructions can also be stored in a computer readable storage medium, these instructions cause a computer, programmable data processing apparatus and/or other equipment to operate in a specific manner, so that the computer readable medium on which the instructions are stored includes An article of manufacture comprising instructions for implementing various aspects of the functions/acts specified in one or more blocks of the flowchart and/or block diagrams.
  • Computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other equipment to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other equipment to produce a computer-implemented process , thereby causing instructions executing on a computer, other programmable data processing apparatus, or other device to implement the functions/acts specified in one or more blocks of the flowcharts and/or block diagrams.
  • each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more functions for implementing the specified logical function(s) executable instructions.
  • the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented in hardware (eg, circuits or ASICs (Application) that perform the corresponding functions or actions. Specific Integrated Circuit, application-specific integrated circuit)), or can be implemented by a combination of hardware and software, such as firmware.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本申请涉及一种设备配网方法及装置,所述方法应用于已配网设备中,包括:通过近距离通信协议与待配网设备建立连接;基于所述连接,获取所述待配网设备的设备身份信息;发送路由设备的设备信息至所述待配网设备,所述路由设备与所述已配网设备已完成配网;发送所述待配网设备的所述设备身份信息至服务器。通过这样的交互方式,可以自动化地完成对待配网设备的配网,减少甚至不需要用户的手动操作,使得设备配网更加简单、易操作。

Description

一种设备配网方法及装置
本申请要求于2020年11月5日提交中国专利局、申请号为202011225110.X、申请名称为“一种设备配网方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及智能设备领域,尤其涉及一种设备配网方法及装置。
背景技术
随着物联网(Internet of Things)技术的发展以及人们对智能设备的热切需求,全球各地掀起一股智能热潮,在这股热潮之下,智能穿戴设备、智能家居设备、智能办公设备等已经纷纷进入平常百姓的生活中。智能设备的使用离不开互联网,如图1所示的智能设备连接互联网的架构图,通常将智能设备接入互联网的方式是先通过接入协议将智能设备连接至网关设备,再通过网关设备将接入协议转换成通讯协议接入至互联网。
将智能设备连接至网关设备的过程即为设备配网,如图2所示,以网关设备包括路由器举例说明,相关技术中的设备配网方法至少需要进行如下操作:首先,步骤1中,用户需要在设备应用(Application,APP)上注册用户账户,在步骤2中,用户需要在设备APP上手动添加智能设备的信息,如智能设备的类别,是智能灯还是智能音箱。在设备APP的提示之下,步骤3中,用户需要手动操作智能设备上的设备控件使得智能设备进入配网状态,在此情况下,步骤4中,智能设备进入配网状态,并发出信号告知用户,如表现为灯光闪烁,发出预置的声音等。在确定智能设备进入配网状态之后,步骤5中,用户可以在设备APP上手动确认智能设备已进入配网状态。基于此,步骤6中,设备APP可以开始扫描Wifi信号,并在APP用户界面中展示所扫描到的Wifi信号名称。步骤7中,用户可以在家庭或者公司的Wifi信号名称下手动输入密码。在步骤8中,设备APP可以将Wifi信号名称和密码发送至智能设备。步骤9中,智能设备向路由器发送连接请求,并发送Wifi密码。步骤10中,路由器在验证通过之后,向设备APP发送配网成功的通知消息,至此完成智能设备的配网。
由此可见,相关技术中的设备配网方式需要较多的用户手动操作,过程较为繁琐,对于一些不怎么熟悉手机操作的用户来说尤其困难,基于此,相关技术中亟需一种操作过程简便的设备配网方式。
发明内容
有鉴于此,提出了一种设备配网方法及装置。
第一方面,本申请的实施例提供了一种设备配网方法,所述方法应用于已配网设备中,包括:
通过近距离通信协议与待配网设备建立连接;
基于所述连接,获取所述待配网设备的设备身份信息;
发送路由设备的设备信息至所述待配网设备,所述路由设备与所述已配网设备已完成配 网;
发送所述待配网设备的所述设备身份信息至服务器。
本实施例可以从已配网设备的角度提供一种设备配网方法,所述已配网设备可以通过近距离通信协议与待配网设备建立连接,然后,基于所述连接获取待配网设备的设备身份信息,将路由器的设备信息发送至待配网信息。另外将所述待配网设备的设备身份信息发送至服务器,由服务器对所述待配网设备进行身份认证。通过这样的交互方式,可以自动化地完成对待配网设备的配网,减少甚至不需要用户的手动操作,使得设备配网更加简单、易操作。
根据第一方面的第一种可能的实现方式中,在所述设备配网方法的第一种可能的实现方式中,所述发送所述待配网设备的所述设备身份信息至服务器,包括:
发送所述待配网设备的所述设备身份信息以及在服务器所注册的用户账户信息至所述服务器,在所述服务器中,所述用户账户信息与所述已配网设备对应的路由设备的设备信息相关联。
本实施例中,将用户账户信息发送至服务器,一方面,可以由服务器验证发送设备身份信息的用户账户的合法性,另一方面,还可以在服务器端建立用户账户信息与路由设备之间的关联关系,这样,即使所述已配网设备未通过所述路由设备与服务器连接,服务器可以通过所述用户账户信息获取到对应的路由设备的设备信息。
根据第一方面的第二种可能的实现方式中,所述发送所述待配网设备的所述设备身份信息至服务器,包括:
在确定所述已配网设备没有与其配网的路由设备连接的情况下,发送所述待配网设备的所述设备身份信息以及所述路由设备的设备信息至服务器。
本实施例也可以不通过所述路由设备发送所述待配网设备的所述设备身份信息,该方法可以应用于已配网设备虽然与路由设备配网,但是没有用所述路由设备进入互联网的场景,例如,已配网设备在用蜂窝移动数据连网的情况下也可以完成对所述待配网设备的配网。
根据第一方面的第三种可能的实现方式中,在所述发送所述待配网设备的所述设备身份信息至服务器之后,所述方法还包括:
接收所述待配网设备的所述设备身份信息与在服务器所注册的用户账户之间已建立关联关系的消息。
本实施例中,所述已配网设备在接收到所述消息之后,可以确定所述待配网设备已完成配网,这样,用户即可以在所述已配网设备上对所述待配网设备进行控制。
根据第一方面的第四种可能的实现方式中,所述近距离通信协议包括下述中的至少一种:NFC、声波、蓝牙、Wi-Fi、红外线、ZigBee、RFID通信协议。
本实施例中,可以通过多种近距离通信协议实现所述已配网设备与所述待配网设备之间的短距离连接,尤其是NFC和声波通信协议,能够更加安全地传输数据。
第二方面,本申请的实施例提供了一种设备配网方法,包括:
接收待配网设备的设备身份信息,所述待配网设备通过近距离通信协议与已配网设备建立连接;
根据所述设备身份信息验证所述待配网设备的身份;
在确定所述待配网设备的身份为合法设备的情况下,发送所述设备身份信息至路由设备, 所述路由设备与所述已配网设备已完成配网。
本实施例可以从服务器的角度提供一种设备配网方法,服务器在验证所述待配网设备的身份为合法设备的情况下,可以将所述待配网设备的设备身份信息发送至所述路由设备,通过这样的交互方式,可以自动完成对智能设备的配网,减少或者不需要的手动操作,使得设备配网更加简单、易操作。
根据第二方面的第一种可能的实现方式中,所述接收待配网设备的设备身份信息,包括:
接收待配网设备的设备身份信息以及所述已配网设备所注册的用户账户信息;
根据所述用户账户信息确定与所述已配网设备完成配网的路由设备的设备信息。
本实施例中,还可以在服务器端建立用户账户信息与路由设备之间的关联关系,这样,即使所述已配网设备未通过所述路由设备与服务器连接,服务器可以通过所述用户账户信息获取到对应的路由设备的设备信息。
根据第二方面的第二种可能的实现方式中,所述接收待配网设备的设备身份信息,包括:
接收所述待配网设备的所述设备身份信息以及与所述已配网设备完成配网的路由设备的设备信息。
本实施例也可以不通过所述路由设备发送所述待配网设备的所述设备身份信息,该方法可以应用于已配网设备虽然与路由设备配网,但是没有用所述路由设备进入互联网的场景,例如,已配网设备在用蜂窝移动数据连网的情况下也可以完成对所述待配网设备的配网。
根据第二方面的第三种可能的实现方式中,所述根据所述设备身份信息验证所述待配网设备的身份,包括:
获取预设的设备身份信息集合;
判断所述设备身份信息集合中是否包括所述设备身份信息,其中,在所述设备身份信息集合中包括所述设备身份信息的情况下,确定所述待配网设备的身份为合法设备。
本实施例提供一种验证所述待配网设备的身份的方式,通过将所述待配网设备的设备身份信息与预设的设备身份信息集合进行比对,可以提高身份验证效率。
根据第二方面的第四种可能的实现方式中,在所述发送所述设备身份信息至路由设备之后,所述方法还包括:
建立所述待配网设备与所述已配网设备所注册的用户账户之间的关联关系。
本实施例中,在确定所述待配网的合法身份之后,将所述待配网设备与所述用户账户相关联,可以实现所述已配网设备对所述待配网设备的控制。
根据第二方面的第五种可能的实现方式中,在所述发送所述设备身份信息至路由设备之后,所述方法还包括:
接收账号关联请求,所述账号关联请求中包括所述待配网设备的所述设备身份信息;
建立所述待配网设备与所述已配网设备所注册的用户账户之间的关联关系。
本实施例中,可以在接收到所述待配网设备的关联请求之后再将所述待配网设备关联至用户账户,接收到所述关联请求表示所述待配网设备已完成配网,在确定所述待配网设备完成配网的情况下再关联所述待配网设备与用户账户的操作更加安全可靠。
第三方面,本申请的实施例提供了一种设备配网方法,应用于待配网设备中,包括:
通过近距离通信协议与已配网设备建立连接;
基于所述连接,发送所述待配网设备的设备身份信息;
接收路由设备的设备信息,所述路由设备与所述已配网设备已完成配网;
根据所述设备信息发送配网请求至所述路由设备。
本实施例可以从待配网设备的角度提供一种设备配网方法,所述待配网设备可以通过近距离通信协议与已配网设备建立连接,然后,基于所述连接可以发送待配网设备的设备身份信息,还可以接收路由设备的设备信息。最后还可以根据所述设备信息向所述路由设备发送配网请求。通过这样的交互方式,可以自动化地完成对待配网设备的配网,减少甚至不需要用户的手动操作,使得设备配网更加简单、易操作。
根据第三方面的第一种可能的实现方式中,在所述根据所述设备信息发送配网请求至所述路由设备之后,所述方法还包括:
接收与所述路由设备完成配网的通知消息。
本实施例,所述路由器在与所述待配网设备配网完成之后,可以向所述待配网设备发送配网完成的通知消息,所述待配网设备获取消息后可以连接互联网。
根据第三方面的第二种可能的实现方式中,在所述接收与所述路由设备完成配网的通知消息之后,所述方法还包括:
发送已完成配网的信号。
本实施例中,所述待配网设备完成配网之后,可以通过发送完成配网的信号,让用户知道设备已完成配网,可以对其进行操作。
根据第三方面的第三种可能的实现方式中,在所述接收与所述路由设备完成配网的通知消息之后,所述方法还包括:
发送账号关联请求,所述账号关联请求中包括所述设备身份信息。
本实施例中,在确定完成配网之后,可以请求与所述用户账户相关联,实现所述已配网设备对所述待配网设备的控制。
第四方面,本申请的实施例提供了一种设备配网方法,包括:
接收配网请求,所述配网请求中包括待配网设备的设备身份信息;
接收已验证设备身份信息;
在确定所述设备身份信息与所述已验证设备身份信息相匹配的情况下,与所述待配网设备配网。
本实施例可以从路由器设备的角度提供一种设备配网方法,所述路由器设备可以接收所述待配网设备的配网请求,并接收所述服务器的已经验证通过的设备身份信息,在确定所述设备身份信息与所述已验证设备身份信息相匹配的情况下,与所述待配网设备配网。通过这样的交互方式,可以自动化地完成对待配网设备的配网,减少甚至不需要用户的手动操作,使得设备配网更加简单、易操作。
根据第四方面的第一种可能的实现方式中,在所述与所述待配网设备配网之后,所述方法还包括:
发送与所述待配网设备完成配网的消息。
本实施例,所述路由器在与所述待配网设备配网完成之后,可以向所述待配网设备发送配网完成的通知消息,所述待配网设备获取消息后可以连接互联网。
第五方面,本申请的实施例提供了一种设备配网装置,其特征在于,包括:
处理器;
用于存储处理器可执行指令的存储器;
其中,所述处理器被配置为执行所述指令时实现以上任一方面中任一可能的实现方式所提供的设备配网方法。
本实施例中,通过已配网设备、待配网设备、路由器设备、服务器之间的交互,可以自动化地完成对待配网设备的配网,减少甚至不需要用户的手动操作,使得设备配网更加简单、易操作。
第六方面,本申请的实施例提供了一种设备配网方法,包括:
已配网设备通过近距离通信协议与待配网设备建立连接;
基于所述连接,所述已配网设备获取所述待配网设备的设备身份信息,并发送配网完成的路由设备的设备信息至所述待配网设备;
所述已配网信息发送所述待配网设备的所述设备身份信息至服务器;
所述待配网设备基于所述路由设备的设备信息,发送配网请求至所述路由设备;
所述服务器在根据所述设备身份信息确定所述待配网设备为合法设备的情况下,将所述待配网设备的所述设备身份信息发送至所述路由设备;
所述路由设备在确定请求连网的设备身份信息与所述服务器发送的设备身份信息相匹配的情况下,允许所述待配网设备接入网络。
本实施例中,通过已配网设备、待配网设备、路由器设备、服务器之间的交互,可以自动化地完成对待配网设备的配网,减少甚至不需要用户的手动操作,使得设备配网更加简单、易操作。
第七方面,本申请的实施例提供了一种设备配网系统,包括已配网设备、待配网设备、服务器、路由设备,其中,
所述已配网设备,通过近距离通信协议与待配网设备建立连接,且与所述路由设备完成配网,用于获取所述待配网设备的设备身份信息,还用于发送所述路由设备的设备信息至所述待配网设备,还用于发送所述待配网设备的所述设备身份信息至所述服务器;
所述待配网设备,用于基于所述路由设备的设备信息,发送配网请求至所述路由设备;
所述服务器,用于在根据所述设备身份信息确定所述待配网设备为合法设备的情况下,将所述待配网设备的所述设备身份信息发送至所述路由设备;
所述路由设备,用于在确定请求连网的设备身份信息与所述服务器发送的设备身份信息相匹配的情况下,允许所述待配网设备接入网络。
本实施例中,通过已配网设备、待配网设备、路由器设备、服务器之间的交互,可以自动化地完成对待配网设备的配网,减少甚至不需要用户的手动操作,使得设备配网更加简单、易操作。
第八方面,一种非易失性计算机可读存储介质,其上存储有计算机程序指令,所述计算 机程序指令被处理器执行时实现以上任一方面任一可能的实现方式所提供的设备配网方法。
本申请的这些和其他方面在以下(多个)实施例的描述中会更加简明易懂。
附图说明
包含在说明书中并且构成说明书的一部分的附图与说明书一起示出了本申请的示例性实施例、特征和方面,并且用于解释本申请的原理。
图1示出智能设备连接互联网的架构图。
图2示出相关技术中设备配网的操作流程图。
图3示出本申请一实施例提供的设备配网系统300的结构示意图。
图4示出了基于所述设备配网系统300的设备配网方法的交互流程示意图。
具体实施方式
以下将参考附图详细说明本申请的各种示例性实施例、特征和方面。附图中相同的附图标记表示功能相同或相似的元件。尽管在附图中示出了实施例的各种方面,但是除非特别指出,不必按比例绘制附图。
在这里专用的词“示例性”意为“用作例子、实施例或说明性”。这里作为“示例性”所说明的任何实施例不必解释为优于或好于其它实施例。
另外,为了更好的说明本申请,在下文的具体实施方式中给出了众多的具体细节。本领域技术人员应当理解,没有某些具体细节,本申请同样可以实施。在一些实例中,对于本领域技术人员熟知的方法、手段、元件和电路未作详细描述,以便于凸显本申请的主旨。
图3示出了本申请一实施例提供的设备配网系统300的结构示意图,图4示出了基于所述设备配网系统300的设备配网方法的交互流程示意图。如图3所示,所述设备配网系统300可以包括:已配网设备101、待配网设备103、服务器105、路由设备107,其中,
所述已配网设备101,通过近距离通信协议与待配网设备103建立连接,且与所述路由设备107完成配网,用于获取所述待配网设备103的设备身份信息,还用于发送所述路由设备107的设备信息至所述待配网设备103,还用于发送所述待配网设备103的所述设备身份信息至所述服务器105;
所述待配网设备103,用于基于所述路由设备107的设备信息,发送配网请求至所述路由设备107;
所述服务器105,用于在根据所述设备身份信息确定所述待配网设备103为合法设备的情况下,将所述待配网设备103的所述设备身份信息发送至所述路由设备107;
所述路由设备107,用于在确定请求连网的设备身份信息与所述服务器105发送的设备身份信息相匹配的情况下,允许所述待配网设备103接入网络。
本申请实施例中,所述已配网设备101与所述待配网设备103都可以通过路由设备107接入互联网。所述路由设备107可以包括能够理解多种传输协议的具有路由功能的设备。所述路由设备107能够连接至少两个网络,并可以将接收到的数据从一个网络转发至另一个网络。例如,所述路由设备107可以连接家庭局域网和互联网,并将数据从家庭局域网传输至互联网,或者从互联网传输至家庭局域网。在本申请实施例中,所述已配网设备101已经与所述路由设备107完成配网,所述完成配网可以包括所述路由设备107在对所述已配网设备 101完成身份认证的情况下,可以将接收到数据从一个网络转发至另一个网络,例如可以将从已配网设备101接收到的数据发送至服务器105,也可以将从服务器105接收到的数据发送至所述已配网设备101。本申请实施例中的路由设备107可以包括无线路由设备,无线路由设备可以包括具有无线覆盖功能的路由设备,其优势在于不限制连接的智能设备的数量,也不限制智能设备的移动等。在一些示例中,所述无线路由设备可以支持IEEE 802.11g、IEEE 802.11b、IEEE 802.11n、Wi-Fi等多种通信协议标准。
需要说明的是,本申请实施例的所述已配网设备101与所述待配网设备103可以包括智能电话、计算机(包括笔记本电脑,台式电脑)、平板电子设备(如平板电脑、电子阅读器)、个人数字助理(PDA)、可穿戴电子设备(如智能手环、智能手表)、智能家电(扫地机器人、TV、虚拟现实设备、空调、冰箱、灯具、投影仪、音箱等),所述已配网设备101与所述待配网设备103可以包括能够与所述路由设备107配网的设备,本申请在此不做限制。
本申请实施例中,如图4所示,S401中,所述已配网设备101与所述待配网设备103可以通过近距离通信协议建立连接。在本申请的一个实施例中,所述近距离通信协议可以包括下述中的至少一种:近场通信(Near Field Communication,NFC)无线通信协议、声波通信协议。
在基于所述NFC无线通信协议的情况下,所述已配网设备101与所述待配网设备103都可以包括NFC感应模块,不同所述NFC感应模块之间可以基于NFC无线通信协议进行通信,所述NFC无线通信协议可以包括ISO/IEC 18092(NFCIP-1)、ECMA-340、ECMA-352、ECMA-356、ECMA-362、ISO/IEC 21481(NFCIP-2)等等。相对于其他无线通信技术,NFC技术是通过高频无线电波传输信息,因此,NFC技术的通信距离较短,通常在20cm之内。基于此,在基于所述NFC无线通信协议建立所述已配网设备101与所述待配网设备103之间的连接,则需要所述已配网设备101与所述待配网设备103靠近或者接触。那么,在建立所述已配网设备101与所述待配网设备103之前的连接关系需要以用户将所述已配网设备101与所述待配网设备103靠近或者接触为前提条件,在此情况下,用户可以自由选择连接所述已配网设备101与所述待配网设备103的时间或者地点,避免所述已配网设备101与所述待配网设备103产生不必要的连接。
在基于所述声波通信通信协议的情况下,所述已配网设备101与所述待配网设备103可以包括声波发出模块和声音接收模块。在声波通信技术中,设备可以对需要传输的信息进行编码,将信息转化成声波信号,然后通过所述声波发出模块发出声波信号。而所述声音接收模块在接收到声波之后,可以对所述声波信号进行解码,将所述声波信号转换成传输的信息。通过所述声波通信协议,所述已配网设备101与所述待配网设备103可以进行近距离通信。
本申请实施例中,通过近距离范围的靠近或者接触建立所述已配网设备101与所述待配网设备103之间的连接,可以免去用户的手动操作,实现无手动操作的全自动配网。
当然,在其他实施例中,所述近距离通信协议可以包括任何通信距离小于预设距离的通信协议,所述通信距离例如可以设置为10cm、16cm、20cm、25cm等等,本申请在此不做限制。在本申请的另一个实施例中,所述已配网设备101与所述待配网设备103还可以基于蓝牙、Wi-Fi、红外线、ZigBee、RFID等近距离通信协议建立连接。在本申请的一个实施例中,所述已配网设备101与所述待配网设备103之间的连接还可以基于用户的手动触发,如所述待配网设备103上的指定控件实施预设操作,如长按预定按钮三秒钟、短按预定按钮三次等 等。当然,在其他实施例中,可以在所述已配网设备101中安装所述待配网设备103所对应的设备APP(通常是设备方提供),并在设备APP中触发所述已配网设备101与所述待配网设备103之间的连接,本申请在此不做限制。在另一个实施例中,在建立连接的过程中,可以是已配网设备101先发起连接请求,也可以是所述待配网设备103先发起连接请求,本申请在此不做限制。
在本申请实施例中,如图4所示的S402-1,在建立所述已配网设备101与所述待配网设备103之间的连接之后,所述已配网设备101可以从所述待配网设备103获取所述待配网设备103的设备身份信息,所述设备身份信息可以用于标识所述待配网设备103的身份信息,如唯一设备识别符(Unique Device Identifier,UDID)等。当然,在本申请的一个实施例中,所述已配网设备101可以向所述待配网设备103发送请求,以获取所述设备身份信息,也可以是所述待配网设备103主动将所述设备身份信息发送至所述已配网设备101,本申请在此不做限制。
在申请实施例中,在S402-2中,所述已配网设备101还可以将所述路由设备107的设备信息发送至所述待配网设备103,所述待配网设备103能够通过所述设备信息连接到所述路由设备107。在一些示例中,所述设备信息可以包括IP地址、媒体存取控制位址(Media Access Control Address,MAC)、服务集标识(Service Set Identifier,SSID)等等。当然,虽然后续所述已配网设备101还需要通过所述服务器105验证所述待配网设备103的合法性,但是,提前将所述路由设备107的设备信息发送至所述待配网设备103,可以让所述待配网设备103及时向所述路由设备107发送配网请求,不管后续验证所述待配网设备103是否合法性,都可以提升配网效率。
基于此,如图4所示,所述已配网设备101可以将所述待配网设备103的所述设备身份信息发送至所述服务器105,由所述服务器105验证所述待配网设备103的合法性。一般情况下,智能设备生产方可以针对智能设备的功能属性开发出对应的智能控制方式。例如,智能灯泡具有调节色温和颜色的功能属性,因此,用户可以通过预设控制方法(如语音控制、APP控制等)调节灯泡的色温或者颜色。但是,另一些智能灯泡可能具有不同的功能属性,如只具有开和关的功能。因此,对于不同功能属性的智能设备,设备生产方可以个性化地开发其智能控制方式,不具有通用性。本申请实施例中,所述设备生产方自己或者通过第三方可以提供服务器105,所述服务器105可以包括具有数据信息处理功能的硬件设备和驱动该硬件设备工作所需的必要的软件,所述服务器105可以对接收到的所述待配网设备103的所述设备身份信息验证其合法性。所述服务器105可以提供预定端口,通过所述预定端口可以接收所述已配网设备101提供的信息。例如,所述服务器105可以基于HTTP、TCP/IP或FTP等网络协议以及网络通信模块与所述已配网设备101进行网络数据交互。所述服务器105可以包括单个服务器,也可以包括服务器集群,还可以包括云端服务器,本申请在此不做限制。
需要说明的是,为了确保所述已配网设备101的合法性,所述已配网设备101还可以提供用户在所述服务器105上所注册的用户账户信息。例如,在配网之前,用户在设备方提供的APP、小程序等客户端上注册用户账户,所述客户端可以存储所述用户账户的信息,如账户名称和密码。这样,所述已配网设备101在发送所述待配网设备103的设备身份信息的同时,发送所述用户账户的信息。当然,所述服务器105中也可以存储已注册的用户账户信息,这样,所述服务器105在接收到所述用户账户信息之后,可以首先验证所述已配网设备101 所提供的用户账户信息,在所述用户账户信息通过的情况下,再验证所述待配网设备103的身份合法性。
本申请实施例中,S405-1中,所述服务器105在验证所述待配网设备103的合法性的过程中,可以获取预设的设备身份信息集合,所述设备身份信息集合中可以存储设备方提供的至少一个智能设备的设备身份信息,如A公司所生产的各种类型各种型号的智能设备。然后,可以判断所述设备身份信息集合中是否包括所述待配网设备103所述设备身份信息,其中,在所述设备身份信息集合中包括所述设备身份信息的情况下,确定所述待配网设备103的身份为合法设备。
本申请实施例中,通过所述服务器105验证所述待配网设备103的合法性,可以判别所述待配网设备103是否为设备生产方所提供的智能设备,避免出现智能设备功能无法使用的情况出现。另一方面,对所述待配网设备103进行身份验证,还可以避免外部不明非法设备连入本地网络后,对本地网络或者设备造成安全威胁。
另一方面,S404中,所述待配网设备103在接收到所述路由设备107的设备信息之后,可以扫描其周围的设备,并在扫描到所述路由设备107的情况下,发送配网请求至所述路由设备107,所述配网请求中可以包括所述待配网设备103的设备身份信息,这样,所述路由设备107可以了解到请求配网的设备的身份信息。
需要说明的是,S403可以在S404之前实施,也可以在S404之后实施,当然也可以同时实施,本申请在此不做限制。
本申请实施例中,若在S405-1中所述服务器105验证所述待配网设备103的身份为合法身份的情况下,则在S405-2中,所述服务器105可以将所述待配网设备103的所述设备身份信息发送至所述路由设备107,该设备身份信息可称之为已验证设备身份信息。S406中,所述路由设备107在接收到所述已验证设备身份信息之后,可以判断所述已验证设备身份信息是否与接收到的配网请求所对应的设备身份信息相匹配。在确定两者相匹配的情况下,允许所述待配网设备103接入网络,至此,完成所述待配网设备103的配网。另外,所述路由设备107在与所述待配网设备103配网之后,可以向所述待配网设备103发送完成配网的通知消息,以告知所述待配网设备103完成配网,可以接入互联网。所述待配网设备103在完成配网之后,可以发送已完成配网的信号。所述信号例如包括灯光闪烁、点亮指定的指示灯、发出预定的声音等等。需要说明的是,由于本申请实施例对S404和S405-2的执行顺序不做限制,那么,有可能在所述路由设备107在接收到所述待配网设备103的所述设备身份信息之后,还未接收到所述待配网设备103的配网请求,在此情况下,所述路由设备107可以暂时存储所述已验证设备身份信息。此后在接收到所述服务器105发送的设备身份信息之后,可以将暂存的已验证设备身份信息与接收到的设备身份信息进行比对,以确定是否允许请求配网的设备接入网络,本申请对此不做限制。
在实际应用场景中,所述已配网设备101在工作过程中不可能一直与已配网的所述路由设备107连接,例如,在所述已配网设备101包括智能手机的情况下,所述已配网设备101既可以通过家庭中的无线路由器连接互联网,也可以利用通讯基站连接互联网,如4G/5G等蜂窝移动网络。在所述已配网设备101通过所述路由设备107与所述服务器105通信的情况下,所述服务器105可以直接获取到所述路由设备107的设备信息。但是,如果所述已配网设备101通过其他通讯方式与所述服务器105通信,所述服务器105可能难以获取到所述路 由设备107的设备信息。基于此,在本申请的一个实施例中,可以在所述服务器105存储所述已配网设备101对应的用户账户与完成配网的路由设备107的设备信息之间的对应关系,以便在所述已配网设备101通过其他通讯方式向所述服务器105发送信息的情况下,所述服务器105可以获取到所述已配网设备101所接入的所述路由设备107。表1提供了用户账户与路由设备的设备信息之间的关联关系表。基于此,在本申请的一个实施例中,在所述服务器105将所述待配网设备103的所述设备身份信息发送至所述路由设备107之前,所述已配网设备101可以将在所述服务器105所注册的用户账户信息发送至所述服务器105。所述服务器105在接收到所述用户账户信息之后,可以通过已存储的用户账户与路由设备的设备信息之间的关联关系,确定所述已配网设备101发送的用户账户信息所对应的所述路由设备107的设备信息。
表1 用户账户与路由设备MAC地址之间的关联关系表
用户账户 路由设备MAC地址
cindy 08:00:20:0A:8C:6D
Carol_88 70:F1:A1:A4:89:DD
david 84:85:06:8F:2C:86
在本申请的另一个实施例中,在所述已配网设备101通过其他通讯方式向所述服务器105发送信息的情况下,所述已配网设备101还可以将所述路由设备107的设备信息发送至所述服务器105。
在本申请实施例中,所述服务器105在发送所述设备身份信息至所述路由设备107之后,还可以建立所述待配网设备103与所述已配网设备101所注册的用户账户之间的关联关系。在建立所述待配网设备103与所述用户账户之间的关联关系以及所述待配网设备103完成配网之后,用户可以通过所述已配网设备101控制所述待配网设备103。例如,在对智能扫地机器人完成配网之后,在智能扫地机器人的后台服务器将用户账户与智能扫地机器人进行关联,那么,用户在智能手机上登录所述用户账户之后,即可以通过手机对智能扫地机器人进行控制。表2示例性地展示了用户账户与智能设备之间的关联关系表。
表2 用户账户与智能设备之间的关联关系表
用户账户 智能设备
cindy 设备1、设备2
Carol_88 设备3
david 设备4
在本申请的另一个实施例中,如图4的S407所示,所述待配网设备103在配网成功之后,可以向所述服务器105发送账号关联请求,所述账号关联请求中包括所述待配网设备103的所述设备身份信息。所述服务器105在接收到所述账号关联请求之后,可以确定所述待配网设备103已经完成配网。在此情况下,在S408中关联用户账户与所述待配网设备103的所述设备身份信息,可以避免在所述待配网设备103还没有完成配网的情况下即已将其关联用户账户的情况发生。
在本申请实施例中,所述服务器105在关联用户账户与所述待配网设备103的所述设备身份信息之后,可以将所述待配网设备103的所述设备身份信息与用户账户之间已建立关联关系的消息发送至所述已配网设备101,这样,用户可以确定能够通过所述已配网设备101 控制所述待配网设备103的工作。
基于对上述设备配网系统300及其包含的各个主体之间的交互流程的说明,本申请从所述已配网设备101的角度提供一种设备配网方法,应用于已配网设备中,包括:
通过近距离通信协议与待配网设备建立连接;
基于所述连接,获取所述待配网设备的设备身份信息;
发送路由设备的设备信息至所述待配网设备,所述路由设备与所述已配网设备已完成配网;
发送所述待配网设备的所述设备身份信息至服务器。
可选的,在本申请的一个实施例中,所述发送所述待配网设备的所述设备身份信息至服务器,包括:
发送所述待配网设备的所述设备身份信息以及在服务器所注册的用户账户信息至所述服务器,在所述服务器中,所述用户账户信息与所述已配网设备对应的路由设备的设备信息相关联。
可选的,在本申请的一个实施例中,所述发送所述待配网设备的所述设备身份信息至服务器,包括:
在确定所述已配网设备没有与其配网的路由设备连接的情况下,发送所述待配网设备的所述设备身份信息以及所述路由设备的设备信息至服务器。
可选的,在本申请的一个实施例中,在所述发送所述待配网设备的所述设备身份信息至服务器之后,所述方法还包括:
接收所述待配网设备的所述设备身份信息与在服务器所注册的用户账户之间已建立关联关系的消息。
可选的,在本申请的一个实施例中,所述中短距离通信协议包括下述中的至少一种:NFC无线通信协议、声波通信协议。
本申请另一方面还从所述服务器105的角度提供一种设备配网方法,所述方法包括:
接收待配网设备的设备身份信息,所述待配网设备通过近距离通信协议与已配网设备建立连接;
根据所述设备身份信息验证所述待配网设备的身份;
在确定所述待配网设备的身份为合法设备的情况下,发送所述设备身份信息至路由设备,所述路由设备与所述已配网设备已完成配网。
可选的,在本申请的一个实施例中,所述接收待配网设备的设备身份信息,包括:
接收待配网设备的设备身份信息以及所述已配网设备所注册的用户账户信息;
根据所述用户账户信息确定与所述已配网设备完成配网的路由设备的设备信息。
可选的,在本申请的一个实施例中,所述接收待配网设备的设备身份信息,包括:
接收所述待配网设备的所述设备身份信息以及与所述已配网设备完成配网的路由设备的设备信息。
可选的,在本申请的一个实施例中,所述根据所述设备身份信息验证所述待配网设备的身份,包括:
获取预设的设备身份信息集合;
判断所述设备身份信息集合中是否包括所述设备身份信息,其中,在所述设备身份信息集合中包括所述设备身份信息的情况下,确定所述待配网设备的身份为合法设备。
可选的,在本申请的一个实施例中,在所述发送所述设备身份信息至路由设备之后,所述方法还包括:
建立所述待配网设备与所述已配网设备所注册的用户账户之间的关联关系。
可选的,在本申请的一个实施例中,在所述发送所述设备身份信息至路由设备之后,所述方法还包括:
接收账号关联请求,所述账号关联请求中包括所述待配网设备的所述设备身份信息;
建立所述待配网设备与所述已配网设备所注册的用户账户之间的关联关系。
本申请另一方面还从所述待配网设备103的角度提供一种设备配网方法,所述方法包括:
通过近距离通信协议与已配网设备建立连接;
基于所述连接,发送所述待配网设备的设备身份信息;
接收路由设备的设备信息,所述路由设备与所述已配网设备已完成配网;
根据所述设备信息发送配网请求至所述路由设备。
可选的,在本申请的一个实施例中,在所述根据所述设备信息发送配网请求至所述路由设备之后,所述方法还包括:
接收与所述路由设备完成配网的通知消息。
可选的,在本申请的一个实施例中,在所述接收与所述路由设备完成配网的通知消息之后,所述方法还包括:
发送已完成配网的信号。
可选的,在本申请的一个实施例中,在所述接收与所述路由设备完成配网的通知消息之后,所述方法还包括:
发送账号关联请求,所述账号关联请求中包括所述设备身份信息。
本申请另一方面还从所述路由设备107的角度提供一种设备配网方法,所述方法包括:
接收配网请求,所述配网请求中包括待配网设备的设备身份信息;
接收已验证设备身份信息;
在确定所述设备身份信息与所述已验证设备身份信息相匹配的情况下,与所述待配网设备配网。
可选的,在本申请的一个实施例中,在所述与所述待配网设备配网之后,所述方法还包括:
发送与所述待配网设备完成配网的消息。
在本申请的实施方式中,可以将发起跨设备传输数据并发送数据的一方称作源(source)端、接收数据的一方称作接收(sink)端。需要说明的是,在一对关系中作为源端的设备,在另一对关系中也可能为接收端。也就是说,本申请实施例中的已配网设备101、待配网设备103、服务器105、路由器设备107,其既可能是作为另一个终端设备的源端,也可能是另 一个终端设备的接收端。
本申请涉及的已配网设备101可以是指具有无线连接功能的设备,无线连接的功能是指可以通过wifi、蓝牙等无线连接方式与其他终端设备进行连接。本申请的终端设备可以是触屏的、也可以是非触屏的、也可以是没有屏幕的,触屏的可以通过手指、触控笔等在显示屏幕上点击、滑动等方式对终端设备进行控制,非触屏的设备可以连接鼠标、键盘、触控面板等输入设备,通过输入设备对终端设备进行控制,没有屏幕的设备比如说可以是没有屏幕的蓝牙音箱等。
已配网设备101的无线通信功能可以通过天线1,天线2,移动通信模块,无线通信模块,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。已配网设备101中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块可以提供应用在已配网设备101上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块的至少部分功能模块可以被设置于处理器中。在一些实施例中,移动通信模块的至少部分功能模块可以与处理器的至少部分模块被设置在同一个器件中。在本申请实施例中,移动通信模块还可以用于与其它终端设备进行信息交互。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器,受话器等)输出声音信号,或通过显示屏显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器,与移动通信模块或其他功能模块设置在同一个器件中。
无线通信模块可以提供应用在已配网设备101上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器。无线通信模块还可以从处理器接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
本申请的实施例提供了一种设备配网装置,包括:处理器以及用于存储处理器可执行指令的存储器;其中,所述处理器被配置为执行所述指令时实现上述方法。
本申请的实施例提供了一种非易失性计算机可读存储介质,其上存储有计算机程序指令, 所述计算机程序指令被处理器执行时实现上述方法。
本申请的实施例提供了一种计算机程序产品,包括计算机可读代码,或者承载有计算机可读代码的非易失性计算机可读存储介质,当所述计算机可读代码在电子设备的处理器中运行时,所述电子设备中的处理器执行上述方法。
计算机可读存储介质可以是可以保持和存储由指令执行设备使用的指令的有形设备。计算机可读存储介质例如可以是――但不限于――电存储设备、磁存储设备、光存储设备、电磁存储设备、半导体存储设备或者上述的任意合适的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:便携式计算机盘、硬盘、随机存取存储器(Random Access Memory,RAM)、只读存储器(Read Only Memory,ROM)、可擦式可编程只读存储器(Electrically Programmable Read-Only-Memory,EPROM或闪存)、静态随机存取存储器(Static Random-Access Memory,SRAM)、便携式压缩盘只读存储器(Compact Disc Read-Only Memory,CD-ROM)、数字多功能盘(Digital Video Disc,DVD)、记忆棒、软盘、机械编码设备、例如其上存储有指令的打孔卡或凹槽内凸起结构、以及上述的任意合适的组合。
这里所描述的计算机可读程序指令或代码可以从计算机可读存储介质下载到各个计算/处理设备,或者通过网络、例如因特网、局域网、广域网和/或无线网下载到外部计算机或外部存储设备。网络可以包括铜传输电缆、光纤传输、无线传输、路由器、防火墙、交换机、网关计算机和/或边缘服务器107。每个计算/处理设备中的网络适配卡或者网络接口从网络接收计算机可读程序指令,并转发该计算机可读程序指令,以供存储在各个计算/处理设备中的计算机可读存储介质中。
用于执行本申请操作的计算机程序指令可以是汇编指令、指令集架构(Instruction Set Architecture,ISA)指令、机器指令、机器相关指令、微代码、固件指令、状态设置数据、或者以一种或多种编程语言的任意组合编写的源代码或目标代码,所述编程语言包括面向对象的编程语言—诸如Smalltalk、C++等,以及常规的过程式编程语言—诸如“C”语言或类似的编程语言。计算机可读程序指令可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器107上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络—包括局域网(Local Area Network,LAN)或广域网(Wide Area Network,WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。在一些实施例中,通过利用计算机可读程序指令的状态信息来个性化定制电子电路,例如可编程逻辑电路、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或可编程逻辑阵列(Programmable Logic Array,PLA),该电子电路可以执行计算机可读程序指令,从而实现本申请的各个方面。
这里参照根据本申请实施例的方法、装置(系统)和计算机程序产品的流程图和/或框图描述了本申请的各个方面。应当理解,流程图和/或框图的每个方框以及流程图和/或框图中各方框的组合,都可以由计算机可读程序指令实现。
这些计算机可读程序指令可以提供给通用计算机、专用计算机或其它可编程数据处理装置的处理器,从而生产出一种机器,使得这些指令在通过计算机或其它可编程数据处理装置的处理器执行时,产生了实现流程图和/或框图中的一个或多个方框中规定的功能/动作的装置。也可以把这些计算机可读程序指令存储在计算机可读存储介质中,这些指令使得计算机、可 编程数据处理装置和/或其他设备以特定方式工作,从而,存储有指令的计算机可读介质则包括一个制造品,其包括实现流程图和/或框图中的一个或多个方框中规定的功能/动作的各个方面的指令。
也可以把计算机可读程序指令加载到计算机、其它可编程数据处理装置、或其它设备上,使得在计算机、其它可编程数据处理装置或其它设备上执行一系列操作步骤,以产生计算机实现的过程,从而使得在计算机、其它可编程数据处理装置、或其它设备上执行的指令实现流程图和/或框图中的一个或多个方框中规定的功能/动作。
附图中的流程图和框图显示了根据本申请的多个实施例的装置、系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或指令的一部分,所述模块、程序段或指令的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。
也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行相应的功能或动作的硬件(例如电路或ASIC(Application Specific Integrated Circuit,专用集成电路))来实现,或者可以用硬件和软件的组合,如固件等来实现。
尽管在此结合各实施例对本发明进行了描述,然而,在实施所要求保护的本发明过程中,本领域技术人员通过查看所述附图、公开内容、以及所附权利要求书,可理解并实现所述公开实施例的其它变化。在权利要求中,“包括”(comprising)一词不排除其他组成部分或步骤,“一”或“一个”不排除多个的情况。单个处理器或其它单元可以实现权利要求中列举的若干项功能。相互不同的从属权利要求中记载了某些措施,但这并不表示这些措施不能组合起来产生良好的效果。
以上已经描述了本申请的各实施例,上述说明是示例性的,并非穷尽性的,并且也不限于所披露的各实施例。在不偏离所说明的各实施例的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。本文中所用术语的选择,旨在最好地解释各实施例的原理、实际应用或对市场中的技术的改进,或者使本技术领域的其它普通技术人员能理解本文披露的各实施例。

Claims (21)

  1. 一种设备配网方法,其特征在于,应用于已配网设备中,包括:
    通过近距离通信协议与待配网设备建立连接;
    基于所述连接,获取所述待配网设备的设备身份信息;
    发送路由设备的设备信息至所述待配网设备,所述路由设备与所述已配网设备已完成配网;
    发送所述待配网设备的所述设备身份信息至服务器。
  2. 根据权利要求1所述的方法,其特征在于,所述发送所述待配网设备的所述设备身份信息至服务器,包括:
    发送所述待配网设备的所述设备身份信息以及在服务器所注册的用户账户信息至所述服务器,在所述服务器中,所述用户账户信息与所述已配网设备对应的路由设备的设备信息相关联。
  3. 根据权利要求1所述的方法,其特征在于,所述发送所述待配网设备的所述设备身份信息至服务器,包括:
    在确定所述已配网设备没有与其配网的路由设备连接的情况下,发送所述待配网设备的所述设备身份信息以及所述路由设备的设备信息至服务器。
  4. 根据权利要求1所述的方法,其特征在于,在所述发送所述待配网设备的所述设备身份信息至服务器之后,所述方法还包括:
    接收所述待配网设备的所述设备身份信息与在服务器所注册的用户账户之间已建立关联关系的消息。
  5. 根据权利要求1所述的方法,其特征在于,所述近距离通信协议包括下述中的至少一种:NFC、声波、蓝牙、Wi-Fi、红外线、ZigBee、RFID通信协议。
  6. 一种设备配网方法,其特征在于,包括:
    接收待配网设备的设备身份信息,所述待配网设备通过近距离通信协议与已配网设备建立连接;
    根据所述设备身份信息验证所述待配网设备的身份;
    在确定所述待配网设备的身份为合法设备的情况下,发送所述设备身份信息至路由设备,所述路由设备与所述已配网设备已完成配网。
  7. 根据权利要求6所述的方法,其特征在于,所述接收待配网设备的设备身份信息,包括:
    接收待配网设备的设备身份信息以及所述已配网设备所注册的用户账户信息;
    根据所述用户账户信息确定与所述已配网设备完成配网的路由设备的设备信息。
  8. 根据权利要求6所述的方法,其特征在于,所述接收待配网设备的设备身份信息,包括:
    接收所述待配网设备的所述设备身份信息以及与所述已配网设备完成配网的路由设备的设备信息。
  9. 根据权利要求6所述的方法,其特征在于,所述根据所述设备身份信息验证所述待配网设备的身份,包括:
    获取预设的设备身份信息集合;
    判断所述设备身份信息集合中是否包括所述设备身份信息,其中,在所述设备身份信息集合中包括所述设备身份信息的情况下,确定所述待配网设备的身份为合法设备。
  10. 根据权利要求6所述的方法,其特征在于,在所述发送所述设备身份信息至路由设备之后,所述方法还包括:
    建立所述待配网设备与所述已配网设备所注册的用户账户之间的关联关系。
  11. 根据权利要求6所述的方法,其特征在于,在所述发送所述设备身份信息至路由设备之后,所述方法还包括:
    接收账号关联请求,所述账号关联请求中包括所述待配网设备的所述设备身份信息;
    建立所述待配网设备与所述已配网设备所注册的用户账户之间的关联关系。
  12. 一种设备配网方法,其特征在于,应用于待配网设备中,包括:
    通过近距离通信协议与已配网设备建立连接;
    基于所述连接,发送所述待配网设备的设备身份信息;
    接收路由设备的设备信息,所述路由设备与所述已配网设备已完成配网;
    根据所述设备信息发送配网请求至所述路由设备。
  13. 根据权利要求12所述的方法,其特征在于,在所述根据所述设备信息发送配网请求至所述路由设备之后,所述方法还包括:
    接收与所述路由设备完成配网的通知消息。
  14. 根据权利要求13所述的方法,其特征在于,在所述接收与所述路由设备完成配网的通知消息之后,所述方法还包括:
    发送已完成配网的信号。
  15. 根据权利要求13所述的方法,其特征在于,在所述接收与所述路由设备完成配网的通知消息之后,所述方法还包括:
    发送账号关联请求,所述账号关联请求中包括所述设备身份信息。
  16. 一种设备配网方法,其特征在于,包括:
    接收配网请求,所述配网请求中包括待配网设备的设备身份信息;
    接收已验证设备身份信息;
    在确定所述设备身份信息与所述已验证设备身份信息相匹配的情况下,与所述待配网设备配网。
  17. 根据权利要求16所述的方法,其特征在于,在所述与所述待配网设备配网之后,所述方法还包括:
    发送与所述待配网设备完成配网的消息。
  18. 一种设备配网装置,其特征在于,包括:
    处理器;
    用于存储处理器可执行指令的存储器;
    其中,所述处理器被配置为执行所述指令时实现权利要求1-6任意一项所述的方法,或者实现权利要求7-11任意一项所述的方法,或者实现权利要求12-15任意一项所述的方法,或者实现权利要求16-17任意一项所述的方法。
  19. 一种设备配网方法,其特征在于,包括:
    已配网设备通过近距离通信协议与待配网设备建立连接;
    基于所述连接,所述已配网设备获取所述待配网设备的设备身份信息,并发送配网完成的路由设备的设备信息至所述待配网设备;
    所述已配网信息发送所述待配网设备的所述设备身份信息至服务器;
    所述待配网设备基于所述路由设备的设备信息,发送配网请求至所述路由设备;
    所述服务器在根据所述设备身份信息确定所述待配网设备为合法设备的情况下,将所述待配网设备的所述设备身份信息发送至所述路由设备;
    所述路由设备在确定请求连网的设备身份信息与所述服务器发送的设备身份信息相匹配的情况下,允许所述待配网设备接入网络。
  20. 一种设备配网系统,其特征在于,包括已配网设备、待配网设备、服务器、路由设备,其中,
    所述已配网设备,通过近距离通信协议与待配网设备建立连接,且与所述路由设备完成配网,用于获取所述待配网设备的设备身份信息,还用于发送所述路由设备的设备信息至所述待配网设备,还用于发送所述待配网设备的所述设备身份信息至所述服务器;
    所述待配网设备,用于基于所述路由设备的设备信息,发送配网请求至所述路由设备;
    所述服务器,用于在根据所述设备身份信息确定所述待配网设备为合法设备的情况下,将所述待配网设备的所述设备身份信息发送至所述路由设备;
    所述路由设备,用于在确定请求连网的设备身份信息与所述服务器发送的设备身份信息相匹配的情况下,允许所述待配网设备接入网络。
  21. 一种非易失性计算机可读存储介质,其上存储有计算机程序指令,其特征在于,所 述计算机程序指令被处理器执行时实现权利要求1-6任意一项所述的方法,或者实现权利要求7-11任意一项所述的方法,或者实现权利要求12-15任意一项所述的方法,或者实现权利要求16-17任意一项所述的方法。
PCT/CN2021/125317 2020-11-05 2021-10-21 一种设备配网方法及装置 WO2022095709A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011225110.X 2020-11-05
CN202011225110.XA CN114531670A (zh) 2020-11-05 2020-11-05 一种设备配网方法及装置

Publications (1)

Publication Number Publication Date
WO2022095709A1 true WO2022095709A1 (zh) 2022-05-12

Family

ID=81456947

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/125317 WO2022095709A1 (zh) 2020-11-05 2021-10-21 一种设备配网方法及装置

Country Status (2)

Country Link
CN (1) CN114531670A (zh)
WO (1) WO2022095709A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115119286A (zh) * 2022-06-13 2022-09-27 京东科技信息技术有限公司 一种设备入网的方法和装置
WO2024021341A1 (zh) * 2022-07-25 2024-02-01 青岛海尔科技有限公司 用于Mesh设备自组网的方法及Mesh设备、终端设备、存储介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060153122A1 (en) * 2005-01-13 2006-07-13 Hinman Brian L Controlling wireless access to a network
US20140273950A1 (en) * 2013-03-15 2014-09-18 Blue Coat Systems, Inc. Mobile Application Identification and Control through WiFi Access Points
CN108833238A (zh) * 2018-07-27 2018-11-16 杭州古北电子科技有限公司 设备配网方法
CN109495358A (zh) * 2018-12-10 2019-03-19 美的集团武汉制冷设备有限公司 家用电器的配网方法及配网系统
CN110830333A (zh) * 2018-08-09 2020-02-21 中兴通讯股份有限公司 智能家居设备接入认证方法、装置、网关及存储介质
CN112867041A (zh) * 2020-12-28 2021-05-28 美的集团股份有限公司 家电设备的配网方法、家电设备、移动终端及介质
CN113490213A (zh) * 2021-07-07 2021-10-08 宁波奥克斯电气股份有限公司 空调器配网方法及系统

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060153122A1 (en) * 2005-01-13 2006-07-13 Hinman Brian L Controlling wireless access to a network
US20140273950A1 (en) * 2013-03-15 2014-09-18 Blue Coat Systems, Inc. Mobile Application Identification and Control through WiFi Access Points
CN108833238A (zh) * 2018-07-27 2018-11-16 杭州古北电子科技有限公司 设备配网方法
CN110830333A (zh) * 2018-08-09 2020-02-21 中兴通讯股份有限公司 智能家居设备接入认证方法、装置、网关及存储介质
CN109495358A (zh) * 2018-12-10 2019-03-19 美的集团武汉制冷设备有限公司 家用电器的配网方法及配网系统
CN112867041A (zh) * 2020-12-28 2021-05-28 美的集团股份有限公司 家电设备的配网方法、家电设备、移动终端及介质
CN113490213A (zh) * 2021-07-07 2021-10-08 宁波奥克斯电气股份有限公司 空调器配网方法及系统

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115119286A (zh) * 2022-06-13 2022-09-27 京东科技信息技术有限公司 一种设备入网的方法和装置
CN115119286B (zh) * 2022-06-13 2024-05-17 京东科技信息技术有限公司 一种设备入网的方法和装置
WO2024021341A1 (zh) * 2022-07-25 2024-02-01 青岛海尔科技有限公司 用于Mesh设备自组网的方法及Mesh设备、终端设备、存储介质

Also Published As

Publication number Publication date
CN114531670A (zh) 2022-05-24

Similar Documents

Publication Publication Date Title
US9710214B2 (en) Room sensor applications and techniques
US20210344802A1 (en) Room sensor applications and techniques
US11470058B2 (en) Network connection method, mobile terminal, electronic device, and graphical user interface
US10111025B2 (en) Service providing terminal connection method and apparatus
EP2757738B1 (en) Communication control system, communication system, communication method, and carrier means storing comunication control program
WO2022095709A1 (zh) 一种设备配网方法及装置
US11277744B2 (en) Wi-Fi hotspot connection method and terminal
US10298446B2 (en) Methods, apparatuses, and system for device management
KR20110125695A (ko) 와이파이 디바이스의 와이파이 서비스 제공 방법 및 시스템
KR20110125756A (ko) 와이파이 디바이스의 와이파이 서비스 제공 방법 및 시스템
US10904743B2 (en) Methods for automatic bootstrapping of a device
US11032862B2 (en) Device and communication connection method for connecting multiple devices
US20200204673A1 (en) Internet of things user interface simplification
US9883545B2 (en) Apparatus and method for selecting channel in wireless communication system
US11153748B2 (en) Secure system and method for onboarding router
US11240215B2 (en) Temporary control of components using location based grants
US9326301B2 (en) Group provisioning of wireless stations of a wireless local area network (WLAN)
US20230283994A1 (en) Automatic Control Method, Electronic Device, and Computer-Readable Storage Medium
US10560448B1 (en) One-touch secure on-boarding of OOB IoT devices
US11785569B2 (en) Device and method for enrolling a wireless access point into a map wireless network
US10848969B2 (en) Authentication based access to wireless devices
US9781757B2 (en) Connection information sharing server, a method of sharing connection information, and a program for connection information sharing server
KR101632627B1 (ko) 근거리통신 자동 설정을 위한 통신 단말장치
CN103581904A (zh) 网络接入方法及装置
US20220109987A1 (en) Using mobile device to fully automate onboarding of router

Legal Events

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

Ref document number: 21888406

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21888406

Country of ref document: EP

Kind code of ref document: A1