WO2020223854A1 - Device network configuration method and apparatus, electronic device and storage medium - Google Patents

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

Info

Publication number
WO2020223854A1
WO2020223854A1 PCT/CN2019/085533 CN2019085533W WO2020223854A1 WO 2020223854 A1 WO2020223854 A1 WO 2020223854A1 CN 2019085533 W CN2019085533 W CN 2019085533W WO 2020223854 A1 WO2020223854 A1 WO 2020223854A1
Authority
WO
WIPO (PCT)
Prior art keywords
network
information
interface
plug
sdk plug
Prior art date
Application number
PCT/CN2019/085533
Other languages
French (fr)
Chinese (zh)
Inventor
朱洪波
Original Assignee
深圳市欢太科技有限公司
Oppo广东移动通信有限公司
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 深圳市欢太科技有限公司, Oppo广东移动通信有限公司 filed Critical 深圳市欢太科技有限公司
Priority to PCT/CN2019/085533 priority Critical patent/WO2020223854A1/en
Priority to CN201980091641.3A priority patent/CN113412469A/en
Publication of WO2020223854A1 publication Critical patent/WO2020223854A1/en

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Definitions

  • This application relates to the field of smart home technology, and more specifically, to a method, device, electronic device, and storage medium.
  • smart homes have gradually entered people's field of vision.
  • the smart devices in the smart home system (such as smart air conditioners, smart TVs, etc.) need to be connected to the network when in use, so that electronic devices such as mobile terminals can control them.
  • electronic devices such as mobile terminals can control them.
  • smart devices from different manufacturers are distributed to the network, it is extremely inconvenient to use the corresponding applications of the manufacturers to configure the network.
  • this application proposes a device network distribution method, device, electronic equipment, and storage medium to improve the foregoing problems.
  • an embodiment of the present application provides a device network configuration method, the method includes: obtaining device information of a device; obtaining a software development kit SDK plug-in corresponding to the manufacturer of the device according to the device information; Start and display the network configuration interface corresponding to the device, the network configuration interface is used to guide the user to perform network configuration operations; according to the SDK plug-in and the network configuration operation in the network configuration interface, the device is configured network.
  • an embodiment of the present application provides a device for equipment network distribution
  • the device includes: an information acquisition module, a plug-in acquisition module, an interface display module, and a network distribution execution module, wherein the information acquisition module is used to acquire equipment
  • the plug-in obtaining module is used to obtain the SDK plug-in corresponding to the manufacturer of the device according to the device information
  • the interface display module is used to call up and display the configuration corresponding to the device
  • the network interface, the network configuration interface is used to guide users to perform network configuration operations;
  • the network distribution execution module is used to perform network configuration on the device according to the SDK plug-in and the network configuration operations in the network configuration interface.
  • an embodiment of the present application provides an electronic device, including: one or more processors; a memory; one or more application programs, wherein the one or more application programs are stored in the memory and Is configured to be executed by the one or more processors, and the one or more programs are configured to execute the device network distribution method provided in the first aspect.
  • an embodiment of the present application provides a computer-readable storage medium.
  • the computer-readable storage medium stores program code, and the program code can be called by a processor to execute the device provided in the first aspect. Distribution network method.
  • the solution provided by this application is to obtain the device information of the device to be configured with the network, and according to the device information, obtain the SDK plug-in of the software development kit corresponding to the manufacturer of the device, call up and display the network configuration interface corresponding to the device, and finally according to the SDK
  • the plug-in and the network configuration operation in the network configuration interface configure the network for the device, so that the same application can be used to configure the network for devices of different manufacturers, which increases the convenience of the network configuration process and improves the user experience.
  • Fig. 1 shows a schematic structural diagram of a smart home system proposed in an embodiment of the present application.
  • FIG. 2 shows a schematic structural diagram of another smart home system proposed by an embodiment of the present application
  • FIG. 3 shows a schematic diagram of a fast application engine architecture proposed by an embodiment of the present application.
  • Fig. 4 shows a schematic diagram of an operating environment of the device network distribution method proposed in an embodiment of the present application.
  • Fig. 5 shows a flow chart of a device network distribution method according to an embodiment of the present application.
  • Fig. 6 shows a schematic diagram of a display effect provided according to an embodiment of the present application.
  • Fig. 7 shows another schematic diagram of a display effect provided according to an embodiment of the present application.
  • Fig. 8 shows another schematic diagram of a display effect provided according to an embodiment of the present application.
  • Fig. 9 shows another schematic diagram of a display effect provided according to an embodiment of the present application.
  • FIG. 10 shows a schematic diagram of still another display effect provided according to an embodiment of the present application.
  • Fig. 11 shows a flowchart of a device network configuration method according to another embodiment of the present application.
  • Fig. 12 shows a flow chart of step S250 in the device network distribution method according to another embodiment of the present application.
  • FIG. 13 shows another flowchart of step S250 in the device network distribution method according to another embodiment of the present application.
  • Fig. 14 shows a flow chart of a device network configuration method according to another embodiment of the present application.
  • Figure 15 shows a block diagram of a device for network distribution according to an embodiment of the present application.
  • Fig. 16 shows a block diagram of the interface display module in the device for network distribution according to an embodiment of the present application.
  • Fig. 17 shows another block diagram of the interface display module in the device for network distribution according to an embodiment of the present application.
  • FIG. 18 is a block diagram of an electronic device for executing the device network distribution method according to an embodiment of the present application.
  • Fig. 19 is a storage unit for storing or carrying program codes for implementing the device network distribution method according to the embodiment of the present application.
  • smart homes have penetrated into various families and are loved by many families because of the convenience it brings.
  • the so-called smart home is based on the housing platform, using integrated wiring technology, network communication technology, security technology, automatic control technology, audio and video technology to integrate facilities related to home life to build an efficient management system for residential facilities and family schedule affairs , Improve home safety, convenience, comfort, artistry, and realize an environmentally friendly and energy-saving living environment.
  • smart homes connect various smart devices in the home (such as smart air conditioners, smart lights, smart refrigerators, smart washing machines, etc.) through the Internet of Things technology to provide home appliance control, lighting control, telephone remote control, indoor and outdoor remote control, and anti-theft Various controls such as alarm, environmental monitoring, HVAC control, infrared forwarding and programmable timing control.
  • smart air conditioners such as smart air conditioners, smart lights, smart refrigerators, smart washing machines, etc.
  • Various controls such as alarm, environmental monitoring, HVAC control, infrared forwarding and programmable timing control.
  • smart devices need to be connected to the network so that users can remotely control the smart devices through electronic devices such as mobile terminals.
  • the smart device's network access requires the smart device to be connected to the Internet so that the smart device can interact with the manufacturer's server.
  • the manufacturer's server can send relevant control instructions to the smart device to realize remote control of the smart device.
  • a smart device can be connected to a home router to access the home wireless network and communicate with the server through the router.
  • smart devices are managed and controlled through electronic devices.
  • the electronic device 100 can establish a wireless connection with the smart gateway 300, and the smart device 200 can establish a wireless connection with the smart gateway 300 to realize the electronic device Data interaction between 100 and smart devices.
  • the electronic device 100 and the smart gateway 300 are in communication connection with the server 400, and the electronic device 100 can perform data interaction with the smart device through the server 400 and the smart gateway 300.
  • the electronic device 100 may communicate with the first cloud server 402 to realize data interaction with the first cloud server 402.
  • the smart device 200 communicates with the second cloud server 401 through the smart gateway 300 to realize data interaction between the second and the server 401.
  • data exchange can be performed between the first cloud server 402 and the second cloud server 401, so that the electronic device 100 can communicate with the smart device 200 through the first cloud server 402, the second cloud server 404, and the smart gateway 300. Data interaction.
  • smart devices of different manufacturers usually need to be controlled by different applications. That is to say, the communication between the applications of smart devices of different manufacturers and the servers of different manufacturers requires the installation of more applications, thus occupying the electronic equipment More storage space.
  • the fast application is a new application form based on the hardware platform of the terminal device. It does not need to be installed, it is click-to-use, and it has the original application experience (performance, system integration, interaction, etc.).
  • the structure diagram of the fast application engine, the front-end design of the fast application draws on and integrates the design ideas of mainstream front-end frameworks (Vue, React, etc.): build applications in a componentized way, with data binding as the core
  • the MVVM design mode uses V-DOM to improve performance, while choosing a concise and clear Vue-like template.
  • the inventor proposes the device network distribution method, device, electronic device, and storage medium provided by the embodiments of the application. Through the device information of the device, the SDK plug-in corresponding to the manufacturer of the device is obtained, and the configuration corresponding to the device information is displayed.
  • the network interface configures the network for the device, so that the same application can be used to configure the network for the equipment of different manufacturers, which increases the convenience of the network configuration process and improves the user experience .
  • a fast application and a client 110 are running.
  • the fast application runs on the fast application engine, and an extended interface 97 provided by the client is set in the fast application engine.
  • the client 110 is provided with an extension interface 96 that communicates with the extension interface 97.
  • the client 110 can call software development kit (SDK, Software Development Kit) plug-ins of various manufacturers through an extended interface.
  • SDK plug-in 111 of manufacturer A, the SDK plug-in 112 of manufacturer B, and the SDK plug-in 113 of manufacturer C in the figure can be called.
  • the data processing instructions triggered in the fast application can be transferred to the extended interface 96 in the client through the extension interface 97 set in the fast application engine, and then the data processing instructions are transmitted to the SDK plug-ins of various manufacturers .
  • the client 110 may provide an entrance to the fast application, that is, the client 110 can enter the fast application.
  • the communication between the fast application and the client 110 may be through a cross-application communication method, such as using AIDL interaction.
  • a parameter transfer interface can be set between the client 110 and the embedded fast application for data transfer between the client 110 and the fast application.
  • a channel class can be defined between the fast application and the client 110 Interface, all interface functions are implemented using a channel class interface.
  • the client 110 may instruct the quick application engine to access the corresponding quick application according to the link of the quick application, thereby displaying the interface of the quick application.
  • the interface of the quick app can receive control information, and after the client 110 learns the control information, it transmits the control information to the server of the smart device through the above-mentioned SDK to realize the management and control of the smart device.
  • the quick app engine can also receive the information transmitted by the client 110, and display the information that needs to be displayed on the related control page of the quick app.
  • an embodiment of the present application provides a device network configuration method, which can be applied to electronic devices.
  • the device network configuration method may include:
  • Step S110 Obtain device information of the device.
  • the electronic device may be installed with an application program for managing and controlling the smart device in the smart home system.
  • the user performs network configuration operations on the smart device to be distributed through the application, connects the smart device to the network, realizes the network access of the smart device, and realizes the communication between the smart device and the manufacturer's server corresponding to the smart device for data interaction.
  • the smart device can be remotely controlled.
  • the electronic device may obtain the device information of the device to perform network configuration according to the device information of the device.
  • the above-mentioned device is a smart device to be deployed in the network, for example, the above-mentioned device may be a smart device newly purchased by the user.
  • the electronic device can run the above-mentioned application and obtain the device information of the above-mentioned device through the relevant interface in the application.
  • the subsequent application can run the relevant network configuration process according to the device information.
  • the interface for identifying the device information of the device of the above application can be used to obtain the device information of the device. Specifically, according to the user's operation in the interface for identifying the device information of the device, image collection of the device identification can be performed to obtain the identification image containing the identification of the device, and then identify the identification image, thereby obtaining the identification image of the device.
  • Device Information The identification of the above-mentioned equipment may include a two-dimensional code, a barcode, a text, a mark image, etc., wherein the identification of the equipment identification may be provided on the equipment, for example, attached to the surface of the housing of the equipment.
  • the identification of the specific device and the setting method of the identification may not be limited.
  • the device identifier carries the device information of the device, and the device information of the device can be obtained by identifying the above-mentioned identification image.
  • the device information may include manufacturer information, type information, and model information of the device, and the specific device information may not be limited.
  • the above-mentioned application program can run an input interface for inputting device information, and the input interface for inputting device information can be displayed on the screen of an electronic device.
  • the user can input the information of the device to be configured in the input interface.
  • Device information so that the electronic device can obtain the device information of the device.
  • the aforementioned input interface may include a manufacturer selection list, a type selection list, and a model selection list. The user can enter the manufacturer information, type information, and model of the device through the manufacturer selection list, type selection list, and model selection list. information.
  • the manufacturer selection list, type selection list, and model selection list can be displayed hierarchically, for example, the manufacturer selection list is the first-level list, the type selection list is the second-level list, and the model selection list is the third-level list, that is, After the user selects the manufacturer information in the manufacturer selection list, the type selection list can be displayed. After selecting the type information in the type selection list, the model selection list can be displayed, and finally the model information can be selected in the model selection list.
  • the aforementioned input interface may include a device search interface. The user can search the device according to the keyword of the device information of the device, and finally, according to the search result of the device, the device information of the device can be obtained.
  • the manner of obtaining device information through the device information input interface may not be limited.
  • the above-mentioned application program can run an interface for voice input, and the electronic device can recognize the voice information through the voice message input by the user, so as to obtain the device information of the device.
  • the specific manner in which the electronic device obtains the device information of the device may not be limited.
  • the electronic device can also obtain the device information of the device by receiving the device information actively sent by the device.
  • Step S120 According to the device information, obtain a software development kit SDK plug-in corresponding to the manufacturer of the device.
  • the electronic device can obtain the SDK plug-in corresponding to the manufacturer of the device according to the device information of the device.
  • the device information of the device includes manufacturer information of the device, and the manufacturer information of the device can be extracted from the device information, and then the SDK plug-in corresponding to the manufacturer can be obtained according to the manufacturer information.
  • Different types of information in the above device information can be distinguished by different fields or in different arrangement orders, so that the electronic device can extract manufacturer information from the device information according to different fields or different arrangement orders.
  • the SDK plug-in corresponding to the manufacturer can be downloaded from the server.
  • the server corresponding to the application program stores the SDK plug-in corresponding to each manufacturer, and the application program can download the SDK plug-in corresponding to the manufacturer from its corresponding server.
  • the server corresponding to the application program can be connected to the server corresponding to each manufacturer.
  • the application program can send a plug-in download instruction to the server of the application program, and the download instruction carries the manufacturer information of the device and the information about the application program.
  • the server can download the SDK plug-in from the server corresponding to the manufacturer according to the download instruction, and finally return the SDK plug-in to the application program, thereby obtaining the SDK plug-in corresponding to the device manufacturer.
  • the specific method of downloading the SDK plug-in corresponding to the manufacturer is not limited.
  • the application server can also download the SDK plug-in corresponding to the manufacturer from a designated server, and the designated server stores the SDK plug-ins corresponding to each manufacturer. The downloaded SDK plug-in is sent to the electronic device.
  • the electronic device may store the SDK plug-in corresponding to the manufacturer of the device, so the SDK plug-in corresponding to the manufacturer can be directly read.
  • the specific method of obtaining the SDK plug-in may not be limited.
  • the application program of the electronic device After the application program of the electronic device obtains the above-mentioned SDK plug-in, it can store the SDK plug-in, and load the SDK plug-in for the operation of the device when the device needs to perform network configuration and control operations.
  • Step S130 Bring up and display the network distribution interface corresponding to the device, and the network distribution interface is used to guide the user to perform network distribution operations.
  • the network configuration interface corresponding to the device can be displayed for network configuration.
  • the above-mentioned application program running on the electronic device may invoke a network distribution interface corresponding to the device, and the network distribution interface is used to guide the user to perform network configuration operations.
  • calling up a network distribution interface corresponding to the device may be a network distribution interface calling up a quick application corresponding to the device.
  • an interface plug-in can be invoked, and the interface plug-in corresponds to the distribution network interface corresponding to the device.
  • the interface plug-in is a local plug-in of the electronic device.
  • the configuration corresponding to the device can be invoked.
  • Web interface the specific method of calling up the distribution network interface corresponding to the device is not limited. For example, you can also use the open source dynamic loading framework to dynamically load the distribution network interface of the application corresponding to the device manufacturer to realize the deployment. Web interface.
  • the network configuration interface may include: a network configuration confirmation interface, a network configuration prompt interface, a network information input interface, a prompt interface for the network configuration process, and a prompt interface for completing the network configuration.
  • FIG. 6 shows a schematic diagram of the network configuration confirmation interface 151.
  • the network configuration confirmation interface 151 is used to prompt the user whether to perform a network configuration operation.
  • the network configuration confirmation interface 151 detects the confirmation operation, it can Perform subsequent network configuration operations and display the subsequent interface. For another example, as shown in FIG. 7, FIG.
  • FIG. 7 shows a schematic diagram of a network configuration prompt interface 152, which is used to prompt the user to enter the network configuration mode and turn on the network configuration mode of the device to be configured.
  • FIG. 8 shows a schematic diagram of a network information input interface 153.
  • the network information input interface 153 can be used for the user to input information of the network to be connected, such as network name and password.
  • FIG. 9 shows a schematic diagram of the prompt interface 154 of the network distribution process.
  • the prompt interface 154 of the network distribution process is used to remind the user that the network distribution process has started, so as to avoid the user's misoperation and cause the configuration
  • the network process is interrupted.
  • Figure 10 shows a schematic diagram of a prompt interface 155 for completing the network configuration.
  • the prompt interface 155 for completing the network configuration is used to remind the user that the network configuration has been completed, and the subsequent user can enter the network through the above application
  • the relevant control interface corresponding to the device controls the device.
  • the specific content of the distribution network interface is not limited.
  • the application program of the electronic device can detect the user's operation in the distribution network interface, so as to configure the network according to the user's network distribution operation in the network distribution interface.
  • the electronic device can obtain relevant indication information according to the network distribution operation in the network distribution interface, such as information indicating the start of the network distribution process, information indicating the connection with the device, information indicating the transmission of network information to the device, and so on.
  • the information entered by the user can also be obtained, such as network information, name of settings, etc.
  • the specific information obtained by the electronic device according to the network distribution operation in the distribution network interface is not limited.
  • Step S140 Perform network distribution on the device according to the SDK plug-in and the network distribution operation in the network distribution interface.
  • the obtained SDK plug-in is in a loaded state.
  • the network information that the device needs to access the network can be obtained, and the network information can be sent to the device.
  • the electronic device can connect to the hotspot of the device and establish communication with the device, thereby sending network information to the device; the electronic device can also send the network information to the device by broadcasting. After receiving the network information, the device can access the network according to the network information.
  • the aforementioned network information may include the name and password of the router, and the device can connect to the router according to the name and password of the router, so as to access the WiFi network.
  • the electronic device can use the SDK plug-in to send the device and user account to the server of the device manufacturer, so that the server of the device manufacturer can establish the corresponding relationship between the device and the user account, thereby realizing the entire configuration of the device.
  • Network process. The equipment can be remotely controlled after the network distribution is completed.
  • the electronic device can run an application program.
  • the application program obtains the device information of the device, according to the device information, obtains the SDK plug-in corresponding to the device manufacturer, and then invokes and displays the corresponding network configuration of the device Interface, finally according to the SDK plug-in and the network configuration operation in the network configuration interface, the equipment is networked to realize the network distribution of the equipment. Therefore, through the same application, you can configure the network for the equipment of different manufacturers, without the need for electronic equipment to install the corresponding applications of different manufacturers, and configure the network for the equipment of different manufacturers, which improves the convenience of equipment distribution and can reduce the number of applications. Occupies the storage space of electronic devices.
  • the device network configuration method may include:
  • Step S210 Obtain device information of the device.
  • step S210 can refer to the content of the above-mentioned embodiment, which will not be repeated here.
  • Step S220 According to the device information, determine whether the SDK plug-in corresponding to the manufacturer of the device currently exists locally.
  • the application program of the electronic device when the application program of the electronic device obtains the SDK plug-in corresponding to the manufacturer of the device according to the device information, it can determine whether the SDK plug-in corresponding to the manufacturer of the device exists locally in the current electronic device. Specifically, the electronic device can query whether there is an SDK plug-in corresponding to the manufacturer in a file stored locally. It is understandable that since the SDK plug-in corresponds to the manufacturer, devices of the same manufacturer use the same SDK plug-in during network configuration. When distributing the above-mentioned equipment, it is possible that any other equipment of the manufacturer has been added before the equipment of the manufacturer is configured, that is, any other equipment of the manufacturer has been configured. At this time, the electronic device has downloaded the SDK plug-in of the manufacturer. Of course, it is also possible that the network has not been configured for any device of the manufacturer before, and the SDK plug-in corresponding to the manufacturer does not currently exist in the local electronic device.
  • Step S230 If the SDK plug-in corresponding to the manufacturer does not currently exist locally, download the SDK plug-in corresponding to the manufacturer.
  • the application of the electronic device can download the SDK plug-in corresponding to the manufacturer of the device.
  • the specific method of downloading the SDK plug-in by the electronic device can refer to the method of downloading the SDK plug-in in the above-mentioned embodiment, which will not be repeated here.
  • Step S240 If the SDK plug-in corresponding to the manufacturer currently exists locally, the currently existing SDK plug-in is acquired locally.
  • the application when it is determined that the SDK plug-in corresponding to the manufacturer currently exists in the electronic device, it means that the electronic device has previously downloaded the SDK plug-in of the manufacturer. Therefore, when the device is connected to the network this time, the application can directly read the SDK plug-in corresponding to the manufacturer of the device locally, thereby obtaining the SDK plug-in corresponding to the manufacturer.
  • Step S250 Determine the quick application corresponding to the device.
  • the application can call up and display the corresponding network configuration interface of the device for the user to control and operate the network configuration process.
  • the application program can realize the display of the network distribution interface by calling up the network distribution interface of the quick application and displaying the network distribution interface.
  • the application program can determine the quick application corresponding to the device to call up and display the network distribution interface of the quick application.
  • a quick application may correspond to a quick application identification, and the quick application identification is used as the identification information of the quick application to distinguish different quick applications.
  • the specific quick application identifier may not be limited in the embodiment of the present application.
  • the quick application identifier may be the identity ID of the quick application.
  • the corresponding relationship between the quick application identification and the device can be established, so that when the quick application is added, the quick application identification corresponding to the device can be determined.
  • the correspondence between the identifier and the device can be quickly applied, and can be stored in the electronic device in the form of a list. In the list, each device corresponds to a quick application logo.
  • the application program of the electronic device obtains the quick application corresponding to the device, it can obtain the quick application corresponding to the device according to the device information of the device.
  • the device information of the device to be deployed in the network may include at least one of manufacturer information, type information, and model information, and the specific content of the device information may not be limited in the embodiments of this application.
  • the device information of the device determine the quick application corresponding to the device, which can include:
  • Step S251 Determine a quick application identifier corresponding to the device according to at least one of the manufacturer information, type information, and model information.
  • the electronic device stores the quick application identifier corresponding to each device information, and the corresponding relationship between the device information and the quick application identifier. After the device information of the device is obtained, the device information of the device can be used to find the quick application identifier corresponding to the device information of the device from the multiple quick application identifiers by using the above-mentioned corresponding relationship.
  • the client may also query the fast application identifier corresponding to the device information from the server according to the device information.
  • the specific method for obtaining the quick application identifier corresponding to the device based on the device information may not be limited.
  • the quick application identifier corresponding to the device can be determined according to at least one of manufacturer information, type information, and model information. It is understandable that all devices of the same manufacturer may correspond to the same fast application, or different types of devices of the same manufacturer correspond to different fast applications, and different types of devices of the same manufacturer correspond to different fast applications. Therefore, the quick application identifier corresponding to the device can be determined according to at least one of manufacturer information, type information, and model information to determine the quick application.
  • Step S252 According to the quick application identification, confirm the quick application corresponding to the quick application identification.
  • the electronic device stores the correspondence between the quick application identifier and the quick application.
  • the correspondence relationship may be stored in the electronic device in the form of a mapping relationship table, or stored in the electronic device in other forms.
  • the electronic device confirms the quick application corresponding to the quick application identifier according to the corresponding relationship.
  • the manner in which the electronic device confirms the quick application may not be limited.
  • Step S260 Bring up and display the network distribution interface of the quick application.
  • the electronic device After the electronic device confirms the quick application corresponding to the device, it can call up and display the network distribution interface of the quick application according to the confirmed quick application, thus realizing the display of the network distribution interface corresponding to the device.
  • the quick app is run by the quick app engine, and different interfaces in the quick app have different links.
  • the quick app engine can access and display different interfaces in the quick app by accessing different links. .
  • Figure 13 Please refer to Figure 13 to bring up and display the network configuration interface of Quick App, which can include:
  • Step S261 Obtain the interface link corresponding to the network distribution interface of the quick application
  • Step S262 Access the interface link through the fast application engine, and display the network distribution interface.
  • the electronic device may obtain the interface link corresponding to the network distribution interface from the obtained multiple interface links corresponding to the quick application.
  • the links of multiple interfaces correspond to the links of different interfaces.
  • the application program uses the quick application engine to access the interface link corresponding to the above-mentioned distribution network interface, and displays the distribution network interface to realize the recall and display of the distribution network interface.
  • Step S270 Load the SDK plug-in, and load the ENV plug-in corresponding to the SDK plug-in, where the ENV plug-in is used to call the SDK plug-in.
  • the related plug-in when the application program is called up and displays the network configuration interface corresponding to the device, the related plug-in can also be loaded. Specifically, the aforementioned SDK plug-in and the ENV (Environment Variable) plug-in used to call the aforementioned SDK plug-in can be loaded. It is understandable that when the network configuration interface is called up and displayed, the SDK plug-in and the ENV plug-in can be loaded when the relevant plug-in needs to be used officially, so that the SDK plug-in and the ENV plug-in can be loaded as needed, saving the operation of electronic equipment space.
  • loading the SDK plug-in may include: separating the target file from the SDK plug-in and loading the SDK plug-in.
  • the target file in the SDK plug-in when loading the SDK plug-in, can be separated, and the target SDK plug-in can be loaded, where the target file includes at least the configuration file and the so file, so as to ensure that the SDK plug-in Reading files quickly when in use.
  • the SDK plug-in when loading, can be directly loaded dynamically, but the so file in the target file still needs to be loaded separately.
  • the so file can be loaded using loadlibrary, and the configuration file can be loaded when loading. Read in the code.
  • separating the target file from the SDK plug-in and loading the SDK plug-in may include:
  • the target file after the target file is separated from the SDK plug-in, it can be determined whether the target file is complete, for example, whether the configuration file and the so file are complete.
  • the target SDK file can be loaded directly.
  • the target file such as the configuration file and the so file is separated from the SDK plug-in, it can be removed from the SDK again.
  • the target file is separated from the plug-in, so as to ensure that when the target file such as the configuration file or the so file is accidentally damaged or deleted, it can be processed again. This can ensure that there will be no errors when loading, and ensure the safety and security of the SDK plug-in loading. The integrity of the loaded SDK plug-in, while ensuring the speed of loading.
  • loading the ENV plug-in corresponding to the SDK plug-in may include:
  • the ENV plug-in when the ENV plug-in calls the SDK plug-in, it will call the interface of the SDK plug-in. Therefore, the loaded ENV plug-in corresponds to the interface of the SDK plug-in to ensure that the SDK plug-in is consistent with the callback JAR package of the ENV plug-in.
  • the interface specification version of the loaded SDK plug-in can be read, and then the ENV plug-in is loaded according to the interface specification version, that is, the ENV plug-in corresponding to the interface specification version is obtained, and the ENV plug-in is loaded.
  • the above-mentioned SDK plug-in uses the DexClassloader class, but the parent class is BootClassloader.
  • the plug-in is loaded in the application, the application is not the host of the plug-in, so the corresponding class will not be found in the application.
  • the isolation of SDK and application code is improved.
  • the ENV plug-in is hung in the BootClassloader class. Due to the use of parent delegation with the help of dynamic loading, the parent class of DexClassloader that loads the plug-in is assigned to BootClassLoader, and application startup is actually a process of dynamic loading.
  • the parent class is also BootClassLoader, so there is no intersection. According to parent delegation, find the class The class search is performed on the inheritance path, so the class search isolation can be realized to ensure that the SDK plug-in and ENV plug-in have no class definition conflicts with the application.
  • the specific method of loading the SDK plug-in and the ENV plug-in may not be limited.
  • Step S280 Perform network configuration on the device according to the SDK plug-in and the network configuration operation in the network configuration interface.
  • the application when the device is configured to network according to the SDK plug-in, the application can use the above-mentioned ENV plug-in to call the SDK plug-in, perform related operations, and complete the network configuration of the device.
  • the application program of the electronic device obtains the device information of the device, according to the device information, obtains the SDK plug-in corresponding to the device manufacturer, and then calls up and displays the network configuration interface of the device corresponding to the quick application.
  • the SDK plug-in and the ENV plug-in used to call the SDK plug-in, and finally use the ENV plug-in to call the SDK plug-in, and according to the SDK plug-in and the network configuration operation in the network configuration interface, the device is networked to realize the network distribution of the device. Therefore, through the same application program, devices of different manufacturers can be configured to network, which improves the convenience of device network distribution, and can reduce the storage space of electronic devices occupied by the application program.
  • the device network configuration method may include:
  • Step S310 Obtain device information of the device.
  • Step S320 According to the device information, obtain a software development kit SDK plug-in corresponding to the manufacturer of the device.
  • steps S310 to S320 can refer to the content of the above-mentioned embodiment, which will not be repeated here.
  • Step S330 Bring up and display the network distribution interface corresponding to the device, and the network distribution interface is used to guide the user to perform network distribution operations.
  • calling up and displaying the distribution network interface corresponding to the device may also include:
  • the ENV plug-in is used to call the SDK plug-in.
  • the interface plug-in corresponds to the network distribution interface corresponding to the device, and the interface plug-in is a local plug-in of the electronic device.
  • the network distribution interface corresponding to the device can be called up.
  • the distribution network interface can be dynamically loaded and displayed.
  • Step S340 Obtain network information according to the network distribution operation on the network distribution interface, where the network information is used for the device to connect to the network.
  • the application program of the electronic device when the application program of the electronic device configures the device according to the SDK plug-in and the network configuration operation in the network configuration interface, the application program can obtain the network configuration operation for the device according to the network configuration operation in the network configuration interface.
  • Network information The aforementioned network information may include the name and password of the network.
  • the above-mentioned network information can be manually input by the user in the network distribution interface.
  • the above network information can also be selected by the user in the network configuration interface. For example, a network list is displayed in the network configuration interface, and the network list includes multiple networks. By selecting the network, the application can obtain the information of the network that the device needs to connect to. Internet Information.
  • Step S350 Establish a network connection with the device, and send the network information to the device.
  • the electronic device can establish a network connection with the device, so as to transmit relevant information to the device and receive information fed back by the device.
  • establishing a network connection with the device may include:
  • Output setting prompt information the setting prompt information is used to prompt the user to turn on the network distribution mode of the device; when the second instruction information is obtained, a network connection with the device is established, and the second instruction information is used It indicates that the network distribution mode of the device is on.
  • the device needs to be in the network distribution mode to establish a network connection with the electronic device. Therefore, the application program of the electronic device can output a setting prompt message to prompt the user to turn on the network configuration mode of the device. And the interface of the application program can detect the user's operation, and when the setting operation is detected, the second indication information can be obtained, and the second indication information is used to indicate that the network distribution mode of the device has been turned on. Therefore, when the device to be configured is in the network distribution mode, the electronic device can establish a network connection with the device. For example, when the device to be configured is in the network distribution mode, the hot spot of the device is turned on, and the electronic device can be connected to the hot spot of the device to realize the network connection between the electronic device and the device.
  • the electronic device After the electronic device establishes a network connection with the device to be configured with the network, it can send the aforementioned network information to the device, so that the device can connect to the network according to the network information.
  • Step S360 When the first instruction information returned by the device is received, the SDK plug-in is used to send the user account information and the device information to the server, and the first instruction information is used to indicate that the device is connected to In the network, the user account information and the device information are used to instruct the server to establish a correspondence between the user account information and the device.
  • the device may connect to the network according to the network information.
  • the device may generate first indication information for indicating that it is connected to the network, and return the first indication information to the electronic device.
  • the electronic device can determine that the device is connected to the network, and can send the user account information corresponding to the application or the user account information assigned by the device manufacturer, and the device information of the device to the manufacturer , So that the manufacturer’s server can establish a direct binding relationship between the device and the user account information to complete the network configuration of the device.
  • the subsequent electronic device can remotely control the device through the server of the manufacturer according to the control instruction carrying the user account information.
  • the device network configuration method may further include:
  • the user can control the device through the application program of the electronic device.
  • the control interface corresponding to the device can be called up and displayed, and the control interface is used to detect the control operation of the device.
  • the control interface is used to detect the control operation of the device.
  • the control interface corresponding to the device please refer to the way to call up and display the network configuration interface.
  • the manufacturer's server After the manufacturer's server receives the control instruction, it can transmit the control instruction to the device via the network, thereby instructing the device to complete the corresponding operation and realizing remote control of the device.
  • the manufacturer's server After the manufacturer's server receives the control instruction, it can transmit the control instruction to the device via the network, thereby instructing the device to complete the corresponding operation and realizing remote control of the device.
  • the device network distribution method may also include:
  • a target scene including the device is acquired; and the target scene is pushed.
  • the target scene including the device is acquired.
  • the target scene including the air conditioner can be acquired.
  • the target scene can include “turn on the air conditioner when the user enters the room”, “turn on the air conditioner when the user enters the room and adjust the cooling temperature of the air conditioner.
  • the target scene including the lighting device can be acquired, for example, the target scene may include “Turn on the lighting device when the user goes home” , "When the user goes home, turn on the lighting device and adjust the lighting brightness of the lighting device to the target brightness”, etc., which are not limited here.
  • the target scene including the device can be selected from multiple preset scenes based on the device information of the device, and the target scene including the device can be calculated and generated based on the device information of the device through a preset algorithm. Based on the device information of the device, the target scene can be output through the trained scene generation model, which is not limited here.
  • the target scene After obtaining the target scene including the device, the target scene can be pushed for the user to select, thereby realizing automatic configuration of the use scene of the device, reducing user operations, and improving user experience.
  • the manner in which the electronic device pushes the target scene may include, but is not limited to, a voice push target scene, a text push target scene, a picture push target scene, etc., which are not limited here.
  • the push includes the target scene of the device, and may also include:
  • the electronic device can receive the reference scene shared by other devices. It is understandable that the electronic device can receive the reference scene shared by other devices through data network, wireless network, Bluetooth, etc., where the reference scene can be presented in the form of text, It can be presented in the form of pictures, which is not limited here.
  • the application program of the electronic device analyzes the reference scene. For example, the electronic device obtains the triggering device and the controlled device in the reference scene, and detects whether the triggering device and the controlled device include the above-mentioned device after network configuration , When the triggering device or the controlled device includes the post-distribution device, it can be determined that the post-distribution device is included in the reference scene; when neither the triggering device nor the controlled device includes the post-distribution device When the device is selected, it can be determined that the device is not included in the reference scene. If it is determined that the reference scene includes the device after network configuration, the reference scene can be pushed as the target scene.
  • the target scene including the device is acquired and pushed, thereby automatically acquiring the target scene, reducing user operations, and improving user experience.
  • the device network configuration method may further include:
  • the application program of the electronic device after the application program of the electronic device pushes the target scene, it can determine whether an operation on the pushed target scene is detected. After the user confirms the target scene in the interface of the application program, it can obtain To confirm the instruction of the target scene.
  • the electronic device can configure the above-mentioned device in the target scene, and send the scene configuration information to a server, a gateway, etc. for storage, thereby realizing the scene configuration of the device.
  • the target scenario that may be configured requires the participation of other devices, but there are currently devices that are not connected to the network, that is, the user has not purchased some devices in the target scenario.
  • the electronic device can obtain the target device that is not currently connected to the network from all the devices included in the target scene, and push the target device to the user, which is convenient for the user to understand the missing devices in the target scene, and helps the user to know the equipment that needs to be purchased.
  • the target scene includes air conditioners, humidifiers, lighting equipment, etc., but there are still humidifiers that are not connected to the network, so the humidifier can be used as the target device and the humidifier can be pushed.
  • the manner of pushing related scenes and devices may not be limited.
  • devices of different manufacturers can be networked through the same application program, which improves the convenience of device network configuration and can reduce the storage space occupied by the electronic device by the application program.
  • the scene and device related to the device are automatically obtained and pushed, reducing user operations and improving user experience.
  • FIG. 15 shows a block diagram of a device 500 for network distribution according to an embodiment of the present application.
  • the equipment network distribution device 500 is applied to electronic equipment. The following will describe the device shown in FIG. 15.
  • the equipment network distribution device 500 includes: an information acquisition module 510, a plug-in acquisition module 520, an interface display module 530, and a network distribution execution Module 540.
  • the information obtaining module 510 is used to obtain device information of the device; the plug-in obtaining module 520 is used to obtain a software development kit SDK plug-in corresponding to the manufacturer of the device according to the device information; the interface display module 530 is used to call up and display the network distribution interface corresponding to the device, the network distribution interface is used to guide the user to perform network distribution operations; the network distribution execution module 540 is used to perform network distribution according to the SDK plug-in and the network distribution interface The network configuration operation in the interface performs network configuration on the device.
  • the plug-in acquisition module 520 may be specifically configured to: according to the device information, determine whether the SDK plug-in corresponding to the manufacturer of the device currently exists locally; if the SDK plug-in corresponding to the manufacturer does not currently exist locally, then Download the SDK plug-in corresponding to the manufacturer.
  • the plug-in obtaining module 520 may also be specifically configured to: if the SDK plug-in corresponding to the manufacturer currently exists locally, obtain the currently existing SDK plug-in locally.
  • the interface display module 530 may include: a quick application determining unit 531, an interface calling unit 532, and a plug-in loading unit 533.
  • the quick application determining unit 531 is used to determine the quick application corresponding to the device;
  • the interface calling unit 532 is used to call up and display the network distribution interface of the quick application;
  • the plug-in loading unit 533 is used to execute the SDK plug-in Loading, and loading the ENV plug-in corresponding to the SDK plug-in, where the ENV plug-in is used to call the SDK plug-in.
  • the device information includes at least one of manufacturer information, type information, and model information.
  • the quick application determining unit 531 may be specifically configured to: determine the quick application identifier corresponding to the device according to at least one of the manufacturer information, type information, and model information; The fast application corresponding to the application identifier.
  • the interface invoking unit 532 may be specifically configured to: obtain the interface link corresponding to the network distribution interface of the quick application; access the interface link through the quick application engine, and display the network distribution interface.
  • the interface display module 530 may include a plug-in determining unit 534, an interface calling unit 532, and a plug-in loading unit 533.
  • the plug-in determining unit 534 is used to determine the interface plug-in of the network distribution interface corresponding to the device;
  • the interface calling unit 532 is used to call the interface plug-in and display the network distribution interface;
  • the plug-in loading unit 533 is used to The SDK plug-in is loaded, and the ENV plug-in corresponding to the SDK plug-in is loaded, and the ENV plug-in is used to call the SDK plug-in.
  • the plug-in loading unit 533 loads the ENV plug-in corresponding to the SDK plug-in, which may include: obtaining the interface specification version of the SDK plug-in; obtaining the ENV plug-in corresponding to the interface specification version, and adding all The ENV plug-in is described.
  • the plug-in loading unit 533 loading the SDK plug-in includes: separating the target file from the SDK plug-in and loading the SDK plug-in.
  • the plug-in loading unit 533 separates the target file from the SDK plug-in and loads the SDK plug-in, including: separating the target file from the SDK plug-in, judging whether the target file is complete; if the target file If complete, load the SDK plug-in.
  • the network distribution execution module 540 may be specifically configured to: obtain network information according to the network distribution operation on the network distribution interface, and the network information is used for the device to connect to the network; When receiving the first instruction information returned by the device, using the SDK plug-in to send the user account information and the device information to the server, the first An indication information is used to characterize that the device is connected to the network, and the user account information and the device information are used to instruct the server to establish a correspondence between the user account information and the device.
  • the network distribution execution module 540 establishes a network connection with the device, including: outputting setting prompt information, the setting prompt information is used to prompt the user to turn on the network distribution mode of the device; after obtaining the second instruction Information, establish a network connection with the device, and the second indication information is used to indicate that the network distribution mode of the device is in an on state.
  • the equipment network distribution apparatus 500 may further include a control interface display module and an instruction sending module.
  • the control interface display module is used to call up and display the control interface corresponding to the device;
  • the instruction sending module is used to send a first instruction to the server according to the SDK plug-in and the control operation on the control interface.
  • the instruction is used to instruct the server to send a control instruction to the device.
  • the device network distribution apparatus 500 may further include a first scene acquisition module and a first scene push module.
  • the first scene acquisition module is used to acquire the target scene including the device based on the device information; the first scene push module is used to push the target scene.
  • the device network distribution apparatus 500 may further include a second scene acquisition module and a second scene push module.
  • the second scene acquisition module is used to acquire reference scenes shared by other devices; the second scene push module is used to, when the reference scene includes the device, use the reference scene as a target scene and push the target scene .
  • the device network distribution apparatus 500 may also include a device acquisition module and a device push module.
  • the device acquisition module is used to obtain target devices that are not currently connected to the network from all devices included in the target scene based on the determination instruction for the target scene; the device push module is used to push the target device.
  • the information acquisition module 510 may be specifically configured to: acquire an identification image containing the identification of the device; identify the identification image to obtain the device information of 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.
  • the solution provided by this application obtains the device information of the device to be configured with the network, and according to the device information, obtains the SDK plug-in corresponding to the device manufacturer's software development kit, and tunes up and displays the distribution network corresponding to the device. Interface. Finally, according to the SDK plug-in and the network configuration operation in the network configuration interface, the device is configured to network, so that the same application can be used to configure the network of devices from different manufacturers, which increases the convenience of the network configuration process and improves users Experience.
  • the electronic device 100 may be an electronic device capable of running application programs, such as a smart phone, a tablet computer, or an e-book.
  • the electronic device 100 in this application may include one or more of the following components: a processor 110, a memory 120, and one or more application programs, where one or more application programs may be stored in the memory 120 and configured to be composed of one Or multiple processors 110 execute, and one or more programs are configured to execute the method described in the foregoing method embodiment.
  • the processor 110 may include one or more processing cores.
  • the processor 110 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes by running or executing instructions, programs, code sets, or instruction sets stored in the memory 120, and calling data stored in the memory 120.
  • Various functions and processing data of the electronic device 100 may adopt at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA).
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PDA Programmable Logic Array
  • the processor 110 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem.
  • the CPU mainly processes the operating system, user interface, and application programs; the GPU is used for rendering and drawing of display content; the modem is used for processing wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented by a communication chip alone.
  • the memory 120 may include random access memory (RAM) or read-only memory (Read-Only Memory).
  • the memory 120 may be used to store instructions, programs, codes, code sets or instruction sets.
  • the memory 120 may include a program storage area and a data storage area, where the program storage area may store instructions for implementing the operating system and instructions for implementing at least one function (such as touch function, sound playback function, image playback function, etc.) , Instructions for implementing the following method embodiments, etc.
  • the data storage area can also store data (such as phone book, audio and video data, chat record data) created by the terminal 100 during use.
  • FIG. 19 shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
  • the computer-readable medium 800 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 800 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 800 includes a non-transitory computer-readable storage medium.
  • the computer-readable storage medium 800 has storage space for the program code 810 for executing any method steps in the above-mentioned methods. These program codes can be read out from or written into one or more computer program products.
  • the program code 810 may be compressed in a suitable form, for example.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

Disclosed are a device network configuration method and apparatus, an electronic device and a storage medium. The device network configuration method comprises: acquiring device information of a device; acquiring, according to the device information, a software development kit (SDK) plug-in corresponding to a manufacturer of the device; calling and displaying a network configuration interface corresponding to the device, wherein the network configuration interface is used for guiding a user to perform a network configuration operation; and performing network configuration on the device according to the SDK plug-in and the network configuration operation in the network configuration interface. According to the method, the convenience of device network configuration can be improved.

Description

设备配网方法、装置、电子设备及存储介质Equipment network distribution method, device, electronic equipment and storage medium 技术领域Technical field
本申请涉及智能家居技术领域,更具体地,涉及一种方法、装置、电子设备及存储介质。This application relates to the field of smart home technology, and more specifically, to a method, device, electronic device, and storage medium.
背景技术Background technique
随着科技的不断发展和人民生活水平的不断提高,智能家居逐渐进人们的视野。目前,智能家居系统中的智能设备(例如智能空调、智能电视等)在使用时需要接入网络,以使移动终端等电子设备能够对其进行控制。随着智能设备的快速普及,生产智能设备的厂商越来越多,而不同厂商的智能设备在配网时,需要使用厂商对应的应用程序进行配网,极不方便。With the continuous development of technology and the continuous improvement of people's living standards, smart homes have gradually entered people's field of vision. At present, the smart devices in the smart home system (such as smart air conditioners, smart TVs, etc.) need to be connected to the network when in use, so that electronic devices such as mobile terminals can control them. With the rapid popularization of smart devices, more and more manufacturers produce smart devices. When smart devices from different manufacturers are distributed to the network, it is extremely inconvenient to use the corresponding applications of the manufacturers to configure the network.
发明内容Summary of the invention
鉴于上述问题,本申请提出了一种设备配网方法、装置、电子设备及存储介质,以改善上述问题。In view of the foregoing problems, this application proposes a device network distribution method, device, electronic equipment, and storage medium to improve the foregoing problems.
第一方面,本申请实施例提供了一种设备配网方法,所述方法包括:获取设备的设备信息;根据所述设备信息,获取所述设备的厂商对应的软件开发工具包SDK插件;调起并显示与所述设备对应的配网界面,所述配网界面用于引导用户进行配网操作;根据所述SDK插件以及所述配网界面中的配网操作,对所述设备进行配网。In the first aspect, an embodiment of the present application provides a device network configuration method, the method includes: obtaining device information of a device; obtaining a software development kit SDK plug-in corresponding to the manufacturer of the device according to the device information; Start and display the network configuration interface corresponding to the device, the network configuration interface is used to guide the user to perform network configuration operations; according to the SDK plug-in and the network configuration operation in the network configuration interface, the device is configured network.
第二方面,本申请实施例提供了一种设备配网装置,所述装置包括:信息获取模块、插件获取模块、界面显示模块以及配网执行模块,其中,所述信息获取模块用于获取设备的设备信息;所述插件获取模块用于根据所述设备信息,获取所述设备的厂商对应的软件开发工具包SDK插件;所述界面显示模块用于调起并显示与所述设备对应的配网界面,所述配网界面用于引导用户进行配网操作;所述配网执行模块用于根据所述SDK插件以及所述配网界面中的配网操作,对所述设备进行配网。In a second aspect, an embodiment of the present application provides a device for equipment network distribution, the device includes: an information acquisition module, a plug-in acquisition module, an interface display module, and a network distribution execution module, wherein the information acquisition module is used to acquire equipment The plug-in obtaining module is used to obtain the SDK plug-in corresponding to the manufacturer of the device according to the device information; the interface display module is used to call up and display the configuration corresponding to the device The network interface, the network configuration interface is used to guide users to perform network configuration operations; the network distribution execution module is used to perform network configuration on the device according to the SDK plug-in and the network configuration operations in the network configuration interface.
第三方面,本申请实施例提供了一种电子设备,包括:一个或多个处理器;存储器;一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行上述第一方面提供的设备配网方法。In a third aspect, an embodiment of the present application provides an electronic device, including: one or more processors; a memory; one or more application programs, wherein the one or more application programs are stored in the memory and Is configured to be executed by the one or more processors, and the one or more programs are configured to execute the device network distribution method provided in the first aspect.
第四方面,本申请实施例提供了一种计算机可读取存储介质,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行上述第一方面提供的设备配网方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium. The computer-readable storage medium stores program code, and the program code can be called by a processor to execute the device provided in the first aspect. Distribution network method.
本申请提供的方案,通过获取待配网的设备的设备信息,根据设备信息,获取设备的厂商对应的软件开发工具包SDK插件,调起并显示与该设备对应的配网界面,最后根据SDK插件以及配网界面中的配网操作,对该设备进行配网,从而可以利用同一应用程序对不同厂商的设备进行配网,增加了配网过程的便利性,提升了用户体验。The solution provided by this application is to obtain the device information of the device to be configured with the network, and according to the device information, obtain the SDK plug-in of the software development kit corresponding to the manufacturer of the device, call up and display the network configuration interface corresponding to the device, and finally according to the SDK The plug-in and the network configuration operation in the network configuration interface configure the network for the device, so that the same application can be used to configure the network for devices of different manufacturers, which increases the convenience of the network configuration process and improves the user experience.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
图1示出了本申请实施例提出的一种智能家居系统的架构示意图。Fig. 1 shows a schematic structural diagram of a smart home system proposed in an embodiment of the present application.
图2示出了本申请实施例提出的另一种智能家居系统的架构示意图;FIG. 2 shows a schematic structural diagram of another smart home system proposed by an embodiment of the present application;
图3示出了本申请实施例提出的一种快应用引擎架构的示意图。FIG. 3 shows a schematic diagram of a fast application engine architecture proposed by an embodiment of the present application.
图4示出了本申请实施例提出的设备配网方法的一种运行环境示意图。Fig. 4 shows a schematic diagram of an operating environment of the device network distribution method proposed in an embodiment of the present application.
图5示出了根据本申请一个实施例的设备配网方法流程图。Fig. 5 shows a flow chart of a device network distribution method according to an embodiment of the present application.
图6示出了根据本申请一个实施例提供的一种显示效果示意图。Fig. 6 shows a schematic diagram of a display effect provided according to an embodiment of the present application.
图7示出了根据本申请一个实施例提供的另一种显示效果示意图。Fig. 7 shows another schematic diagram of a display effect provided according to an embodiment of the present application.
图8示出了根据本申请一个实施例提供的又一种显示效果示意图。Fig. 8 shows another schematic diagram of a display effect provided according to an embodiment of the present application.
图9示出了根据本申请一个实施例提供的再一种显示效果示意图。Fig. 9 shows another schematic diagram of a display effect provided according to an embodiment of the present application.
图10示出了根据本申请一个实施例提供的还一种显示效果示意图。FIG. 10 shows a schematic diagram of still another display effect provided according to an embodiment of the present application.
图11示出了根据本申请另一个实施例的设备配网方法流程图。Fig. 11 shows a flowchart of a device network configuration method according to another embodiment of the present application.
图12示出了根据本申请另一个实施例的设备配网方法中步骤S250的一种流程图。Fig. 12 shows a flow chart of step S250 in the device network distribution method according to another embodiment of the present application.
图13示出了根据本申请另一个实施例的设备配网方法中步骤S250的另一种流程图。FIG. 13 shows another flowchart of step S250 in the device network distribution method according to another embodiment of the present application.
图14示出了根据本申请又一个实施例的设备配网方法流程图。Fig. 14 shows a flow chart of a device network configuration method according to another embodiment of the present application.
图15示出了根据本申请一个实施例的设备配网装置的一种框图。Figure 15 shows a block diagram of a device for network distribution according to an embodiment of the present application.
图16示出了根据本申请一个实施例的设备配网装置中界面显示模块的一种框图。Fig. 16 shows a block diagram of the interface display module in the device for network distribution according to an embodiment of the present application.
图17示出了根据本申请一个实施例的设备配网装置中界面显示模块的另一种框图。Fig. 17 shows another block diagram of the interface display module in the device for network distribution according to an embodiment of the present application.
图18是本申请实施例的用于执行根据本申请实施例的设备配网方法的电子设备的框图。FIG. 18 is a block diagram of an electronic device for executing the device network distribution method according to an embodiment of the present application.
图19是本申请实施例的用于保存或者携带实现根据本申请实施例的设备配网方法的程序代码的存储单元。Fig. 19 is a storage unit for storing or carrying program codes for implementing the device network distribution method according to the embodiment of the present application.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
随着科技水平的进步,智能家居深入各个家庭中,由于其带来的便利性,深受众多家庭的喜爱。所谓的智能家居是以住宅为平台,利用综合布线技术、网络通信技术、安全防范技术、自动控制技术、音视频技术将家居生活有关的设施集成,构建高效的住宅设施与家庭日程事务的管理系统,提升家居安全性、便利性、舒适性、艺术性,并实现环保节能的居住环境。其中,智能家居通过物联网技术将家中的各种智能设备(如智能空调、智能灯、智能冰箱、智能洗衣机等)连接到一起,提供家电控制、照明控制、电话远程控制、室内外遥控、防盗报警、环境监测、暖通控制、红外转发以及可编程定时控制等多种控制。With the advancement of science and technology, smart homes have penetrated into various families and are loved by many families because of the convenience it brings. The so-called smart home is based on the housing platform, using integrated wiring technology, network communication technology, security technology, automatic control technology, audio and video technology to integrate facilities related to home life to build an efficient management system for residential facilities and family schedule affairs , Improve home safety, convenience, comfort, artistry, and realize an environmentally friendly and energy-saving living environment. Among them, smart homes connect various smart devices in the home (such as smart air conditioners, smart lights, smart refrigerators, smart washing machines, etc.) through the Internet of Things technology to provide home appliance control, lighting control, telephone remote control, indoor and outdoor remote control, and anti-theft Various controls such as alarm, environmental monitoring, HVAC control, infrared forwarding and programmable timing control.
在智能家居系统中,智能设备需要接入到网络中,使用户可以通过移动终端等电子设备对智能设备进行远程控制。智能设备的入网,需要智能设备连接到互联网中,使智能设备与其厂商的服务器可以进行数据交互,厂商的服务器可以发送相关控制指令到智能设备,实现对智能设备的远程控制。例如,智能设备可以与家庭路由器连接,从而接入到家庭无线网络中,并通过路由器与服务器进行通信。In a smart home system, smart devices need to be connected to the network so that users can remotely control the smart devices through electronic devices such as mobile terminals. The smart device's network access requires the smart device to be connected to the Internet so that the smart device can interact with the manufacturer's server. The manufacturer's server can send relevant control instructions to the smart device to realize remote control of the smart device. For example, a smart device can be connected to a home router to access the home wireless network and communicate with the server through the router.
请参见图1,目前通过电子设备对智能设备进行管理和控制,通常是通过电子设备100可以通过与智能网关300建立无线连接,并且智能设备200与智能网关300建立无线连接的方式,实现电子设备100与智能设备之间的数据交互。另外,电子设备100以及智能网关300与服务器400通信连接,电子设备100可以通过服务器400以及智能网关300,与智能设备进行数据交互。Referring to FIG. 1, at present, smart devices are managed and controlled through electronic devices. Usually, the electronic device 100 can establish a wireless connection with the smart gateway 300, and the smart device 200 can establish a wireless connection with the smart gateway 300 to realize the electronic device Data interaction between 100 and smart devices. In addition, the electronic device 100 and the smart gateway 300 are in communication connection with the server 400, and the electronic device 100 can perform data interaction with the smart device through the server 400 and the smart gateway 300.
请参见图2,电子设备100可以与第一云服务器402通信连接,实现与第一云服务器402之间的数据交互。智能设备200通过智能网关300,与第二云服务器401通信连 接,实现与第二与服务器401之间的数据交互。另外,第一云服务器402与第二云服务器401之间可以进行数据交互,从而电子设备100可以通过第一云服务器402、第二云服务器404以及智能网关300,实现与智能设备200之间的数据交互。Referring to FIG. 2, the electronic device 100 may communicate with the first cloud server 402 to realize data interaction with the first cloud server 402. The smart device 200 communicates with the second cloud server 401 through the smart gateway 300 to realize data interaction between the second and the server 401. In addition, data exchange can be performed between the first cloud server 402 and the second cloud server 401, so that the electronic device 100 can communicate with the smart device 200 through the first cloud server 402, the second cloud server 404, and the smart gateway 300. Data interaction.
目前不同厂商的智能设备通常需要通过不同的应用程序进行控制,也就是说,不同厂商的智能设备的应用程序与不同厂商的服务器之间通信,需要安装较多的应用程序,从而占用了电子设备的较多的存储空间。At present, smart devices of different manufacturers usually need to be controlled by different applications. That is to say, the communication between the applications of smart devices of different manufacturers and the servers of different manufacturers requires the installation of more applications, thus occupying the electronic equipment More storage space.
而随着快应用的普及,移动终端开发者更期望通过快应用来实现与前述客户端相同的功能,以便提升智能家居功能的开发效率,并同时节约移动终端的存储空间。其中,快应用是一种基于终端设备硬件平台的新型应用形态,无需安装,即点即用,又兼具原生应用体验(性能、系统整合、交互等)。如图3所示的快应用引擎的结构示意图,快应用的前端设计借鉴并整合了主流前端框架(Vue,React等)的设计思路:以组件化的方式构建应用,以数据绑定为核心的MVVM设计模式,以V-DOM的方式提升性能,同时选择了简洁清晰的类Vue的模板。With the popularization of fast apps, mobile terminal developers expect to implement the same functions as the aforementioned clients through fast apps, so as to improve the development efficiency of smart home functions and at the same time save the storage space of mobile terminals. Among them, the fast application is a new application form based on the hardware platform of the terminal device. It does not need to be installed, it is click-to-use, and it has the original application experience (performance, system integration, interaction, etc.). As shown in Figure 3, the structure diagram of the fast application engine, the front-end design of the fast application draws on and integrates the design ideas of mainstream front-end frameworks (Vue, React, etc.): build applications in a componentized way, with data binding as the core The MVVM design mode uses V-DOM to improve performance, while choosing a concise and clear Vue-like template.
经过发明人的长期研究发现,越来越多的厂商开始生产智能设备,而不同厂商的智能设备在配网时,由于厂商会使用专用的私有协议进行,因此只能使用厂商对应的应用程序进行配网。这就使得在对不同厂商的智能设备进行配网时,需要下载不同应用厂商对应的应用程序进行配网操作,不方便对智能设备进行配网,并且下载多个应用程序会占用电子设备较多的存储空间。针对上述问题,发明人提出了本申请实施例提供的设备配网方法、装置、电子设备以及存储介质,通过设备的设备信息,获取设备的厂商对应的SDK插件,以及显示该设备信息对应的配网界面,根据SDK插件以及配网界面中的配网操作,对设备进行配网,从而可以利用同一应用程序对不同厂商的设备进行配网,增加了配网过程的便利性,提升了用户体验。After the inventor’s long-term research, it is found that more and more manufacturers start to produce smart devices, and when smart devices of different manufacturers are distributed in the network, because the manufacturers will use special private protocols, they can only use the corresponding applications of the manufacturers. Distribution network. This makes it necessary to download the corresponding application programs of different application vendors for network distribution operations when distributing smart devices from different manufacturers. It is inconvenient to configure the smart devices, and downloading multiple applications will occupy more electronic devices. Storage space. In response to the above-mentioned problems, the inventor proposes the device network distribution method, device, electronic device, and storage medium provided by the embodiments of the application. Through the device information of the device, the SDK plug-in corresponding to the manufacturer of the device is obtained, and the configuration corresponding to the device information is displayed. The network interface, according to the SDK plug-in and the network configuration operation in the network configuration interface, configures the network for the device, so that the same application can be used to configure the network for the equipment of different manufacturers, which increases the convenience of the network configuration process and improves the user experience .
下面先结合附图对本申请实施例的一种应用环境进行介绍。The following first introduces an application environment of the embodiments of the present application in conjunction with the drawings.
如图4所示,图4所示的电子设备100中,运行有快应用以及客户端110。其中快应用是运行于快应用引擎上,并且在快应用引擎中设置有客户端提供的扩展接口97。而在客户端110中设有与扩展接口97通信的扩展接口96。而客户端110可以通过扩展接口调用各个厂商的软件开发工具包(SDK,Software Development Kit)插件。例如,可以调用图中的厂商A的SDK插件111、厂商B的SDK插件112以及厂商C的SDK插件113。在这种情况下,在快应用中触发的数据处理指令可以通过设置在快应用引擎中的扩展接口97传递到客户端中的扩展接口96,进而再将数据处理指令传输给各个厂商的SDK插件。As shown in FIG. 4, in the electronic device 100 shown in FIG. 4, a fast application and a client 110 are running. The fast application runs on the fast application engine, and an extended interface 97 provided by the client is set in the fast application engine. The client 110 is provided with an extension interface 96 that communicates with the extension interface 97. The client 110 can call software development kit (SDK, Software Development Kit) plug-ins of various manufacturers through an extended interface. For example, the SDK plug-in 111 of manufacturer A, the SDK plug-in 112 of manufacturer B, and the SDK plug-in 113 of manufacturer C in the figure can be called. In this case, the data processing instructions triggered in the fast application can be transferred to the extended interface 96 in the client through the extension interface 97 set in the fast application engine, and then the data processing instructions are transmitted to the SDK plug-ins of various manufacturers .
进一步的,客户端110可以提供进入快应用的入口,也就是说,可以由客户端110进入快应用。快应用与该客户端110之间的通讯可以通过跨应用的通讯方式,如使用AIDL交互。具体的,客户端110与内嵌的快应用之间可以设置有参数传递的接口,用于客户端110与快应用之间的数据传递,例如,快应用与客户端110之间可以定义通道类接口,所有的接口函数使用一个通道类接口实现。在通过客户端110进入快应用时,客户端110可以指示快应用引擎,根据快应用的链接,访问相应的快应用,从而展示出快应用的界面。快应用的界面可以接收控制信息,并客户端110在获知该控制信息后,通过上述的SDK将控制信息传至智能设备的服务器,实现对智能设备的管理和控制。另外,快应用引擎还可以接收客户端110传递的信息,并且将需要显示的信息在快应用的相关控制页面显示。Further, the client 110 may provide an entrance to the fast application, that is, the client 110 can enter the fast application. The communication between the fast application and the client 110 may be through a cross-application communication method, such as using AIDL interaction. Specifically, a parameter transfer interface can be set between the client 110 and the embedded fast application for data transfer between the client 110 and the fast application. For example, a channel class can be defined between the fast application and the client 110 Interface, all interface functions are implemented using a channel class interface. When entering the quick application through the client 110, the client 110 may instruct the quick application engine to access the corresponding quick application according to the link of the quick application, thereby displaying the interface of the quick application. The interface of the quick app can receive control information, and after the client 110 learns the control information, it transmits the control information to the server of the smart device through the above-mentioned SDK to realize the management and control of the smart device. In addition, the quick app engine can also receive the information transmitted by the client 110, and display the information that needs to be displayed on the related control page of the quick app.
下面对本申请实施例的设备配网方法进行详细介绍。The following describes in detail the device network distribution method of the embodiment of the present application.
请参阅图5,本申请实施例提供了一种设备配网方法,可应用于电子设备,该设备配网方法可以包括:Referring to FIG. 5, an embodiment of the present application provides a device network configuration method, which can be applied to electronic devices. The device network configuration method may include:
步骤S110:获取设备的设备信息。Step S110: Obtain device information of the device.
在本申请实施例中,电子设备可以安装有用于对智能家居系统中的智能设备进行 管理和控制的应用程序。其中,用户通过该应用程序对待配网的智能设备进行配网操作,将智能设备接入网络,实现智能设备的入网,从而实现该智能设备与该智能设备对应的厂商服务器通信以进行数据交互,进而可以对智能设备进行远程控制。In the embodiment of the present application, the electronic device may be installed with an application program for managing and controlling the smart device in the smart home system. Among them, the user performs network configuration operations on the smart device to be distributed through the application, connects the smart device to the network, realizes the network access of the smart device, and realizes the communication between the smart device and the manufacturer's server corresponding to the smart device for data interaction. In turn, the smart device can be remotely controlled.
在一些实施方式中,在需要对设备进行配网时,电子设备可以获取设备的设备信息,以根据设备的设备信息进行配网。其中,上述设备为待配网的智能设备,例如,上述设备可以为用户新购买的智能设备。在通过电子设备对上述设备进行配网时,电子设备可以运行上述应用程序,并通过应用程序中的相关界面,获取上述设备的设备信息,后续应用程序可以根据设备信息运行相关的配网进程。In some embodiments, when the device needs to be networked, the electronic device may obtain the device information of the device to perform network configuration according to the device information of the device. Wherein, the above-mentioned device is a smart device to be deployed in the network, for example, the above-mentioned device may be a smart device newly purchased by the user. When the above-mentioned device is configured through the electronic device, the electronic device can run the above-mentioned application and obtain the device information of the above-mentioned device through the relevant interface in the application. The subsequent application can run the relevant network configuration process according to the device information.
在一些实施方式中,可以利用上述应用程序的用于识别设备的设备信息的界面,获取设备的设备信息。具体的,可以根据用户在用于识别设备的设备信息的界面中的操作,对设备的标识进行图像采集,从而获取到包含设备的标识的标识图像,再识别该标识图像,从而得到该设备的设备信息。上述设备的标识可以包括二维码、条形码、文字、标记图像等,其中,设备标识的标识可以设置于设备上,例如,贴设于设备的外壳表面。当然,具体的设备的标识以及标识的设置方式可以不作为限定。In some embodiments, the interface for identifying the device information of the device of the above application can be used to obtain the device information of the device. Specifically, according to the user's operation in the interface for identifying the device information of the device, image collection of the device identification can be performed to obtain the identification image containing the identification of the device, and then identify the identification image, thereby obtaining the identification image of the device. Device Information. The identification of the above-mentioned equipment may include a two-dimensional code, a barcode, a text, a mark image, etc., wherein the identification of the equipment identification may be provided on the equipment, for example, attached to the surface of the housing of the equipment. Of course, the identification of the specific device and the setting method of the identification may not be limited.
进一步的,设备的标识携带有设备的设备信息,通过识别上述标识图像,则可以得到设备的设备信息。其中,设备信息可以包括设备的厂商信息、类型信息以及型号信息等,具体的设备信息可以不作为限定。Further, the device identifier carries the device information of the device, and the device information of the device can be obtained by identifying the above-mentioned identification image. Among them, the device information may include manufacturer information, type information, and model information of the device, and the specific device information may not be limited.
在一些实施方式中,上述应用程序可以运行用于输入设备信息的输入界面,用于输入设备信息的输入界面可以显示于电子设备的屏幕,用户可以通过在输入界面中输入待配网的设备的设备信息,从而电子设备可以获取到设备的设备信息。作为一种实施方式,上述输入界面中可以包括厂商选择列表、类型选择列表以及型号选择列表等,用户可以通过厂商选择列表、类型选择列表以及型号选择列表,输入设备的厂商信息、类型信息以及型号信息。其中,厂商选择列表、类型选择列表以及型号选择列表可以分级展示,例如,厂商选择列表作为第一级列表,类型选择列表作为第二级列表,型号选择列表作为第三级列表,也就是说,在用户于厂商选择列表中选择厂商信息后,可以展示类型选择列表,于类型选择列表选择类型信息后,可以展示型号选择列表,最后于型号选择列表选择型号信息。作为另一种实施方式,上述输入界面中可以包括设备搜索界面。用户可以根据设备的设备信息的关键词,对设备进行搜索,最后根据设备的搜索结果,可以获取到设备的设备信息。当然,通过设备信息的输入界面获取设备信息的方式可以不作为限定。In some embodiments, the above-mentioned application program can run an input interface for inputting device information, and the input interface for inputting device information can be displayed on the screen of an electronic device. The user can input the information of the device to be configured in the input interface. Device information, so that the electronic device can obtain the device information of the device. As an implementation manner, the aforementioned input interface may include a manufacturer selection list, a type selection list, and a model selection list. The user can enter the manufacturer information, type information, and model of the device through the manufacturer selection list, type selection list, and model selection list. information. Among them, the manufacturer selection list, type selection list, and model selection list can be displayed hierarchically, for example, the manufacturer selection list is the first-level list, the type selection list is the second-level list, and the model selection list is the third-level list, that is, After the user selects the manufacturer information in the manufacturer selection list, the type selection list can be displayed. After selecting the type information in the type selection list, the model selection list can be displayed, and finally the model information can be selected in the model selection list. As another implementation manner, the aforementioned input interface may include a device search interface. The user can search the device according to the keyword of the device information of the device, and finally, according to the search result of the device, the device information of the device can be obtained. Of course, the manner of obtaining device information through the device information input interface may not be limited.
在一些实施方式中,上述应用程序可以运行用于语音输入的界面,电子设备可以通过用户输入的语音消息,对语音信息进行识别,从而得到设备的设备信息。In some embodiments, the above-mentioned application program can run an interface for voice input, and the electronic device can recognize the voice information through the voice message input by the user, so as to obtain the device information of the device.
当然,在本申请实施例中,电子设备具体获取设备的设备信息的方式可以不作为限定。例如,电子设备也还可以通过接收设备主动发送的设备信息,从而获取到设备的设备信息。Of course, in the embodiments of the present application, the specific manner in which the electronic device obtains the device information of the device may not be limited. For example, the electronic device can also obtain the device information of the device by receiving the device information actively sent by the device.
步骤S120:根据所述设备信息,获取所述设备的厂商对应的软件开发工具包SDK插件。Step S120: According to the device information, obtain a software development kit SDK plug-in corresponding to the manufacturer of the device.
由于在对设备进行配网时,厂商的配网过程使用各自的私有协议,为了协议不暴露,所以需要使用厂商提供的软件开发工具包(SDK,Software Development Kit)插件实现设备配网。Since the manufacturer’s network configuration process uses their own private protocols when configuring the network for the device, in order not to expose the protocol, it is necessary to use the software development kit (SDK, Software Development Kit) plug-in provided by the manufacturer to implement the device network configuration.
在一些实施方式中,电子设备可以根据设备的设备信息,获取该设备的厂商所对应的SDK插件。其中,设备的设备信息包括有设备的厂商信息,可以从设备信息中提取出设备的厂商信息,再根据厂商信息,获取厂商对应的SDK插件。上述设备信息中不同类型的信息可以以不同的字段进行区别,也可以以不同的排列顺序进行区别,从而电子设备可以根据不同的字段或者不同的排列顺序,从设备信息中提取出厂商信息。In some embodiments, the electronic device can obtain the SDK plug-in corresponding to the manufacturer of the device according to the device information of the device. Among them, the device information of the device includes manufacturer information of the device, and the manufacturer information of the device can be extracted from the device information, and then the SDK plug-in corresponding to the manufacturer can be obtained according to the manufacturer information. Different types of information in the above device information can be distinguished by different fields or in different arrangement orders, so that the electronic device can extract manufacturer information from the device information according to different fields or different arrangement orders.
在一些实施方式中,在获取设备的厂商对应的SDK插件时,可以从服务器下载该 厂商对应的SDK插件。作为一种实施方式,上述应用程序对应的服务器中存储有各个厂商对应的SDK插件,应用程序可以从其对应的服务器下载该厂商对应的SDK插件。作为另一种实施方式,上述应用程序对应的服务器与各个厂商对应的服务器可以通信连接,应用程序可以发送插件下载指令至应用程序的服务器,且该下载指令携带有设备的厂商信息,应用程序的服务器在接收到下载指令后,可以根据下载指令从该厂商对应的服务器下载SDK插件,最后将SDK插件返回至应用程序,从而获取到设备的厂商对应的SDK插件。当然,具体下载厂商对应的SDK插件的方式可以不作为限定,例如,也还可以是应用程序的服务器从指定服务器下载厂商对应的SDK插件,该指定服务器存储有各个厂商对应的SDK插件,并将下载的SDK插件发送至电子设备。In some embodiments, when obtaining the SDK plug-in corresponding to the manufacturer of the device, the SDK plug-in corresponding to the manufacturer can be downloaded from the server. As an implementation manner, the server corresponding to the application program stores the SDK plug-in corresponding to each manufacturer, and the application program can download the SDK plug-in corresponding to the manufacturer from its corresponding server. As another implementation manner, the server corresponding to the application program can be connected to the server corresponding to each manufacturer. The application program can send a plug-in download instruction to the server of the application program, and the download instruction carries the manufacturer information of the device and the information about the application program. After receiving the download instruction, the server can download the SDK plug-in from the server corresponding to the manufacturer according to the download instruction, and finally return the SDK plug-in to the application program, thereby obtaining the SDK plug-in corresponding to the device manufacturer. Of course, the specific method of downloading the SDK plug-in corresponding to the manufacturer is not limited. For example, the application server can also download the SDK plug-in corresponding to the manufacturer from a designated server, and the designated server stores the SDK plug-ins corresponding to each manufacturer. The downloaded SDK plug-in is sent to the electronic device.
在一些实施方式中,电子设备中可以存储有该设备的厂商对应的SDK插件,因此可以直接读取厂商对应的SDK插件。In some embodiments, the electronic device may store the SDK plug-in corresponding to the manufacturer of the device, so the SDK plug-in corresponding to the manufacturer can be directly read.
当然,在本申请实施例中,SDK插件的具体获取方式可以不作为限定。电子设备的应用程序在获取上述SDK插件后,则可以将SDK插件存储,并在后续需要对设备进行配网、控制等操作时,将SDK插件加载,以用于对设备的操作。Of course, in this embodiment of the application, the specific method of obtaining the SDK plug-in may not be limited. After the application program of the electronic device obtains the above-mentioned SDK plug-in, it can store the SDK plug-in, and load the SDK plug-in for the operation of the device when the device needs to perform network configuration and control operations.
步骤S130:调起并显示与所述设备对应的配网界面,所述配网界面用于引导用户进行配网操作。Step S130: Bring up and display the network distribution interface corresponding to the device, and the network distribution interface is used to guide the user to perform network distribution operations.
在获取到待配网的设备的厂商对应的SDK插件后,可以显示与该设备对应的配网界面,以便进行配网。After obtaining the SDK plug-in corresponding to the manufacturer of the device to be configured, the network configuration interface corresponding to the device can be displayed for network configuration.
在一些实施方式中,电子设备运行的上述应用程序可以调起与设备对应的配网界面,该配网界面用于引导用户进行配网操作。作为一种实施方式,调起与设备对应的配网界面,可以是调起与设备对应的快应用的配网界面。作为另一种实施方式,可以调用界面插件,该界面插件与设备对应的配网界面对应,该界面插件为电子设备的本地插件,通过调用该界面插件,可以实现调起与该设备对应的配网界面。当然,具体调起与设备对应的配网界面的方式可以不作为限定,例如,也还可以借助于开源动态加载框架,动态加载该设备的厂商对应的应用程序的配网界面,实现调起配网界面。In some embodiments, the above-mentioned application program running on the electronic device may invoke a network distribution interface corresponding to the device, and the network distribution interface is used to guide the user to perform network configuration operations. As an implementation manner, calling up a network distribution interface corresponding to the device may be a network distribution interface calling up a quick application corresponding to the device. As another implementation manner, an interface plug-in can be invoked, and the interface plug-in corresponds to the distribution network interface corresponding to the device. The interface plug-in is a local plug-in of the electronic device. By calling the interface plug-in, the configuration corresponding to the device can be invoked. Web interface. Of course, the specific method of calling up the distribution network interface corresponding to the device is not limited. For example, you can also use the open source dynamic loading framework to dynamically load the distribution network interface of the application corresponding to the device manufacturer to realize the deployment. Web interface.
在调起与设备对应的配网界面后,则可以将配网界面进行显示,以供用户进行查看和操作。配网界面可以包括:配网确认界面、配网提示界面、网络信息输入界面、配网过程的提示界面、完成配网的提示界面等。例如,如图6所示,图6示出了配网确认界面151的示意图,配网确认界面151用于提示用户是否进行配网操作,当配网确认界面151检测到确认操作后,则可以进行后续的配网操作,并展示后续的界面。又例如,如图7所示,图7示出了配网提示界面152的示意图,配网提示界面152用于提示用户进入配网模式以及开启待配网的设备的配网模式等。再例如,如图8所示,图8示出了网络信息输入界面153的示意图,网络信息输入界面153可以用于用户输入需要连接的网络的信息,例如网络名称和密码等。再例如,如图9所示,图9示出了配网过程的提示界面154的示意图,配网过程的提示界面154用于提示用户已经开始进行配网过程,避免用户的误操作,导致配网过程中断。再例如,如图10所示,图10示出了完成配网的提示界面155的示意图,完成配网的提示界面155用于提示用户已经完成配网,后续用户可以通过上述应用程序进入到该设备对应的相关控制界面,对该设备进行控制。当然,配网界面的具体内容可以不作为限定。After adjusting the distribution network interface corresponding to the device, the distribution network interface can be displayed for users to view and operate. The network configuration interface may include: a network configuration confirmation interface, a network configuration prompt interface, a network information input interface, a prompt interface for the network configuration process, and a prompt interface for completing the network configuration. For example, as shown in FIG. 6, FIG. 6 shows a schematic diagram of the network configuration confirmation interface 151. The network configuration confirmation interface 151 is used to prompt the user whether to perform a network configuration operation. When the network configuration confirmation interface 151 detects the confirmation operation, it can Perform subsequent network configuration operations and display the subsequent interface. For another example, as shown in FIG. 7, FIG. 7 shows a schematic diagram of a network configuration prompt interface 152, which is used to prompt the user to enter the network configuration mode and turn on the network configuration mode of the device to be configured. For another example, as shown in FIG. 8, FIG. 8 shows a schematic diagram of a network information input interface 153. The network information input interface 153 can be used for the user to input information of the network to be connected, such as network name and password. For another example, as shown in FIG. 9, FIG. 9 shows a schematic diagram of the prompt interface 154 of the network distribution process. The prompt interface 154 of the network distribution process is used to remind the user that the network distribution process has started, so as to avoid the user's misoperation and cause the configuration The network process is interrupted. For another example, as shown in Figure 10, Figure 10 shows a schematic diagram of a prompt interface 155 for completing the network configuration. The prompt interface 155 for completing the network configuration is used to remind the user that the network configuration has been completed, and the subsequent user can enter the network through the above application The relevant control interface corresponding to the device controls the device. Of course, the specific content of the distribution network interface is not limited.
电子设备的应用程序在展示上述配网界面后,可以检测用户于配网界面中的操作,以便根据用户于配网界面中的配网操作,对设备进行配网。其中,电子设备根据配网界面中的配网操作,可以获取到相关指示信息,例如指示开启配网过程的信息,指示与设备进行连接的信息,指示传输网络信息至设备的信息等。也可以获取到用户输入的信息,例如网络信息、设置的名称等。电子设备根据配网界面中的配网操作,获取的具体信息可以不作为限定。After displaying the above-mentioned network distribution interface, the application program of the electronic device can detect the user's operation in the distribution network interface, so as to configure the network according to the user's network distribution operation in the network distribution interface. Among them, the electronic device can obtain relevant indication information according to the network distribution operation in the network distribution interface, such as information indicating the start of the network distribution process, information indicating the connection with the device, information indicating the transmission of network information to the device, and so on. The information entered by the user can also be obtained, such as network information, name of settings, etc. The specific information obtained by the electronic device according to the network distribution operation in the distribution network interface is not limited.
步骤S140:根据所述SDK插件以及所述配网界面中的配网操作,对所述设备进行 配网。Step S140: Perform network distribution on the device according to the SDK plug-in and the network distribution operation in the network distribution interface.
在获取上述SDK插件以及显示配网界面后,则可以根据SDK插件以及检测到的配网界面中的配网操作,对设备进行配网。After obtaining the above-mentioned SDK plug-in and displaying the network configuration interface, you can perform network configuration on the device according to the SDK plug-in and the detected network configuration operations in the network configuration interface.
在一些实施方式中,获取到的上述SDK插件处于加载的状态。可以根据配界面中的配网操作,响应配网操作,获取设备需要接入网络的网络信息,将网络信息发送至设备。其中,电子设备可以连接设备的热点,与设备建立通信,从而将网络信息发送至该设备;电子设备也可以通过广播的方式,将网络信息发送至该设备。设备在接收到网络信息后,则可以根据网络信息接入网络。In some embodiments, the obtained SDK plug-in is in a loaded state. According to the network configuration operation in the configuration interface, in response to the network configuration operation, the network information that the device needs to access the network can be obtained, and the network information can be sent to the device. Among them, the electronic device can connect to the hotspot of the device and establish communication with the device, thereby sending network information to the device; the electronic device can also send the network information to the device by broadcasting. After receiving the network information, the device can access the network according to the network information.
进一步的,上述网络信息可以包括路由器的名称和密码,设备根据路由器的名称和密码,可以连接至路由器,从而接入到WiFi网络中。另外,设备在接入网络后,电子设备可以利用SDK插件将设备以及用户账号发送至设备的厂商的服务器,以便设备的厂商的服务器建立该设备与用户账号的对应关系,从而实现设备的整个配网过程。设备在配网完成后,可以对设备进行远程控制。Further, the aforementioned network information may include the name and password of the router, and the device can connect to the router according to the name and password of the router, so as to access the WiFi network. In addition, after the device is connected to the network, the electronic device can use the SDK plug-in to send the device and user account to the server of the device manufacturer, so that the server of the device manufacturer can establish the corresponding relationship between the device and the user account, thereby realizing the entire configuration of the device. Network process. The equipment can be remotely controlled after the network distribution is completed.
本申请实施例提供的设备配网方法,电子设备可以运行应用程序,应用程序通过获取设备的设备信息,根据设备信息,获取设备的厂商对应的SDK插件,然后调起并显示设备对应的配网界面,最后根据SDK插件以及配网界面中的配网操作,对设备进行配网,实现对设备的配网。从而通过同一应用程序,即可对不同厂商的设备进行配网,无需电子设备安装不同厂商对应的应用程序,对不同厂商的设备进行配网,提升设备配网的便利性,且可以减少应用程序占用电子设备的存储空间。According to the device network configuration method provided by the embodiments of this application, the electronic device can run an application program. The application program obtains the device information of the device, according to the device information, obtains the SDK plug-in corresponding to the device manufacturer, and then invokes and displays the corresponding network configuration of the device Interface, finally according to the SDK plug-in and the network configuration operation in the network configuration interface, the equipment is networked to realize the network distribution of the equipment. Therefore, through the same application, you can configure the network for the equipment of different manufacturers, without the need for electronic equipment to install the corresponding applications of different manufacturers, and configure the network for the equipment of different manufacturers, which improves the convenience of equipment distribution and can reduce the number of applications. Occupies the storage space of electronic devices.
请参阅图11,本申请另一个实施例提供了一种设备配网方法,可应用于电子设备,该设备配网方法可以包括:Referring to FIG. 11, another embodiment of the present application provides a device network configuration method, which can be applied to electronic devices. The device network configuration method may include:
步骤S210:获取设备的设备信息。Step S210: Obtain device information of the device.
在本申请实施例中,步骤S210可以参阅上述实施例的内容,在此不再赘述。In this embodiment of the present application, step S210 can refer to the content of the above-mentioned embodiment, which will not be repeated here.
步骤S220:根据所述设备信息,判断本地当前是否存在所述设备的厂商对应的SDK插件。Step S220: According to the device information, determine whether the SDK plug-in corresponding to the manufacturer of the device currently exists locally.
在一些实施方式中,电子设备的应用程序在根据设备信息,获取设备的厂商对应的SDK插件时,可以判断当前电子设备的本地是否存在设备的厂商对应的SDK插件。具体的,电子设备可以查询本地存储的文件中,是否存在与厂商对应的SDK插件。可以理解的,由于SDK插件是与厂商对应的,相同厂商的设备在配网时使用的SDK插件相同。在对上述设备进行配网时,可能在本次进行对该厂商的设备进行配网之前,已经添加过该厂商的其他任一设备,即已对该厂商的其他任一设备进行过配网,此时电子设备已经下载过该厂商的SDK插件。当然,也可能此前未对该厂商的任一设备进行过配网,此时电子设备的本地当前不存在该厂商对应的SDK插件。In some embodiments, when the application program of the electronic device obtains the SDK plug-in corresponding to the manufacturer of the device according to the device information, it can determine whether the SDK plug-in corresponding to the manufacturer of the device exists locally in the current electronic device. Specifically, the electronic device can query whether there is an SDK plug-in corresponding to the manufacturer in a file stored locally. It is understandable that since the SDK plug-in corresponds to the manufacturer, devices of the same manufacturer use the same SDK plug-in during network configuration. When distributing the above-mentioned equipment, it is possible that any other equipment of the manufacturer has been added before the equipment of the manufacturer is configured, that is, any other equipment of the manufacturer has been configured. At this time, the electronic device has downloaded the SDK plug-in of the manufacturer. Of course, it is also possible that the network has not been configured for any device of the manufacturer before, and the SDK plug-in corresponding to the manufacturer does not currently exist in the local electronic device.
步骤S230:如果本地当前不存在所述厂商对应的SDK插件,则下载所述厂商对应的SDK插件。Step S230: If the SDK plug-in corresponding to the manufacturer does not currently exist locally, download the SDK plug-in corresponding to the manufacturer.
在一些实施方式中,在判断出电子设备的本地当前不存在厂商对应的SDK插件时,表示此前电子设备未下载有该厂商的SDK插件。为实现对设备的配网,电子设备的应用程序可以下载该设备的厂商对应的SDK插件。具体电子设备下载SDK插件的方式可以参阅上述实施例中下载SDK插件的方式,在此不再赘述。In some implementations, when it is determined that the SDK plug-in corresponding to the manufacturer does not currently exist in the local electronic device, it means that the electronic device has not previously downloaded the SDK plug-in of the manufacturer. In order to realize the network distribution of the device, the application of the electronic device can download the SDK plug-in corresponding to the manufacturer of the device. The specific method of downloading the SDK plug-in by the electronic device can refer to the method of downloading the SDK plug-in in the above-mentioned embodiment, which will not be repeated here.
步骤S240:如果本地当前存在所述厂商对应的SDK插件,则从本地获取当前存在的所述SDK插件。Step S240: If the SDK plug-in corresponding to the manufacturer currently exists locally, the currently existing SDK plug-in is acquired locally.
在一些实施方式中,在判断出电子设备的本地当前存在厂商对应的SDK插件时,表示此前电子设备此前已经下载有该厂商的SDK插件。因此,在本次对设备进行入网时,应用程序可以直接从本地读取该设备的厂商对应的SDK插件,从而获取到该厂商对应的SDK插件。In some embodiments, when it is determined that the SDK plug-in corresponding to the manufacturer currently exists in the electronic device, it means that the electronic device has previously downloaded the SDK plug-in of the manufacturer. Therefore, when the device is connected to the network this time, the application can directly read the SDK plug-in corresponding to the manufacturer of the device locally, thereby obtaining the SDK plug-in corresponding to the manufacturer.
步骤S250:确定与所述设备对应的快应用。Step S250: Determine the quick application corresponding to the device.
在获取待配网的设备对应的SDK插件之后,应用程序可以调起并显示该设备对应的配网界面,以供用户对配网过程进行控制和操作。After obtaining the SDK plug-in corresponding to the device to be configured with the network, the application can call up and display the corresponding network configuration interface of the device for the user to control and operate the network configuration process.
在本申请实施例中,应用程序可以通过调起快应用的配网界面,并将配网界面进行显示的方式,实现对配网界面的显示。首先,应用程序可以确定与该设备对应的快应用,以调起和显示该快应用的配网界面。In the embodiment of the present application, the application program can realize the display of the network distribution interface by calling up the network distribution interface of the quick application and displaying the network distribution interface. First, the application program can determine the quick application corresponding to the device to call up and display the network distribution interface of the quick application.
不同的设备由于厂商可能不同,而在管理和控制设备时,需要通过设备所对应的厂商服务器,因此,不同厂商的设备所对应的快应用不同。快应用可以对应有快应用标识,快应用标识作为快应用的身份信息,用于区分不同的快应用。具体的快应用标识在本申请实施例中可以不作为限定,例如,快应用标识可以为快应用的身份ID。Different devices may have different manufacturers, and when managing and controlling the device, the server corresponding to the device needs to be passed. Therefore, the devices of different manufacturers have different applications. A quick application may correspond to a quick application identification, and the quick application identification is used as the identification information of the quick application to distinguish different quick applications. The specific quick application identifier may not be limited in the embodiment of the present application. For example, the quick application identifier may be the identity ID of the quick application.
另外,可以建立快应用标识与设备的对应关系,以便在添加快应用时,确定与设备所对应的快应用标识。作为一种方式,可以快应用标识与设备的对应关系,可以以列表的形式存储于电子设备内。列表中,每个设备均对应有一个快应用标识。In addition, the corresponding relationship between the quick application identification and the device can be established, so that when the quick application is added, the quick application identification corresponding to the device can be determined. As a way, the correspondence between the identifier and the device can be quickly applied, and can be stored in the electronic device in the form of a list. In the list, each device corresponds to a quick application logo.
电子设备的应用程序在获取设备对应的快应用时,可以根据设备的设备信息,获取与设备对应的快应用。When the application program of the electronic device obtains the quick application corresponding to the device, it can obtain the quick application corresponding to the device according to the device information of the device.
在一些实施方式中,待配网的设备的设备信息可以包括:厂商信息、类型信息以及型号信息中的至少一种,设备信息的具体内容在本申请实施例中可以不作为限定。请参见图12,根据设备的设备信息,确定与设备对应的快应用,可以包括:In some implementation manners, the device information of the device to be deployed in the network may include at least one of manufacturer information, type information, and model information, and the specific content of the device information may not be limited in the embodiments of this application. Refer to Figure 12. According to the device information of the device, determine the quick application corresponding to the device, which can include:
步骤S251:根据所述厂商信息、类型信息以及型号信息中的至少一种,确定与所述设备对应的快应用标识。Step S251: Determine a quick application identifier corresponding to the device according to at least one of the manufacturer information, type information, and model information.
在本申请实施例中,作为一种实施方式,电子设备中存储有各个设备信息对应的快应用标识,以及设备信息与快应用标识的对应关系。在获取到设备的设备信息之后,则可以根据设备的设备信息,利用上述对应关系,即可从多个快应用标识中,查找与该设备的设备信息对应的快应用标识。作为另一种实施方式,客户端也可以根据设备信息,从服务器查询与该设备信息对应的快应用标识。具体基于设备信息获取与设备对应的快应用标识的方式可以不作为限定。In the embodiment of the present application, as an implementation manner, the electronic device stores the quick application identifier corresponding to each device information, and the corresponding relationship between the device information and the quick application identifier. After the device information of the device is obtained, the device information of the device can be used to find the quick application identifier corresponding to the device information of the device from the multiple quick application identifiers by using the above-mentioned corresponding relationship. As another implementation manner, the client may also query the fast application identifier corresponding to the device information from the server according to the device information. The specific method for obtaining the quick application identifier corresponding to the device based on the device information may not be limited.
在一些实施方式中,可以根据厂商信息、类型信息以及型号信息中的至少一种,确定与设备对应的快应用标识。可以理解的,可能同一厂商的所有设备对应的快应用相同,也可能是同一厂商中不同类型的设备对应的快应用不同,同一厂商中不同类型下不同型号的设备对应的快应用不同。因此,可以根据厂商信息、类型信息以及型号信息中的至少一种,确定设备对应的快应用标识,以确定快应用。In some embodiments, the quick application identifier corresponding to the device can be determined according to at least one of manufacturer information, type information, and model information. It is understandable that all devices of the same manufacturer may correspond to the same fast application, or different types of devices of the same manufacturer correspond to different fast applications, and different types of devices of the same manufacturer correspond to different fast applications. Therefore, the quick application identifier corresponding to the device can be determined according to at least one of manufacturer information, type information, and model information to determine the quick application.
步骤S252:根据所述快应用标识,确认与所述快应用标识对应的快应用。Step S252: According to the quick application identification, confirm the quick application corresponding to the quick application identification.
在一些实施方式中,电子设备中存储有快应用标识与快应用的对应关系。该对应关系可以是映射关系表的形式存储于电子设备中,也可以是以其他形式存储于电子设备中。电子设备根据该对应关系,确认与快应用标识对应的快应用。In some embodiments, the electronic device stores the correspondence between the quick application identifier and the quick application. The correspondence relationship may be stored in the electronic device in the form of a mapping relationship table, or stored in the electronic device in other forms. The electronic device confirms the quick application corresponding to the quick application identifier according to the corresponding relationship.
当然,在本申请实施例中,电子设备确认快应用的方式可以不作为限定。Of course, in the embodiments of the present application, the manner in which the electronic device confirms the quick application may not be limited.
步骤S260:调起并显示所述快应用的配网界面。Step S260: Bring up and display the network distribution interface of the quick application.
电子设备在确认出与设备对应的快应用后,则可以根据确认的快应用,调起并显示该快应用的配网界面,也就实现了对设备对应的配网界面的显示。After the electronic device confirms the quick application corresponding to the device, it can call up and display the network distribution interface of the quick application according to the confirmed quick application, thus realizing the display of the network distribution interface corresponding to the device.
在一些实施方式中,快应用是由快应用引擎运行的,快应用中不同的界面对应有不同的链接,快应用引擎通过访问不同的链接,实现对快应用中不同的界面进行调起和显示。请参见图13,调起并显示快应用的配网界面,可以包括:In some embodiments, the quick app is run by the quick app engine, and different interfaces in the quick app have different links. The quick app engine can access and display different interfaces in the quick app by accessing different links. . Please refer to Figure 13 to bring up and display the network configuration interface of Quick App, which can include:
步骤S261:获取所述快应用的配网界面对应的界面链接;Step S261: Obtain the interface link corresponding to the network distribution interface of the quick application;
步骤S262:通过快应用引擎访问所述界面链接,并将所述配网界面进行显示。Step S262: Access the interface link through the fast application engine, and display the network distribution interface.
在一些实施方式中,电子设备可以从上述获取的快应用对应的多个界面的链接中,获取配网界面对应的界面链接。其中,多个界面的链接分别对应不同界面的链接。然后,应用程序利用快应用引擎访问上述配网界面对应的界面链接,并将配网界面进行 显示,实现对配网界面的调起及显示。In some embodiments, the electronic device may obtain the interface link corresponding to the network distribution interface from the obtained multiple interface links corresponding to the quick application. Among them, the links of multiple interfaces correspond to the links of different interfaces. Then, the application program uses the quick application engine to access the interface link corresponding to the above-mentioned distribution network interface, and displays the distribution network interface to realize the recall and display of the distribution network interface.
步骤S270:将所述SDK插件进行加载,以及将所述SDK插件对应的ENV插件进行加载,所述ENV插件用于调用所述SDK插件。Step S270: Load the SDK plug-in, and load the ENV plug-in corresponding to the SDK plug-in, where the ENV plug-in is used to call the SDK plug-in.
在一些实施方式中,应用程序在调起并显示与设备对应的配网界面时,还可以将相关的插件进行加载。具体的,可以将上述SDK插件以及用于调用上述SDK插件的ENV(环境变量)插件进行加载。可以理解的,在调起并显示配网界面时,将SDK插件及ENV插件,可以使相关插件在需要正式使用时才进行加载,实现SDK插件以及ENV插件按需要进行加载,节省电子设备的运行空间。In some embodiments, when the application program is called up and displays the network configuration interface corresponding to the device, the related plug-in can also be loaded. Specifically, the aforementioned SDK plug-in and the ENV (Environment Variable) plug-in used to call the aforementioned SDK plug-in can be loaded. It is understandable that when the network configuration interface is called up and displayed, the SDK plug-in and the ENV plug-in can be loaded when the relevant plug-in needs to be used officially, so that the SDK plug-in and the ENV plug-in can be loaded as needed, saving the operation of electronic equipment space.
在一些实施方式中,将SDK插件进行加载,可以包括:从所述SDK插件中分离目标文件并将所述SDK插件进行加载。In some embodiments, loading the SDK plug-in may include: separating the target file from the SDK plug-in and loading the SDK plug-in.
在本实施例中,在对SDK插件进行加载时,可以将该SDK插件中的目标文件分离出来,并加载该目标SDK插件,其中,目标文件至少包括配置文件和so文件,从而保证该SDK插件在使用的时候读取文件快速。作为一种方式,在加载的时候,可以是直接动态加载该SDK插件,但是目标文件中的so文件还是需要单独加载,其中,so文件可以是使用loadlibrary加载的,配置文件可以在加载的时候在代码里面读取。In this embodiment, when loading the SDK plug-in, the target file in the SDK plug-in can be separated, and the target SDK plug-in can be loaded, where the target file includes at least the configuration file and the so file, so as to ensure that the SDK plug-in Reading files quickly when in use. As a way, when loading, the SDK plug-in can be directly loaded dynamically, but the so file in the target file still needs to be loaded separately. Among them, the so file can be loaded using loadlibrary, and the configuration file can be loaded when loading. Read in the code.
在一些实施方式中,从所述SDK插件中分离目标文件并将所述SDK插件进行加载,可以包括:In some embodiments, separating the target file from the SDK plug-in and loading the SDK plug-in may include:
从所述SDK插件中分离目标文件,判断所述目标文件是否完整;如果所述目标文件完整,则将所述SDK插件进行加载。Separate the target file from the SDK plug-in to determine whether the target file is complete; if the target file is complete, load the SDK plug-in.
在一些实施方式中,从该SDK插件中分离出目标文件后,可以判断该目标文件是否完整,例如,判断该配置文件和so文件是否完整。In some embodiments, after the target file is separated from the SDK plug-in, it can be determined whether the target file is complete, for example, whether the configuration file and the so file are complete.
作为一种方式,若判断结果表征该目标文件完整,可以直接加载该目标SDK文件。As a way, if the judgment result indicates that the target file is complete, the target SDK file can be loaded directly.
作为另一种方式,若判断结果表征该目标文件不完整,可能会造成文件缺失不能正常使用,而由于配置文件和so文件等目标文件是从SDK插件中分离出来的,因此,可以再次从SDK插件中分离该目标文件,从而保证配置文件或so文件等目标文件由于意外损坏或被删除时,也能够重新进行处理,这样既能保证加载的时候不会出错,保证SDK插件加载的安全性和加载的SDK插件的完整性,同时又保证加载的速度。As another way, if the judgment result indicates that the target file is incomplete, it may cause the file to be missing and cannot be used normally. Since the target file such as the configuration file and the so file is separated from the SDK plug-in, it can be removed from the SDK again The target file is separated from the plug-in, so as to ensure that when the target file such as the configuration file or the so file is accidentally damaged or deleted, it can be processed again. This can ensure that there will be no errors when loading, and ensure the safety and security of the SDK plug-in loading. The integrity of the loaded SDK plug-in, while ensuring the speed of loading.
在一些实施方式中,将SDK插件对应的ENV插件进行加载,可以包括:In some embodiments, loading the ENV plug-in corresponding to the SDK plug-in may include:
获取所述SDK插件的接口规范版本;获取与所述接口规范版本对应的ENV插件,并将所述ENV插件进行记载。Obtain the interface specification version of the SDK plug-in; obtain the ENV plug-in corresponding to the interface specification version, and record the ENV plug-in.
其中,ENV插件在调用SDK插件时,会调用SDK插件的接口,因此加载的ENV插件与SDK插件的接口对应,以保证SDK插件与ENV插件的回调JAR包一致。在一些实施方式中,可以读取上述加载的SDK插件的接口规范版本,再根据接口规范版本加载ENV插件,即获取与接口规范版本对应的ENV插件,将ENV插件进行加载。Among them, when the ENV plug-in calls the SDK plug-in, it will call the interface of the SDK plug-in. Therefore, the loaded ENV plug-in corresponds to the interface of the SDK plug-in to ensure that the SDK plug-in is consistent with the callback JAR package of the ENV plug-in. In some embodiments, the interface specification version of the loaded SDK plug-in can be read, and then the ENV plug-in is loaded according to the interface specification version, that is, the ENV plug-in corresponding to the interface specification version is obtained, and the ENV plug-in is loaded.
在本申请实施例中,上述SDK插件使用DexClassloader类,不过父类为BootClassloader,虽然在应用程序中加载插件,但是应用程序并不是插件的宿主,所以不会在应用程序中查找相应的类,实现了SDK与应用程序的代码的隔离。另外,ENV插件则挂在BootClassloader类。由于使用借助于动态加载的双亲委派,将加载插件的DexClassloader的父类指定到BootClassLoader,而应用程序启动其实也是动态加载的过程,父类也是BootClassLoader,这样并没有交叉点,根据双亲委派,查找类都是在继承路径上进行类查找的,所以可以实现类查找隔离,保证SDK插件及ENV插件与应用程序没有类定义冲突。In the embodiment of this application, the above-mentioned SDK plug-in uses the DexClassloader class, but the parent class is BootClassloader. Although the plug-in is loaded in the application, the application is not the host of the plug-in, so the corresponding class will not be found in the application. The isolation of SDK and application code is improved. In addition, the ENV plug-in is hung in the BootClassloader class. Due to the use of parent delegation with the help of dynamic loading, the parent class of DexClassloader that loads the plug-in is assigned to BootClassLoader, and application startup is actually a process of dynamic loading. The parent class is also BootClassLoader, so there is no intersection. According to parent delegation, find the class The class search is performed on the inheritance path, so the class search isolation can be realized to ensure that the SDK plug-in and ENV plug-in have no class definition conflicts with the application.
当然,在本申请实施例中,具体加载SDK插件以及ENV插件的方式可以不作为限定。Of course, in the embodiment of the present application, the specific method of loading the SDK plug-in and the ENV plug-in may not be limited.
步骤S280:根据所述SDK插件以及所述配网界面中的配网操作,对所述设备进行配网。Step S280: Perform network configuration on the device according to the SDK plug-in and the network configuration operation in the network configuration interface.
在本申请实施例中,在根据SDK插件对设备进行配网时,则应用程序则可以利用上述ENV插件调用SDK插件,进行相关操作,完成对设备的配网。In the embodiment of the present application, when the device is configured to network according to the SDK plug-in, the application can use the above-mentioned ENV plug-in to call the SDK plug-in, perform related operations, and complete the network configuration of the device.
本申请实施例提供的设备配网方法,电子设备的应用程序通过获取设备的设备信息,根据设备信息,获取设备的厂商对应的SDK插件,然后调起并显示设备对应快应用的配网界面,将SDK插件以及用于调用SDK插件的ENV插件,最后利用ENV插件调用SDK插件,并根据SDK插件以及配网界面中的配网操作,对设备进行配网,实现对设备的配网。从而通过同一应用程序,即可对不同厂商的设备进行配网,提升设备配网的便利性,且可以减少应用程序占用电子设备的存储空间。According to the device network configuration method provided by the embodiments of the present application, the application program of the electronic device obtains the device information of the device, according to the device information, obtains the SDK plug-in corresponding to the device manufacturer, and then calls up and displays the network configuration interface of the device corresponding to the quick application. Use the SDK plug-in and the ENV plug-in used to call the SDK plug-in, and finally use the ENV plug-in to call the SDK plug-in, and according to the SDK plug-in and the network configuration operation in the network configuration interface, the device is networked to realize the network distribution of the device. Therefore, through the same application program, devices of different manufacturers can be configured to network, which improves the convenience of device network distribution, and can reduce the storage space of electronic devices occupied by the application program.
请参阅图14,本申请又一个实施例提供了一种设备配网方法,可应用于电子设备,该设备配网方法可以包括:Referring to FIG. 14, another embodiment of the present application provides a device network configuration method, which can be applied to electronic devices. The device network configuration method may include:
步骤S310:获取设备的设备信息。Step S310: Obtain device information of the device.
步骤S320:根据所述设备信息,获取所述设备的厂商对应的软件开发工具包SDK插件。Step S320: According to the device information, obtain a software development kit SDK plug-in corresponding to the manufacturer of the device.
在本申请实施例中,步骤S310至步骤S320可以参阅上述实施例的内容,在此不再赘述。In the embodiment of the present application, steps S310 to S320 can refer to the content of the above-mentioned embodiment, which will not be repeated here.
步骤S330:调起并显示与所述设备对应的配网界面,所述配网界面用于引导用户进行配网操作。Step S330: Bring up and display the network distribution interface corresponding to the device, and the network distribution interface is used to guide the user to perform network distribution operations.
在一些实施方式中,调起并显示与设备对应的配网界面,也可以包括:In some embodiments, calling up and displaying the distribution network interface corresponding to the device may also include:
确定与所述设备对应的配网界面的界面插件;调用所述界面插件,并将所述配网界面进行显示;将所述SDK插件进行加载,以及将所述SDK插件对应的ENV插件进行加载,所述ENV插件用于调用所述SDK插件。Determine the interface plug-in of the network distribution interface corresponding to the device; call the interface plug-in and display the network distribution interface; load the SDK plug-in, and load the ENV plug-in corresponding to the SDK plug-in , The ENV plug-in is used to call the SDK plug-in.
其中,界面插件与设备对应的配网界面对应,该界面插件为电子设备的本地插件,通过调用该界面插件,可以实现调起与该设备对应的配网界面。当界面插件被调起时,配网界面可以被动态的加载并显示。Wherein, the interface plug-in corresponds to the network distribution interface corresponding to the device, and the interface plug-in is a local plug-in of the electronic device. By calling the interface plug-in, the network distribution interface corresponding to the device can be called up. When the interface plug-in is called up, the distribution network interface can be dynamically loaded and displayed.
SDK插件以及ENV插件的加载方式可以参阅上述实施例的内容,在此不再赘述。For the loading method of the SDK plug-in and the ENV plug-in, please refer to the content of the foregoing embodiment, and will not be repeated here.
步骤S340:根据于所述配网界面的配网操作,获取网络信息,所述网络信息用于所述设备连接至网络。Step S340: Obtain network information according to the network distribution operation on the network distribution interface, where the network information is used for the device to connect to the network.
在一些实施方式中,电子设备的应用程序在根据SDK插件以及配网界面中的配网操作,对设备进行配网时,应用程序可以根据配网界面中配网操作,获取用于设备连接网络的网络信息。上述网络信息可以包括网络的名称和密码等。其中,上述网络信息可以由用户于配网界面中手动输入。上述网络信息也可以由用户于配网界面中选择,例如,配网界面中展示有网络列表,网络列表中包括多个网络,通过对网络的选取,应用程序可以获取到设备需要连接的网络的网络信息。In some embodiments, when the application program of the electronic device configures the device according to the SDK plug-in and the network configuration operation in the network configuration interface, the application program can obtain the network configuration operation for the device according to the network configuration operation in the network configuration interface. Network information. The aforementioned network information may include the name and password of the network. Wherein, the above-mentioned network information can be manually input by the user in the network distribution interface. The above network information can also be selected by the user in the network configuration interface. For example, a network list is displayed in the network configuration interface, and the network list includes multiple networks. By selecting the network, the application can obtain the information of the network that the device needs to connect to. Internet Information.
步骤S350:建立与所述设备的网络连接,将所述网络信息发送至所述设备。Step S350: Establish a network connection with the device, and send the network information to the device.
在一些实施方式中,电子设备可以建立与设备的网络连接,以便传输相关信息至设备,以及接收设备反馈的信息。In some embodiments, the electronic device can establish a network connection with the device, so as to transmit relevant information to the device and receive information fed back by the device.
作为一种实施方式,建立与设备的网络连接可以包括:As an implementation manner, establishing a network connection with the device may include:
输出设定提示信息,所述设定提示信息用于提示用户开启所述设备的配网模式;在获取到第二指示信息时,建立与所述设备的网络连接,所述第二指示信息用于指示所述设备的配网模式处于开启状态。Output setting prompt information, the setting prompt information is used to prompt the user to turn on the network distribution mode of the device; when the second instruction information is obtained, a network connection with the device is established, and the second instruction information is used It indicates that the network distribution mode of the device is on.
可以理解的,设备需要处于配网模式下,才能建立与电子设备的网络连接。因此,电子设备的应用程序可以输出设定提示信息,以提示用户将设备的配网模式开启。并且应用程序的界面可以检测用户的操作,在检测到设定操作时,可以获取到第二指示信息,该第二指示信息用于指示设备的配网模式已经开启。从而,在待配网的设备处于配网模式时,电子设备则可以建立与该设备的网络连接。例如,待配网的设备处于配网模式时,设备的热点开启,电子设备可以连接至该设备的热点,实现电子设备与 该设备的网络连接。Understandably, the device needs to be in the network distribution mode to establish a network connection with the electronic device. Therefore, the application program of the electronic device can output a setting prompt message to prompt the user to turn on the network configuration mode of the device. And the interface of the application program can detect the user's operation, and when the setting operation is detected, the second indication information can be obtained, and the second indication information is used to indicate that the network distribution mode of the device has been turned on. Therefore, when the device to be configured is in the network distribution mode, the electronic device can establish a network connection with the device. For example, when the device to be configured is in the network distribution mode, the hot spot of the device is turned on, and the electronic device can be connected to the hot spot of the device to realize the network connection between the electronic device and the device.
电子设备在与待配网的设备建立网络连接之后,则可以将上述网络信息发送至该设备,以便设备根据网络信息连接至网络。After the electronic device establishes a network connection with the device to be configured with the network, it can send the aforementioned network information to the device, so that the device can connect to the network according to the network information.
步骤S360:当接收到所述设备返回的第一指示信息时,利用所述SDK插件将用户账号信息以及所述设备信息发送至服务器,所述第一指示信息用于表征所述设备已连接至所述网络,所述用户账号信息以及所述设备信息用于指示所述服务器建立所述用户账号信息与所述设备的对应关系。Step S360: When the first instruction information returned by the device is received, the SDK plug-in is used to send the user account information and the device information to the server, and the first instruction information is used to indicate that the device is connected to In the network, the user account information and the device information are used to instruct the server to establish a correspondence between the user account information and the device.
在一些实施方式中,设备在接收到上述网络信息之后,则可以根据网络信息连接至网络。并且,当设备连接至网络后,设备可以生成用于指示已连接至网络的第一指示信息,并将第一指示信息返回至电子设备。电子设备在接收到该第一指示信息之后,则可以确定设备已连接至网络,并且可以将应用程序对应的用户账号信息或者设备的厂商分配的用户账号信息,以及该设备的设备信息发送至厂商的服务器,以便厂商的服务器建立该设备与用户账号信息直接的绑定关系,从而完成对设备的配网。在完成对设备的配网后,后续电子设备则可以根据携带有该用户账号信息的控制指令,并通过厂商的服务器,对设备进行远程控制。In some embodiments, after receiving the above network information, the device may connect to the network according to the network information. In addition, after the device is connected to the network, the device may generate first indication information for indicating that it is connected to the network, and return the first indication information to the electronic device. After receiving the first instruction information, the electronic device can determine that the device is connected to the network, and can send the user account information corresponding to the application or the user account information assigned by the device manufacturer, and the device information of the device to the manufacturer , So that the manufacturer’s server can establish a direct binding relationship between the device and the user account information to complete the network configuration of the device. After completing the network configuration of the device, the subsequent electronic device can remotely control the device through the server of the manufacturer according to the control instruction carrying the user account information.
在本申请实施例中,该设备配网方法还可以包括:In the embodiment of the present application, the device network configuration method may further include:
调起并显示与所述设备对应的控制界面;根据所述SDK插件以及于所述控制界面的控制操作,发送第一指令至服务器,所述第一指令用于指示所述服务器发送控制指令至所述设备。Bring up and display the control interface corresponding to the device; according to the SDK plug-in and the control operation on the control interface, send a first instruction to the server, and the first instruction is used to instruct the server to send a control instruction to The equipment.
在一些实施方式中,在完成对设备的配网,实现设备入网后,用户可以通过电子设备的应用程序对设备进行控制。具体的,可以调起并显示该设备对应的控制界面,该控制界面用于检测对设备的控制操作。其中,调起并显示该设备对应的控制界面的方式,可以参阅调起并显示配网界面的方式。当检测到用户于控制界面的控制操作,则可以根据控制操作,生成相应的控制指令,并利用SDK插件将控制指令发送至厂商的服务器。厂商的服务器在接收到控制指令后,则可以通过网络将控制指令传输至该设备,从而指示设备完成相应的操作,实现对设备的远程控制。通过该实施方式,可以实现仅利用一个APP对不同厂商的设备进行控制,提升对设备进行控制的便利性。In some embodiments, after completing the network configuration of the device and realizing the network access of the device, the user can control the device through the application program of the electronic device. Specifically, the control interface corresponding to the device can be called up and displayed, and the control interface is used to detect the control operation of the device. Among them, for the way to call up and display the control interface corresponding to the device, please refer to the way to call up and display the network configuration interface. When the user's control operation on the control interface is detected, the corresponding control instruction can be generated according to the control operation, and the SDK plug-in is used to send the control instruction to the server of the manufacturer. After the manufacturer's server receives the control instruction, it can transmit the control instruction to the device via the network, thereby instructing the device to complete the corresponding operation and realizing remote control of the device. Through this embodiment, it is possible to use only one APP to control devices of different manufacturers, which improves the convenience of controlling devices.
在本申请实施例中,在完成对设备的配网之后,还可以推送相关场景至用户。因此,该设备配网方法还可以包括:In the embodiment of the present application, after the network configuration of the device is completed, the relevant scene can also be pushed to the user. Therefore, the device network distribution method may also include:
基于所述设备信息,获取包括所述设备的目标场景;将所述目标场景进行推送。Based on the device information, a target scene including the device is acquired; and the target scene is pushed.
在一些实施方式中,基于该设备的设备信息,获取包括该设备的目标场景。例如,当该设备为空调时,那么,该可以获取包括空调的目标场景,如该目标场景可以包括“当用户进入室内时开启空调”、“用户进入室内时开启空调并将空调的制冷温度调至27°”、“当用户出门时关闭空调”等;当该设备为照明设备时,那么,可以获取包括照明设备的目标场景,如该目标场景可以包括“当用户回家时打开照明设备”、“当用户回家时打开照明设备并将照明设备的照明亮度调至目标亮度”等,在此不做限定。In some embodiments, based on the device information of the device, the target scene including the device is acquired. For example, when the device is an air conditioner, then the target scene including the air conditioner can be acquired. For example, the target scene can include “turn on the air conditioner when the user enters the room”, “turn on the air conditioner when the user enters the room and adjust the cooling temperature of the air conditioner. To 27°", "Turn off the air conditioner when the user goes out", etc.; when the device is a lighting device, then the target scene including the lighting device can be acquired, for example, the target scene may include "Turn on the lighting device when the user goes home" , "When the user goes home, turn on the lighting device and adjust the lighting brightness of the lighting device to the target brightness", etc., which are not limited here.
作为一种方式,可以基于该设备的设备信息,从多个预设场景中选择包括该设备的目标场景、可以基于该设备的设备信息,通过预设算法计算生成包括该设备的目标场景、也可以基于该设备的设备信息,通过已训练的场景生成模型输出目标场景等,在此不做限定。As a way, the target scene including the device can be selected from multiple preset scenes based on the device information of the device, and the target scene including the device can be calculated and generated based on the device information of the device through a preset algorithm. Based on the device information of the device, the target scene can be output through the trained scene generation model, which is not limited here.
在获取包括该设备的目标场景后,则可以推送该目标场景,以供用户选择,从而实现设备的使用场景的自动配置,减少用户操作,提升用户体验。其中,电子设备推送目标场景的方式可以但不限于包括语音推送目标场景、文本推送目标场景、图片推送目标场景等,在此不做限定。After obtaining the target scene including the device, the target scene can be pushed for the user to select, thereby realizing automatic configuration of the use scene of the device, reducing user operations, and improving user experience. Wherein, the manner in which the electronic device pushes the target scene may include, but is not limited to, a voice push target scene, a text push target scene, a picture push target scene, etc., which are not limited here.
在一些实施方式中,推送包括该设备的目标场景,也可以包括:In some embodiments, the push includes the target scene of the device, and may also include:
获取其他设备分享的参考场景;当所述参考场景包括所述设备时,将所述参考场景作为目标场景,并将所述目标场景进行推送。Obtain a reference scene shared by other devices; when the reference scene includes the device, use the reference scene as a target scene, and push the target scene.
作为一种方式,在确定用于推送的目标场景时,也可以根据其他设备分享的参考场景进行确定。其中,电子设备可以接收其他设备分享的参考场景,可以理解的,电子设备可以通过数据网络、无线网络、蓝牙等方式接收其他设备分享的参考场景,其中,该参考场景可以以文本的形式呈现、可以以图片的形式呈现,在此不做限定。As a way, when determining the target scene for pushing, it can also be determined according to the reference scene shared by other devices. Among them, the electronic device can receive the reference scene shared by other devices. It is understandable that the electronic device can receive the reference scene shared by other devices through data network, wireless network, Bluetooth, etc., where the reference scene can be presented in the form of text, It can be presented in the form of pictures, which is not limited here.
进一步地,电子设备的应用程序对参考场景进行分析,例如,电子设备获取该参考场景中的触发设备和受控设备,并检测该触发设备和受控设备中是否包括上述进行配网后的设备,当该触发设备或受控设备中包括该配网后的设备时,可以确定该参考场景中包括该配网后的设备;当该触发设备和受控设备中均不包括该配网后的设备时,可以确定该参考场景中不包括该设备。如果确定出参考场景包括该配网后的设备时,则可以将该参考场景作为目标场景进行推送。Further, the application program of the electronic device analyzes the reference scene. For example, the electronic device obtains the triggering device and the controlled device in the reference scene, and detects whether the triggering device and the controlled device include the above-mentioned device after network configuration , When the triggering device or the controlled device includes the post-distribution device, it can be determined that the post-distribution device is included in the reference scene; when neither the triggering device nor the controlled device includes the post-distribution device When the device is selected, it can be determined that the device is not included in the reference scene. If it is determined that the reference scene includes the device after network configuration, the reference scene can be pushed as the target scene.
通过在设备首次成功接入网络时,基于该设备的设备信息,获取包括该设备的目标场景并推送,从而自动获取目标场景,减少用户操作,提升用户体验。When a device successfully accesses the network for the first time, based on the device information of the device, the target scene including the device is acquired and pushed, thereby automatically acquiring the target scene, reducing user operations, and improving user experience.
在本申请实施例中,在将上次目标场景进行推送后,该设备配网方法还可以包括:In the embodiment of the present application, after the last target scene is pushed, the device network configuration method may further include:
基于对所述目标场景的确定指令,从所述目标场景包括的所有设备中,获取当前未入网的目标设备;将所述目标设备进行推送。Based on the instruction for determining the target scene, obtain target devices that are not currently connected to the network from all devices included in the target scene; push the target device.
在一些实施方式中,电子设备的应用程序在将目标场景进行推送之后,可以确定是否检测到对推送的目标场景的操作,当用户在应用程序的界面中对目标场景进行确认操作后,可以获取到对目标场景的确定指令。并且电子设备可以将上述设备配置到目标场景中,并将场景配置信息发送至服务器、网关等进行存储,从而实现设备的场景配置。另外,可能配置的目标场景中,需要其他设备的参与,但是目前有设备未入网,即用户还未购买目标场景中的某些设备。因此,电子设备可以从目标场景包括的所有设备中获取当前未入网的目标设备,并将该目标设备推送至用户,方便用户了解当前该目标场景中缺少的设备,利于用户获知还需要购买的设备。例如,目标场景中包括空调、加湿器、照明设备等,但是目前仍有加湿器未入网,因此可以将加湿器作为目标设备,并将加湿器进行推送。In some embodiments, after the application program of the electronic device pushes the target scene, it can determine whether an operation on the pushed target scene is detected. After the user confirms the target scene in the interface of the application program, it can obtain To confirm the instruction of the target scene. In addition, the electronic device can configure the above-mentioned device in the target scene, and send the scene configuration information to a server, a gateway, etc. for storage, thereby realizing the scene configuration of the device. In addition, the target scenario that may be configured requires the participation of other devices, but there are currently devices that are not connected to the network, that is, the user has not purchased some devices in the target scenario. Therefore, the electronic device can obtain the target device that is not currently connected to the network from all the devices included in the target scene, and push the target device to the user, which is convenient for the user to understand the missing devices in the target scene, and helps the user to know the equipment that needs to be purchased. . For example, the target scene includes air conditioners, humidifiers, lighting equipment, etc., but there are still humidifiers that are not connected to the network, so the humidifier can be used as the target device and the humidifier can be pushed.
当然,具体在设备首次入网后,推送相关场景和设备的方式可以不作为限定。Of course, after the device enters the network for the first time, the manner of pushing related scenes and devices may not be limited.
本申请实施例提供的设备配网方法,通过同一应用程序,即可对不同厂商的设备进行配网,提升设备配网的便利性,且可以减少应用程序占用电子设备的存储空间。并且,在设备入网后,自动获取与该设备相关的场景和设备进行推送,减少用户的操作,提升用户体验。In the device network configuration method provided by the embodiments of the present application, devices of different manufacturers can be networked through the same application program, which improves the convenience of device network configuration and can reduce the storage space occupied by the electronic device by the application program. In addition, after the device is connected to the network, the scene and device related to the device are automatically obtained and pushed, reducing user operations and improving user experience.
请参阅图15,图15示出了本申请一个实施例提供的设备配网装置500的模块框图。该设备配网装置500应用于电子设备,下面将针对图15所示的装置进行阐述,所述设备配网装置500包括:信息获取模块510、插件获取模块520、界面显示模块530以及配网执行模块540。其中,所述信息获取模块510用于获取设备的设备信息;所述插件获取模块520用于根据所述设备信息,获取所述设备的厂商对应的软件开发工具包SDK插件;所述界面显示模块530用于调起并显示与所述设备对应的配网界面,所述配网界面用于引导用户进行配网操作;所述配网执行模块540用于根据所述SDK插件以及所述配网界面中的配网操作,对所述设备进行配网。Please refer to FIG. 15. FIG. 15 shows a block diagram of a device 500 for network distribution according to an embodiment of the present application. The equipment network distribution device 500 is applied to electronic equipment. The following will describe the device shown in FIG. 15. The equipment network distribution device 500 includes: an information acquisition module 510, a plug-in acquisition module 520, an interface display module 530, and a network distribution execution Module 540. The information obtaining module 510 is used to obtain device information of the device; the plug-in obtaining module 520 is used to obtain a software development kit SDK plug-in corresponding to the manufacturer of the device according to the device information; the interface display module 530 is used to call up and display the network distribution interface corresponding to the device, the network distribution interface is used to guide the user to perform network distribution operations; the network distribution execution module 540 is used to perform network distribution according to the SDK plug-in and the network distribution interface The network configuration operation in the interface performs network configuration on the device.
在一些实施方式中,插件获取模块520可以具体用于:根据所述设备信息,判断本地当前是否存在所述设备的厂商对应的SDK插件;如果本地当前不存在所述厂商对应的SDK插件,则下载所述厂商对应的SDK插件。In some implementation manners, the plug-in acquisition module 520 may be specifically configured to: according to the device information, determine whether the SDK plug-in corresponding to the manufacturer of the device currently exists locally; if the SDK plug-in corresponding to the manufacturer does not currently exist locally, then Download the SDK plug-in corresponding to the manufacturer.
进一步的,插件获取模块520还可以具体用于:如果本地当前存在所述厂商对应的SDK插件,则从本地获取当前存在的所述SDK插件。Further, the plug-in obtaining module 520 may also be specifically configured to: if the SDK plug-in corresponding to the manufacturer currently exists locally, obtain the currently existing SDK plug-in locally.
作为一种实施方式,请参阅图16,界面显示模块530可以包括:快应用确定单元 531、界面调用单元532以及插件加载单元533。其中,快应用确定单元531用于确定与所述设备对应的快应用;界面调用单元532用于调起并显示所述快应用的配网界面;插件加载单元533用于将所述SDK插件进行加载,以及将所述SDK插件对应的ENV插件进行加载,所述ENV插件用于调用所述SDK插件。As an implementation manner, referring to FIG. 16, the interface display module 530 may include: a quick application determining unit 531, an interface calling unit 532, and a plug-in loading unit 533. Wherein, the quick application determining unit 531 is used to determine the quick application corresponding to the device; the interface calling unit 532 is used to call up and display the network distribution interface of the quick application; the plug-in loading unit 533 is used to execute the SDK plug-in Loading, and loading the ENV plug-in corresponding to the SDK plug-in, where the ENV plug-in is used to call the SDK plug-in.
进一步的,所述设备信息包括厂商信息、类型信息以及型号信息中的至少一种。快应用确定单元531可以具体用于:根据所述厂商信息、类型信息以及型号信息中的至少一种,确定与所述设备对应的快应用标识;根据所述快应用标识,确认与所述快应用标识对应的快应用。Further, the device information includes at least one of manufacturer information, type information, and model information. The quick application determining unit 531 may be specifically configured to: determine the quick application identifier corresponding to the device according to at least one of the manufacturer information, type information, and model information; The fast application corresponding to the application identifier.
进一步的,界面调用单元532可以具体用于:获取所述快应用的配网界面对应的界面链接;通过快应用引擎访问所述界面链接,并将所述配网界面进行显示。Further, the interface invoking unit 532 may be specifically configured to: obtain the interface link corresponding to the network distribution interface of the quick application; access the interface link through the quick application engine, and display the network distribution interface.
作为另一种实施方式,请参阅图17,界面显示模块530可以包括插件确定单元534、界面调用单元532以及插件加载单元533。其中,插件确定单元534用于确定与所述设备对应的配网界面的界面插件;界面调用单元532用于调用所述界面插件,并将所述配网界面进行显示;插件加载单元533用于将所述SDK插件进行加载,以及将所述SDK插件对应的ENV插件进行加载,所述ENV插件用于调用所述SDK插件。As another implementation manner, referring to FIG. 17, the interface display module 530 may include a plug-in determining unit 534, an interface calling unit 532, and a plug-in loading unit 533. Wherein, the plug-in determining unit 534 is used to determine the interface plug-in of the network distribution interface corresponding to the device; the interface calling unit 532 is used to call the interface plug-in and display the network distribution interface; the plug-in loading unit 533 is used to The SDK plug-in is loaded, and the ENV plug-in corresponding to the SDK plug-in is loaded, and the ENV plug-in is used to call the SDK plug-in.
在一些实施方式中,插件加载单元533将所述SDK插件对应的ENV插件进行加载,可以包括:获取所述SDK插件的接口规范版本;获取与所述接口规范版本对应的ENV插件,并将所述ENV插件进行记载。In some embodiments, the plug-in loading unit 533 loads the ENV plug-in corresponding to the SDK plug-in, which may include: obtaining the interface specification version of the SDK plug-in; obtaining the ENV plug-in corresponding to the interface specification version, and adding all The ENV plug-in is described.
在一些实施方式中,插件加载单元533将所述SDK插件进行加载,包括:从所述SDK插件中分离目标文件并将所述SDK插件进行加载。In some embodiments, the plug-in loading unit 533 loading the SDK plug-in includes: separating the target file from the SDK plug-in and loading the SDK plug-in.
进一步的,插件加载单元533从所述SDK插件中分离目标文件并将所述SDK插件进行加载,包括:从所述SDK插件中分离目标文件,判断所述目标文件是否完整;如果所述目标文件完整,则将所述SDK插件进行加载。Further, the plug-in loading unit 533 separates the target file from the SDK plug-in and loads the SDK plug-in, including: separating the target file from the SDK plug-in, judging whether the target file is complete; if the target file If complete, load the SDK plug-in.
在一些实施方式中,配网执行模块540可以具体用于:根据于所述配网界面的配网操作,获取网络信息,所述网络信息用于所述设备连接至网络;建立与所述设备的网络连接,将所述网络信息发送至所述设备;当接收到所述设备返回的第一指示信息时,利用所述SDK插件将用户账号信息以及所述设备信息发送至服务器,所述第一指示信息用于表征所述设备已连接至所述网络,所述用户账号信息以及所述设备信息用于指示所述服务器建立所述用户账号信息与所述设备的对应关系。In some embodiments, the network distribution execution module 540 may be specifically configured to: obtain network information according to the network distribution operation on the network distribution interface, and the network information is used for the device to connect to the network; When receiving the first instruction information returned by the device, using the SDK plug-in to send the user account information and the device information to the server, the first An indication information is used to characterize that the device is connected to the network, and the user account information and the device information are used to instruct the server to establish a correspondence between the user account information and the device.
进一步的,配网执行模块540建立与所述设备的网络连接,包括:输出设定提示信息,所述设定提示信息用于提示用户开启所述设备的配网模式;在获取到第二指示信息时,建立与所述设备的网络连接,所述第二指示信息用于指示所述设备的配网模式处于开启状态。Further, the network distribution execution module 540 establishes a network connection with the device, including: outputting setting prompt information, the setting prompt information is used to prompt the user to turn on the network distribution mode of the device; after obtaining the second instruction Information, establish a network connection with the device, and the second indication information is used to indicate that the network distribution mode of the device is in an on state.
在一些实施方式中,该设备配网装置500还可以包括控制界面显示模块以及指令发送模块。控制界面显示模块用于调起并显示与所述设备对应的控制界面;指令发送模块用于根据所述SDK插件以及于所述控制界面的控制操作,发送第一指令至服务器,所述第一指令用于指示所述服务器发送控制指令至所述设备。In some embodiments, the equipment network distribution apparatus 500 may further include a control interface display module and an instruction sending module. The control interface display module is used to call up and display the control interface corresponding to the device; the instruction sending module is used to send a first instruction to the server according to the SDK plug-in and the control operation on the control interface. The instruction is used to instruct the server to send a control instruction to the device.
在一些实施方式中,该设备配网装置500还可以包括第一场景获取模块以及第一场景推送模块。第一场景获取模块用于基于所述设备信息,获取包括所述设备的目标场景;第一场景推送模块用于将所述目标场景进行推送。In some embodiments, the device network distribution apparatus 500 may further include a first scene acquisition module and a first scene push module. The first scene acquisition module is used to acquire the target scene including the device based on the device information; the first scene push module is used to push the target scene.
在一些实施方式中,该设备配网装置500还可以包括第二场景获取模块以及第二场景推送模块。第二场景获取模块用于获取其他设备分享的参考场景;第二场景推送模块用于当所述参考场景包括所述设备时,将所述参考场景作为目标场景,并将所述目标场景进行推送。In some embodiments, the device network distribution apparatus 500 may further include a second scene acquisition module and a second scene push module. The second scene acquisition module is used to acquire reference scenes shared by other devices; the second scene push module is used to, when the reference scene includes the device, use the reference scene as a target scene and push the target scene .
进一步的,该设备配网装置500还可以包括设备获取模块以及设备推送模块。设备获取模块用于基于对所述目标场景的确定指令,从所述目标场景包括的所有设备中, 获取当前未入网的目标设备;设备推送模块用于将所述目标设备进行推送。Further, the device network distribution apparatus 500 may also include a device acquisition module and a device push module. The device acquisition module is used to obtain target devices that are not currently connected to the network from all devices included in the target scene based on the determination instruction for the target scene; the device push module is used to push the target device.
在一些实施方式中,信息获取模块510可以具体用于:获取包含所述设备的标识的标识图像;识别所述标识图像,得到所述设备的设备信息。In some implementation manners, the information acquisition module 510 may be specifically configured to: acquire an identification image containing the identification of the device; identify the identification image to obtain the device information of the device.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and conciseness of the description, the specific working process of the device and module described above can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。In the several embodiments provided in this application, the coupling between the modules may be electrical, mechanical or other forms of coupling.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, 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.
综上所述,本申请提供的方案,通过获取待配网的设备的设备信息,根据设备信息,获取设备的厂商对应的软件开发工具包SDK插件,调起并显示与该设备对应的配网界面,最后根据SDK插件以及配网界面中的配网操作,对该设备进行配网,从而可以利用同一应用程序对不同厂商的设备进行配网,增加了配网过程的便利性,提升了用户体验。In summary, the solution provided by this application obtains the device information of the device to be configured with the network, and according to the device information, obtains the SDK plug-in corresponding to the device manufacturer's software development kit, and tunes up and displays the distribution network corresponding to the device. Interface. Finally, according to the SDK plug-in and the network configuration operation in the network configuration interface, the device is configured to network, so that the same application can be used to configure the network of devices from different manufacturers, which increases the convenience of the network configuration process and improves users Experience.
请参考图18,其示出了本申请实施例提供的一种电子设备的结构框图。该电子设备100可以是智能手机、平板电脑、电子书等能够运行应用程序的电子设备。本申请中的电子设备100可以包括一个或多个如下部件:处理器110、存储器120以及一个或多个应用程序,其中一个或多个应用程序可以被存储在存储器120中并被配置为由一个或多个处理器110执行,一个或多个程序配置用于执行如前述方法实施例所描述的方法。Please refer to FIG. 18, which shows a structural block diagram of an electronic device provided by an embodiment of the present application. The electronic device 100 may be an electronic device capable of running application programs, such as a smart phone, a tablet computer, or an e-book. The electronic device 100 in this application may include one or more of the following components: a processor 110, a memory 120, and one or more application programs, where one or more application programs may be stored in the memory 120 and configured to be composed of one Or multiple processors 110 execute, and one or more programs are configured to execute the method described in the foregoing method embodiment.
处理器110可以包括一个或者多个处理核。处理器110利用各种接口和线路连接整个电子设备100内的各个部分,通过运行或执行存储在存储器120内的指令、程序、代码集或指令集,以及调用存储在存储器120内的数据,执行电子设备100的各种功能和处理数据。可选地,处理器110可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器110可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器110中,单独通过一块通信芯片进行实现。The processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes by running or executing instructions, programs, code sets, or instruction sets stored in the memory 120, and calling data stored in the memory 120. Various functions and processing data of the electronic device 100. Optionally, the processor 110 may adopt at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). A kind of hardware form to realize. The processor 110 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is used for rendering and drawing of display content; the modem is used for processing wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented by a communication chip alone.
存储器120可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器120可用于存储指令、程序、代码、代码集或指令集。存储器120可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储终端100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。The memory 120 may include random access memory (RAM) or read-only memory (Read-Only Memory). The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, where the program storage area may store instructions for implementing the operating system and instructions for implementing at least one function (such as touch function, sound playback function, image playback function, etc.) , Instructions for implementing the following method embodiments, etc. The data storage area can also store data (such as phone book, audio and video data, chat record data) created by the terminal 100 during use.
请参考图19,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质800中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to FIG. 19, which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. The computer-readable medium 800 stores program code, and the program code can be invoked by a processor to execute the method described in the foregoing method embodiment.
计算机可读存储介质800可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质800包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质800具有执行上述方法中的任何方法步骤的程序代码810的存储空 间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码810可以例如以适当形式进行压缩。The computer-readable storage medium 800 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 800 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 800 has storage space for the program code 810 for executing any method steps in the above-mentioned methods. These program codes can be read out from or written into one or more computer program products. The program code 810 may be compressed in a suitable form, for example.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the application, not to limit them; although the application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions recorded in the foregoing embodiments are modified, or some of the technical features are equivalently replaced; these modifications or replacements do not drive the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (20)

  1. 一种设备配网方法,其特征在于,所述方法包括:A device network distribution method, characterized in that, the method includes:
    获取设备的设备信息;Obtain device information of the device;
    根据所述设备信息,获取所述设备的厂商对应的软件开发工具包SDK插件;Acquiring, according to the device information, a software development kit SDK plug-in corresponding to the manufacturer of the device;
    调起并显示与所述设备对应的配网界面,所述配网界面用于引导用户进行配网操作;Bring up and display the network distribution interface corresponding to the device, where the network distribution interface is used to guide the user to perform network distribution operations;
    根据所述SDK插件以及所述配网界面中的配网操作,对所述设备进行配网。Perform network configuration on the device according to the SDK plug-in and the network configuration operation in the network configuration interface.
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述设备信息,获取所述设备的厂商对应的软件开发工具包SDK插件,包括:The method according to claim 1, wherein the obtaining a software development kit SDK plug-in corresponding to the manufacturer of the device according to the device information comprises:
    根据所述设备信息,判断本地当前是否存在所述设备的厂商对应的SDK插件;According to the device information, determine whether the SDK plug-in corresponding to the manufacturer of the device currently exists locally;
    如果本地当前不存在所述厂商对应的SDK插件,则下载所述厂商对应的SDK插件。If the SDK plug-in corresponding to the manufacturer does not currently exist locally, the SDK plug-in corresponding to the manufacturer is downloaded.
  3. 根据权利要求2所述的方法,其特征在于,所述获取所述设备的厂商对应的软件开发工具包SDK插件,还包括:3. The method according to claim 2, wherein said acquiring a software development kit SDK plug-in corresponding to the manufacturer of the device further comprises:
    如果本地当前存在所述厂商对应的SDK插件,则从本地获取当前存在的所述SDK插件。If the SDK plug-in corresponding to the manufacturer currently exists locally, the currently existing SDK plug-in is obtained locally.
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述调起并显示与所述设备对应的配网界面,包括:The method according to any one of claims 1 to 3, wherein the calling up and displaying the distribution network interface corresponding to the device comprises:
    确定与所述设备对应的快应用;Determine the fast application corresponding to the device;
    调起并显示所述快应用的配网界面;Bring up and display the network distribution interface of the quick application;
    将所述SDK插件进行加载,以及将所述SDK插件对应的ENV插件进行加载,所述ENV插件用于调用所述SDK插件。The SDK plug-in is loaded, and the ENV plug-in corresponding to the SDK plug-in is loaded, and the ENV plug-in is used to call the SDK plug-in.
  5. 根据权利要求4所述的方法,其特征在于,所述设备信息包括厂商信息、类型信息以及型号信息中的至少一种,所述确定与所述设备对应的快应用,包括:The method according to claim 4, wherein the device information includes at least one of manufacturer information, type information, and model information, and the determining the quick application corresponding to the device includes:
    根据所述厂商信息、类型信息以及型号信息中的至少一种,确定与所述设备对应的快应用标识;Determine a quick app identifier corresponding to the device according to at least one of the manufacturer information, type information, and model information;
    根据所述快应用标识,确认与所述快应用标识对应的快应用。According to the quick application identification, confirm the quick application corresponding to the quick application identification.
  6. 根据权利要求4所述的方法,其特征在于,所述调起并显示所述快应用的配网界面,包括:The method according to claim 4, wherein said calling up and displaying the distribution network interface of said quick application comprises:
    获取所述快应用的配网界面对应的界面链接;Acquiring the interface link corresponding to the network distribution interface of the quick application;
    通过快应用引擎访问所述界面链接,并将所述配网界面进行显示。Access the interface link through the quick application engine, and display the network distribution interface.
  7. 根据权利要求1-3任一项所述的方法,其特征在于,所述调起并显示与所述设备对应的配网界面,包括:The method according to any one of claims 1 to 3, wherein the calling up and displaying the distribution network interface corresponding to the device comprises:
    确定与所述设备对应的配网界面的界面插件;Determine the interface plug-in of the distribution network interface corresponding to the device;
    调用所述界面插件,并将所述配网界面进行显示;Call the interface plug-in and display the network distribution interface;
    将所述SDK插件进行加载,以及将所述SDK插件对应的ENV插件进行加载,所述ENV插件用于调用所述SDK插件。The SDK plug-in is loaded, and the ENV plug-in corresponding to the SDK plug-in is loaded, and the ENV plug-in is used to call the SDK plug-in.
  8. 根据权利要求4或7所述的方法,其特征在于,所述将所述SDK插件对应的ENV插件进行加载,包括:The method according to claim 4 or 7, wherein the loading the ENV plug-in corresponding to the SDK plug-in comprises:
    获取所述SDK插件的接口规范版本;Obtain the interface specification version of the SDK plug-in;
    获取与所述接口规范版本对应的ENV插件,并将所述ENV插件进行记载。Obtain the ENV plug-in corresponding to the interface specification version, and record the ENV plug-in.
  9. 根据权利要求4或7所述的方法,其特征在于,所述将所述SDK插件进行加载,包括:The method according to claim 4 or 7, wherein the loading the SDK plug-in comprises:
    从所述SDK插件中分离目标文件并将所述SDK插件进行加载。Separate the target file from the SDK plug-in and load the SDK plug-in.
  10. 根据权利要求9所述的方法,其特征在于,所述从所述SDK插件中分离目标文件并将所述SDK插件进行加载,包括:The method according to claim 9, wherein the separating the target file from the SDK plug-in and loading the SDK plug-in comprises:
    从所述SDK插件中分离目标文件,判断所述目标文件是否完整;Separate the target file from the SDK plug-in, and determine whether the target file is complete;
    如果所述目标文件完整,则将所述SDK插件进行加载。If the target file is complete, the SDK plug-in is loaded.
  11. 根据权利要求1-10任一项所述的方法,其特征在于,所述根据所述SDK插件以及所述配网界面中的配网操作,对所述设备进行配网,包括:The method according to any one of claims 1-10, wherein the performing network configuration on the device according to the SDK plug-in and the network configuration operation in the network distribution interface comprises:
    根据于所述配网界面的配网操作,获取网络信息,所述网络信息用于所述设备连接至网络;Obtaining network information according to the network distribution operation on the network distribution interface, where the network information is used for connecting the device to the network;
    建立与所述设备的网络连接,将所述网络信息发送至所述设备;Establishing a network connection with the device, and sending the network information to the device;
    当接收到所述设备返回的第一指示信息时,利用所述SDK插件将用户账号信息以及所述设备信息发送至服务器,所述第一指示信息用于表征所述设备已连接至所述网络,所述用户账号信息以及所述设备信息用于指示所述服务器建立所述用户账号信息与所述设备的对应关系。When the first instruction information returned by the device is received, the SDK plug-in is used to send the user account information and the device information to the server, and the first instruction information is used to indicate that the device is connected to the network The user account information and the device information are used to instruct the server to establish the correspondence between the user account information and the device.
  12. 根据权利要求11所述的方法,其特征在于,所述建立与所述设备的网络连接,包括:The method according to claim 11, wherein the establishing a network connection with the device comprises:
    输出设定提示信息,所述设定提示信息用于提示用户开启所述设备的配网模式;Output setting prompt information, where the setting prompt information is used to prompt the user to turn on the network distribution mode of the device;
    在获取到第二指示信息时,建立与所述设备的网络连接,所述第二指示信息用于指示所述设备的配网模式处于开启状态。When the second indication information is obtained, a network connection with the device is established, and the second indication information is used to indicate that the network distribution mode of the device is in an on state.
  13. 根据权利要求1-12任一项所述的方法,其特征在于,在所述根据所述SDK插件以及所述配网界面中的配网操作,对所述设备进行配网之后,所述方法还包括:The method according to any one of claims 1-12, characterized in that, after the network is configured for the device according to the SDK plug-in and the network distribution operation in the network distribution interface, the method Also includes:
    调起并显示与所述设备对应的控制界面;Bring up and display the control interface corresponding to the device;
    根据所述SDK插件以及于所述控制界面的控制操作,发送第一指令至服务器,所述第一指令用于指示所述服务器发送控制指令至所述设备。According to the SDK plug-in and the control operation on the control interface, a first instruction is sent to the server, where the first instruction is used to instruct the server to send a control instruction to the device.
  14. 根据权利要求1-12任一项所述的方法,其特征在于,在所述根据所述SDK插件以及所述配网界面中的配网操作,对所述设备进行配网之后,所述方法还包括:The method according to any one of claims 1-12, characterized in that, after the network is configured for the device according to the SDK plug-in and the network distribution operation in the network distribution interface, the method Also includes:
    基于所述设备信息,获取包括所述设备的目标场景;Based on the device information, obtain a target scene including the device;
    将所述目标场景进行推送。Push the target scene.
  15. 根据权利要求1-12任一项所述的方法,其特征在于,在所述根据所述SDK插件以及所述配网界面中的配网操作,对所述设备进行配网之后,所述方法还包括:The method according to any one of claims 1-12, characterized in that, after the network is configured for the device according to the SDK plug-in and the network distribution operation in the network distribution interface, the method Also includes:
    获取其他设备分享的参考场景;Obtain reference scenes shared by other devices;
    当所述参考场景包括所述设备时,将所述参考场景作为目标场景,并将所述目标场景进行推送。When the reference scene includes the device, the reference scene is used as the target scene, and the target scene is pushed.
  16. 根据权利要求14或15所述的方法,其特征在于,在所述将所述目标场景进行推送之后,所述方法还包括:The method according to claim 14 or 15, characterized in that, after the pushing the target scene, the method further comprises:
    基于对所述目标场景的确定指令,从所述目标场景包括的所有设备中,获取当前未入网的目标设备;Based on the instruction for determining the target scene, obtain target devices that are not currently connected to the network from all devices included in the target scene;
    将所述目标设备进行推送。Push the target device.
  17. 根据权利要求1-16任一项所述的方法,其特征在于,所述获取设备的设备信息,包括:The method according to any one of claims 1-16, wherein the acquiring device information of a device comprises:
    获取包含所述设备的标识的标识图像;Acquiring an identification image containing the identification of the device;
    识别所述标识图像,得到所述设备的设备信息。The identification image is recognized, and the device information of the device is obtained.
  18. 一种设备配网装置,其特征在于,所述装置包括:信息获取模块、插件获取模块、界面显示模块以及配网执行模块,其中,An equipment network distribution device, characterized in that the device includes: an information acquisition module, a plug-in acquisition module, an interface display module, and a network distribution execution module, wherein:
    所述信息获取模块用于获取设备的设备信息;The information acquisition module is used to acquire device information of the device;
    所述插件获取模块用于根据所述设备信息,获取所述设备的厂商对应的软件开发工具包SDK插件;The plug-in obtaining module is used to obtain a software development kit SDK plug-in corresponding to the manufacturer of the device according to the device information;
    所述界面显示模块用于调起并显示与所述设备对应的配网界面,所述配网界面用于引导用户进行配网操作;The interface display module is used to call up and display a network distribution interface corresponding to the device, and the network distribution interface is used to guide a user to perform network distribution operations;
    所述配网执行模块用于根据所述SDK插件以及所述配网界面中的配网操作,对所述设备进行配网。The network distribution execution module is used to perform network distribution on the device according to the SDK plug-in and the network distribution operation in the network distribution interface.
  19. 一种电子设备,其特征在于,包括:An electronic device, characterized in that it comprises:
    一个或多个处理器;One or more processors;
    存储器;Memory
    一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行如权利要求1-17任一项所述的方法。One or more application programs, wherein the one or more application 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 such as The method of any one of claims 1-17.
  20. 一种计算机可读取存储介质,其特征在于,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行如权利要求1-17任一项所述的方法。A computer readable storage medium, wherein the computer readable storage medium stores program code, and the program code can be called by a processor to execute the method according to any one of claims 1-17 .
PCT/CN2019/085533 2019-05-05 2019-05-05 Device network configuration method and apparatus, electronic device and storage medium WO2020223854A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2019/085533 WO2020223854A1 (en) 2019-05-05 2019-05-05 Device network configuration method and apparatus, electronic device and storage medium
CN201980091641.3A CN113412469A (en) 2019-05-05 2019-05-05 Equipment network distribution method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/085533 WO2020223854A1 (en) 2019-05-05 2019-05-05 Device network configuration method and apparatus, electronic device and storage medium

Publications (1)

Publication Number Publication Date
WO2020223854A1 true WO2020223854A1 (en) 2020-11-12

Family

ID=73050965

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/085533 WO2020223854A1 (en) 2019-05-05 2019-05-05 Device network configuration method and apparatus, electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN113412469A (en)
WO (1) WO2020223854A1 (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112667481A (en) * 2020-12-31 2021-04-16 中国建设银行股份有限公司 Data collection kit, method and device
CN113055867A (en) * 2021-03-08 2021-06-29 Oppo广东移动通信有限公司 Method and device for auxiliary network distribution of terminal and electronic equipment
CN113127099A (en) * 2021-05-12 2021-07-16 北京奇艺世纪科技有限公司 Server configuration method, device, equipment and storage medium
CN113691402A (en) * 2021-08-20 2021-11-23 珠海格力电器股份有限公司 Network distribution method and device of intelligent equipment
CN113938391A (en) * 2021-10-12 2022-01-14 北京自如信息科技有限公司 Network distribution method and system for gateway equipment and electronic equipment
CN114007129A (en) * 2021-10-29 2022-02-01 海信视像科技股份有限公司 Display device and network distribution method
CN114047974A (en) * 2021-11-15 2022-02-15 瀚云科技有限公司 Internet of things equipment configuration method and device, configuration terminal and storage medium
WO2022052758A1 (en) * 2020-09-10 2022-03-17 华为技术有限公司 Network configuration method and device
CN114268653A (en) * 2021-12-22 2022-04-01 中国建设银行股份有限公司 Equipment calling method, device, equipment, medium and product
CN114338379A (en) * 2021-12-28 2022-04-12 上海黑眸智能科技有限责任公司 Network distribution method and system for SDK client, SDK client and APP client
CN114363990A (en) * 2021-12-28 2022-04-15 上海黑眸智能科技有限责任公司 Equipment end network distribution method and system compatible with multiple APPs, equipment end and APP end
CN114363122A (en) * 2021-12-31 2022-04-15 科大讯飞股份有限公司 Gateway device and device access system
CN114698064A (en) * 2020-12-25 2022-07-01 深圳Tcl新技术有限公司 Bluetooth network distribution method, device, system and storage medium
WO2022151768A1 (en) * 2021-01-14 2022-07-21 珠海格力电器股份有限公司 Network configuration method and apparatus, computer device, and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106664226A (en) * 2014-05-30 2017-05-10 苹果公司 Controller networks for an accessory management system
CN107851046A (en) * 2015-07-31 2018-03-27 苹果公司 The commission that trigger performs in automated environment
CN108958074A (en) * 2018-06-20 2018-12-07 维沃移动通信有限公司 A kind of smart machine control method and mobile terminal
CN109284144A (en) * 2018-08-27 2019-01-29 维沃移动通信有限公司 A kind of fast application processing method and mobile terminal
US20190094827A1 (en) * 2017-09-27 2019-03-28 Johnson Controls Technology Company Building management system with integration of data into smart entities
CN109921943A (en) * 2019-03-19 2019-06-21 维沃移动通信有限公司 One kind matching network method and terminal

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104796444A (en) * 2014-01-21 2015-07-22 广州海图克计算机技术有限公司 Digital household scene control management system and method
CN105739322A (en) * 2016-05-05 2016-07-06 杭州古北电子科技有限公司 Intelligent engine system and intelligent household system
CN106406112B (en) * 2016-09-30 2019-05-28 佛山市顺德区美的电热电器制造有限公司 Intelligent appliance distribution binding method and system, intelligent terminal
CN107018049A (en) * 2017-03-09 2017-08-04 广东美的制冷设备有限公司 Home appliance distribution methods, devices and systems
CN107367949B (en) * 2017-06-14 2018-12-07 珠海格力电器股份有限公司 Obtain the methods, devices and systems of product identification
CN107171910A (en) * 2017-06-28 2017-09-15 广东美的制冷设备有限公司 Intelligent home device and its with network method, router, intelligent domestic system
CN108183843A (en) * 2017-12-28 2018-06-19 惠州Tcl家电集团有限公司 Sharing method, server and the computer readable storage medium of intelligent scene pattern
CN108768803A (en) * 2018-05-28 2018-11-06 北京小米移动软件有限公司 Add the method, apparatus and storage medium of smart machine

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106664226A (en) * 2014-05-30 2017-05-10 苹果公司 Controller networks for an accessory management system
CN107851046A (en) * 2015-07-31 2018-03-27 苹果公司 The commission that trigger performs in automated environment
US20190094827A1 (en) * 2017-09-27 2019-03-28 Johnson Controls Technology Company Building management system with integration of data into smart entities
CN108958074A (en) * 2018-06-20 2018-12-07 维沃移动通信有限公司 A kind of smart machine control method and mobile terminal
CN109284144A (en) * 2018-08-27 2019-01-29 维沃移动通信有限公司 A kind of fast application processing method and mobile terminal
CN109921943A (en) * 2019-03-19 2019-06-21 维沃移动通信有限公司 One kind matching network method and terminal

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022052758A1 (en) * 2020-09-10 2022-03-17 华为技术有限公司 Network configuration method and device
US11991040B2 (en) 2020-09-10 2024-05-21 Huawei Technologies Co., Ltd. Network configuration method and device
CN114698064A (en) * 2020-12-25 2022-07-01 深圳Tcl新技术有限公司 Bluetooth network distribution method, device, system and storage medium
CN112667481A (en) * 2020-12-31 2021-04-16 中国建设银行股份有限公司 Data collection kit, method and device
CN112667481B (en) * 2020-12-31 2024-05-10 中国建设银行股份有限公司 Data acquisition tool kit, method and equipment
WO2022151768A1 (en) * 2021-01-14 2022-07-21 珠海格力电器股份有限公司 Network configuration method and apparatus, computer device, and storage medium
CN113055867A (en) * 2021-03-08 2021-06-29 Oppo广东移动通信有限公司 Method and device for auxiliary network distribution of terminal and electronic equipment
CN113127099A (en) * 2021-05-12 2021-07-16 北京奇艺世纪科技有限公司 Server configuration method, device, equipment and storage medium
CN113127099B (en) * 2021-05-12 2024-04-12 北京奇艺世纪科技有限公司 Server configuration method, device, equipment and storage medium
CN113691402A (en) * 2021-08-20 2021-11-23 珠海格力电器股份有限公司 Network distribution method and device of intelligent equipment
CN113938391A (en) * 2021-10-12 2022-01-14 北京自如信息科技有限公司 Network distribution method and system for gateway equipment and electronic equipment
CN114007129A (en) * 2021-10-29 2022-02-01 海信视像科技股份有限公司 Display device and network distribution method
CN114047974A (en) * 2021-11-15 2022-02-15 瀚云科技有限公司 Internet of things equipment configuration method and device, configuration terminal and storage medium
CN114047974B (en) * 2021-11-15 2023-10-31 瀚云科技有限公司 Internet of things equipment configuration method and device, configuration terminal and storage medium
CN114268653A (en) * 2021-12-22 2022-04-01 中国建设银行股份有限公司 Equipment calling method, device, equipment, medium and product
CN114268653B (en) * 2021-12-22 2024-04-09 中国建设银行股份有限公司 Equipment calling method, device, equipment, medium and product
CN114363990A (en) * 2021-12-28 2022-04-15 上海黑眸智能科技有限责任公司 Equipment end network distribution method and system compatible with multiple APPs, equipment end and APP end
CN114363990B (en) * 2021-12-28 2024-01-12 上海黑眸智能科技有限责任公司 Equipment end network distribution method and system compatible with multiple APP, equipment end and APP end
CN114338379B (en) * 2021-12-28 2023-11-03 上海黑眸智能科技有限责任公司 SDK client network distribution method, system, SDK client and APP client
CN114338379A (en) * 2021-12-28 2022-04-12 上海黑眸智能科技有限责任公司 Network distribution method and system for SDK client, SDK client and APP client
CN114363122B (en) * 2021-12-31 2024-02-13 科大讯飞股份有限公司 Gateway device and device access system
CN114363122A (en) * 2021-12-31 2022-04-15 科大讯飞股份有限公司 Gateway device and device access system

Also Published As

Publication number Publication date
CN113412469A (en) 2021-09-17

Similar Documents

Publication Publication Date Title
WO2020223854A1 (en) Device network configuration method and apparatus, electronic device and storage medium
US11019130B2 (en) Method and apparatus for remotely controlling home device in home network system
CN105471686B (en) Terminal control method, device and system
US10264424B2 (en) Information processing method and central control device
WO2020168569A1 (en) Intelligent device network distribution method, apparatus, electronic device and storage medium
WO2020206693A1 (en) Smart home scheduling method, apparatus and system, server and storage medium
EP3050253B1 (en) Method and apparatus for controlling devices for smart home service
US11782590B2 (en) Scene-operation method, electronic device, and non-transitory computer readable medium
CN113348725B (en) Device operation method, device, gateway, electronic device and computer readable medium
WO2016058246A1 (en) Smart home gateway and smart home system
US20170034468A1 (en) User terminal apparatus and controlling method thereof
EP3312730A1 (en) Control terminal device, audio system, and audio system control method
WO2020168568A1 (en) Data processing method and apparatus, electronic device and readable storage medium
CN109617963B (en) Equipment control method and device and Internet of things system
US20220052866A1 (en) Smart home system control method and apparatus, electronic device
CN112751699B (en) OTA upgrading and upgrading management method, equipment, network and storage medium
WO2020228033A1 (en) Sdk plug-in loading method and apparatus, and mobile terminal and storage medium
CN110687820B (en) Control method and device of intelligent household equipment, terminal equipment and storage medium
WO2020228013A1 (en) Account association method, device, system, server, and storage medium
CN113572799A (en) Method and device for accessing equipment to control platform and server
CN111372222A (en) Device connection method and system, corresponding terminal device and server
CN113552808A (en) Network distribution method for electronic home equipment, electronic home equipment and mobile terminal
CN113573254A (en) Networking control method and device for smart home, control equipment and storage medium
CN109709880B (en) Control method and control system of projector
CN113132191A (en) Voice control method of intelligent device, intelligent device and storage medium

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: 19928263

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: 19928263

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 19928263

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 16.05.2022)

122 Ep: pct application non-entry in european phase

Ref document number: 19928263

Country of ref document: EP

Kind code of ref document: A1