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 PDFInfo
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program 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
Description
Claims (20)
- 一种设备配网方法,其特征在于,所述方法包括: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.
- 根据权利要求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.
- 根据权利要求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.
- 根据权利要求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.
- 根据权利要求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.
- 根据权利要求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.
- 根据权利要求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.
- 根据权利要求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.
- 根据权利要求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.
- 根据权利要求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.
- 根据权利要求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.
- 根据权利要求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.
- 根据权利要求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.
- 根据权利要求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.
- 根据权利要求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.
- 根据权利要求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.
- 根据权利要求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.
- 一种设备配网装置,其特征在于,所述装置包括:信息获取模块、插件获取模块、界面显示模块以及配网执行模块,其中,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.
- 一种电子设备,其特征在于,包括: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.
- 一种计算机可读取存储介质,其特征在于,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行如权利要求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 .
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)
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)
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)
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 |
-
2019
- 2019-05-05 CN CN201980091641.3A patent/CN113412469A/en active Pending
- 2019-05-05 WO PCT/CN2019/085533 patent/WO2020223854A1/en active Application Filing
Patent Citations (6)
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)
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 |