CN113412469A - Equipment network distribution method and device, electronic equipment and storage medium - Google Patents

Equipment network distribution method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113412469A
CN113412469A CN201980091641.3A CN201980091641A CN113412469A CN 113412469 A CN113412469 A CN 113412469A CN 201980091641 A CN201980091641 A CN 201980091641A CN 113412469 A CN113412469 A CN 113412469A
Authority
CN
China
Prior art keywords
equipment
plug
information
network
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201980091641.3A
Other languages
Chinese (zh)
Inventor
朱洪波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai Technology Co Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd, Shenzhen Huantai Technology Co Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Publication of CN113412469A publication Critical patent/CN113412469A/en
Pending legal-status Critical Current

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

Abstract

The application discloses a method and a device for equipment network distribution, electronic equipment and a storage medium, wherein the method for equipment network distribution comprises the following steps: acquiring equipment information of equipment; acquiring a Software Development Kit (SDK) plug-in corresponding to the manufacturer of the equipment according to the equipment information; a distribution network interface corresponding to the equipment is called up and displayed, and the distribution network interface is used for guiding a user to carry out distribution network operation; and carrying out network distribution on the equipment according to the SDK plug-in and the network distribution operation on the network distribution interface. The method can improve the convenience of equipment distribution network.

Description

Equipment network distribution method and device, electronic equipment and storage medium Technical Field
The present application relates to the field of smart home technologies, and in particular, to a method, an apparatus, an electronic device, and a storage medium.
Background
With the continuous development of science and technology and the continuous improvement of people's standard of living, intelligent house gradually gets into people's the field of vision. Currently, when an intelligent device (for example, an intelligent air conditioner, an intelligent television, etc.) in an intelligent home system is used, a network needs to be accessed, so that an electronic device such as a mobile terminal can control the intelligent device. Along with the rapid popularization of intelligent equipment, more and more manufacturers produce the intelligent equipment, and when the intelligent equipment of different manufacturers is in a distribution network, the application program corresponding to the manufacturer needs to be used for the distribution network, which is very inconvenient.
Disclosure of Invention
In view of the foregoing problems, the present application provides a device network distribution method, apparatus, electronic device, and storage medium to improve the foregoing problems.
In a first aspect, an embodiment of the present application provides a device network distribution method, where the method includes: acquiring equipment information of equipment; acquiring a Software Development Kit (SDK) plug-in corresponding to the manufacturer of the equipment according to the equipment information; a distribution network interface corresponding to the equipment is called up and displayed, and the distribution network interface is used for guiding a user to carry out distribution network operation; and carrying out network distribution on the equipment according to the SDK plug-in and the network distribution operation in the network distribution interface.
In a second aspect, an embodiment of the present application provides an apparatus network distribution device, where the apparatus includes: the device comprises an information acquisition module, a plug-in acquisition module, an interface display module and a distribution network execution module, wherein the information acquisition module is used for acquiring the equipment information of the equipment; the plug-in acquisition module is used for acquiring a Software Development Kit (SDK) plug-in corresponding to a manufacturer of the equipment according to the equipment information; the interface display module is used for calling and displaying a distribution network interface corresponding to the equipment, and the distribution network interface is used for guiding a user to perform distribution network operation; and the distribution network execution module is used for carrying out distribution network on the equipment according to the SDK plug-in and the distribution network operation in the distribution network 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 applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the device distribution network method provided by the first aspect above.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a program code is stored in the computer-readable storage medium, and the program code may be called by a processor to execute the device distribution network method provided in the first aspect.
According to the scheme, the software development kit SDK plug-in corresponding to the manufacturer of the equipment is obtained through obtaining the equipment information of the equipment to be distributed, the distribution network interface corresponding to the equipment is called and displayed, and finally, the equipment is distributed according to the SDK plug-in and the distribution network operation in the distribution network interface, so that the equipment of different manufacturers can be distributed by using the same application program, the convenience of the distribution network process is improved, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 shows an architecture diagram of an intelligent home system provided in an embodiment of the present application.
Fig. 2 shows an architecture diagram of another smart home system proposed in the embodiment of the present application;
fig. 3 is a schematic diagram illustrating a fast application engine architecture proposed in an embodiment of the present application.
Fig. 4 shows a schematic operating environment diagram of a device distribution network method according to an embodiment of the present application.
Fig. 5 shows a flowchart of a device distribution method according to an embodiment of the present application.
Fig. 6 is a schematic diagram illustrating a display effect according to an embodiment of the present application.
Fig. 7 is a schematic diagram illustrating another display effect provided according to an embodiment of the application.
Fig. 8 is a schematic diagram illustrating still another display effect provided according to an embodiment of the application.
Fig. 9 is a schematic diagram illustrating a further display effect provided according to an embodiment of the present application.
Fig. 10 is a schematic diagram illustrating a further display effect provided according to an embodiment of the present application.
Fig. 11 is a flowchart illustrating a device distribution method according to another embodiment of the present application.
Fig. 12 is a flowchart illustrating step S250 in a device network distribution method according to another embodiment of the present application.
Fig. 13 shows another flowchart of step S250 in a device network distribution method according to another embodiment of the present application.
Fig. 14 is a flowchart illustrating a method for device distribution according to another embodiment of the present application.
Fig. 15 shows a block diagram of a device-distribution network apparatus according to an embodiment of the present application.
Fig. 16 is a block diagram illustrating an interface display module in a device distribution network apparatus according to an embodiment of the application.
Fig. 17 shows another block diagram of an interface display module in a device distribution network apparatus according to an embodiment of the present application.
Fig. 18 is a block diagram of an electronic device for executing a device network distribution method according to an embodiment of the present application.
Fig. 19 is a storage unit, according to an embodiment of the present application, configured to store or carry program codes for implementing a device distribution network method according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
With the progress of the technology level, the smart home goes deep into each family, and is popular among multiple families due to the convenience brought by the smart home. The intelligent home is characterized in that a home is taken as a platform, facilities related to home life are integrated by utilizing a comprehensive wiring technology, a network communication technology, a safety precaution technology, an automatic control technology and an audio and video technology, an efficient management system of home facilities and family schedule affairs is constructed, home safety, convenience, comfortableness and artistry are improved, and an environment-friendly and energy-saving living environment is realized. The intelligent home is connected with various intelligent devices (such as an intelligent air conditioner, an intelligent lamp, an intelligent refrigerator, an intelligent washing machine and the like) in the home through the Internet of things technology, and various controls such as household appliance control, illumination control, telephone remote control, indoor and outdoor remote control, anti-theft alarm, environment monitoring, heating and ventilation control, infrared forwarding, programmable timing control and the like are provided.
In the smart home system, the smart device needs to be connected to a network, so that a user can remotely control the smart device through electronic devices such as a mobile terminal. The network access of the intelligent equipment needs the intelligent equipment to be connected to the Internet, so that the intelligent equipment and a server of a manufacturer can perform data interaction, and the server of the manufacturer can send related control instructions to the intelligent equipment to realize the remote control of the intelligent equipment. For example, the smart device may connect to a home router to access a home wireless network and communicate with a server through the router.
Referring to fig. 1, currently, an electronic device manages and controls an intelligent device, and generally, data interaction between the electronic device 100 and the intelligent device is realized by the way that the electronic device 100 establishes a wireless connection with an intelligent gateway 300, and the intelligent device 200 establishes a wireless connection with the intelligent gateway 300. In addition, the electronic device 100 and the intelligent gateway 300 are communicatively connected to the server 400, and the electronic device 100 can perform data interaction with the intelligent device through the server 400 and the intelligent gateway 300.
Referring to fig. 2, the electronic device 100 may be communicatively connected to a first cloud server 402, so as to implement data interaction with the first cloud server 402. The intelligent device 200 is in communication connection with the second cloud server 401 through the intelligent gateway 300, so that data interaction between the second cloud server and the second cloud server 401 is realized. In addition, data interaction can be performed between the first cloud server 402 and the second cloud server 401, so that the electronic device 100 can implement data interaction with the smart device 200 through the first cloud server 402, the second cloud server 404 and the smart gateway 300.
At present, intelligent devices of different manufacturers are generally controlled through different application programs, that is, the communication between the application programs of the intelligent devices of different manufacturers and servers of different manufacturers requires more application programs to be installed, thereby occupying more storage space of the electronic device.
With the popularization of fast application, mobile terminal developers more expect to realize the same functions as the client terminal through the fast application, so as to improve the development efficiency of the smart home functions and save the storage space of the mobile terminal. The quick application is a novel application form based on a terminal equipment hardware platform, does not need to be installed, is used on demand, and has native application experience (performance, system integration, interaction and the like). As shown in the schematic structural diagram of the fast application engine shown in fig. 3, the front-end design of the fast application uses and integrates the design idea of the mainstream front-end framework (Vue, reach, etc.): the application is built in a componentized mode, an MVVM design mode taking data binding as a core is adopted, the performance is improved in a V-DOM mode, and meanwhile, a concise and clear template of the class Vue is selected.
Through long-term research of the inventor, more and more manufacturers start to produce intelligent devices, and when the intelligent devices of different manufacturers are in a distribution network, the manufacturers can only use application programs corresponding to the manufacturers to carry out the distribution network because the manufacturers use special proprietary protocols. Therefore, when the intelligent devices of different manufacturers are distributed, the application programs corresponding to different application manufacturers need to be downloaded to perform distribution operation, the intelligent devices are inconvenient to be distributed, and the downloading of the application programs can occupy more storage space of the electronic devices. In view of the above problems, the inventor provides a device network distribution method, device, electronic device and storage medium provided in this embodiment of the present application, obtains an SDK plug-in corresponding to a manufacturer of a device through device information of the device, displays a network distribution interface corresponding to the device information, and distributes a network to the device according to the SDK plug-in and network distribution operations in the network distribution interface, so that the device of different manufacturers can be distributed by using the same application program, convenience in a network distribution process is increased, and user experience is improved.
An application environment of the embodiments of the present application is described below with reference to the drawings.
As shown in fig. 4, the electronic device 100 shown in fig. 4 runs a fast application and a client 110. Wherein the fast application is run on the fast application engine, and the client-provided extension interface 97 is provided in the fast application engine. And an expansion interface 96 communicating with the expansion interface 97 is provided in the client 110. And the client 110 can call Software Development Kit (SDK) plug-ins of various vendors through the extension interface. For example, vendor A's SDK plug-in 111, vendor B's SDK plug-in 112, and vendor C's SDK plug-in 113 in the graph may be invoked. In this case, the data processing command triggered in the fast application may be transmitted to the extension interface 96 in the client through the extension interface 97 provided in the fast application engine, and then the data processing command is transmitted to the SDK plug-in of each vendor.
Further, the client 110 may provide access to the fast application, that is, the fast application may be accessed by the client 110. Communication between the fast application and the client 110 may be via cross-application communication, such as using AIDL interaction. Specifically, an interface for parameter transfer may be set between the client 110 and the embedded fast application, and is used for data transfer between the client 110 and the fast application, for example, a channel interface may be defined between the fast application and the client 110, and all interface functions are implemented using one channel interface. Upon entering a fast application through the client 110, the client 110 can instruct the fast application engine to access the corresponding fast application according to the link of the fast application, thereby exposing an interface of the fast application. The fast application interface may receive the control information, and after obtaining the control information, the client 110 transmits the control information to the server of the intelligent device through the SDK, so as to manage and control the intelligent device. In addition, the fast application engine can also receive information transmitted by the client 110 and display the information required to be displayed on the related control page of the fast application.
The method for distributing the network to the devices in the embodiment of the present application is described in detail below.
Referring to fig. 5, an embodiment of the present application provides a device network distribution method, which is applicable to an electronic device, and the device network distribution method may include:
step S110: device information of a device is acquired.
In this embodiment, the electronic device may be installed with an application program for managing and controlling the smart device in the smart home system. The user carries out network distribution operation on the intelligent equipment to be distributed through the application program, the intelligent equipment is connected into the network, network access of the intelligent equipment is achieved, and therefore data interaction between the intelligent equipment and a manufacturer server corresponding to the intelligent equipment is achieved, and then remote control can be carried out on the intelligent equipment.
In some embodiments, when the device needs to be distributed, the electronic device may obtain device information of the device, so as to distribute the network according to the device information of the device. The device is an intelligent device to be distributed, for example, the device may be an intelligent device newly purchased by a user. When the device is distributed through the electronic device, the electronic device can run the application program, and obtain the device information of the device through a related interface in the application program, and the subsequent application program can run a related distribution network process according to the device information.
In some embodiments, the device information of the device may be acquired by using an interface of the application program for identifying the device information of the device. Specifically, the identifier of the device may be image-acquired according to an operation of a user in an interface for identifying device information of the device, so as to obtain an identifier image including the identifier of the device, and then identify the identifier image, so as to obtain the device information of the device. The identifier of the device may include a two-dimensional code, a barcode, a text, a marked image, and the like, wherein the identifier of the device identifier may be disposed on the device, for example, attached to a surface of a housing of the device. Of course, the specific device identifier and the setting manner of the identifier may not be limited.
Further, the device identifier carries device information of the device, and the device information of the device can be obtained by identifying the identifier image. The device information may include manufacturer information, type information, model information, and the like of the device, and the specific device information may not be limited.
In some embodiments, the application program may run an input interface for inputting device information, the input interface for inputting device information may be displayed on a screen of the electronic device, and a user may input device information of a device to be distributed in the input interface, so that the electronic device may obtain the device information of the device. As an embodiment, the input interface may include a vendor selection list, a type selection list, a model selection list, and the like, and the user may input the vendor information, the type information, and the model information of the device through the vendor selection list, the type selection list, and the model selection list. The manufacturer selection list, the type selection list and the model selection list can be displayed in a grading mode, for example, the manufacturer selection list serves as a first-level list, the type selection list serves as a second-level list, and the model selection list serves as a third-level list. In another embodiment, the input interface may include a device search interface. The user can search the equipment according to the keyword of the equipment information of the equipment, and finally, the equipment information of the equipment can be obtained according to the search result of the equipment. Of course, the manner of obtaining the device information through the input interface of the device information may not be limited.
In some embodiments, the application program may run an interface for voice input, and the electronic device may recognize the voice information through a voice message input by a user, so as to obtain device information of the device.
Of course, in the embodiment of the present application, a specific manner in which the electronic device acquires the device information of the device may not be limited. For example, the electronic device may also acquire the device information of the device by receiving the device information actively sent by the device.
Step S120: and acquiring a Software Development Kit (SDK) plug-in corresponding to the manufacturer of the equipment according to the equipment information.
Since the manufacturers use their proprietary protocols to distribute the network, the Software Development Kit (SDK) plug-in provided by the manufacturers is needed to implement the device distribution network.
In some embodiments, the electronic device may obtain, according to the device information of the device, an SDK plug-in corresponding to a vendor of the device. The device information of the device comprises manufacturer information of the device, the manufacturer information of the device can be extracted from the device information, and then the SDK plug-in corresponding to the manufacturer is obtained according to the manufacturer information. The different types of information in the device information can be distinguished by different fields and also can be distinguished by different arrangement orders, so that the electronic device can extract manufacturer information from the device information according to the different fields or the different arrangement orders.
In some embodiments, when acquiring an SDK plug-in corresponding to a vendor of a device, the SDK plug-in corresponding to the vendor may be downloaded from a server. In one embodiment, the server corresponding to the application stores SDK plug-ins corresponding to respective manufacturers, and the application may download the SDK plug-ins corresponding to the manufacturers from the corresponding server. As another embodiment, the server corresponding to the application program may be in communication connection with servers corresponding to manufacturers, the application program may send a plug-in download instruction to the server of the application program, and the download instruction carries manufacturer information of the device, after receiving the download instruction, the server of the application program may 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, so as to obtain the SDK plug-in corresponding to the manufacturer of the device. Of course, a specific manner of downloading the SDK plug-in corresponding to the vendor may not be limited, and for example, the server of the application may also download the SDK plug-in corresponding to the vendor from a designated server, where the designated server stores the SDK plug-ins corresponding to the vendors and sends the downloaded SDK plug-ins to the electronic device.
In some embodiments, the electronic device may store therein an SDK plug-in corresponding to a vendor of the electronic device, so that the SDK plug-in corresponding to the vendor may be directly read.
Of course, in the embodiment of the present application, a specific obtaining manner of the SDK plug-in may not be limited. After the application program of the electronic device obtains the SDK plug-in, the SDK plug-in may be stored, and the SDK plug-in may be loaded for operation of the device when the subsequent operations such as network distribution and control of the device are required.
Step S130: and calling and displaying a distribution network interface corresponding to the equipment, wherein the distribution network interface is used for guiding a user to carry out distribution network operation.
After the SDK plug-in corresponding to the manufacturer of the equipment to be distributed is obtained, a distribution network interface corresponding to the equipment can be displayed so as to carry out distribution.
In some embodiments, the application running on the electronic device may invoke a distribution network interface corresponding to the device, where the distribution network interface is used to guide the user to perform distribution network operations. As an embodiment, the network distribution interface corresponding to the device is invoked, which may be a network distribution interface that invokes a fast application corresponding to the device. As another embodiment, an interface plug-in may be called, where the interface plug-in corresponds to a distribution network interface corresponding to the device, the interface plug-in is a local plug-in of the electronic device, and the distribution network interface corresponding to the device may be called by calling the interface plug-in. Of course, the specific manner of invoking the distribution network interface corresponding to the device may not be limited, and for example, the distribution network interface of the application program corresponding to the vendor of the device may also be dynamically loaded by means of the open source dynamic loading framework, so as to implement invoking the distribution network interface.
After the distribution network interface corresponding to the equipment is called, the distribution network interface can be displayed for a user to check and operate. The distribution network interface may include: a distribution network confirmation interface, a distribution network prompt interface, a network information input interface, a prompt interface in the distribution network process, a prompt interface for completing the distribution network and the like. For example, as shown in fig. 6, fig. 6 shows a schematic diagram of a distribution network confirmation interface 151, where the distribution network confirmation interface 151 is used to prompt a user whether to perform distribution network operation, and when the distribution network confirmation interface 151 detects a confirmation operation, the subsequent distribution network operation may be performed, and a subsequent interface is displayed. For another example, as shown in fig. 7, fig. 7 shows a schematic diagram of a distribution network prompting interface 152, where the distribution network prompting interface 152 is used for prompting a user to enter a distribution network mode, starting a distribution network mode of a device to be distributed, and the like. For another example, as shown in fig. 8, fig. 8 shows a schematic diagram of a network information input interface 153, and the network information input interface 153 may be used for a user to input information of a network to be connected, such as a network name and a password. For another example, as shown in fig. 9, fig. 9 is a schematic diagram of a prompt interface 154 of a distribution network process, where the prompt interface 154 of the distribution network process is used to prompt a user that the distribution network process has started, so as to avoid a user misoperation that may cause an interruption of the distribution network process. For another example, as shown in fig. 10, fig. 10 is a schematic diagram of a prompt interface 155 for completing a distribution network, where the prompt interface 155 for completing a distribution network is used to prompt a user that the distribution network has been completed, and a subsequent user may enter a corresponding control interface of the device through the application program to control the device. Of course, the specific content of the distribution network interface may not be limiting.
After the distribution network interface is displayed, an application program of the electronic equipment can detect the operation of a user in the distribution network interface, so that the equipment can be distributed according to the distribution network operation of the user in the distribution network interface. The electronic device may obtain related indication information, such as information indicating a process of starting a distribution network, information indicating connection with the device, information indicating transmission of network information to the device, and the like, according to operation of the distribution network in the distribution network interface. Information input by the user, such as network information, the name of the setting, etc., may also be obtained. The specific information obtained by the electronic device according to the operation of the distribution network in the distribution network interface may not be limited.
Step S140: and carrying out network distribution on the equipment according to the SDK plug-in and the network distribution operation in the network distribution interface.
After the SDK plug-in and the distribution network interface are obtained and displayed, the equipment can be distributed according to the SDK plug-in and the detected distribution network operation in the distribution network interface.
In some embodiments, the acquired SDK plug-in is in a loaded state. The network information of the equipment needing to access the network can be obtained according to the operation of the distribution network in the distribution interface and the operation of the distribution network, and the network information is sent to the equipment. The electronic equipment can be connected with the hotspot of the equipment and establishes communication with the equipment, so that network information is sent to the equipment; the electronic device may also send the network information to the device by way of broadcast. After receiving the network information, the device may access the network according to the network information.
Further, the network information may include a name and a password of the router, and the device may connect to the router according to the name and the password of the router, so as to access the WiFi network. In addition, after the device is accessed to the network, the electronic device can send the device and the user account to a server of a manufacturer of the device by using the SDK plug-in, so that the server of the manufacturer of the device establishes a corresponding relationship between the device and the user account, and the whole network distribution process of the device is realized. After the equipment completes the distribution network, the equipment can be remotely controlled.
According to the method for distributing the network to the equipment, the electronic equipment can run the application program, the application program obtains the SDK plug-in corresponding to the manufacturer of the equipment according to the equipment information by obtaining the equipment information of the equipment, then calls and displays the network distribution interface corresponding to the equipment, and finally, the equipment is distributed according to the SDK plug-in and the network distribution operation in the network distribution interface, so that the network distribution of the equipment is realized. Therefore, the network can be distributed to the equipment of different manufacturers through the same application program, the application programs corresponding to the different manufacturers are not required to be installed on the electronic equipment, the network is distributed to the equipment of the different manufacturers, the convenience of the equipment distribution network is improved, and the storage space occupied by the application program on the electronic equipment can be reduced.
Referring to fig. 11, another embodiment of the present application provides a device network distribution method, which is applicable to an electronic device, and the device network distribution method may include:
step S210: device information of a device is acquired.
In the embodiment of the present application, step S210 may refer to the contents of the above embodiments, and is not described herein again.
Step S220: and judging whether the SDK plug-in corresponding to the manufacturer of the equipment exists at present locally according to the equipment information.
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 may be determined whether the SDK plug-in corresponding to the manufacturer of the device exists locally in the current electronic device. Specifically, the electronic device may query whether an SDK plug-in corresponding to the vendor exists in a file stored locally. It can be understood that, since the SDK plug-in corresponds to the vendor, the SDK plug-ins used by devices of the same vendor in the distribution network are the same. When the device is configured, before the device of the manufacturer is configured, any other device of the manufacturer may be added, that is, any other device of the manufacturer may be configured, and at this time, the electronic device has downloaded the SDK plug-in of the manufacturer. Of course, any device of the manufacturer may not be configured before, and at this time, the SDK plug-in corresponding to the manufacturer does not exist locally in the electronic device currently.
Step S230: and if the local current SDK plug-in corresponding to the manufacturer does not exist, downloading the SDK plug-in corresponding to the manufacturer.
In some embodiments, when it is determined that there is no SDK plug-in corresponding to the vendor currently in the local area of the electronic device, it indicates that the electronic device has not downloaded the SDK plug-in of the vendor before. In order to realize the distribution of the equipment, the application program of the electronic equipment can download the SDK plug-in corresponding to the manufacturer of the equipment. The specific manner of downloading the SDK plug-in by the electronic device may refer to the manner of downloading the SDK plug-in the foregoing embodiment, and details are not described herein.
Step S240: and if the SDK plug-in corresponding to the manufacturer exists locally, acquiring the currently existing SDK plug-in from the local.
In some embodiments, when it is determined that the SDK plug-in corresponding to the vendor currently exists in the local area of the electronic device, it indicates that the electronic device has previously downloaded the SDK plug-in of the vendor. Therefore, when the device is accessed to the network at this time, the application program can directly read the SDK plug-in corresponding to the manufacturer of the device from the local, so as to obtain the SDK plug-in corresponding to the manufacturer.
Step S250: a fast application corresponding to the device is determined.
After the SDK plug-in corresponding to the device to be distributed is obtained, the application program can call and display a distribution network interface corresponding to the device, so that a user can control and operate the distribution network process.
In the embodiment of the application, the application program can realize the display of the distribution network interface by calling the distribution network interface of the fast application and displaying the distribution network interface. First, the application may determine a fast application corresponding to the device to invoke and display a distribution network interface for the fast application.
Different devices may have different manufacturers, and when managing and controlling the devices, the devices need to pass through the manufacturer servers corresponding to the devices, so that the fast applications corresponding to the devices of different manufacturers are different. The fast application can correspond to a fast application identifier, and the fast application identifier is used as identity information of the fast application and is used for distinguishing different fast applications. The specific fast application identifier may not be limited in this embodiment of the application, for example, the fast application identifier may be an identity ID of the fast application.
In addition, the corresponding relationship between the fast application identifier and the device can be established, so that when the fast application is added, the fast application identifier corresponding to the device is determined. As one way, the correspondence between the identifiers and the devices 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 fast application identifier.
When the application program of the electronic device obtains the fast application corresponding to the device, the fast application corresponding to the device can be obtained according to the device information of the device.
In some embodiments, the device information of the devices to be distributed may include: at least one of vendor information, type information, and model information, and the specific content of the device information may not be limited in the embodiments of the present application. Referring to fig. 12, determining a fast application corresponding to a device according to device information of the device may include:
step S251: and determining a fast application identifier corresponding to the equipment according to at least one of the manufacturer information, the type information and the model information.
In the embodiment of the present application, as an implementation manner, fast application identifiers corresponding to pieces of device information and a correspondence between the pieces of device information and the fast application identifiers are stored in the electronic device. After the device information of the device is obtained, the fast application identifier corresponding to the device information of the device can be searched from the multiple fast application identifiers by using the correspondence according to the device information of the device. As another embodiment, the client may also query the server for the fast application identifier corresponding to the device information according to the device information. The manner of specifically acquiring the fast application identifier corresponding to the device based on the device information may not be limited.
In some embodiments, the fast application identification corresponding to the device may be determined according to at least one of vendor information, type information, and model information. It can be understood that all devices of the same manufacturer may correspond to the same fast application, or different types of devices of the same manufacturer may correspond to different fast applications, and different types of devices of the same manufacturer may correspond to different fast applications. Therefore, the fast application identifier corresponding to the device can be determined according to at least one of the manufacturer information, the type information and the model information to determine the fast application.
Step S252: and confirming the fast application corresponding to the fast application identifier according to the fast application identifier.
In some embodiments, the electronic device stores a corresponding relationship between the fast application identification and the fast application. The corresponding relation may be stored in the electronic device in the form of a mapping relation table, or may be stored in the electronic device in another form. And the electronic equipment confirms the fast application corresponding to the fast application identifier according to the corresponding relation.
Of course, in the embodiment of the present application, the manner in which the electronic device confirms the fast application may not be limited.
Step S260: and calling and displaying the distribution network interface of the quick application.
After the electronic equipment confirms the fast application corresponding to the equipment, the distribution network interface of the fast application can be called and displayed according to the confirmed fast application, and the display of the distribution network interface corresponding to the equipment is realized.
In some embodiments, the fast application is run by a fast application engine, different interfaces in the fast application correspond to different links, and the fast application engine calls and displays the different interfaces in the fast application by accessing the different links. Referring to fig. 13, the distribution network interface for invoking and displaying the fast application may include:
step S261: acquiring an interface link corresponding to a distribution network interface of the fast application;
step S262: and accessing the interface link through a fast application engine, and displaying the distribution network interface.
In some embodiments, the electronic device may obtain an interface link corresponding to a distribution network interface from the obtained links of the plurality of interfaces corresponding to the fast application. The links of the interfaces correspond to the links of different interfaces respectively. And then, the application program accesses the interface link corresponding to the distribution network interface by using the fast application engine and displays the distribution network interface to realize the calling and displaying of the distribution network interface.
Step S270: and loading the SDK plug-in and loading an ENV plug-in corresponding to the SDK plug-in, wherein the ENV plug-in is used for calling the SDK plug-in.
In some embodiments, when the application program calls up and displays the distribution network interface corresponding to the device, the relevant plug-in may also be loaded. Specifically, the SDK plug-in and an ENV (environment variable) plug-in for calling the SDK plug-in may be loaded. It can be understood that when the distribution network interface is called up and displayed, the SDK plug-in and the ENV plug-in can be loaded when the related plug-ins are required to be formally used, so that the SDK plug-in and the ENV plug-in can be loaded as required, and the running space of the electronic equipment is saved.
In some embodiments, loading the SDK plug-in may include: and separating a target file from the SDK plug-in and loading the SDK plug-in.
In this embodiment, when loading the SDK plug-in, the target file in the SDK plug-in may be separated, and the target SDK plug-in is loaded, where the target file at least includes a configuration file and a so file, so as to ensure that the file is read quickly when the SDK plug-in is used. As one way, the SDK plugin can be directly and dynamically loaded at the time of loading, but the so file in the target file still needs to be loaded separately, where the so file may be loaded using loadlibrary, and the configuration file may be read in the code at the time of loading.
In some embodiments, separating the target file from the SDK plug-in and loading the SDK plug-in may include:
separating a target file from the SDK plug-in and judging whether the target file is complete or not; and if the target file is complete, loading the SDK plug-in.
In some embodiments, after separating the object file from the SDK plug-in, it may be determined whether the object file is complete, e.g., whether the configuration file and the so file are complete.
As a way, if the judgment result indicates that the target file is complete, the target SDK file may be directly loaded.
As another way, if the determination result indicates that the target file is incomplete, file deletion may be caused and the target file cannot be used normally, and since the target files such as the configuration file and the so file are separated from the SDK plugin, the target file can be separated from the SDK plugin again, so that the target files such as the configuration file or the so file can be processed again when being damaged or deleted accidentally, and thus, errors can not be caused during loading, the loading safety of the SDK plugin and the integrity of the loaded SDK plugin can be ensured, and the loading speed can be ensured.
In some embodiments, loading an ENV plug-in corresponding to the SDK plug-in may include:
acquiring an interface specification version of the SDK plug-in; and acquiring an ENV plug-in corresponding to the interface specification version, and recording the ENV plug-in.
When the ENV plug-in calls the SDK plug-in, the interface of the SDK plug-in is called, so that the loaded ENV plug-in corresponds to the interface of the SDK plug-in, and the condition that the call-back JAR packages of the SDK plug-in and the ENV plug-in are consistent is guaranteed. In some embodiments, the interface specification version of the loaded SDK plug-in may 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.
In the embodiment of the application, the SDK plug-in uses a dexclaissloader class, but the parent class is BootClassloader, and although the plug-in is loaded in the application program, the application program is not a host of the plug-in, so that the corresponding class cannot be searched in the application program, and the isolation of the SDK and the code of the application program is realized. In addition, the ENV plug-in is hung in BootClassloader class. Because the parent class of DexClassLoader for loading the plug-in is assigned to BootClassLoader by using the parent delegation with the help of dynamic loading, the application program starts the process of dynamic loading, the parent class is also BootClassLoader, so that no cross point exists, and the searched classes are all subjected to class search on the inheritance path according to the parent delegation, so that class search isolation can be realized, and the SDK plug-in and the ENV plug-in are ensured not to have class definition conflict with the application program.
Of course, in the embodiment of the present application, a specific manner of loading the SDK plug-in and the ENV plug-in may not be limited.
Step S280: and carrying out network distribution on the equipment according to the SDK plug-in and the network distribution operation in the network distribution interface.
In the embodiment of the application, when the device is distributed according to the SDK plug-in, the application may call the SDK plug-in by using the ENV plug-in to perform the related operation, thereby completing the distribution of the device.
According to the method for distributing the network to the equipment, the application program of the electronic equipment acquires the SDK plug-in corresponding to the manufacturer of the equipment according to the equipment information, then calls and displays the distribution network interface corresponding to the fast application of the equipment, calls the SDK plug-in and the ENV plug-in used for calling the SDK plug-in, finally calls the SDK plug-in by using the ENV plug-in, and distributes the network to the equipment according to the distribution network operation in the SDK plug-in and the distribution network interface, so that the distribution network of the equipment is realized. Therefore, the network distribution of the equipment of different manufacturers can be realized through the same application program, the convenience of the network distribution of the equipment is improved, and the storage space of the electronic equipment occupied by the application program can be reduced.
Referring to fig. 14, another embodiment of the present application provides a device network distribution method, which is applicable to an electronic device, and the device network distribution method may include:
step S310: device information of a device is acquired.
Step S320: and acquiring a Software Development Kit (SDK) plug-in corresponding to the manufacturer of the equipment according to the equipment information.
In the embodiment of the present application, steps S310 to S320 may refer to the contents of the above embodiments, and are not described herein again.
Step S330: and calling and displaying a distribution network interface corresponding to the equipment, wherein the distribution network interface is used for guiding a user to carry out distribution network operation.
In some embodiments, invoking and displaying a distribution network interface corresponding to the device may also include:
determining an interface plug-in of a distribution network interface corresponding to the equipment; calling the interface plug-in and displaying the distribution network interface; and loading the SDK plug-in and loading an ENV plug-in corresponding to the SDK plug-in, wherein the ENV plug-in is used for calling the SDK plug-in.
The interface plug-in corresponds to the distribution network interface corresponding to the equipment, the interface plug-in is a local plug-in of the electronic equipment, and the distribution network interface corresponding to the equipment can be called by calling the interface plug-in. When the interface plug-in is called up, the distribution network interface can be dynamically loaded and displayed.
The loading manner of the SDK plug-in and the ENV plug-in may refer to the contents of the above embodiments, and details are not described herein.
Step S340: and acquiring network information according to the operation of the distribution network interface, wherein the network information is used for connecting the equipment to the network.
In some embodiments, when an application of an electronic device performs network distribution on the device according to the SDK plug-in and the network distribution operation in the network distribution interface, the application may obtain network information for the device to connect to the network according to the network distribution operation in the network distribution interface. The network information may include a name and a password of the network, etc. The network information can be manually input by a user in a distribution network interface. The network information may also be selected by the user in the distribution network interface, for example, a network list is displayed in the distribution network interface, the network list includes a plurality of networks, and the application program may acquire the network information of the network to which the device needs to be connected by selecting the network.
Step S350: and establishing network connection with the equipment, and sending the network information to the equipment.
In some embodiments, the electronic device may establish a network connection with the device in order to transmit relevant information to the device and receive information fed back by the device.
As an embodiment, establishing a network connection with a device may include:
outputting set prompt information, wherein the set prompt information is used for prompting a user to start a distribution network mode of the equipment; and when second indication information is acquired, establishing network connection with the equipment, wherein the second indication information is used for indicating that the distribution network mode of the equipment is in an opening state.
It can be appreciated that the device needs to be in a distribution network mode to establish a network connection with the electronic device. Therefore, the application program of the electronic device can output the setting prompt message to prompt the user to start the distribution network mode of the device. And the interface of the application program can detect the operation of a user, and when the setting operation is detected, second indication information can be acquired, wherein the second indication information is used for indicating that the distribution network mode of the equipment is started. Therefore, when the device to be networked is in the network distribution mode, the electronic device can establish network connection with the device. For example, when the device to be distributed is in the distribution network mode, a hotspot of the device is opened, and the electronic device may be connected to the hotspot of the device, so as to implement network connection between the electronic device and the device.
After the electronic device establishes network connection with the device to be networked, the network information may be sent to the device, so that the device is connected to the network according to the network information.
Step S360: when first indication information returned by the equipment is received, sending user account information and the equipment information to a server by using the SDK plug-in, wherein the first indication information is used for representing that the equipment is connected to the network, and the user account information and the equipment information are used for indicating the server to establish the corresponding relation between the user account information and the equipment.
In some embodiments, after receiving the network information, the device may connect to the network according to the network information. And, when the device is connected to the network, the device may generate first indication information indicating that the device has been connected to the network, and return the first indication information to the electronic device. After the electronic device receives the first indication information, it may be determined that the device is connected to a network, and user account information corresponding to an application program or user account information allocated by a manufacturer of the device, and device information of the device may be sent to a server of the manufacturer, so that the server of the manufacturer establishes a direct binding relationship between the device and the user account information, thereby completing a network distribution of the device. After the network distribution of the equipment is completed, the subsequent electronic equipment can remotely control the equipment through a server of a manufacturer according to a control instruction carrying the user account information.
In this embodiment, the device network distribution method may further include:
calling up and displaying a control interface corresponding to the equipment; and sending a first instruction to a server according to the SDK plug-in and the control operation on the control interface, wherein the first instruction is used for instructing the server to send a control instruction to the equipment.
In some embodiments, after completing the network distribution of the device and implementing the network access of the device, the user may control the device through an application program of the electronic device. Specifically, a control interface corresponding to the device may be invoked and displayed, where the control interface is used to detect a control operation on the device. The method for invoking and displaying the control interface corresponding to the device may refer to the method for invoking and displaying the distribution network interface. When the control operation of the user on the control interface is detected, a corresponding control instruction can be generated according to the control operation, and the control instruction is sent to a server of a manufacturer by using the SDK plug-in. After receiving the control instruction, the server of the manufacturer can transmit the control instruction to the equipment through the network, so that the equipment is indicated to complete corresponding operation, and the remote control of the equipment is realized. Through this embodiment, can realize only utilizing an APP to control the equipment of different vendors, promote the convenience of controlling equipment.
In the embodiment of the application, after the distribution of the equipment is completed, the related scene can be pushed to the user. Therefore, the device network distribution method may further include:
acquiring a target scene including the device based on the device information; and pushing the target scene.
In some embodiments, a target scene including the device is obtained based on device information of the device. For example, when the device is an air conditioner, then the target scene including the air conditioner may be obtained, for example, the target scene may include "turn on the air conditioner when the user enters the room", "turn on the air conditioner and adjust the cooling temperature of the air conditioner to 27 ° when the user enters the room", "turn off the air conditioner when the user leaves the door", and the like; when the device is a lighting device, then, a target scene including the lighting device may be obtained, for example, the target scene may include "turn on the lighting device when the user goes home", "turn on the lighting device when the user goes home and adjust the lighting brightness of the lighting device to the target brightness", and the like, which is not limited herein.
As one mode, a target scene including the device may be selected from a plurality of preset scenes based on the device information of the device, the target scene including the device may be generated by calculation through a preset algorithm based on the device information of the device, the target scene may be output through a trained scene generation model based on the device information of the device, and the like, which is not limited herein.
After the target scene including the equipment is obtained, the target scene can be pushed for the user to select, so that the automatic configuration of the use scene of the equipment is realized, the user operation is reduced, and the user experience is improved. The method for pushing the target scene by the electronic device may be, but is not limited to, a voice pushing target scene, a text pushing target scene, a picture pushing target scene, and the like, and is not limited herein.
In some embodiments, pushing the target scene including the device may also include:
acquiring a reference scene shared by other equipment; and when the reference scene comprises the equipment, taking the reference scene as a target scene, and pushing the target scene.
As one mode, when determining a target scene for pushing, the determination may also be performed according to a reference scene shared by other devices. The electronic device may receive the reference scene shared by other devices, and as can be understood, the electronic device may receive the reference scene shared by other devices through a data network, a wireless network, a bluetooth, and the like, where the reference scene may be presented in a text form, may be presented in a picture form, and is not limited herein.
Further, the application program of the electronic device analyzes the reference scene, for example, the electronic device obtains the trigger device and the controlled device in the reference scene, and detects whether the device after the network distribution is included in the trigger device and the controlled device, and when the trigger device or the controlled device includes the device after the network distribution, it may be determined that the device after the network distribution is included in the reference scene; when the device behind the distribution network is not included in the triggering device and the controlled device, it may be determined that the device is not included in the reference scene. And if the reference scene is determined to comprise the equipment behind the distribution network, pushing the reference scene as a target scene.
When the equipment is successfully accessed to the network for the first time, the target scene including the equipment is obtained and pushed based on the equipment information of the equipment, so that the target scene is automatically obtained, user operation is reduced, and user experience is improved.
In this embodiment of the present application, after pushing the last target scene, the device network distribution method may further include:
acquiring target equipment which is not accessed to the network currently from all equipment included in the target scene based on the determination instruction of the target scene; and pushing the target equipment.
In some embodiments, after the application program of the electronic device pushes the target scene, it may be determined whether an operation on the pushed target scene is detected, and after a user confirms the target scene in an interface of the application program, a determination instruction on the target scene may be acquired. And the electronic device can configure the device in a target scene, and send scene configuration information to a server, a gateway and the like for storage, so as to realize the scene configuration of the device. In addition, in a target scene which may be configured, other devices are required to participate, but at present, some devices are not on the network, that is, some devices in the target scene are not purchased by a user. Therefore, the electronic device can acquire the target device which is not currently connected to the network from all the devices included in the target scene and push the target device to the user, so that the user can conveniently know the devices which are lacked in the current target scene, and the user can conveniently know the devices which need to be purchased. For example, the target scene includes an air conditioner, a humidifier, a lighting device, and the like, but currently, the humidifier is not connected to the network, so that the humidifier can be used as the target device and pushed.
Of course, the manner of pushing the relevant scene and the device may not be limited particularly after the device first accesses the network.
According to the equipment network distribution method provided by the embodiment of the application, the equipment of different manufacturers can be distributed through the same application program, the convenience of equipment network distribution is improved, and the storage space of electronic equipment occupied by the application program can be reduced. And after the device accesses the network, the scene and the device related to the device are automatically acquired for pushing, so that the operation of the user is reduced, and the user experience is improved.
Referring to fig. 15, fig. 15 is a block diagram illustrating a device distribution network apparatus 500 according to an embodiment of the present application. The device distribution network apparatus 500 is applied to an electronic device, and will be explained with respect to the apparatus shown in fig. 15, where the device distribution network apparatus 500 includes: an information acquisition module 510, a plug-in acquisition module 520, an interface display module 530, and a distribution network execution module 540. The information obtaining module 510 is configured to obtain device information of a device; the plug-in obtaining module 520 is configured to obtain a software development kit SDK plug-in corresponding to a manufacturer of the device according to the device information; the interface display module 530 is configured to invoke and display a distribution network interface corresponding to the device, where the distribution network interface is configured to guide a user to perform distribution network operation; the distribution network execution module 540 is configured to distribute a network to the device according to the SDK plug-in and the distribution network operation in the distribution network interface.
In some embodiments, the plug-in acquisition module 520 may be specifically configured to: judging whether an SDK plug-in corresponding to the manufacturer of the equipment exists at present locally or not according to the equipment information; and if the local current SDK plug-in corresponding to the manufacturer does not exist, downloading the SDK plug-in corresponding to the manufacturer.
Further, the plug-in obtaining module 520 may be further specifically configured to: and if the SDK plug-in corresponding to the manufacturer exists locally, acquiring the currently existing SDK plug-in from the local.
Referring to fig. 16, the interface display module 530 may include: a fast application determination unit 531, an interface call unit 532, and a plug-in loading unit 533. The fast application determining unit 531 is configured to determine a fast application corresponding to the device; the interface calling unit 532 is used for calling and displaying the distribution network interface of the fast application; the plug-in loading unit 533 is configured to load the SDK plug-in and load an ENV plug-in corresponding to the SDK plug-in, where the ENV plug-in is configured to call the SDK plug-in.
Further, the device information includes at least one of vendor information, type information, and model information. The fast application determining unit 531 may be specifically configured to: determining a fast application identifier corresponding to the equipment according to at least one of the manufacturer information, the type information and the model information; and confirming the fast application corresponding to the fast application identifier according to the fast application identifier.
Further, the interface invoking unit 532 may be specifically configured to: acquiring an interface link corresponding to a distribution network interface of the fast application; and accessing the interface link through a fast application engine, and displaying the distribution network interface.
As another embodiment, referring to fig. 17, the interface display module 530 may include a plug-in determination unit 534, an interface call unit 532, and a plug-in loading unit 533. The plug-in determining unit 534 is configured to determine an interface plug-in of a distribution network interface corresponding to the device; the interface calling unit 532 is used for calling the interface plug-in and displaying the distribution network interface; the plug-in loading unit 533 is configured to load the SDK plug-in and load an ENV plug-in corresponding to the SDK plug-in, where the ENV plug-in is configured to call the SDK plug-in.
In some embodiments, the loading, by the plug-in loading unit 533, the loading of the ENV plug-in corresponding to the SDK plug-in may include: acquiring an interface specification version of the SDK plug-in; and acquiring an ENV plug-in corresponding to the interface specification version, and recording the ENV plug-in.
In some embodiments, the plug-in loading unit 533 loads the SDK plug-in, including: and separating a target file from the SDK plug-in and loading the SDK plug-in.
Further, the plug-in loading unit 533 separates the target file from the SDK plug-in and loads the SDK plug-in, including: separating a target file from the SDK plug-in and judging whether the target file is complete or not; and if the target file is complete, loading the SDK plug-in.
In some embodiments, the distribution network executing module 540 may be specifically configured to: acquiring network information according to the operation of the distribution network interface, wherein the network information is used for connecting the equipment to a network; establishing network connection with the equipment, and sending the network information to the equipment; when first indication information returned by the equipment is received, sending user account information and the equipment information to a server by using the SDK plug-in, wherein the first indication information is used for representing that the equipment is connected to the network, and the user account information and the equipment information are used for indicating the server to establish the corresponding relation between the user account information and the equipment.
Further, the distribution network executing module 540 establishes a network connection with the device, including: outputting set prompt information, wherein the set prompt information is used for prompting a user to start a distribution network mode of the equipment; and when second indication information is acquired, establishing network connection with the equipment, wherein the second indication information is used for indicating that the distribution network mode of the equipment is in an opening state.
In some embodiments, the equipment network distribution device 500 may further include a control interface display module and an instruction sending module. The control interface display module is used for calling up and displaying a control interface corresponding to the equipment; the instruction sending module is used for sending a first instruction to a server according to the SDK plug-in and the control operation on the control interface, wherein the first instruction is used for instructing the server to send a control instruction to the equipment.
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 for acquiring a target scene comprising the equipment based on the equipment information; the first scene pushing module is used for pushing the target scene.
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 for acquiring a reference scene shared by other equipment; and the second scene pushing module is used for taking the reference scene as a target scene and pushing the target scene when the reference scene comprises the equipment.
Further, the device network distribution apparatus 500 may further include a device acquisition module and a device push module. The device acquisition module is used for acquiring current non-networked target devices from all devices included in the target scene based on the determination instruction of the target scene; and the equipment pushing module is used for pushing the target equipment.
In some embodiments, the information obtaining module 510 may be specifically configured to: acquiring an identification image containing an identification of the device; and identifying the identification image to obtain the equipment information of the equipment.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other type of coupling.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
To sum up, the scheme provided by the application acquires the device information of the device to be distributed, acquires the software development kit SDK plug-in corresponding to the manufacturer of the device according to the device information, calls and displays the distribution network interface corresponding to the device, and finally distributes the network to the device according to the SDK plug-in and the distribution network operation in the distribution network interface, so that the device of different manufacturers can be distributed by using the same application program, the convenience of the distribution network process is improved, and the user experience is improved.
Referring to fig. 18, a block diagram of an electronic device according to an embodiment of the present application is shown. The electronic device 100 may be a smart phone, a tablet computer, an electronic book, or other electronic devices capable of running an application. The electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and one or more applications, wherein the one or more applications may be stored in the memory 120 and configured to be executed by the one or more processors 110, the one or more programs configured to perform a method as described in the aforementioned method embodiments.
Processor 110 may include one or more processing cores. The processor 110 connects various parts within the overall electronic device 100 using various interfaces and lines, and performs various functions of the electronic device 100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 120 and calling data stored in the memory 120. Alternatively, the processor 110 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 110 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 110, but may be implemented by a communication chip.
The Memory 120 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 120 may be used to store instructions, programs, code sets, or instruction sets. The memory 120 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The storage data area may also store data created by the terminal 100 in use, such as a phonebook, audio-video data, chat log data, and the like.
Referring to fig. 19, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable medium 800 has stored therein a program code that can be called by a processor to execute the method described in the above-described method embodiments.
The computer-readable storage medium 800 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 800 includes a non-volatile computer-readable storage medium. The computer readable storage medium 800 has storage space for program code 810 to perform any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 810 may be compressed, for example, in a suitable form.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (20)

  1. A method for distributing a network to equipment is characterized by comprising the following steps:
    acquiring equipment information of equipment;
    acquiring a Software Development Kit (SDK) plug-in corresponding to the manufacturer of the equipment according to the equipment information;
    a distribution network interface corresponding to the equipment is called up and displayed, and the distribution network interface is used for guiding a user to carry out distribution network operation;
    and carrying out network distribution on the equipment according to the SDK plug-in and the network distribution operation in the network distribution interface.
  2. The method according to claim 1, wherein the obtaining a Software Development Kit (SDK) plug-in corresponding to a vendor of the device according to the device information comprises:
    judging whether an SDK plug-in corresponding to the manufacturer of the equipment exists at present locally or not according to the equipment information;
    and if the local current SDK plug-in corresponding to the manufacturer does not exist, downloading the SDK plug-in corresponding to the manufacturer.
  3. The method of claim 2, wherein obtaining a Software Development Kit (SDK) plug-in corresponding to a vendor of the device further comprises:
    and if the SDK plug-in corresponding to the manufacturer exists locally, acquiring the currently existing SDK plug-in from the local.
  4. The method of any of claims 1-3, wherein the invoking and displaying a distribution network interface corresponding to the device comprises:
    determining a fast application corresponding to the device;
    a distribution network interface of the fast application is called up and displayed;
    and loading the SDK plug-in and loading an ENV plug-in corresponding to the SDK plug-in, wherein the ENV plug-in is used for calling the SDK plug-in.
  5. The method of claim 4, wherein the device information comprises at least one of vendor information, type information, and model information, and wherein determining the fast application corresponding to the device comprises:
    determining a fast application identifier corresponding to the equipment according to at least one of the manufacturer information, the type information and the model information;
    and confirming the fast application corresponding to the fast application identifier according to the fast application identifier.
  6. The method of claim 4, wherein invoking and displaying the distribution network interface for the fast application comprises:
    acquiring an interface link corresponding to a distribution network interface of the fast application;
    and accessing the interface link through a fast application engine, and displaying the distribution network interface.
  7. The method of any of claims 1-3, wherein the invoking and displaying a distribution network interface corresponding to the device comprises:
    determining an interface plug-in of a distribution network interface corresponding to the equipment;
    calling the interface plug-in and displaying the distribution network interface;
    and loading the SDK plug-in and loading an ENV plug-in corresponding to the SDK plug-in, wherein the ENV plug-in is used for calling the SDK plug-in.
  8. The method according to claim 4 or 7, wherein the loading the ENV plug-in corresponding to the SDK plug-in comprises:
    acquiring an interface specification version of the SDK plug-in;
    and acquiring an ENV plug-in corresponding to the interface specification version, and recording the ENV plug-in.
  9. The method of claim 4 or 7, wherein loading the SDK plug-in comprises:
    and separating a target file from the SDK plug-in and loading the SDK plug-in.
  10. The method of claim 9, wherein separating the target file from the SDK plug-in and loading the SDK plug-in comprises:
    separating a target file from the SDK plug-in and judging whether the target file is complete or not;
    and if the target file is complete, loading the SDK plug-in.
  11. The method of any of claims 1-10, wherein said distributing the network of the device according to the SDK plug-in and the network distribution operation in the network distribution interface comprises:
    acquiring network information according to the operation of the distribution network interface, wherein the network information is used for connecting the equipment to a network;
    establishing network connection with the equipment, and sending the network information to the equipment;
    when first indication information returned by the equipment is received, sending user account information and the equipment information to a server by using the SDK plug-in, wherein the first indication information is used for representing that the equipment is connected to the network, and the user account information and the equipment information are used for indicating the server to establish the corresponding relation between the user account information and the equipment.
  12. The method of claim 11, wherein the establishing the network connection with the device comprises:
    outputting set prompt information, wherein the set prompt information is used for prompting a user to start a distribution network mode of the equipment;
    and when second indication information is acquired, establishing network connection with the equipment, wherein the second indication information is used for indicating that the distribution network mode of the equipment is in an opening state.
  13. The method of any of claims 1-12, wherein after said provisioning the device according to the SDK plug-in and the provisioning network operation in the provisioning network interface, the method further comprises:
    calling up and displaying a control interface corresponding to the equipment;
    and sending a first instruction to a server according to the SDK plug-in and the control operation on the control interface, wherein the first instruction is used for instructing the server to send a control instruction to the equipment.
  14. The method of any of claims 1-12, wherein after said provisioning the device according to the SDK plug-in and the provisioning network operation in the provisioning network interface, the method further comprises:
    acquiring a target scene including the device based on the device information;
    and pushing the target scene.
  15. The method of any of claims 1-12, wherein after said provisioning the device according to the SDK plug-in and the provisioning network operation in the provisioning network interface, the method further comprises:
    acquiring a reference scene shared by other equipment;
    and when the reference scene comprises the equipment, taking the reference scene as a target scene, and pushing the target scene.
  16. The method according to claim 14 or 15, wherein after said pushing the target scene, the method further comprises:
    acquiring target equipment which is not accessed to the network currently from all equipment included in the target scene based on the determination instruction of the target scene;
    and pushing the target equipment.
  17. The method according to any one of claims 1-16, wherein the obtaining device information of the device comprises:
    acquiring an identification image containing an identification of the device;
    and identifying the identification image to obtain the equipment information of the equipment.
  18. An equipment distribution network apparatus, the apparatus comprising: an information acquisition module, a plug-in acquisition module, an interface display module and a distribution network execution module, wherein,
    the information acquisition module is used for acquiring equipment information of the equipment;
    the plug-in acquisition module is used for acquiring a Software Development Kit (SDK) plug-in corresponding to a manufacturer of the equipment according to the equipment information;
    the interface display module is used for calling and displaying a distribution network interface corresponding to the equipment, and the distribution network interface is used for guiding a user to perform distribution network operation;
    and the distribution network execution module is used for carrying out distribution network on the equipment according to the SDK plug-in and the distribution network operation in the distribution network interface.
  19. An electronic device, comprising:
    one or more processors;
    a memory;
    one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of any of claims 1-17.
  20. A computer-readable storage medium having program code stored therein, the program code being invoked by a processor to perform the method of any one of claims 1 to 17.
CN201980091641.3A 2019-05-05 2019-05-05 Equipment network distribution method and device, electronic equipment and storage medium Pending CN113412469A (en)

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
CN113412469A true CN113412469A (en) 2021-09-17

Family

ID=73050965

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201980091641.3A Pending CN113412469A (en) 2019-05-05 2019-05-05 Equipment network distribution method and device, electronic equipment and storage medium

Country Status (2)

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

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114363990A (en) * 2021-12-28 2022-04-15 上海黑眸智能科技有限责任公司 Equipment end network distribution method and system compatible with multiple APPs, equipment end and APP end
CN116708062A (en) * 2022-09-30 2023-09-05 荣耀终端有限公司 Equipment management method and electronic equipment

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114172925B (en) * 2020-09-10 2023-03-24 华为技术有限公司 Network distribution method and equipment
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
CN112910748B (en) * 2021-01-14 2021-12-14 珠海格力电器股份有限公司 Network distribution method, device, computer equipment and storage medium
CN113055867B (en) * 2021-03-08 2023-07-18 Oppo广东移动通信有限公司 Terminal auxiliary network distribution method and device and electronic equipment
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
CN114047974B (en) * 2021-11-15 2023-10-31 瀚云科技有限公司 Internet of things equipment configuration method and device, configuration terminal and storage medium
CN114268653B (en) * 2021-12-22 2024-04-09 中国建设银行股份有限公司 Equipment calling method, device, equipment, medium and product
CN114338379B (en) * 2021-12-28 2023-11-03 上海黑眸智能科技有限责任公司 SDK client network distribution method, system, SDK client and APP client
CN114363122B (en) * 2021-12-31 2024-02-13 科大讯飞股份有限公司 Gateway device and device access system

Citations (7)

* 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
CN107171910A (en) * 2017-06-28 2017-09-15 广东美的制冷设备有限公司 Intelligent home device and its with network method, router, intelligent domestic system
CN107367949A (en) * 2017-06-14 2017-11-21 珠海格力电器股份有限公司 Obtain the methods, devices and systems of product identification
CN107851046A (en) * 2015-07-31 2018-03-27 苹果公司 The commission that trigger performs in automated environment
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
CN108958074A (en) * 2018-06-20 2018-12-07 维沃移动通信有限公司 A kind of smart machine control method and mobile terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI576755B (en) * 2014-05-30 2017-04-01 蘋果公司 Method executable in a first controller device, controller device, and computer-readable storage medium
US10962945B2 (en) * 2017-09-27 2021-03-30 Johnson Controls Technology Company Building management system with integration of data into smart entities
CN109284144B (en) * 2018-08-27 2021-08-27 维沃移动通信有限公司 Fast application processing method and mobile terminal
CN109921943A (en) * 2019-03-19 2019-06-21 维沃移动通信有限公司 One kind matching network method and terminal

Patent Citations (7)

* 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
CN107851046A (en) * 2015-07-31 2018-03-27 苹果公司 The commission that trigger performs in automated environment
CN107367949A (en) * 2017-06-14 2017-11-21 珠海格力电器股份有限公司 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
CN108958074A (en) * 2018-06-20 2018-12-07 维沃移动通信有限公司 A kind of smart machine control method and mobile terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN116708062A (en) * 2022-09-30 2023-09-05 荣耀终端有限公司 Equipment management method and electronic equipment

Also Published As

Publication number Publication date
WO2020223854A1 (en) 2020-11-12

Similar Documents

Publication Publication Date Title
CN113412469A (en) Equipment network distribution method and device, electronic equipment and storage medium
US10264424B2 (en) Information processing method and central control device
JP6207734B2 (en) Intelligent device scene mode customization method and apparatus
WO2020168569A1 (en) Intelligent device network distribution method, apparatus, electronic device and storage medium
CN113498594B (en) Control method and device of smart home system, electronic equipment and storage medium
CN105471686B (en) Terminal control method, device and system
KR100605189B1 (en) Home network system
WO2020206693A1 (en) Smart home scheduling method, apparatus and system, server and storage medium
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
WO2020168568A1 (en) Data processing method and apparatus, electronic device and readable storage medium
CN110687820B (en) Control method and device of intelligent household equipment, terminal equipment and storage medium
CN110932953A (en) Intelligent household control method and device, computer equipment and storage medium
CN109617963B (en) Equipment control method and device and Internet of things system
CN112804730B (en) Equipment interconnection method, device, server, intelligent equipment and storage medium
CN109725543B (en) Equipment control code configuration method and device, cloud server and network system
CN114244644A (en) Smart home control method and device, storage medium and electronic device
CN112332997A (en) Network distribution method of terminal equipment, terminal equipment and computer readable storage medium
CN113168332B (en) Data processing method and device and mobile terminal
CN110794773A (en) Click-type scene creating method and device
CN116760567A (en) Account association method, device, electronic equipment and storage medium
CN113986349A (en) Data processing method, data processing device, computer readable storage medium and computer equipment
CN113329241A (en) Air conditioner and method and device for multimedia playing in air conditioner
WO2020228033A1 (en) Sdk plug-in loading method and apparatus, and mobile terminal and storage medium
CN108322812B (en) Multi-screen interaction method and device and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination