WO2020168561A1 - 设备配网方法、装置、电子设备及存储介质 - Google Patents
设备配网方法、装置、电子设备及存储介质 Download PDFInfo
- Publication number
- WO2020168561A1 WO2020168561A1 PCT/CN2019/075926 CN2019075926W WO2020168561A1 WO 2020168561 A1 WO2020168561 A1 WO 2020168561A1 CN 2019075926 W CN2019075926 W CN 2019075926W WO 2020168561 A1 WO2020168561 A1 WO 2020168561A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- wifi
- application
- target
- information
- application program
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 69
- 238000012546 transfer Methods 0.000 claims description 13
- 230000008569 process Effects 0.000 description 12
- 238000012545 processing Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 238000012790 confirmation Methods 0.000 description 4
- 230000006855 networking Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 2
- 238000010168 coupling process Methods 0.000 description 2
- 238000005859 coupling reaction Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000010187 selection method Methods 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
- 238000000060 site-specific infrared dichroism spectroscopy Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 238000005406 washing Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/40—Support for services or applications
Definitions
- This application relates to the field of smart home technology, and more specifically, to a device network distribution method, device, electronic device, and storage medium.
- the smart home device can be configured with a network so that the smart device can be connected to a wireless router to send and receive data through a wireless local area network.
- a wireless router to send and receive data through a wireless local area network.
- this application proposes a device network distribution method, device, electronic equipment, and storage medium to improve the foregoing problems.
- the embodiments of the present application provide a device network configuration method, which is applied to an electronic device.
- the method includes: an application program receives a network configuration request for a device, and the application program has at least one embedded For fast apps, different fast apps correspond to different devices; the application transfers the target WiFi information to the target fast app corresponding to the device; the target fast app sends the target WiFi information to the device for use The device performs a network connection according to the target WiFi information.
- the embodiments of the present application provide a device for network distribution of equipment, which is applied to an electronic device.
- the device includes: a network distribution request receiving module for an application to receive a network distribution request for a device. At least one fast application is embedded in the application, and different fast applications correspond to different devices; an information transfer module for the application to transfer target WiFi information to the target fast application corresponding to the device; a network distribution module for The target fast application sends the target WiFi information to the device for the device to connect to the network according to the target WiFi information.
- an embodiment of the present application provides an electronic device, including: one or more processors; a memory; and one or more programs.
- the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the aforementioned method.
- an embodiment of the present application provides a computer-readable storage medium in which program code is stored, and the program code can be invoked by a processor to execute the above-mentioned method.
- the application program upon receiving a network distribution request, the application program transmits the target WiFi information to the target fast application, and the target fast application then uses the WiFi The information is sent to the device to enable the device to perform network configuration, so that the user does not need to manually input WiFi information for network configuration every time, which improves the convenience of network configuration.
- Fig. 1 shows a flowchart of a device network configuration method provided by an embodiment of the present application.
- Fig. 2 shows a flowchart of a device network configuration method provided by another embodiment of the present application.
- 3 to 10 respectively show different display interface diagrams in the process of device network configuration in an embodiment of the present application.
- Fig. 11 shows a functional module diagram of a device for network distribution provided by an embodiment of the present application.
- Fig. 12 shows a structural block diagram of an electronic device provided by an embodiment of the present application.
- Fig. 13 is a storage unit for storing or carrying the program code for implementing the device network distribution method according to the embodiment of the present application.
- smart home devices need to be connected to the network to interact with servers and electronic devices. Therefore, for smart home devices that do not have effective networking information, they need to be networked, that is, to configure effective connections.
- the network information may specifically be to provide effective networking information to the smart home device so that the smart home device can connect to the wireless local area network according to the effective networking information.
- the effective networking information includes information about the wireless local area network to which the smart home device can be connected.
- smart home devices that do not store information about the wireless local area network, such as newly purchased home devices that have not been networked, they need to be networked to connect to the wireless local area network.
- smart home devices that have moved from one place to another, they leave the original wireless local area network environment and migrate to a new wireless local area network environment.
- the stored network information is no longer valid, and the new wireless local area network information needs to be configured.
- the original connected wireless local area network does not exist, and the wireless local area network formed by the new router needs to be connected, so the new wireless local area network information needs to be configured.
- the password of the wireless LAN to which the smart home device is connected is changed, the smart home device cannot successfully connect to the wireless LAN through the stored password, or the name of the wireless local area to which the smart home device is connected is changed, and it is impossible to search for the wireless LAN that can be connected to Therefore, network configuration of smart home equipment is required.
- the smart home equipment is networked through electronic equipment. Every time a network is configured through an electronic device, the user is required to input the relevant information of the wireless local area network configured for the smart home device.
- the network configuration process is cumbersome and low in convenience.
- the smart home equipment used by him may belong to different manufacturers.
- different manufacturers usually need to install different applications (Application, APP), and the smart home equipment of different manufacturers
- Application, APP Application
- the smart home equipment of different manufacturers When the device is configured for network, different applications need to be opened.
- installing applications corresponding to different manufacturers takes up more storage space and operating space of electronic devices; on the other hand, smart home devices of different manufacturers are configured for network, users open different applications, and the operation is cumbersome.
- there are many applications installed in electronic devices which increases the difficulty for users to find corresponding applications from electronic devices, and increases the complexity of network distribution operations.
- an application for smart home device control can be set up, that is, a smart home application, where different quick applications are associated with the application, and each quick application can be used to control a manufacturer’s equipment.
- the application program can provide an entrance to the quick application, that is, the application enters the quick application.
- the communication between the fast application and the application can be through cross-application communication, such as using AIDL interaction.
- a parameter transfer interface can be set between the application and the embedded fast application for data transfer between the application and the fast application.
- a channel class interface can be defined between the fast application and the application.
- the interface function is implemented using a channel class interface.
- the quick application can be developed based on the quick application engine, the quick application engine is an application without an interface, and the quick application can include the quick application engine and the quick application control page.
- the quick application control page can receive the control information and pass it to the application through the quick application engine.
- the fast application engine can also receive the information transmitted by the application, and display the information that needs to be displayed on the fast application control page.
- the inventor also found that if different quick app network configuration processes require the user to input the name and password of the Wi-Fi to be connected to the device, and then pass them to the device, after one quick app is configured and stored, another quick app will return To re-enter.
- the relevant information of the wireless local area network configured for the smart home device can be stored through the application.
- the application can transfer the relevant information of the wireless local area network to the corresponding fast application, so that the information of the wireless local area network transmitted by the fast application through the application is configured for the smart device, so that there is no need to configure the network every time. Input by the user improves the convenience of network distribution.
- smart home devices may include air conditioners, refrigerators, televisions, washing machines, range hoods, smart door locks, smart curtains, and other smart home devices that can be connected to the network and can be controlled wirelessly.
- the application examples are not limited, nor are they listed one by one.
- the smart home device will be referred to as a device in the following.
- electronic devices may include smart phones, tablet computers, desktop computers, wearable electronic devices, in-vehicle devices, gateways, and other devices with network connection capabilities and program operation capabilities, which are not specifically limited here. .
- Fig. 1 shows a device network distribution method provided by an embodiment of the present application, which is applied to an electronic device. Specifically, the method includes:
- Step S110 The application program receives a network configuration request for network configuration of a device. At least one fast application is embedded in the application program, and different fast applications correspond to different devices.
- Step S120 The application program transmits the target WiFi information to the target fast application corresponding to the device.
- At least one quick application is embedded in the application program and can communicate with at least one quick application.
- each quick application has a corresponding device
- one quick application can correspond to one or more devices
- different quick applications correspond to different devices.
- the application can receive network configuration requests for network configuration of the device. If the application receives the network configuration request for the device, it takes the fast application corresponding to the device that needs the network configuration as the target fast application, and transfers the WiFi (wireless fidelity, wireless fidelity) for network distribution to the target fast application Information.
- the WiFi information transmitted by the application to the target fast application is defined as the information of the target WiFi. It is understandable that the WiFi information is the information of the wireless local area network, or the connection information of the corresponding router of the wireless local area network.
- Step S130 The target fast application sends the target WiFi information to the device for the device to connect to the network according to the target WiFi information.
- the target fast application receives the target WiFi information transmitted by the application, and then sends the received target WiFi information to the corresponding device, thereby realizing the network distribution of the corresponding device.
- the application program when a network configuration request is received, the application program sends WiFi information to the fast application corresponding to the device that needs network configuration, so that when different devices perform network configuration, the application program can send WiFi information. There is no need to input from each quick application separately, which improves the convenience of network distribution.
- one WiFi can be selected from the WiFi in which WiFi information is stored in the electronic device as the target WiFi.
- the method includes:
- Step S210 The application program receives a network configuration request for network configuration of a device. At least one fast application is embedded in the application program, and different fast applications correspond to different devices.
- the application can receive network configuration requests for network configuration of the device.
- the network configuration request received by the application program may be received by the application program from the outside world.
- the application program may obtain the network configuration instruction carrying the identity information of the device, and determine that a network configuration request for the device corresponding to the identity information is received.
- the network distribution instruction may be obtained through a graphic code.
- the graphic code can be a two-dimensional code, a barcode, or other graphic codes that can obtain information through a graphic structure.
- the application program can obtain graphic code information.
- the specific method for obtaining the graphic code information may be to scan the graphic code through a camera to obtain the image of the graphic code, or to read the image of the graphic code in the locally stored picture. Then image recognition is performed on the graphic code image to obtain the information included in the graphic code. For example, decoding the graphic code in the graphic code image to obtain the coding information corresponding to the graphic code.
- the code information is code information including a uniform resource locator
- the information can be obtained from the server through the uniform resource locator, and the information obtained from the server is used as the graphic code information. If the code information does not include a uniform resource locator, the code information is directly used as the graphic code information.
- the graphic code information further includes a network configuration related instruction, and it is determined that a network configuration request for a device corresponding to the identity information is received.
- the identity information may include the model of the device, the manufacturer to which the device belongs, etc., which is not limited in the embodiment of the present application.
- the network distribution request may also be input by the user. Specifically, it may be receiving an input operation acting on the display interface of the application program, and the input operation is used to input the identity information of the device. If a network configuration instruction initiated corresponding to the identity information is received, the application program determines that it has received a network configuration request for the device corresponding to the identity information.
- the user can initiate the network configuration in the display interface of the application.
- the display interface can have a network configuration entry button, an add device button, etc., if the trigger of the network configuration entry button is received, then It is determined that the distribution network initiated by the user is received.
- a network distribution input operation interface may be displayed.
- the network distribution input interface is used for the user to input part or all of the identity information of the device, such as the user input device model. If the identity information input by the user on the network configuration input interface is received, the application program determines that a network configuration request for the device corresponding to the identity information has been received.
- the user can initiate network configuration in the display interface of the application.
- the display interface can have a network configuration entry button, a button for adding a device, etc., if a trigger for the button is received , It is determined that the distribution network initiated by the user is received.
- the device selection interface can be used.
- the device selection interface includes various optional devices. If the user's selection operation on any device is received, the input operation acting on the display interface of the application program is received, and the identity information of the selected device is used as the input identity information, and the application program determines that it has received the input operation on the identity information.
- the equipment corresponding to the information makes a network distribution request.
- the identity information input by the user is received in the search input box of the application, and the identity information may be the device model, name, and so on.
- Display the device corresponding to the identity information if it receives a network configuration instruction initiated by the device to configure the network, such as the device displays a network configuration control for network configuration, click the network control to initiate the network configuration instruction, then the corresponding The network configuration instruction initiated by the identity information is determined to receive a network configuration request for the device corresponding to the identity information.
- a plurality of selectable devices may be displayed in the application. If the selection of any device is received and the device has not been configured, the user can be prompted whether to configure the device. If the user’s network configuration determination is received, the identity information selected by the user is used as the identity information input by the user selection input operation, and the network configuration instruction initiated corresponding to the identity information is received, it is determined that the identity information is received. The corresponding equipment makes a network distribution request.
- the identity information actually entered by the user may be part or all of all the identity information of the device.
- the identity information of the device includes the model, name, manufacturer, etc. of the device, and the user may only input the model of the device. If the identity information entered by the user is part of all identity information of the device, when other parts or all of the identity information of the device are required, the electronic device can obtain the identity information of other parts according to the entered identity information.
- the user only inputs the model of the device, and the information carried in the network distribution instruction may include the model and manufacturer.
- the network configuration request may also be obtained by the application through wireless scanning.
- the user can control the device to enter the network configuration mode, such as touching the network configuration mode button of the device on the device.
- the device can send out wireless signals, such as WiFi signals, Bluetooth signals, etc., and the wireless signals sent by the device can be preset with coding rules.
- the application program detects whether the received wireless signal satisfies the preset coding rule, and if any wireless signal satisfies the preset coding rule, the identity information of the device is parsed through the preset coding rule, and it is determined that the network distribution request is received.
- the application can obtain a name that complies with the preset encoding rule from the name of the detected signal, and resolve the model of the device from the name .
- the preset coding rule is not limited. For example, certain fixed special characters may be set in certain fixed digits in the name of the wireless signal.
- the application can also start scanning the surrounding wireless environment after receiving the network configuration initiated by the user in the display interface of the application, and detecting whether there is a wireless network that meets the preset coding rules. signal.
- At least one quick application is embedded in the application, and parameters are transferred between the application and the quick application through an interface.
- the device corresponding to each quick application is different from other quick applications.
- One quick application can correspond to one or more devices, and each device corresponds to one quick application.
- a quick application can correspond to one type of device, and each device belongs to only one category.
- Devices belonging to the same category can have the same category identification to identify them.
- a manufacturer is a category
- a fast application corresponds to a manufacturer, that is, a fast application can correspond to a device of one manufacturer, and a device is shipped by one manufacturer and belongs to only one manufacturer.
- Devices belonging to the same manufacturer may have a corresponding manufacturer ID, that is, information indicating the manufacturer to which the device belongs, so as to identify the fast application corresponding to the device through the manufacturer ID.
- Each quick application is used to control its corresponding device.
- the fast application may also initiate a network allocation request to the application program, and the fast application that initiated the network allocation request is the target fast application.
- the target fast application obtains the identity information of the device, and initiates a network distribution request corresponding to the identity information to the application.
- the target fast application can be entered from the application.
- the application program has an entry to each quick application. If a trigger to an entry is received, the quick application corresponding to the entry is entered, that is, the control page of the quick application is displayed to display information or Receive user information input. Each card is an entrance to each quick application. If a trigger for any card is received, the quick application corresponding to the card is entered.
- the quick app can receive the network configuration request input from the outside, and then the quick app sends the network configuration request to the application.
- the way that the fast app receives the network distribution request input from the outside can refer to the network distribution request received by the application program from the outside. For example, the fast app obtains graphic code information.
- the application initiates a network configuration request that carries the identity information; if an input operation acting on the display interface of the target quick application is received, the input operation is used to input the identity information of the device, and if a request corresponding to the identity information is received
- the network configuration instruction initiates a network configuration request carrying the identity information to the application program; if the fast application obtains a network configuration request through wireless scanning, it initiates a network configuration request to the application program, which is not limited in the embodiment of the application.
- the way to enter the quick application may be that the application receives an input operation acting on the display interface, and the input operation is used to input the identity information of the device to enter the quick application corresponding to the device.
- the identity information of the device input by the user from the application program interface is received, and the card, icon or other control that can trigger the control of the device is displayed. If the trigger of the control is received, enter the quick application corresponding to the device.
- receiving the device selected by the user from the display interface of the application such as the card, icon or other control that can trigger the control of each device displayed in the application interface, and receiving the control corresponding to any device Is triggered to enter the quick application interface corresponding to the device.
- the network configuration trigger button can be displayed. If the trigger of the network configuration trigger button is received, the network configuration page for configuring the device is entered. , And initiate a network configuration request to the application, and enter the network configuration page.
- the quick application can directly initiate a network configuration request for the device to the application.
- the way to enter the quick application may also be that the application obtains the identity information of the device through the graphic code and enters the quick application corresponding to the device.
- the network configuration trigger button can be displayed. If the trigger of the network configuration trigger button is received, the network configuration page for network configuration of the device is entered, and a network configuration request is initiated to the application.
- the quick application can directly initiate a network configuration request for the device to the application, and enter the configuration Web page.
- Step S220 The application program selects WiFi as the target WiFi.
- the application program receives the network configuration request and can pass the target WiFi information to the fast application.
- the target WiFi is the WiFi used to send to the device so that the device can connect to the network.
- the specific information of the target WiFi sent may include the name of the WiFi, or SSID, and the password of the WiFi.
- the application program may select one WiFi as the target WiFi from WiFi information stored in the electronic device.
- the stored WiFi information may be the WiFi information that the electronic device has connected to, or the WiFi information that the electronic device has transferred to the fast app during the process of configuring the network for the device.
- the name and password of the WiFi can be stored, or only the name of the WiFi.
- WiFi information can be encrypted and stored, such as AES encryption.
- the application when the application receives the network configuration request, it can display multiple WiFi options stored in the electronic device with WiFi information, so as to be used by the user to select the WiFi for network configuration for the device. If the selection of any WiFi among the multiple selectable options is received, the selected WiFi is used as the target WiFi.
- the electronic device and the device that needs to be configured are close, and the router to which the electronic device is currently connected is the router to which the device needs to be connected. Therefore, in this embodiment, in the WiFi where the electronic device stores information, the WiFi to which the electronic device is currently connected can be selected as the target WiFi.
- the electronic device may not currently access a wireless local area network, and the electronic device may access mobile data; or the WiFi signal that the electronic device is currently connected to is the WiFi signal sent by the device itself And, usually, when distributing the network, the electronic device will first connect to the wireless local area network available in the surrounding environment, and then switch to the WiFi network sent by the device according to the demand. Therefore, you can select the electronic device in the WiFi network where the electronic device stores information. The last WiFi connected to the device is the target WiFi.
- the electronic device when the network is distributed, the electronic device is close to the device that needs to be configured, and WiFi with strong signal around the electronic device has a strong signal for the device that needs to be configured. Therefore, it is possible to select the WiFi with the strongest signal as the target WiFi among WiFis in which information is stored in the electronic device.
- the application selected may also be one of multiple WiFi that can be scanned currently.
- the specific selection method can refer to the selection from WiFi that stores WiFi information.
- the method of selecting the target WiFi from the WiFi that stores WiFi information can be used as the target WiFi from the multiple WiFis scanned The choice of choice.
- the application when it receives a network configuration request, it can display multiple WiFi options currently scanned by the electronic device for the user to select the WiFi for the device to perform network configuration. If the selection of any WiFi among the multiple selectable options is received, the selected WiFi is used as the target WiFi.
- the WiFi currently connected to the electronic device may be selected as the target WiFi.
- the WiFi with the strongest signal may be selected as the target WiFi from the multiple WiFis that are scanned.
- the WiFi selection confirmation interface can be displayed.
- the confirmation interface It includes the name information of the selected WiFi, prompting the user to confirm whether to select the WiFi as the device network configuration. If the selected WiFi has a password stored, the confirmation interface can also display the selected WiFi password.
- the password can be in plain text or non-plain text to confirm to the user whether the password is correct. If the password is not in plain text, the password can be displayed in plain text after receiving the user's touch to display the password in plain text.
- the WiFi will be used as the target WiFi. If the user cancels the confirmation of the selected WiFi, multiple WiFi options with WiFi information stored in the electronic device can be displayed for the user to choose; or a WiFi information input box can be displayed, and the user can input WiFi information.
- a password input interface corresponding to the WiFi may be displayed and the user is prompted to enter the password. After receiving the password input by the user, the password and WiFi name are stored and used as the target WiFi information.
- the user may be reminded to enter a password for the WiFi selected for the first time. Specifically, it can be judged whether the selected WiFi is the WiFi selected for the first time, that is, it is judged whether the WiFi is used for the first time to be passed to the quick application for network configuration. If yes, a prompt message for entering a password for the selected WiFi is displayed to prompt the user to enter the password for the WiFi. If the inputted password of the selected WiFi is received, the selected WiFi is used as the target WiFi, and the password and the name of the WiFi are used as the information of the target WiFi. And, the corresponding name of the WiFi password can be saved.
- the WiFi can be used as the target WiFi.
- the saved WiFi and the unsaved WiFi can be displayed separately.
- the saved WiFi is displayed as a WiFi list
- the unsaved WiFi is displayed as a list.
- Step S230 The application program transmits the target WiFi information to the target fast application corresponding to the device.
- the application can pass the obtained WiFi information to the target fast application, and the specific pass can be the name and password of the WiFi. Among them, if the WiFi information is encrypted and stored, the WiFi information can be decrypted and delivered to the target fast application.
- the application program may determine the quick application corresponding to the identity information as the target quick application corresponding to the device.
- the application program can determine the device that needs to perform network configuration according to the identity information, so that the quick application corresponding to the device can be determined as the target quick application. Pass WiFi information to the target fast application, and jump to display the network configuration interface of the target target fast application.
- the identity information may include a category identifier of the device, such as a manufacturer identity, and the application program determines the quick application corresponding to the category identity as the quick application corresponding to the device indicated by the identity information.
- the identity information can include the model of the device, and the application can request the quick app corresponding to the model to the server through the model of the device, and use the quick app corresponding to the model returned by the server as the device corresponding to the identity information. Fast application.
- the quick application that transmits the network distribution request is used as the target quick application, that is, the quick application that transmits the network distribution request corresponds to the device that needs network configuration.
- the fast application is the fast application corresponding to the identity information in the network distribution request.
- the application program transmits the information of the target WiFi to the target fast application, which can be specifically transmitted through the interface between the application and the target fast application.
- the application can transmit the target WiFi information to the target fast application corresponding to the device through deeplink.
- Step S240 The target fast application sends the target WiFi information to the device for the device to connect to the network according to the target WiFi information.
- the target fast application receives the target WiFi information, and can configure the network for the device according to the target WiFi information. Specifically, the target fast application sends the target WiFi information to the device, and the device specifically sent is the device corresponding to the network configuration request.
- the device that receives the information of the target WiFi can connect to the target WiFi according to the name and password of the target WiFi to access the network.
- the target fast application may send the target WiFi information to the device through the application program.
- the application can load SDK plug-ins, and each SDK plug-in corresponds to a quick application, that is, each SDK plug-in corresponds to a type of device, each SDK plug-in corresponds to different devices, and different SDK plug-ins correspond to different devices.
- Each SDK plug-in can exchange data with its corresponding device and control its corresponding device. It is understandable that each SDK plug-in can also configure the network for its corresponding device.
- the target fast application can initiate a network configuration instruction for the device to the application program, and the network configuration instruction can carry information about the target WiFi.
- the application program calls the SDK plug-in corresponding to the target fast application according to the network configuration instruction, and sends the target WiFi information to the SDK plug-in.
- the SDK plug-in sends the target WiFi information to the device.
- the network configuration instruction can also include device information, etc., so that the SDK plug-in can determine the device to which the target WiFi information needs to be sent.
- the manner of sending the target WiFi information to the device is not limited.
- the user when configuring the network for the device, the user can control the device to enter the network distribution mode.
- the device In the network distribution mode, the device can be used as a wireless access point to send WiFi signals and define the WiFi signal as device WiFi.
- the electronic device can switch the network connection to connect to the device WiFi according to the device WiFi information, and send the target WiFi information to the device through the device WiFi.
- the device WiFi information may include the name and password of the device WiFi, which can be set before the device leaves the factory.
- the application, the quick application corresponding to the device, or the SDK plug-in can obtain the device information from the server, so that the electronic device can connect to the device WiFi when it needs to send target WiFi information during the network configuration process.
- the network connection of the electronic device can be switched back to the previous WiFi connection.
- the user can control the device to enter the network distribution mode.
- the device can turn on Bluetooth.
- the electronic device can connect to the Bluetooth, and send WiFi information to the device through the Bluetooth.
- the electronic device is connected to WiFi, and the specific WiFi connected is not limited, for example, it may be the target WiFi.
- the electronic device side such as the SDK plug-in, send a UDP broadcast packet or multicast packet containing the information of the target WiFi.
- the WIFI chip of the device in the same wireless local area network can receive the UDP broadcast packet or multicast packet.
- the organization form of the broadcast packet or multicast packet of the target WiFi information sent by the electronic device is stored in the device in advance, and the device can decrypt the WiFi information after receiving the UDP broadcast packet or multicast packet containing the WiFi information.
- the network configuration interface of the quick application after receiving the network configuration request may display the network configuration progress.
- FIG. 3 there may be a device addition page in the application, including a button 301 for adding a device, which is in the form of a card. If the touch of the button 301 of the added device is received, the interface of the device adding mode can be displayed, such as the manually added card control 302 and the card control 303 added by automatically scanning the code as shown in FIG. 4.
- the selection interface of the device can be displayed.
- the device selection interface can be as shown in Figure 5 or Figure 6, showing the name of each device. If a touch to any device is received, it is determined to configure the network for that device and enter the WiFi selection interface. For example, if a touch to device 1 is received, it is determined that device 1 is networked, and the WiFi selection interface shown in FIG. 7 is entered.
- the scanning adding interface As shown in Figure 8, where the viewfinder frame 304 is used to read the graphic code, and the flashlight means turning on the flashlight of the electronic device during scanning to facilitate When the light is low, the graphic code is read, and the album is used to obtain the image of the graphic code in the locally stored picture. If the graphic code is obtained by scanning the image code or the local album, and the identity information of the device is obtained, the device corresponding to the identity information is determined to configure the network and enter the WiFi selection interface, as shown in Figure 7.
- the WiFi selection interface can display each WiFi that can be selected. For example, it can display the names of all WiFis scanned, and display the WiFi with WiFi information and other WiFis separately.
- the target fast application is the fast application corresponding to the selected device 1.
- the target fast application can send the target WiFi information to the device 1 through the application, and the device 1 can connect to the target WiFi after receiving the target WiFi information.
- the target WiFi information when a network configuration request for a device is received, the target WiFi information can be selected from the application program, and the target WiFi information is sent to the corresponding target fast application.
- the application can send according to the stored WiFi information. For example, after determining the WiFi to be sent, the application can obtain the stored WiFi password and send it to the target fast application. Therefore, in the embodiments of the present application, when devices corresponding to different fast apps perform network configuration, there can be a unified application to transmit WiFi information to the fast app, and it is not necessary for the user to input the network configuration interface of the fast app every time , Improve the convenience of distribution network. That is to say, the quick application associated with the application can realize WiFi sharing. After entering the WiFi password once, the user does not need to enter the password again in the future, and directly selects to proceed to the next steps, thereby shortening the network distribution time and improving the success rate of the network distribution .
- each fast application controls a category of equipment, such as controlling equipment belonging to the same manufacturer, and different fast applications are integrated in the same application, which can realize unified control of different types of equipment, and different fast applications can realize the functions of the application. .
- the network distribution device 400 may include: a network distribution request receiving module 410, configured to receive a network distribution request for a device by an application program, and at least one fast application is embedded in the application program.
- the device corresponding to the application is different.
- the information transfer module 420 is used for the application to transfer the target WiFi information to the target fast application corresponding to the device.
- the network distribution module 430 is used for the target fast application to send the target WiFi information to the device, so that the device can connect to the network according to the target WiFi information.
- the apparatus 400 may further include: a network distribution request module, configured to, if the target fast application obtains the identity information of the device, initiate a network distribution request corresponding to the identity information to the application program.
- a network distribution request module configured to, if the target fast application obtains the identity information of the device, initiate a network distribution request corresponding to the identity information to the application program.
- the network distribution request module may include a graphic code obtaining unit for the target fast application to obtain graphic code information; and a request unit for the target fast application to recognize that the graphic code information includes the identity information of the device, Initiate a network distribution request corresponding to the identity information to the application.
- the network distribution request module may include an input unit for receiving an input operation acting on the display interface of the target fast application, and the input operation is used for inputting the identity information of the device; the request unit is used for receiving the corresponding For a network distribution instruction initiated by the identity information, the target fast application initiates a network distribution request corresponding to the identity information to the application program.
- the apparatus 400 may further include: a network distribution request module, configured to determine that if the application program obtains the network distribution instruction carrying the identity information of the device, it is determined that the corresponding information to the identity information is received The device makes a network configuration request for network distribution.
- a network distribution request module configured to determine that if the application program obtains the network distribution instruction carrying the identity information of the device, it is determined that the corresponding information to the identity information is received The device makes a network configuration request for network distribution.
- the network distribution request module may include a graphic code obtaining unit for the application program to obtain graphic code information.
- the request unit is configured to determine that if the application program recognizes that the graphic code information includes the identity information of the device, it determines that it has received a network configuration request for the device corresponding to the identity information.
- the network distribution request module may include an input unit for receiving an input operation acting on the display interface of the application program, the input operation being used for inputting the identity information of the device; a request unit, for receiving the corresponding For a network configuration instruction initiated by the identity information, the application program determines that a network configuration request for a device corresponding to the identity information is received.
- the apparatus 400 may further include a fast application determining module, which is used by the application program to determine the fast application corresponding to the identity information as the target fast application corresponding to the device.
- the apparatus 400 may also include a network connection module, which is used for an electronic device to connect to the device WiFi according to the device WiFi information, so as to send the target WiFi information to the device through the device WiFi.
- the equipment is used for an electronic device to connect to the device WiFi according to the device WiFi information, so as to send the target WiFi information to the device through the device WiFi.
- the device 400 may further include a WiFi selection module for the application to select the WiFi with the strongest signal among WiFi information stored in the electronic device as the target WiFi.
- the WiFi selection module may be used to select the WiFi currently connected to the electronic device as the target WiFi.
- the WiFi selection module may include a display unit for displaying a plurality of WiFi options stored in the electronic device with WiFi information; a selection unit for receiving a WiFi option for any one of the multiple options.
- the selected WiFi is used as the target WiFi.
- the selection unit may be used to determine whether the selected WiFi is the first WiFi selected. If the WiFi is selected for the first time, a prompt message for entering a password for the selected WiFi is displayed. If the input password of the selected WiFi is received, the selected WiFi is used as the target WiFi. If it is not the WiFi selected for the first time, the selected WiFi is used as the target WiFi.
- the information transfer module 420 may be used for the application to transfer the target WiFi information to the target fast application corresponding to the device in a deeplink manner.
- the network distribution module 430 may include a first network distribution unit for the target fast application to initiate a network configuration instruction for the device to the application, and the network configuration instruction carries the target WiFi information;
- the second network distribution unit is used for the application to call the SDK plug-in corresponding to the target fast application according to the network distribution instruction, and send the target WiFi information to the SDK plug-in; and a third network distribution The unit is used for the SDK plug-in to send the target WiFi information to the device.
- the coupling between the modules may be electrical, mechanical or other forms of coupling.
- each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module.
- the above-mentioned integrated modules can be implemented in the form of hardware or software functional modules.
- FIG. 12 shows a structural block diagram of an electronic device 500 provided by an embodiment of the present application.
- the electronic device 500 may be an electronic device capable of running application programs, such as a smart phone, a tablet computer, or a music playback device.
- the electronic device has one or more processors 510 (only one is shown in the figure), a memory 520, and one or more programs.
- the one or more programs are stored in the memory 520 and configured to be executed by the one or more processors 510.
- the one or more programs are configured to execute the methods described in the foregoing embodiments.
- the one or more programs may be application programs and various quick applications respectively.
- the processor 510 may include one or more processing cores.
- the processor 510 uses various interfaces and lines to connect various parts of the entire electronic device 500, and executes by running or executing instructions, programs, code sets, or instruction sets stored in the memory 520, and calling data stored in the memory 520.
- the processor 510 may use at least one of digital signal processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA).
- DSP Digital Signal Processing
- FPGA Field-Programmable Gate Array
- PLA Programmable Logic Array
- the processor 510 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), a modem, and the like.
- the CPU mainly processes the operating system, user interface, and application programs; the GPU is used to render and draw the display content; the modem is used to process wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 510, but may be implemented by a communication chip alone.
- the memory 520 may include random access memory (RAM) or read-only memory (Read-Only Memory).
- the memory 520 may be used to store instructions, programs, codes, code sets or instruction sets.
- the memory 520 may include a storage program area and a storage data area, where the storage program area may store instructions for implementing an operating system, instructions for implementing at least one function, instructions for implementing each of the foregoing method embodiments, and the like.
- the storage data area can also be data created by the electronic device in use (such as phone book, audio and video data, chat record data), etc.
- the electronic device 500 may also include a display screen for displaying the video to be displayed.
- FIG. 13 shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
- the computer-readable storage medium 600 stores program code, and the program code can be invoked by a processor to execute the method described in the foregoing method embodiment.
- the computer-readable storage medium 600 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
- the computer-readable storage medium 600 includes a non-transitory computer-readable storage medium.
- the computer-readable storage medium 600 has a storage space for the program code 610 for executing any method steps in the above methods. These program codes can be read out from or written into one or more computer program products.
- the program code 610 may be compressed in a suitable form, for example.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本申请公开了一种设备配网方法、装置、电子设备及存储介质,涉及智能家居技术领域。其中,该方法包括:应用程序接收对设备进行配网的配网请求,所述应用程序中内嵌有至少一个快应用,不同快应用对应的设备不同;所述应用程序向所述设备对应的目标快应用传递目标WiFi的信息;所述目标快应用将所述目标WiFi的信息发送给所述设备,以用于所述设备根据所述目标WiFi的信息进行网络连接。该方案中,不需要每次都由用户在快应用手动输入WiFi的信息进行配网,提高了配网的便捷性。
Description
本申请涉及智能家居技术领域,更具体地,涉及一种设备配网方法、装置、电子设备及存储介质。
为了对智能家居设备进行智能控制,可以对智能家居设备进行配网,以使智能设备连接到无线路由器,以通过无线局域网收发数据。在对智能家居设备配网时,需要用户手动操作整个配网过程,不够便捷。
发明内容
鉴于上述问题,本申请提出了一种设备配网方法、装置、电子设备及存储介质,以改善上述问题。
第一方面,本申请实施例提供了一种设备配网方法,应用于电子设备,所述方法包括:应用程序接收对设备进行配网的配网请求,所述应用程序中内嵌有至少一个快应用,不同快应用对应的设备不同;所述应用程序向所述设备对应的目标快应用传递目标WiFi的信息;所述目标快应用将所述目标WiFi的信息发送给所述设备,以用于所述设备根据所述目标WiFi的信息进行网络连接。
第二方面,本申请实施例提供了一种设备配网装置,应用于电子设备,所述装置包括:配网请求接收模块,用于应用程序接收对设备进行配网的配网请求,所述应用程序中内嵌有至少一个快应用,不同快应用对应的设备不同;信息传递模块,用于所述应用程序向所述设备对应的目标快应用传递目标WiFi的信息;配网模块,用于目标快应用将所述目标WiFi的信息发送给所述设备,以用于所述设备根据所述目标WiFi的信息进行网络连接。
第三方面,本申请实施例提供了一种电子设备,包括:一个或多个处理器;存储器;一个或多个程序。其中所述一个或多个程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行上述的方法。
第四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有程序代码,所述程序代码可被处理器调用执行上述的方法。
本申请实施例提供的设备配网方法、装置、电子设备及存储介质,在接收到配网请求的情况下,由应用程序将目标WiFi的信息传递给目标快应用,目标快应用再将该WiFi信息发送给设备以使设备进行配网,从而不需要每次都由用户手动输入WiFi的信息进行配网,提高了配网的便捷性。
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1示出了本申请一实施例提供的设备配网方法的流程图。
图2示出了本申请另一实施例提供的设备配网方法的流程图。
图3至图10分别示出了本申请实施例中设备配网过程中的不同显示界面图。
图11示出了本申请实施例提供的设备配网装置的功能模块图。
图12示出了本申请实施例提供的电子设备的结构框图。
图13是本申请实施例的用于保存或者携带实现根据本申请实施例的设备配网方法的程序代码的存 储单元。
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。
在智能家居系统中,智能家居设备需要连接网络以与服务器进行交互,与电子设备进行交互,因此对于不具有有效的连网信息的智能家居设备,需要对其进行配网,即配置有效的连网信息,具体可以是向该智能家居设备提供有效的连网信息,使智能家居设备可以根据该有效的连网信息连接到无线局域网。该有效的连网信息包括智能家居设备可以连接的无线局域网的信息。
例如,对于未存储有无线局域网的信息的智能家居设备,如新购入从而未进行过配网的家居设备,需要对其进行配网,使其连接到无线局域网。
又例如,对于从一个地方迁移到另一个地方的智能家居设备,离开了原来的无线局域网环境,迁移到了新的无线局域网环境,其存储的连网信息已经无效,需要配置新的无线局域网的信息,使其连接到新的无线局域网。
又例如,对于某一智能家居,由于路由器的更换,无线局域网环境改变,原来连接的无线局域网不存在,需要连接新的路由器形成的无线局域网,因此需要配置新的无线局域网的信息。
又例如,智能家居设备连接的无线局域网的密码改变,智能家居设备无法通过存储的密码成功连接无线局域网,或者智能家居设备连接的无线局域的名称改变,无法搜索到可原来可以连接的无线局域网,因此,需要对智能家居设备进行网络配置。
通常的,通过电子设备对智能家居设备进行配网。每次通过电子设备配网时,都需要用户输入为智能家居设备配置的无线局域网的相关信息,配网过程操作繁琐,便捷性低。
并且,对于同一个用户,其所使用的智能家居设备可能属于不同的厂商,在电子设备中,通常对应不同的厂商需要安装不同的应用程序(Application,APP),则对不同的厂商的智能家居设备进行配网时,需要开启不同的应用程序。一方面,安装不同厂商对应的应用程序,占用电子设备更多的存储空间以及运行空间;另一方面,不同厂商的智能家居设备进行配网,用户开启不同的应用程序,操作繁琐,并且,由于通常电子设备中安装的应用程序较多,增加用户从电子设备寻找对应的应用程序的难度,提高了配网操作的复杂性。
发明人经过研究发现,在电子设备,可以设置一用于智能家居设备控制的应用程序,即智能家居应用程序,在该应用程序关联不同的快应用,每个快应用可以用于控制一个厂商的设备。应用程序可以提供进入快应用的入口,也就是说,由应用程序进入快应用。快应用与该应用程序之间的通讯可以通过跨应用的通讯方式,如使用AIDL交互。具体的,应用程序与内嵌的快应用之间可以设置有参数传递的接口,用于应用程序与快应用之间的数据传递,例如,快应用与应用程序之间可以定义通道类接口,所有的接口函数使用一个通道类接口实现。
其中,可选的,快应用可以基于快应用引擎开发,快应用引擎是无界面的应用程序,快应用可以包括快应用引擎以及快应用控制页面。进入快应用后,可以由快应用控制页面接收控制信息,并通过快应用引擎传递给应用程序。快应用引擎也可以接收应用程序传递的信息,并且将需要显示的信息在快应用控制页面显示。
另外,发明人也发现,若不同的快应用配网过程,都需要用户输入设备要连接上的Wifi的名称和密码,从而传递给设备,则一个快应用配网存储之后,另一个快应用还要重新输入。
因此,可以在设计层面,将配网流程进行改动,将WiFi的选择放在实际的配网之前,并在应用功 能程序统计维护,从而达到共享WiFi的目的。也就是说,可以将用于为智能家居设备配置的无线局域网的相关信息通过该应用程序存储。在进行配网时,应用程序可以将该无线局域网的相关信息传递给相应的快应用,以使快应用通过应用程序传递的无线局域网的信息为智能设备进行配网,从而不必每次配网都由用户输入,提高配网的便捷性。
因此,发明人提出了本申请实施例提供的设备配网方法、装置、电子设备及存储介质,用于为通过电子设备为智能家居设备进行配网。其中,本申请实施例中,智能家居设备可以包括空调、冰箱、电视机、洗衣机、抽油烟机、智能门锁以及智能窗帘等各种能进行网络连接并且能无线控制的智能家居设备,在本申请实施例中并不限定,也不一一列举。为了描述简便,后续将智能家居设备简称为设备。
另外,本申请实施例中,电子设备可以包括智能手机、平板电脑、台式电脑、穿戴式电子设备、车载设备、网关等各种具有网络连接能力及程序运行能力的设备,在此不做具体限定。
下面将通过具体实施例对本申请实施例提供的视频处理方法、装置、电子设备及存储介质进行详细说明。
图1示出了本申请实施例提供的设备配网方法,应用于电子设备。具体的,该方法包括:
步骤S110:应用程序接收对设备进行配网的配网请求,所述应用程序中内嵌有至少一个快应用,不同快应用对应的设备不同。
步骤S120:所述应用程序向所述设备对应的目标快应用传递目标WiFi的信息。
应用程序内嵌至少一个快应用,可以和至少一个快应用进行通讯。其中,每个快应用分别有对应的设备,一个快应用可以对应一个或多个设备,不同的快应用对应的设备不同。
应用程序可以接收对设备进行配网的配网请求。若应用程序接收到对设备进行配网的配网请求,以需要配网的设备对应的快应用作为目标快应用,向该目标快应用传递用于配网的WiFi(wireless fidelity,无线保真)的信息。在本申请实施例中,定义应用程序向目标快应用传递的WiFi信息为目标WiFi的信息。可以理解的,WiFi的信息,即为无线局域网的信息,或者说无线局域网的对应的路由器的连接信息。
步骤S130:所述目标快应用将所述目标WiFi的信息发送给所述设备,以用于所述设备根据所述目标WiFi的信息进行网络连接。
目标快应用接收应用程序传递的目标WiFi的信息,再将接收到的目标WiFi的信息发送给相应的设备,从而实现对相应设备的配网。
本申请实施例中,接收到配网请求时,由应用程序将WiFi的信息发送给需要配网的设备对应的快应用,从而不同的设备进行配网时都可以由应用程序发送WiFi的信息,不需要分别从各个快应用输入,提高了配网的便捷性。
本申请实施例提供的设备配网方法,可以从电子设备存储有WiFi信息的WiFi中选择一个WiFi,作为目标WiFi。具体的,请参见图2,该方法包括:
步骤S210:应用程序接收对设备进行配网的配网请求,所述应用程序中内嵌有至少一个快应用,不同快应用对应的设备不同。
应用程序可以接收对设备进行配网的配网请求。
在本申请实施例中,应用程序接收到的配网请求可以由应用程序由外界接收。具体的,可以由应用程序获取到携带所述设备的身份信息的配网指令,判定为接收到对所述身份信息对应的设备进行配网的配网请求。
作为一种实施方式,该配网指令可以是通过图形码获得。其中,该图形码可以是二维码、条形码以及其他通过图形结构可以获得信息的图形码。
具体的,在该实施方式中,应用程序可以获取图形码信息。具体获取图形码信息的方式可以是,通过摄像头扫描图形码获得图形码的图像,或者读取本地存储的图片中图形码的图像。再对图形码图像进行图像识别,以获取该图形码中包括的信息。例如,对图形码图像中图形码进行解码,获得图形码对应的编码信息。可选的,若该编码信息为包括了统一资源定位符的编码信息,可以通过该统一资源定位符从服务器获取信息,以从服务器获取的信息作为图形码信息。若该编码信息不包括统一资源定位符,直接以该编码信息作为图形码信息。
再识别图形码信息中是否包括设备的身份信息,若包括,则可以判定接收到对所述身份信息对应的设备进行配网的配网请求。可选的,也可以是,图形码信息中还包括配网的相关指令,判定接收到对所述身份信息对应的设备进行配网的配网请求。其中,该身份信息可以包括设备的型号,设备所属的厂商等,在本申请实施例中并不限定。
作为一种实施方式,该配网请求也可以是由用户输入。具体可以是接收作用于所述应用程序显示界面的输入操作,所述输入操作用于输入设备的身份信息。若接收到对应所述身份信息发起的配网指令,所述应用程序判定为接收到对所述身份信息对应的设备进行配网的配网请求。
例如,在该实施方式中,用户可以在应用程序的显示界面中发起配网,如,显示界面可以有配网入口按键、添加设备按键等,若接收到对该配网入口按键的触发,则判定接收到用户发起的配网。在接收到用户发起的配网时,可以显示配网输入操作界面,该配网输入界面用于用户输入设备的身份信息的部分或者全部,如用于用户输入设备型号。若接收到用户在配网输入界面输入的身份信息,则应用程序判定为接收到对所述身份信息对应的设备进行配网的配网请求。
例如,在该实施方式中,也可以是,在用户可以在应用程序的显示界面中发起配网,如,显示界面可以有配网入口按键、添加设备按键等,若接收到对该按键的触发,则判定接收到用户发起的配网。在接收到用户发起的配网时,可以设备的选择界面,该设备的选择界面中包括各种可选的设备。若接收到用户对任意一个设备的选择操作,则接收到作用于所述应用程序显示界面的输入操作,以选择的设备的身份信息作为输入的身份信息,应用程序判定为接收到对所述身份信息对应的设备进行配网的配网请求。
例如,在该实施方式中,也可以是,在应用程序的搜索输入框中,接收到用户输入的身份信息,该身份信息可以是设备型号,名称等。显示对应该身份信息的设备,若接收到对该设备进行配网发起的配网指令,如对该设备显示进行配网的配网控件,通过点击配网控件发起配网指令,则接收到对应所述身份信息发起的配网指令,判定为接收到对所述身份信息对应的设备进行配网的配网请求。
例如,在该实施方式中,也可以是,在应用程序显示可选择的多个设备。若接收到对任意一个设备的选择,且该设备未进行配网,可以提示用户是否对该设备进行配网。若接收到用户的配网确定,以用户选择的身份信息作为用户选择这一输入操作输入的身份信息,且接收到对应所述身份信息发起的配网指令,判定为接收到对所述身份信息对应的设备进行配网的配网请求。
其中,用户实际输入的身份信息可以是设备所有身份信息的部分或全部。例如,设备的身份信息包括设备的型号、名称、厂商等,用户可能只输入设备的型号。若用户输入的身份信息是设备所有身份信息的部分,在需要设备身份信息的其他部分或者全部身份信息时,电子设备可以根据输入的身份信息获取到其他部分的身份信息。例如,用户只输入设备的型号,在配网指令中携带的可以包括型号以及厂商等信息。
作为一种实施方式,该配网请求也可以是应用程序通过无线扫描获得。具体的,当设备进行配网时,用户可以控制设备进入配网模式,如在设备上触控设备的配网模式按键。在配网模式下,设备可以发出 无线信号,如WiFi信号、蓝牙信号等,设备发出的无线信号可以预设的编码规则。应用程序检测接收到的无线信号是否满足该预设的编码规则,若有无线信号满足预设的编码规则,则通过预设的编码规则解析该设备的身份信息,判定接收到配网请求。例如,无线信号的名称为设备的型号通过预设的编码规则确定,则应用程序可以从检测到的信号的名称中获得符合该预设编码规则的名称,并且从该名称中解析出设备的型号。该预设的编码规则并不限定,例如可以是在无线信号的名称中固定的某些数位中设置某些固定的特殊字符。
可选的,在该实施方式中,也可以是应用程序在接收到用户在应用程序的显示界面中发起的配网,开始扫描周围的无线环境,检测是否有满足该预设的编码规则的无线信号。
在本申请实施例中,应用程序中内嵌有至少一个快应用,应用程序与快应用之间通过接口进行参数传递。其中,每个快应用对应的设备与其他快应用不同,一个快应用可以对应一个或多个设备,每个设备对应一个快应用。具体的,在实际场景中,一个快应用可以对应一类设备,每个设备只属于一个类别。属于同一类别的设备可以具有相同的类别标识,以对其进行辨识。例如,一个厂商作为一个类别,一个快应用对应一个厂商,即一个快应用可以对应一个厂商的设备,而一个设备由一个厂商出厂,只属于一个厂商。属于同一个厂商的设备可以具有相应的厂商标识,即表明该设备所属厂商的信息,以通过厂商标识识别该设备对应的快应用。每个快应用用于对其对应的设备进行控制。
其中,也可以由快应用向应用程序发起配网请求,发起该配网请求的快应用为目标快应用。具体可以是,目标快应用获取到所述设备的身份信息,向所述应用程序发起携带所述身份信息对应的配网请求。
目标快应用可以从应用程序进入。作为一种实施方式,应用程序具有包括进入各个快应用的入口,若接收到对一个入口的触发,则进入该入口对应的快应用,即显示该快应用的控制页面,以向用户显示信息或接收用户的信息输入。各个卡片分别为进入各个快应用的入口,若接收到对任意一个卡片的触发,则进入该卡片对应的快应用。
在该实施方式中,进入快应用后,快应用可以接收外部输入的配网请求,再有快应用将该配网请求发送给应用程序。快应用接收外部输入的配网请求的方式可以参见应用程序由外界接收的配网请求,如快应用获取图形码信息,若识别到所述图形码信息中包括设备的身份信息,向所述应用程序发起携带所述身份信息对应的配网请求;如接收作用于所述目标快应用显示界面的输入操作,所述输入操作用于输入设备的身份信息,若接收到对应所述身份信息发起的配网指令,向所述应用程序发起携带所述身份信息对应的配网请求;如快应用通过无线扫描获得配网请求,则向应用程序发起配网请求,本申请实施例中并不限定。
作为一种实施方式,进入快应用的方式可以是,应用程序接收到作用于显示界面的输入操作,该输入操作用于输入设备的身份信息,进入该设备对应的快应用。
例如,接收到用户从应用程序界面输入的设备的身份信息,显示该设备对应的卡片、图标或者其他可以触发对该设备的控制的控件。若接收到对该控件的触发,进入该设备对应的快应用。
例如,接收到用户从应用程序的显示界面中选择的设备,如应用程序界面中显示有各个设备对应的卡片、图标或者其他可以触发对该设备的控制的控件,接收到对任意设备对应的控件的触发,则进入该设备对应的快应用界面。
可选的,在该实施方式中,进入设备对应的快应用界面后,可以显示配网触发按键,若接收到对该配网触发按键的触发,则进入对该设备进行配网的配网页面,并且向应用程序发起配网请求,并进入配网页面。
可选的,在该实施方式中,进入设备对应的快应用界面后,若该设备并未进行配网,快应用可以直 接向应用程序发起对该设备进行配网的配网请求。
作为一种实施方式,进入快应用的方式也可以是,应用程序通过图形码获得设备的身份信息,进入该设备对应的快应用。
可选的,进入快应用后,可以显示配网触发按键,若接收到对该配网触发按键的触发,则进入对该设备进行配网的配网页面,并且向应用程序发起配网请求。
可选的,在该实施方式中,进入设备对应的快应用界面后,若该设备并未进行配网,快应用可以直接向应用程序发起对该设备进行配网的配网请求,并进入配网页面。
步骤S220:应用程序选择作为目标WiFi的WiFi。
应用程序接收到配网请求,可以向快应用传递目标WiFi的信息。该目标WiFi为用于发送给设备,以使设备进行网络连接的WiFi。发送的目标WiFi的具体信息可以包括WiFi的名称,或者说SSID,以及WiFi的密码。
在本申请实施例中,应用程序可以从所述电子设备存储有WiFi信息的WiFi中选择一个WiFi作为目标WiFi。在电子设备中,存储的WiFi的信息可以是电子设备连接过的WiFi的信息,或者是电子设备在为设备配网的过程中向快应用传递过的WiFi的信息。在电子设备中,存储的可以是WiFi的名称以及密码,也可以仅仅是WiFi的名称。在电子设备中,WiFi的信息可以加密保存,如通过AES加密。
作为一种实施方式,应用程序接收到配网请求时,可以显示电子设备存储有WiFi信息的多个WiFi的可选项,以用于用户选择为设备进行配网的WiFi。若接收到对所述多个可选项中任意一个WiFi的选择,以选中的WiFi作为所述目标WiFi。
作为一种实施方式,通常的,配网时,电子设备和需要配网的设备相距较近,电子设备当前连接的路由器,即为设备需要连接的路由器。因此,该实施方式中,在电子设备存储有信息的WiFi中,可以选择电子设备当前连接的WiFi作为所述目标WiFi。
作为一种实施方式,在前一实施方式的基础上,电子设备当前接入的可能并非无线局域网,电子设备可能接入的是移动数据;或者电子设备当前连接的WiFi为设备自身发出的WiFi信号,并且,通常的,在配网时,电子设备会先连接周围环境中可用的无线局域网,再根据需求切换到设备发出的WiFi网络,因此,可以在电子设备存储有信息的WiFi中,选择电子设备最近一个连接的WiFi作为目标WiFi。
作为一种实施方式,通常的,配网时,电子设备和需要配网的设备相距较近,电子设备周围信号强的WiFi,对于需要配网的设备而言信号也强。因此,可以在电子设备存储有信息的WiFi中,选择信号最强的WiFi作为目标WiFi。
在本申请实施例中,应用程序选择的也可以是当前可以扫描到的多个WiFi中的一个。具体选择方式可以参照从存储有WiFi信息的WiFi中的选择,在符合逻辑的情况下,从存储有WiFi信息的WiFi中的选择目标WiFi的方式可以作为从扫描到的多个WiFi中进行目标WiFi选择的选择方式。
例如,作为一种实施方式,应用程序接收到配网请求时,可以显示电子设备当前扫描到的多个WiFi的可选项,以用于用户选择为设备进行配网的WiFi。若接收到对所述多个可选项中任意一个WiFi的选择,以选中的WiFi作为所述目标WiFi。
作为一种实施方式,可以从电子设备当前扫描到的WiFi中,选择电子设备当前连接的WiFi作为所述目标WiFi。
作为一种实施方式,可以从扫描到的多个WiFi中,选择信号最强的WiFi作为目标WiFi。
可选的,在上述实施方式中,若选中的WiFi并非根据用户的选择操作确定,也就是说,选中的WiFi并非有用户选择,则可以在选中WiFi后,显示WiFi选择确认界面,该确认界面中包括选中的WiFi的 名称信息,提示用户确认是否选择该WiFi为设备配网。若选中的WiFi存储有密码,该确认界面中也可以显示选中的WiFi的密码,该密码可以是明文或非明文的,以向用户确认密码是否正确。若该密码非明文的,在接收到用户对该密码明文显示的触控,可以将该密码显示为明文。
若用户确认选中的WiFi,则将该WiFi作为目标WiFi。若用户取消对该选中的WiFi的确认,可以显示显示所述电子设备存储有WiFi信息的多个WiFi的可选项,供用户选择;也可以显示WiFi信息输入框,由用户输入WiFi信息。
可选的,在上述任一实施方式中,若选中的WiFi在电子设备中未存储有密码,或者检测到该WiFi的密码已更改,可以显示对应该WiFi的密码输入界面,提示用户输入密码。在接收到用户输入的密码后,将该密码以及WiFi名称存储并作为目标WiFi的信息。
可选的,在上述任一实施方式中,为了信息的安全性,对于第一次被选中的WiFi,可以提醒用户进行密码输入。具体的,可以判断选择的WiFi是否是第一次被选中的WiFi,即判断该WiFi是否第一次用作传递给快应用进行配网。若是,则显示对该选中的WiFi输入密码的提示信息,以提示用户输入该WiFi的密码。若接收到输入的所述选中的WiFi的密码,以选中的WiFi作为所述目标WiFi,将该密码以及该WiFi的名称作为该目标WiFi的信息。并且,可以将该WiFi的密码对应名称进行保存。
若该WiFi不是第一次被选中用作进行配网,则可以将该WiFi作为目标WiFi。
在本申请实施例中,显示扫描到的WiFi时,可以将以保存的WiFi以及未保存的WiFi分别显示,如已保存的WiFi作为一个WiFi列表显示,未保存的WiFi作为一个列表显示。
步骤S230:所述应用程序向所述设备对应的目标快应用传递目标WiFi的信息。
应用程序可以将获得的WiFi的信息传递给目标快应用,具体传递的可以是WiFi的名称和密码。其中,若WiFi的信息为加密存储的,则可以将该WiFi的信息解密后传递给目标快应用。
应用程序可以根据确定身份信息对应的快应用作为所述设备对应的目标快应用。
作为一种实施方式,若应用程序接收到的配网请求为直接从外界获得,应用程序可以根据身份信息确定需要进行配网的设备,从而可以确定该设备对应的快应用作为目标快应用。将WiFi信息传递给目标快应用,并且跳转显示目标目标快应用的配网界面。
可选的,该身份信息中可以包括设备的类别标识,如厂商标识,应用程序确定该类别标识对应的快应用,作为该身份信息所表示的设备对应的快应用。可选的,身份信息中可以包括设备的型号,应用程序可以通过该设备的型号向服务器请求该型号对应的快应用,将服务器返回的该型号对应的快应用作为该身份信息所标识的设备对应的快应用。
作为一种实施方式,若应用程序接收到快应用传递的配网请求,则以传递该配网请求的快应用作为目标快应用,即传递该配网请求的快应用为需要配网的设备对应的快应用,为配网请求中身份信息对应的快应用。
应用程序将目标WiFi的信息传递给目标快应用,具体可以通过应用程序与目标快应用之间的接口传递。可选的,应用程序可以通过deeplink的方式向设备对应的目标快应用传递目标WiFi的信息。
步骤S240:所述目标快应用将所述目标WiFi的信息发送给所述设备,以用于所述设备根据所述目标WiFi的信息进行网络连接。
目标快应用接收到目标WiFi的信息,可以根据该目标WiFi的信息对设备进行配网。具体的,目标快应用将目标WiFi的信息发送给设备,具体发送的设备为配网请求对应的设备。接收到该目标WiFi的信息的设备,可以根据目标WiFi的名称以及密码连接到目标WiFi,从而接入网络。
在本申请实施例中,目标快应用可以通过应用程序向所述设备发送所述目标WiFi的信息。
具体的,应用程序可以加载SDK插件,每个SDK插件对应一个快应用,也就是说,每个SDK插件对应一类设备,每个SDK插件对应不同的设备,不同的SDK插件对应的设备不同。每个SDK插件可以与其对应的设备进行数据交互,对其对应的设备进行控制,可以理解的,每个SDK插件也可以对其对应的设备进行配网。
目标快应用可以向应用程序发起对设备的配网指令,该配网指令可中携带目标WiFi的信息。应用程序根据所述配网指令,调用对应所述目标快应用对应的SDK插件,将所述目标WiFi的信息发送给所述SDK插件。所述SDK插件将所述目标WiFi的信息发送给所述设备。
其中,配网指令中还可以包括设备的信息等,从而使可以SDK插件确定目标WiFi的信息需要发送的设备。
在本申请实施例中,将目标WiFi的信息发送给设备的方式并不限定。
作为一种实施方式,可以是,在为设备配网时,用户可以控制设备进入配网模式。在配网模式下,设备可以作为一个无线接入点,发送WiFi信号,定义该WiFi信号为设备WiFi。电子设备可以根据所述设备WiFi的信息,将网络连接切换为连接该设备WiFi,并且通过该设备WiFi将目标WiFi的信息发送给设备。其中,设备WiFi的信息可以包括设备WiFi的名称和密码,在设备出厂前可以进行设置。应用程序、该设备对应的快应用或者SDK插件可以从服务器获取该设备信息,以使电子设备在配网过程中需要发送目标WiFi信息时,连接该设备WiFi。
在该实施方式,当设备配网成功,如设备向SDK插件返回配网成功的信息,电子设备的网络连接可以切换回为之前连接WiFi。
作为一种实施方式,在为设备配网时,用户可以控制设备进入配网模式。在配网模式下,设备可以开启蓝牙。电子设备可以连接该蓝牙,通过蓝牙将WiFi的信息发送给设备。
作为一种实施方式,也可以是,电子设备连接WiFi,具体连接的哪一个WiFi并不限定,如可以是目标WiFi。在电子设备端,如SDK插件,发送包含目标WiFi的信息的UDP广播包或者组播包,在同一无线局域网内的设备,其WIFI芯片可以接收到该UDP广播包或者组播包。预先在设备中存储电子设备发送目标WiFi的信息的广播包或者组播包的组织形式,则设备接收到包含WiFi的信息的UDP广播包或者组播包,就可以解密出WiFi的信息。
可选的,在本申请实施例中,在接收到配网请求后的快应用的配网界面,可以显示配网进度。
如图3至图10示出了一个表示具体配网过程的实施例。具体的,如图3所示,在应用程序中可以有设备添加页面,包括添加设备的按键301,该按键为卡片的形式。若接收到对该添加设备的按键301的触控,可以显示设备添加方式的界面,如图4所示的手动添加的卡片控件302以及自动扫码添加的卡片控件303。
若接收到对手动添加的卡片控件302的触控,则可以显示设备的选择界面。设备选择的界面可以如图5或图6所示,显示各个设备的名称。若接收到对任意一个设备的触控,则确定为该设备进行配网,并进入WiFi选择界面。例如接收到对设备1的触控,则确定为设备1配网,进入如图7所示的WiFi选择界面。
若接收到对扫描添加的卡片控件303的触控,则进入扫描添加界面,如图8所示,其中取景框304用于读取图形码,手电筒表示在扫描时开启电子设备的手电筒以方便在光线较暗的情况下读取到图形码,相册用于获取本地存储的图片中图形码的图像。若根据扫描图像码或者本地相册获得图形码,获得设备的身份信息,则确定对该身份信息对应的设备进行配网,并进入WiFi选择界面,如图7所示。
如图7所示,在WiFi选择界面可以显示各个可以选择的WiFi,如可以显示扫描到的所有WiFi的 名称,并且将存储有WiFi信息的WiFi以及其他WiFi分开显示。
若接收到对其中一个WiFi的选择,如图7中选择WiFi名称1并接收到对按键下一步305的点击,则可以判断该WiFi是否是第一次被选择。若是,则进入如图9所示的密码输入界面,输入该WiFi的密码;若否,则可以将该WiFi的信息传递给目标快应用。在本实施例中,目标快应用即为选择的设备1对应的快应用。
并且,可以跳转到目标快应用的配网页面,并可显示配网进度,如图10所示。在本实施例中,目标快应用可以通过应用程序将目标WiFi的信息发送到设备1,设备1接收到该目标WiFi的信息,则可以连接该目标WiFi。
本申请实施例中,在接收到对设备进行配网的配网请求时,可以从应用程序中选择目标WiFi的信息,由目标WiFi发送到相应的目标快应用。该应用程序可以根据存储的WiFi的信息进行发送,例如,确定要发送的WiFi后,应用程序可以获取存储的该WiFi的密码,发送到目标快应用。因此,在本申请实施例中,不同快应用对应的设备进行配网时,都可以统一有应用程序向快应用传递WiFi的信息,而不必要每次都在快应用的配网界面由用户输入,提高了配网的便捷性。也就是说,与应用程序关联的快应用可以实现WiFi共享,在一次输入WiFi密码后,用户以后不需要再输入密码,直接选择就可以进行后续步骤,从而缩短配网时间,提高配网成功率。
另外,每个快应用控制一个类别的设备,如控制属于同一个厂商的设备,不同的快应用集成在同一应用程序,可以实现不同类别的设备统一控制,不同快应用都可以实现应用程序的功能。
本申请实施例还提供了一种配网装置400。请参见图11,该配网装置400可以包括:配网请求接收模块410,用于应用程序接收对设备进行配网的配网请求,所述应用程序中内嵌有至少一个快应用,不同快应用对应的设备不同。信息传递模块420,用于所述应用程序向所述设备对应的目标快应用传递目标WiFi的信息。配网模块430,用于目标快应用将所述目标WiFi的信息发送给所述设备,以用于所述设备根据所述目标WiFi的信息进行网络连接。
作为一种实施方式,该装置400还可以包括:配网请求模块,用于若目标快应用获取到所述设备的身份信息,向所述应用程序发起携带所述身份信息对应的配网请求。
可选的,配网请求模块可以包括图形码获取单元,用于目标快应用获取图形码信息;请求单元,用于所述目标快应用若识别到所述图形码信息中包括设备的身份信息,向所述应用程序发起携带所述身份信息对应的配网请求。
可选的,配网请求模块可以包括输入单元,用于接收作用于所述目标快应用显示界面的输入操作,所述输入操作用于输入设备的身份信息;请求单元,用于若接收到对应所述身份信息发起的配网指令,所述目标快应用向所述应用程序发起携带所述身份信息对应的配网请求。
作为一种实施方式,该装置400还可以包括:配网请求模块,用于若所述应用程序获取到携带所述设备的身份信息的配网指令,判定为接收到对所述身份信息对应的设备进行配网的配网请求。
可选的,该配网请求模块可以包括图形码获取单元,用于应用程序获取图形码信息。请求单元,用于所述应用程序若识别到所述图形码信息中包括设备的身份信息,判定为接收到对所述身份信息对应的设备进行配网的配网请求。
可选的,该配网请求模块可以包括输入单元,用于接收作用于所述应用程序显示界面的输入操作,所述输入操作用于输入设备的身份信息;请求单元,用于若接收到对应所述身份信息发起的配网指令,所述应用程序判定为接收到对所述身份信息对应的设备进行配网的配网请求。
在本申请实施例中,该装置400还可以包括快应用确定模块,用于应用程序确定所述身份信息对应 的快应用作为所述设备对应的目标快应用。
在本申请实施例中,该装置400还可以包括网络连接模块,用于电子设备根据所述设备WiFi的信息,连接所述设备WiFi,以通过所述设备WiFi将所述目标WiFi的信息发送给所述设备。
在本申请实施例中,该装置400还可以包括WiFi选择模块,用于应用程序选择所述电子设备存储的有WiFi信息的WiFi中信号最强的WiFi作为所述目标WiFi。
可选的,WiFi选择模块可以用于选择所述电子设备当前连接的WiFi作为所述目标WiFi。
可选的,WiFi选择模块可以包括,显示单元,用于显示所述电子设备存储有WiFi信息的多个WiFi的可选项;选择单元,用于接收到对所述多个可选项中任意一个WiFi的选择,以选中的WiFi作为所述目标WiFi。
可选的,选择单元可以用于判断选中的WiFi是否是第一次被选中的WiFi。若是第一次被选中的WiFi,显示对所述选中的WiFi输入密码的提示信息。若接收到输入的所述选中的WiFi的密码,以选中的WiFi作为所述目标WiFi。若不是第一次被选中的WiFi,以选中的WiFi作为所述目标WiFi。
本申请实施例中,信息传递模块420可以用于应用程序通过deeplink的方式向所述设备对应的目标快应用传递目标WiFi的信息。
可选的,配网模块430可以包括第一配网单元,用于所述目标快应用向所述应用程序发起对设备的配网指令,所述配网指令中携带所述目标WiFi的信息;第二配网单元,用于所述应用程序根据所述配网指令,调用对应所述目标快应用对应的SDK插件,将所述目标WiFi的信息发送给所述SDK插件;以及第三配网单元,用于所述SDK插件将所述目标WiFi的信息发送给所述设备。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述的各个方法实施例之间可以相互参照;每个方法实施例中各个实施方式之间也可以相互参照。上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。
请参考图12,其示出了本申请实施例提供的一种电子设备500的结构框图。该电子设备500可以是智能手机、平板电脑、音乐播放设备等能够运行应用程序的电子设备。该电子设备一个或多个处理器510(图中仅示出一个),存储器520以及一个或多个程序。其中,所述一个或多个程序被存储在所述存储器520中,并被配置为由所述一个或多个处理器510执行。所述一个或多个程序配置用于执行前述实施例所描述的方法。
在本申请实施例中,该一个或多个程序可以分别为应用程序以及各个快应用。
处理器510可以包括一个或者多个处理核。处理器510利用各种接口和线路连接整个电子设备500内的各个部分,通过运行或执行存储在存储器520内的指令、程序、代码集或指令集,以及调用存储在存储器520内的数据,执行电子设备500的各种功能和处理数据。可选地,处理器510可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器510可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于 处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器510中,单独通过一块通信芯片进行实现。
存储器520可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器520可用于存储指令、程序、代码、代码集或指令集。存储器520可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令、用于实现上述各个方法实施例的指令等。存储数据区还可以电子设备在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。
另外,该电子设备500还可以包括显示屏,用于对待显示视频进行显示。
请参考图13,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读存储介质600中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。
计算机可读存储介质600可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质600包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质600具有执行上述方法中的任何方法步骤的程序代码610的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码610可以例如以适当形式进行压缩。
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。
Claims (20)
- 一种设备配网方法,其特征在于,应用于电子设备,所述方法包括:应用程序接收对设备进行配网的配网请求,所述应用程序中内嵌有至少一个快应用,不同快应用对应的设备不同;所述应用程序向所述设备对应的目标快应用传递目标WiFi的信息;所述目标快应用将所述目标WiFi的信息发送给所述设备,以用于所述设备根据所述目标WiFi的信息进行网络连接。
- 根据权利要求1所述的方法,其特征在于,所述应用程序接收到对所述设备进行配网的配网请求之前,包括:所述目标快应用获取到所述设备的身份信息,向所述应用程序发起携带所述身份信息对应的配网请求。
- 根据权利要求2所述的方法,其特征在于,所述目标快应用获取到所述设备的身份信息,向所述应用程序发起携带所述身份信息对应的配网请求,包括:所述目标快应用获取图形码信息;所述目标快应用若识别到所述图形码信息中包括设备的身份信息,向所述应用程序发起携带所述身份信息对应的配网请求。
- 根据权利要求2所述的方法,其特征在于,所述目标快应用获取到所述设备的身份信息,向所述应用程序发起携带所述身份信息对应的配网请求,包括:接收作用于所述目标快应用显示界面的输入操作,所述输入操作用于输入设备的身份信息;若接收到对应所述身份信息发起的配网指令,所述目标快应用向所述应用程序发起携带所述身份信息对应的配网请求。
- 根据权利要求1所述的方法,其特征在于,所述应用程序接收到对所述设备进行配网的配网请求,包括:所述应用程序获取到携带所述设备的身份信息的配网指令,判定为接收到对所述身份信息对应的设备进行配网的配网请求。
- 根据权利要求5所述的方法,其特征在于,所述应用程序获取到携带所述设备的身份信息的配网指令,判定为接收到对所述身份信息对应的设备进行配网的配网请求,包括:所述应用程序获取图形码信息;所述应用程序若识别到所述图形码信息中包括设备的身份信息,判定为接收到对所述身份信息对应的设备进行配网的配网请求。
- 根据权利要求5所述的方法,其特征在于,所述应用程序获取到携带所述设备的身份信息的配网指令,判定为接收到对所述身份信息对应的设备进行配网的配网请求,包括:接收作用于所述应用程序显示界面的输入操作,所述输入操作用于输入设备的身份信息;若接收到对应所述身份信息发起的配网指令,所述应用程序判定为接收到对所述身份信息对应的设备进行配网的配网请求。
- 根据权利要求2至7任一项所述的方法,其特征在于,所述应用程序向所述设备对应的目标快应用传递目标WiFi的信息之前,还包括:所述应用程序确定所述身份信息对应的快应用作为所述设备对应的目标快应用。
- 根据权利要求2至8任一项所述的方法,其特征在于,所述身份信息中包括所述设备开启的设备WiFi的信息;所述目标快应用将所述目标WiFi的信息发送给所述设备之前,还包括:所述电子设备根据所述设备WiFi的信息,连接所述设备WiFi,以通过所述设备WiFi将所述目标WiFi的信息发送给所述设备。
- 根据权利要求1-9任一项所述的方法,其特征在于,所述应用程序向所述设备对应的目标快应用传递目标WiFi的信息之前,还包括:应用程序从所述电子设备存储有WiFi信息的WiFi中选择一个WiFi作为目标WiFi。
- 根据权利要求1-10任一项所述的方法,其特征在于,所述应用程序向所述设备对应的目标快应用传递目标WiFi的信息之前,还包括:应用程序选择所述电子设备存储的有WiFi信息的WiFi中信号最强的WiFi作为所述目标WiFi。
- 根据权利要求1-11任一项所述的方法,其特征在于,所述应用程序向所述设备对应的目标快应用传递目标WiFi的信息之前,还包括:所述应用程序选择所述电子设备当前连接的WiFi作为所述目标WiFi。
- 根据权利要求1-9任一项所述的方法,其特征在于,所述应用程序向所述设备对应的目标快应用传递目标WiFi的信息之前,包括:显示所述电子设备扫描到的多个WiFi的可选项;接收到对所述多个可选项中任意一个WiFi的选择,以选中的WiFi作为所述目标WiFi。
- 根据权利要求13所述的方法,其特征在于,所述接收到对所述多个可选项中任意一个WiFi的选择,以选中的WiFi作为所述目标WiFi,包括:判断选中的WiFi是否是第一次被选中的WiFi;若是,显示对所述选中的WiFi输入密码的提示信息,若接收到输入的所述选中的WiFi的密码,以选中的WiFi作为所述目标WiFi;若否,以选中的WiFi作为所述目标WiFi。
- 根据权利要求1-14任一项所述的方法,所述应用程序向所述设备对应的目标快应用传递目标WiFi的信息,包括:所述应用程序通过deeplink的方式向所述设备对应的目标快应用传递目标WiFi的信息。
- 根据权利要求1-15任一项所述的方法,其特征在于,所述目标快应用将所述目标WiFi的信息发送给所述设备,包括:所述目标快应用通过所述应用程序向所述设备发送所述目标WiFi的信息。
- 根据权利要求1-16任一项所述的方法,其特征在于,所述目标快应用通过所述应用程序向所述设备发送所述目标WiFi的信息,包括:所述目标快应用向所述应用程序发起对设备的配网指令,所述配网指令中携带所述目标WiFi的信 息;所述应用程序根据所述配网指令,调用对应所述目标快应用对应的SDK插件,将所述目标WiFi的信息发送给所述SDK插件;所述SDK插件将所述目标WiFi的信息发送给所述设备。
- 一种配网装置,其特征在于,应用于电子设备,所述装置包括:配网请求接收模块,用于应用程序接收对设备进行配网的配网请求,所述应用程序中内嵌有至少一个快应用,不同快应用对应的设备不同;信息传递模块,用于所述应用程序向所述设备对应的目标快应用传递目标WiFi的信息;配网模块,用于目标快应用将所述目标WiFi的信息发送给所述设备,以用于所述设备根据所述目标WiFi的信息进行网络连接。
- 一种电子设备,其特征在于,包括:一个或多个处理器;存储器;一个或多个程序,其中所述一个或多个程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行如权利要求1-17任一项所述的方法。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有程序代码,所述程序代码可被处理器调用执行如权利要求1-17任一项所述的方法。
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2019/075926 WO2020168561A1 (zh) | 2019-02-22 | 2019-02-22 | 设备配网方法、装置、电子设备及存储介质 |
CN201980077361.7A CN113169992B (zh) | 2019-02-22 | 2019-02-22 | 设备配网方法、装置、电子设备及存储介质 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2019/075926 WO2020168561A1 (zh) | 2019-02-22 | 2019-02-22 | 设备配网方法、装置、电子设备及存储介质 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020168561A1 true WO2020168561A1 (zh) | 2020-08-27 |
Family
ID=72144876
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/075926 WO2020168561A1 (zh) | 2019-02-22 | 2019-02-22 | 设备配网方法、装置、电子设备及存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN113169992B (zh) |
WO (1) | WO2020168561A1 (zh) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112333686A (zh) * | 2020-11-05 | 2021-02-05 | 珠海奔图电子有限公司 | 配网方法、终端设备、图像形成装置及存储介质 |
CN112511893A (zh) * | 2020-11-20 | 2021-03-16 | 四川长虹电器股份有限公司 | 一种智能电视实现网络摄像头快速联网的方法 |
CN112752245A (zh) * | 2020-12-11 | 2021-05-04 | 深圳市优必选科技股份有限公司 | 一种配网方法、装置、电子设备及存储介质 |
CN113596089A (zh) * | 2021-06-25 | 2021-11-02 | 青岛海尔科技有限公司 | 设备的配网绑定方法和装置、存储介质及电子装置 |
CN113890774A (zh) * | 2021-06-10 | 2022-01-04 | 浙江绍兴苏泊尔生活电器有限公司 | 一种家电产品的配网方法及装置 |
CN114244647A (zh) * | 2021-12-20 | 2022-03-25 | 珠海格力电器股份有限公司 | 智能家居设备配网方法、装置、电子设备及存储介质 |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114598359A (zh) * | 2022-02-24 | 2022-06-07 | 智己汽车科技有限公司 | 一种车载nfc连接控制系统、方法与nfc连接控制汽车的方法 |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2760249A1 (en) * | 2013-01-24 | 2014-07-30 | Cyfrowy Polsat Spolka Akcyjna | Method and system for distributing data packets on communication channel and stationary modular transceiver devices for performing the method and system |
CN104363213A (zh) * | 2014-11-03 | 2015-02-18 | 九阳股份有限公司 | 一种网络家电的注册登录控制方法 |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105204894B (zh) * | 2015-08-28 | 2019-07-23 | 小米科技有限责任公司 | 安装智能设备的插件的方法和装置 |
CN107367949B (zh) * | 2017-06-14 | 2018-12-07 | 珠海格力电器股份有限公司 | 获取产品标识的方法、装置和系统 |
CN107682238B (zh) * | 2017-09-15 | 2020-10-16 | 阿里巴巴(中国)有限公司 | 智能家居平台设备及终端电子设备 |
WO2019229500A1 (en) * | 2018-05-31 | 2019-12-05 | Yogesh Chunilal Rathod | Method and system for selecting from searched users of network and send connection request to selected users and establishing connection based on acceptance of connection request by said selected users |
CN108958074B (zh) * | 2018-06-20 | 2019-11-29 | 维沃移动通信有限公司 | 一种智能设备控制方法及移动终端 |
-
2019
- 2019-02-22 CN CN201980077361.7A patent/CN113169992B/zh active Active
- 2019-02-22 WO PCT/CN2019/075926 patent/WO2020168561A1/zh active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2760249A1 (en) * | 2013-01-24 | 2014-07-30 | Cyfrowy Polsat Spolka Akcyjna | Method and system for distributing data packets on communication channel and stationary modular transceiver devices for performing the method and system |
CN104363213A (zh) * | 2014-11-03 | 2015-02-18 | 九阳股份有限公司 | 一种网络家电的注册登录控制方法 |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112333686A (zh) * | 2020-11-05 | 2021-02-05 | 珠海奔图电子有限公司 | 配网方法、终端设备、图像形成装置及存储介质 |
CN112333686B (zh) * | 2020-11-05 | 2024-01-09 | 珠海奔图电子有限公司 | 配网方法、终端设备、图像形成装置及存储介质 |
CN112511893A (zh) * | 2020-11-20 | 2021-03-16 | 四川长虹电器股份有限公司 | 一种智能电视实现网络摄像头快速联网的方法 |
CN112752245A (zh) * | 2020-12-11 | 2021-05-04 | 深圳市优必选科技股份有限公司 | 一种配网方法、装置、电子设备及存储介质 |
CN112752245B (zh) * | 2020-12-11 | 2023-12-01 | 深圳市优必选科技股份有限公司 | 一种配网方法、装置、电子设备及存储介质 |
CN113890774A (zh) * | 2021-06-10 | 2022-01-04 | 浙江绍兴苏泊尔生活电器有限公司 | 一种家电产品的配网方法及装置 |
CN113890774B (zh) * | 2021-06-10 | 2023-09-26 | 浙江绍兴苏泊尔生活电器有限公司 | 一种家电产品的配网方法及装置 |
CN113596089A (zh) * | 2021-06-25 | 2021-11-02 | 青岛海尔科技有限公司 | 设备的配网绑定方法和装置、存储介质及电子装置 |
CN113596089B (zh) * | 2021-06-25 | 2024-03-22 | 青岛海尔科技有限公司 | 设备的配网绑定方法和装置、存储介质及电子装置 |
CN114244647A (zh) * | 2021-12-20 | 2022-03-25 | 珠海格力电器股份有限公司 | 智能家居设备配网方法、装置、电子设备及存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN113169992A (zh) | 2021-07-23 |
CN113169992B (zh) | 2023-04-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020168561A1 (zh) | 设备配网方法、装置、电子设备及存储介质 | |
KR102377724B1 (ko) | 기기의 네트워크 구성 방법, 장치 및 매체 | |
WO2017198161A1 (zh) | 网络连接方法、装置、存储介质及终端 | |
CN106304276B (zh) | 一种无线网络处理方法及移动终端 | |
KR102249197B1 (ko) | 사용자 단말 장치, 통신 시스템 및 그 제어 방법 | |
CN112751699A (zh) | Ota升级与升级管理方法、设备、网络及存储介质 | |
US10908889B2 (en) | Method, user equipment, and application server for downloading application | |
CN114629932B (zh) | 电子设备间的协同方法、电子设备及存储介质 | |
CN106027631B (zh) | 一种数据传输方法及装置 | |
CN105472694A (zh) | 一种通过扫描二维码接入WiFi的方法及装置 | |
CN112346751B (zh) | 应用程序的安装方法、装置、电子设备和存储介质 | |
CN112164216A (zh) | 智能遥控器的配置方法、装置、智能网关设备及存储介质 | |
CN110351225B (zh) | 硬件设备的联网方法、系统,计算设备及可读存储介质 | |
KR102178481B1 (ko) | 연결 정보 제어 방법 및 그 전자 장치 | |
CN111970676B (zh) | WiFi热点接入方法、装置、设备及存储介质 | |
US20150019978A1 (en) | Information processing apparatus, information processing method, and program | |
CN109933960B (zh) | 服务调用控制方法、服务调用方法、装置及终端 | |
CN111526192A (zh) | 终端的远程控制方法、装置、终端和计算机可读存储介质 | |
US20220122515A1 (en) | Display apparatus, electronic apparatus and methods thereof | |
CN112905992A (zh) | 局域网的智能登录方法、装置、电子设备及存储介质 | |
US12114243B2 (en) | Method and system for networking | |
US11575793B2 (en) | Service system supporting voice call using digital assistant device, method thereof, and non-transitory computer readable medium having computer program recorded thereon | |
CN105659643A (zh) | 用于管理利用多个标识简档的通信的方法和装置 | |
KR20100096543A (ko) | 네트워킹 서비스 제공방법, 시스템 및 컴퓨터로 읽을 수 있는 기록매체 | |
WO2020090485A1 (ja) | プログラム、制御方法 |
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: 19916012 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: 19916012 Country of ref document: EP Kind code of ref document: A1 |