Initial configuration method and device of intelligent equipment and storage medium

By encoding the network access information into an encoded image and decoding it using the image scanning function of the smart device, the failure and inefficiency problems of the existing smart device initial configuration method when the wireless signal is weak or there are many interferences is solved, and a more efficient and successful network access configuration is achieved, improving the user experience.

CN119766585APending Publication Date: 2025-04-04QINGDAO HAIER TECH +2
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411789895.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-06
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

The initial configuration method of existing smart devices is prone to failure and inefficient, especially when wireless transmission signals are weak or interference is high.

Method used

The network access information is encoded into an encoded image through the mobile terminal, and the network access information is decoded through the image scanning device on the smart device, a network connection is established, registration information is generated and bound to the server, and finally the control interface of the smart device is generated.

Benefits of technology

It improves the execution efficiency and success rate of smart device network access configurations and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119766585A_ABST
    Figure CN119766585A_ABST
Patent Text Reader

Abstract

The invention discloses an initial configuration method and device of a smart device and a storage medium, and relates to the technical field of smart home / smart home, and the initial configuration method of the smart device comprises the steps: obtaining the network access information of a user in response to an initial configuration instruction; according to the network access information, generating and displaying a coding image interface corresponding to the network access information so as to indicate the intelligent equipment to be accessed to the network to access the target network; in response to equipment attribute information sent by the intelligent equipment to be accessed to the network, generating registration information of the intelligent equipment to be accessed to the network according to the equipment attribute information and the user identifier of the user, and sending the registration information to a server to establish a binding relationship between the intelligent equipment identifier and the user identifier; in response to return information of the server to the registration information, generating a control interface of the intelligent equipment to be accessed to the network according to the return information; the execution efficiency and the execution success rate of the network access configuration of the intelligent equipment are improved, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of smart home / intelligent family technology, and more specifically, to an initial configuration method, device and storage medium for a smart device. Background Art

[0002] With the development of communication technology and the popularization of various communication devices, more and more IoT devices are becoming intelligent, and it has become a trend to control IoT devices through clients on terminal devices.

[0003] In actual usage scenarios, the same user may own a large number of smart IoT devices of different types. Each time the user obtains a smart IoT device, the user needs to perform initial configuration for the newly added smart IoT device so that the user can control the device through the client. Existing configuration methods for smart devices usually control the user's mobile terminal to transmit network information to the IoT device through wireless transmission technologies such as LAN broadcast, temporary hotspots or Bluetooth, so that the smart IoT device can access the user's home network for subsequent binding configuration.

[0004] However, when the wireless transmission signal is weak or there is a lot of interference, the wireless transmission may become unstable, which in turn affects the normal progress of the configuration process. The user may need to repeat the tedious configuration process many times, which seriously affects the user experience. Summary of the invention

[0005] The present application provides a method, apparatus and storage medium for initial configuration of a smart device, so as to solve the problem that the existing initial configuration method of the smart device is prone to failure and low efficiency.

[0006] In a first aspect, the present application provides an initial configuration method of a smart device, which is applied to a mobile terminal, comprising:

[0007] In response to the initial configuration instruction, obtaining the user's network access information;

[0008] According to the network access information, generate and display a coded image interface corresponding to the network access information to instruct the smart device to access the target network;

[0009] In response to the device attribute information sent by the smart device to be connected to the network, generate registration information of the smart device to be connected to the network according to the device attribute information and the user identifier of the user, and send the registration information to the server to establish a binding relationship between the smart device identifier and the user identifier;

[0010] In response to the return information of the server to the registration information, a control interface of the smart device to be networked is generated according to the return information.

[0011] In a possible design, generating and displaying a coded image interface corresponding to the network access information according to the network access information includes:

[0012] Verifying the network access information;

[0013] After the network access information is verified, encrypting the network access information according to an asymmetric encryption algorithm to obtain encrypted network access information;

[0014] The encrypted network access information is encoded into a coded image, and the coded image interface is generated and displayed according to the coded image.

[0015] In one possible design, the network access information includes a service set identifier and password of the WiFi network, the device attribute information includes one or more of the device's unique identifier, network card address, device model, device function set and firmware version, and the coded image interface includes the coded image and coded image scanning instructions.

[0016] In a possible design, generating the registration information of the smart device according to the device attribute information and the user identifier of the user includes:

[0017] Verifying the device attribute information;

[0018] After the device attribute information is verified, a timestamp corresponding to the current time is generated;

[0019] A registration data packet in a preset format is generated according to the device attribute information, the user identifier and the timestamp as registration information of the smart device.

[0020] In a possible design, the returned information includes interface material information, parameters to be configured, a device function list, and the user's preference information, wherein the preference information includes one or more of the user's device function usage record and the device control interface layout record; generating the control interface of the smart device according to the returned information includes:

[0021] Determine, according to the device attribute information, the parameters to be configured, the device function list and the preference information, the initial values ​​of the parameters to be configured of the smart device and the initial layout of the control interface, wherein the initial layout includes each layout element of the control interface and its initial position information in the control interface, and the layout element includes one or more of a button, an icon and a function identifier;

[0022] A control interface of the smart device is generated according to the interface material information, the initial value and the initial layout.

[0023] In a second aspect, the present application provides an initial configuration method for a smart device, which is applied to the smart device, and includes:

[0024] In response to the image scanning instruction, acquiring the coded image displayed by the mobile terminal;

[0025] Decoding the encoded image, and obtaining network access information corresponding to the encoded image according to the decoding result;

[0026] Establishing a communication connection with an access gateway according to the network access information;

[0027] A communication channel is established with the mobile terminal through the communication connection, and device attribute information is sent to the mobile terminal to instruct the mobile terminal to complete the binding of the smart device with the user.

[0028] In a possible design, decoding the encoded image and obtaining network access information corresponding to the encoded image according to the decoding result includes:

[0029] Reading the encrypted information corresponding to the coded image, and decrypting the encrypted information;

[0030] According to the decryption result, the network access information corresponding to the encoded image is obtained.

[0031] In a third aspect, the present application provides a configuration device, applied to a mobile terminal, the device comprising:

[0032] The encoding module is used to obtain the user's network access information in response to the initial configuration instruction; based on the network access information, generate and display the encoding image interface corresponding to the network access information to instruct the smart device to be connected to the target network;

[0033] A registration module, configured to generate registration information of the smart device to be connected to the network in response to the device attribute information sent by the smart device to be connected to the network, according to the device attribute information and the user identifier of the user, and send the registration information to the server to establish a binding relationship between the smart device identifier and the user identifier;

[0034] A generating module is used to generate a control interface of the intelligent device to be connected to the network in response to the return information of the server to the registration information and according to the return information.

[0035] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is run, the initial configuration method of the smart device as described in the first aspect or the second aspect is executed.

[0036] In a fifth aspect, the present application provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the initial configuration method of the smart device as described in the first aspect or the second aspect through the computer program.

[0037] In a sixth aspect, the present application provides a program product, including a computer program, which, when executed by a processor, implements the initial configuration method of a smart device as described in the first aspect or the second aspect.

[0038] The initial configuration method, device and storage medium of the smart device provided in the present application obtain the user's network access information by responding to the initial configuration instruction; generate and display the coded image interface corresponding to the network access information according to the network access information to indicate that the smart device to be connected to the network accesses the target network; respond to the device attribute information sent by the smart device to be connected to the network, generate the registration information of the smart device to be connected to the network according to the device attribute information and the user identification of the user, and send the registration information to the server to establish a binding relationship between the smart device identification and the user identification; respond to the return information of the server to the registration information, generate the control interface of the smart device to be connected to the network according to the return information, thereby improving the execution efficiency and execution success rate of the smart device network access configuration and enhancing the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0040] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0041] Figure 1 is a hardware environment schematic diagram of an initial configuration method of a smart device according to an embodiment of the present application;

[0042] Figure 2 This is a schematic diagram of the process of the initial configuration method of the smart device provided by this application Figure 1 ;

[0043] Figure 3 This is a schematic diagram of the process of the initial configuration method of the smart device provided by this application Figure 2 ;

[0044] Figure 4 It is a structural schematic diagram of a configuration device provided by the present application;

[0045] Figure 5 It is a structural diagram of a network access configuration device provided by the present application;

[0046] Figure 6 It is a structural schematic diagram of an electronic device provided by the present application. DETAILED DESCRIPTION

[0047] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0048] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0049] With the development of communication technology and the popularization of various communication devices, more and more IoT devices are becoming intelligent, and it has become a trend to control IoT devices through clients on terminal devices.

[0050] In actual usage scenarios, the same user may own a large number of smart IoT devices of different types. Each time the user obtains a smart IoT device, the user needs to perform initial configuration for the newly added smart IoT device so that the user can control the device through the client. Existing configuration methods for smart devices usually control the user's mobile terminal to transmit network information to the IoT device through wireless transmission technologies such as LAN broadcast, temporary hotspots or Bluetooth, so that the smart IoT device can access the user's home network for subsequent binding configuration.

[0051] However, when the wireless transmission signal is weak or there is a lot of interference, the wireless transmission may become unstable, which in turn affects the normal progress of the configuration process. The user may need to repeat the tedious configuration process many times, which seriously affects the user experience.

[0052] In response to the above problems, the present application proposes the following technical concept: an image scanning device is configured for the smart IoT device. When the user performs initial configuration on the newly added smart IoT device, the mobile terminal is allowed to encode the network access information into a coded image according to a preset coding rule, and the coded image is displayed through the display device of the mobile terminal. The user can then turn on the image scanning device on the smart IoT device to scan the coded image. The smart IoT device decodes the scanned coded image, obtains the network access information in the coded image, and connects to the target network according to the network access information, and establishes a communication connection with the mobile terminal. The smart IoT device can then send device attribute information to the mobile terminal through the target network. The mobile terminal generates registration information of the smart device to be connected to the network according to the device attribute information and the user ID of the user, and sends the registration information to the server in the cloud to establish a binding relationship between the smart device ID and the user ID; after successful registration, the server sends return information to the mobile terminal and establishes a communication connection with the smart device; the mobile terminal generates a control interface of the smart device to be connected to the network according to the return information, and the user can control the smart IoT device through the control interface; by transmitting the network information through the coded image, the time consumption of the initial configuration of the smart IoT device can be effectively reduced, the success rate of the initial configuration of the smart IoT device can be increased, and the user experience can be improved.

[0053] According to one aspect of an embodiment of the present application, a method for initial configuration of a smart device is provided. The method for initial configuration of a smart device is widely used in smart home, smart home, smart home device ecosystem, smart house ecosystem and other whole-house smart digital control application scenarios. Optionally, in this embodiment, the method for initial configuration of the smart device can be applied to Figure 1 In the hardware environment shown in FIG. 1 , a smart device 101, a mobile terminal 102 and a server 103 are formed. Figure 1As shown, the server 103 is connected to the mobile terminal 102 through a network, and the user inputs the network access information of the target network into the mobile terminal 102. The mobile terminal 102 encodes the network access information into a coded image according to a preset coding rule, and displays the coded image through the display device of the mobile terminal 102. The user can then turn on the image scanning device on the smart device 101 to scan the coded image. The smart device 101 decodes the scanned coded image, obtains the network access information in the coded image, and connects to the network according to the network access information, and establishes a communication connection with the mobile terminal 102; the smart device 101 sends device attribute information to the mobile terminal 102 through the network, and the mobile terminal 102 generates registration information of the smart device 101 according to the device attribute information and the user ID of the user, and sends the registration information to the server 103 to establish a binding relationship between the smart device ID and the user ID; after successful registration, the server 103 sends return information to the mobile terminal 102 and establishes a communication connection with the smart device 101; the mobile terminal 102 generates a control interface of the smart device 101 according to the return information.

[0054] The above network may include but is not limited to at least one of the following: wired network, wireless network. The above wired network may include but is not limited to at least one of the following: wide area network, metropolitan area network, local area network, and the above wireless network may include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth. The smart device 101 may be but is not limited to a PC, a mobile phone, a tablet computer, a smart air conditioner, a smart range hood, a smart refrigerator, a smart oven, a smart stove, a smart washing machine, a smart water heater, a smart washing equipment, a smart dishwasher, a smart projection equipment, a smart TV, a smart clothes drying rack, a smart curtain, a smart audio and video, a smart socket, a smart speaker, a smart fresh air equipment, a smart kitchen and bathroom equipment, a smart bathroom equipment, a smart sweeping robot, a smart window cleaning robot, a smart mopping robot, a smart air purification equipment, a smart steamer, a smart microwave oven, a smart kitchen treasure, a smart purifier, a smart water dispenser, a smart door lock, etc.

[0055] Figure 2 A schematic diagram of a method for initial configuration of a smart device provided in an embodiment of the present application Figure 1 ;like Figure 2 As shown, the initial configuration method of the smart device provided in the embodiment of the present application includes:

[0056] S201: The mobile terminal obtains the user's network access information in response to the initial configuration instruction.

[0057] The network access information may include, for example, a service set identifier and password of a WiFi network at the user's home.

[0058] Specifically, when the user performs initial configuration on a newly added smart device, he or she can first start the device control client installed on the mobile terminal and click on the initial configuration function option provided by the device control client on the display interaction device to send an initial configuration instruction to the mobile terminal. In response to the initial configuration instruction, the display interaction device displays the corresponding network access information filling interface to the user. The user can fill in the network access information in the above-mentioned network access information filling interface and submit the interface after filling in; the mobile terminal then reads the network access information entered by the user.

[0059] S202: The mobile terminal generates and displays a coded image interface corresponding to the network access information according to the network access information.

[0060] Specifically, the mobile terminal encodes the network access information into a coded image according to a preset coding rule, generates a coded image interface including the coded image, and controls the display interaction device to display the coded image interface to instruct the smart device to access the target network.

[0061] S203: The smart device obtains the encoded image information displayed by the mobile terminal in response to the image scanning instruction.

[0062] Specifically, the user may press a corresponding button on the smart device to start a scanning device of the smart device and scan the coded image interface to obtain the coded image information displayed by the mobile terminal.

[0063] S204: The smart device decodes the encoded image information, and obtains network access information corresponding to the encoded image information according to the decoding result.

[0064] Specifically, the smart device decodes the encoded image information according to a preset decoding rule, and obtains the network access information corresponding to the encoded image information according to the decoding result.

[0065] S205: The smart device establishes a communication connection with the access gateway according to the network access information.

[0066] Specifically, the smart device sends a detection request and receives a detection response to the detection request to obtain a list of service set identifiers of surrounding available networks; according to the network access information, the smart device sends a corresponding authentication request and verification information to the access gateway of the WiFi network indicated by the service set identifier in the network access information, and establishes a communication connection with the access gateway.

[0067] S206: The smart device establishes a communication channel with the mobile terminal through the communication connection, and sends device attribute information to the mobile terminal.

[0068] Specifically, the smart device discovers the mobile terminal through the service discovery protocol in the target network indicated by the network access information, and establishes a communication channel with the mobile terminal according to a preset communication protocol; obtains its own device attribute information from a preset storage location, and encodes the device attribute information to generate a broadcast packet, and sends the broadcast packet to the mobile terminal through the established communication channel to instruct the mobile terminal to complete the binding of the smart device and the user.

[0069] S207: The mobile terminal generates registration information of the smart device to be connected to the network in response to the device attribute information sent by the smart device to be connected to the network, according to the device attribute information and the user identification of the user, and sends the registration information to the server.

[0070] Specifically, after receiving the broadcast packet sent by the smart device, the mobile terminal decodes the broadcast packet to obtain device attribute information, and generates registration information of the device to be connected to the network according to a preset data structure format by combining the device attribute information with the user identification of the client login, and sends the registration information to the server according to the preset communication protocol to establish a binding relationship between the smart device identification and the user identification.

[0071] S208: After the registration information is verified, the server associates and stores the smart device identifier with the user identifier, generates return information of the registration information, and sends the return information to the mobile terminal.

[0072] The returned information may include, for example, a registration status indicating whether the registration is successful, a smart device identifier, a user identifier, a function list of the smart device, a timestamp, and control interface materials.

[0073] Specifically, the server receives the registration information sent by the mobile terminal and verifies the registration information; after the registration information is verified, the server stores the smart device identifier to the user identifier, generates return information of the registration information, and sends the return information to the mobile terminal.

[0074] S209: The server establishes a communication channel with the smart device.

[0075] Specifically, the smart device discovers the smart device in the target network through a service discovery protocol, and establishes a communication channel with the smart device according to a preset communication protocol.

[0076] S210: The mobile terminal generates a control interface for the smart device to be connected to the network in response to the return information of the server to the registration information according to the return information.

[0077] Specifically, the mobile terminal receives the return information sent by the server through a preset communication protocol, parses the received return information, and extracts various data therein, such as registration status, device identification, device name, function list, etc. If the registration status indicates that the registration is successful, the attribute information of the smart device is added to the device list of the client, and based on the function list of the device and the material of the control interface, the control interface of the smart device to be connected to the network is generated. The control interface may, for example, include the device identification of the device, the current operating status and a list of functions supported by the device.

[0078] The initial configuration method of the smart device provided in the embodiment of the present application enables the mobile terminal to encode the network access information into a coded image, and displays the coded image through the display device of the mobile terminal, and uses the image scanning device on the smart IoT device to scan the coded image. The smart IoT device decodes the scanned coded image, obtains the network access information in the coded image, and connects to the target network according to the network access information, so that the transmission of the network access information is no longer restricted by the wireless signal transmission conditions, which effectively improves the success rate of the network access configuration.

[0079] Figure 3 A schematic diagram of a method for initial configuration of a smart device provided in an embodiment of the present application Figure 2 ;like Figure 3 As shown, the initial configuration method of the smart device provided in the embodiment of the present application includes:

[0080] S301: The mobile terminal obtains the user's network access information in response to the initial configuration instruction.

[0081] Among them, the network access information includes a unique identifier of the smart device, a service set identifier and a password of the WiFi network; the unique identifier of the device can be printed on the shell or packaging of the smart device, and can be a serial number or a barcode, and the user can directly view or scan to obtain the unique identifier.

[0082] The implementation of step S301 is similar to that of step S201, and will not be described in detail in this embodiment.

[0083] S302: The mobile terminal verifies the network access information.

[0084] Specifically, the mobile terminal checks whether the format of the unique identifier of the smart device, the service set identifier and the password of the WiFi network is correct according to the preset format rules. If correct, the mobile terminal uses the service set identifier and password to try to connect to the WiFi network. If the connection is successful, it confirms that the network access information verification has passed.

[0085] S303: After the network access information is verified, the mobile terminal encrypts the network access information according to an asymmetric encryption algorithm to obtain the encrypted network access information.

[0086] Specifically, after the network access information is verified, the mobile terminal generates a public key acquisition request including the unique identification code of the smart device, and sends it to the cloud server. The cloud server decodes and verifies the public key acquisition request, and after the verification is passed, obtains the public key corresponding to the unique identifier of the smart device from the corresponding storage location; the cloud server encodes and generates a response request including the public key, and sends the response request to the mobile terminal; after receiving the response request, the mobile terminal decodes the response request according to a preset decoding rule, obtains the public key of the smart device, and encrypts the network access information according to the public key and a preset asymmetric encryption algorithm to obtain the encrypted network access information. The asymmetric encryption algorithm can be, for example, an RSA algorithm or an elliptic curve encryption algorithm. The embodiment of the present application does not impose any special restrictions on the specific type and content of the asymmetric encryption algorithm.

[0087] S304: The mobile terminal encodes the encrypted network access information into a coded image, and generates and displays the coded image interface according to the coded image.

[0088] Among them, the coded image interface includes the coded image and the coded image scanning guide, so that the user can refer to the coded image scanning guide, turn on the image scanning device of the smart device, and scan the coded image; the coded image can be, for example, a row-type two-dimensional barcode, a matrix-type two-dimensional barcode, etc. The embodiment of the present application does not impose any special restrictions on the specific type and encoding method of the coded image.

[0089] The implementation of step S304 is similar to that of step S202, and will not be described in detail in this embodiment.

[0090] S305: The smart device obtains the encoded image displayed by the mobile terminal in response to the image scanning instruction.

[0091] The implementation of step S305 is similar to that of step S203, and will not be described in detail in this embodiment.

[0092] S306: The smart device reads the encrypted information corresponding to the encoded image and decrypts the encrypted information.

[0093] Specifically, the smart device reads and parses the scanned coded image information according to a preset image processing algorithm to obtain encrypted information corresponding to the coded image; obtains a pre-stored private key from a corresponding storage location, and decrypts it according to the private key and a preset asymmetric encryption algorithm.

[0094] S307: The smart device obtains the network access information corresponding to the encoded image according to the decryption result.

[0095] Specifically, the smart device obtains the decryption result of the encrypted information, and the decryption result may be a service set identifier and a password of the WiFi network in plain text, that is, the network access information corresponding to the encoded image.

[0096] S308: The smart device establishes a communication connection with the access gateway according to the network access information.

[0097] The implementation of step S308 is similar to that of step S205, and will not be described in detail in this embodiment.

[0098] S309: The smart device establishes a communication channel with the mobile terminal through the communication connection, and sends device attribute information to the mobile terminal.

[0099] The device attribute information includes one or more of a unique identifier of the device, a network card address, a device model, a device function set, and a firmware version.

[0100] The implementation of step S309 is similar to that of step S206, and will not be described in detail in this embodiment.

[0101] S310: The mobile terminal verifies the device attribute information in response to the device attribute information sent by the smart device to be connected to the network.

[0102] Specifically, the mobile terminal reads the unique identifier, device model, device function set and firmware version in the device attribute information, and verifies the device attribute information according to preset attribute security verification conditions. The security verification conditions may include, for example: the device's unique identifier exists in a historical device list, and the historical device list is dynamically updated each time the user enters a unique identifier; the device model is in the model list supported by the client, and the device's firmware version is checked to be within the allowed version range; the device's geographical location is within a preset geographical location range and the device attribute information sending time is within a preset time window, etc.; the embodiment of the present application does not impose any special restrictions on the specific content of the attribute security verification conditions.

[0103] S311: After the device attribute information is verified, the mobile terminal generates a timestamp corresponding to the current time.

[0104] Specifically, if the device attribute information meets the preset security verification condition, the mobile terminal determines that the device attribute information is verified, obtains the current time from the internal clock, and generates a timestamp corresponding to the current time according to a preset format.

[0105] S312: The mobile terminal generates a registration data packet in a preset format according to the device attribute information, the user identifier and the timestamp as registration information of the smart device, and sends the registration data packet to the server.

[0106] Specifically, the mobile terminal generates a registration data packet with the device attribute information, the user identifier and the timestamp according to a preset data packet format and data packet structure, and sends the data packet to the server according to a preset communication protocol; the registration data packet can be, for example, a JSON object or an XML document. The embodiment of the present application does not impose any special restrictions on the specific type of the data packet format and the specific form of the data packet structure.

[0107] Optionally, the data packet may further include a digital signature generated by the mobile terminal according to its private key.

[0108] S313: After the registration information is verified, the server associates and stores the smart device identifier with the user identifier, generates return information of the registration information, and sends the return information to the mobile terminal.

[0109] Specifically, the server verifies the registration information according to preset registration security verification conditions, and the registration security verification conditions may include, for example: the user identifier is a registered legal user identifier, the unique identifier is a legal identifier issued by the factory, the timestamp is within the legal and time range, the digital signature is from a trusted digital source and is complete, etc. The embodiment of the present application does not impose any special restrictions on the specific content of the registration security verification conditions; if the registration information meets the preset registration security verification conditions, the mobile terminal determines that the registration information has been verified, stores the smart device identifier in the smart device list under the user identifier, generates return information of the registration information according to the preset data packet format and data packet structure, and sends the return information to the mobile terminal.

[0110] S209: The server establishes a communication channel with the smart device.

[0111] Specifically, the smart device discovers the smart device in the target network through a service discovery protocol, and establishes a communication channel with the smart device according to a preset communication protocol.

[0112] S315: In response to the server's return information to the registration information, the mobile terminal determines the initial values ​​of the parameters to be configured and the initial layout of the control interface of the smart device according to the device attribute information, the parameters to be configured and the preference information.

[0113] Among them, the return information may include, for example, a registration status indicating whether the registration is successful, a unique identifier of the smart device, a user identifier, a function list of the smart device, a timestamp, materials of the control interface, parameters to be configured, and the user's preference information, etc. The preference information may include, for example, the user's device function usage record and the device control interface layout record, etc.

[0114] The initial layout includes each layout element of the control interface and its initial position information in the control interface. The layout elements may include buttons, icons, and function identifiers, for example.

[0115] Specifically, after receiving the return information sent by the server, the mobile terminal parses the return information, and after determining that the registration status is successful, reads the parameters to be configured and preference information of each device function therein; matches each device function to be configured in the device function list with the user's device function usage record, and for each device function to be configured, determines the initial value of the parameter to be configured for each device function to be configured according to the historical configuration value of each parameter to be configured in the user's device function usage record and according to a preset initial value determination algorithm, wherein the initial value determination algorithm may, for example, be to use the historical configuration value with the highest occurrence frequency of each parameter to be configured as the initial value of the parameter to be configured; determines whether there is a configured device of the same type as the smart device in the device control interface layout record; if so, obtains the layout position of each configured material in the control interface layout of the configured device, and configures the control interface of the smart device according to the layout position of each configured material; if not, uses the pre-stored default layout as the initial layout.

[0116] S316: The mobile terminal generates a control interface of the smart device according to the interface material information, the initial value and the initial layout.

[0117] Specifically, the mobile terminal generates the control interface of the smart device according to the interface material information, the initial value and the initial layout according to a preset rendering algorithm, so that the user can control the smart device through the control interface displayed on the mobile terminal.

[0118] The initial configuration method of a smart device provided in an embodiment of the present application enables a mobile terminal to encrypt the user's network access information and then encode the encrypted information into a coded image, so that the smart device scans the coded image through an image scanning device arranged thereon, parses the coded image, and obtains the network access information according to the parsing result, thereby effectively improving the reliability and security of network access information transmission, and thus improving the efficiency of device network access configuration; by determining the initial values ​​of the parameters to be configured and the initial layout of the control interface of the smart device based on the user's preference information, and generating the control interface of the smart device according to the interface material information, the initial values ​​and the initial layout, the personalized and adaptive configuration of the control interface is realized, so that the initial configuration parameters and the initial control interface layout of the smart device are more in line with the user's usage habits, thereby improving the user's usage experience.

[0119] Figure 4 A schematic diagram of a configuration device provided in an embodiment of the present application; applied to a mobile terminal. Figure 4 As shown, the configuration device 400 provided in the embodiment of the present application includes:

[0120] The encoding module 401 is used to obtain the user's network access information in response to the initial configuration instruction; based on the network access information, generate and display the encoding image interface corresponding to the network access information to instruct the smart device to access the target network.

[0121] The registration module 402 is used to respond to the device attribute information sent by the smart device to be connected to the network, generate registration information of the smart device to be connected to the network according to the device attribute information and the user identification of the user, and send the registration information to the server to establish a binding relationship between the smart device identification and the user identification.

[0122] The generating module 403 is used to generate a control interface of the smart device to be connected to the network in response to the return information of the server to the registration information and according to the return information.

[0123] Optionally, the encoding module 401 is specifically used to verify the network access information; after the network access information is verified, the network access information is encrypted according to an asymmetric encryption algorithm to obtain the encrypted network access information; the encrypted network access information is encoded into a coded image, and based on the coded image, the coded image interface is generated and displayed.

[0124] Optionally, the registration module 402 is specifically used to verify the device attribute information; after the device attribute information is verified, generate a timestamp corresponding to the current time; and generate a registration data packet in a preset format according to the device attribute information, the user identifier and the timestamp as the registration information of the smart device.

[0125] Optionally, the return information includes interface material information, parameters to be configured, a list of device functions and the user's preference information, wherein the preference information includes one or more of the user's device function usage record and the device control interface layout record; the generation module 403 is specifically used to determine the initial values ​​of the parameters to be configured and the initial layout of the control interface of the smart device according to the device attribute information, the parameters to be configured, the list of device functions and the preference information, wherein the initial layout includes each layout element of the control interface and its initial position information in the control interface, and the layout elements include one or more of buttons, icons and function identifiers; the control interface of the smart device is generated according to the interface material information, the initial values ​​and the initial layout.

[0126] The configuration device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be described in detail here.

[0127] Figure 5 A schematic diagram of the structure of a network access configuration device provided in an embodiment of the present application; applied to smart devices. Figure 5 As shown, the network access configuration device 500 provided in the embodiment of the present application includes:

[0128] The decoding module 501 is used to obtain the coded image displayed by the mobile terminal in response to the image scanning instruction; decode the coded image, and obtain the network access information corresponding to the coded image according to the decoding result;

[0129] The communication module 502 is used to establish a communication connection with the access gateway according to the network access information; establish a communication channel with the mobile terminal through the communication connection, and send device attribute information to the mobile terminal to instruct the mobile terminal to complete the binding of the smart device and the user.

[0130] Optionally, the decoding module 501 is specifically used to read the encrypted information corresponding to the encoded image, decrypt the encrypted information; and obtain the network access information corresponding to the encoded image according to the decryption result.

[0131] The network access configuration device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be described in detail here.

[0132] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 6As shown, the present application provides an electronic device, which includes: at least one processor 601 and a memory 602; in addition, the electronic device 600 may also have a communication interface 604 for receiving and sending instructions.

[0133] Wherein, the processor 601, the memory 602 and the communication interface 604 are connected via a bus 603;

[0134] The computer program is stored in the memory 602 and is configured to be executed by the processor 601 to implement the present application. Figure 2-Figure 3 An initial configuration method for a smart device provided by any corresponding embodiment;

[0135] Figure 6 The electronic device of the illustrated embodiment can be used to execute the technical solution of the above-mentioned method embodiment, and its implementation principle and technical effect are similar, which will not be described in detail here.

[0136] In addition, this embodiment further provides a computer-readable storage medium on which a computer program is stored. The computer program is executed by a processor to implement the initial configuration method of the smart device of the above embodiment.

[0137] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0138] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0139] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0140] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform some steps of the methods of various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.

[0141] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example for illustration. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0142] The above is only a preferred embodiment of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. An initial configuration method for a smart device, characterized in that: Applied to mobile terminals, including: In response to the initial configuration instruction, obtaining the user's network access information; According to the network access information, generate and display a coded image interface corresponding to the network access information to instruct the smart device to access the target network; In response to the device attribute information sent by the smart device to be connected to the network, generating registration information of the smart device to be connected to the network according to the device attribute information and the user identification of the user, and sending the registration information to the server to establish a binding relationship between the smart device identification and the user identification; In response to the return information of the server to the registration information, a control interface of the smart device to be networked is generated according to the return information.

2. The initial configuration method of a smart device according to claim 1, characterized in that: The step of generating and displaying a coded image interface corresponding to the network access information according to the network access information includes: Verifying the network access information; After the network access information is verified, encrypting the network access information according to an asymmetric encryption algorithm to obtain encrypted network access information; The encrypted network access information is encoded into a coded image, and the coded image interface is generated and displayed according to the coded image.

3. The initial configuration method of a smart device according to claim 2, characterized in that: The network access information includes a service set identifier and password of the WiFi network, the device attribute information includes one or more of a unique identifier of the device, a network card address, a device model, a device function set and a firmware version, and the coded image interface includes the coded image and a coded image scanning guide.

4. The initial configuration method of a smart device according to claim 1, characterized in that: The step of generating registration information of the smart device according to the device attribute information and the user identifier of the user includes: Verifying the device attribute information; After the device attribute information is verified, a timestamp corresponding to the current time is generated; A registration data packet in a preset format is generated according to the device attribute information, the user identifier and the timestamp as registration information of the smart device.

5. The initial configuration method of a smart device according to claim 1, characterized in that: The returned information includes interface material information, parameters to be configured, a device function list and the user's preference information, wherein the preference information includes one or more of the user's device function usage record and the device control interface layout record; Generating a control interface of the smart device according to the returned information includes: Determine, according to the device attribute information, the parameters to be configured, the device function list and the preference information, the initial values ​​of the parameters to be configured of the smart device and the initial layout of the control interface, wherein the initial layout includes each layout element of the control interface and its initial position information in the control interface, and the layout element includes one or more of a button, an icon and a function identifier; A control interface of the smart device is generated according to the interface material information, the initial value and the initial layout.

6. A method for initial configuration of a smart device, characterized in that: Applied to smart devices, including: In response to the image scanning instruction, acquiring the coded image displayed by the mobile terminal; Decoding the encoded image, and obtaining network access information corresponding to the encoded image according to the decoding result; Establishing a communication connection with an access gateway according to the network access information; A communication channel is established with the mobile terminal through the communication connection, and device attribute information is sent to the mobile terminal to instruct the mobile terminal to complete the binding of the smart device with the user.

7. The initial configuration method of a smart device according to claim 6, characterized in that: The decoding of the encoded image and obtaining network access information corresponding to the encoded image according to the decoding result includes: Reading the encrypted information corresponding to the coded image, and decrypting the encrypted information; According to the decryption result, the network access information corresponding to the encoded image is obtained.

8. A configuration device, characterized in that: Applied to a mobile terminal, the device comprises: The encoding module is used to obtain the user's network access information in response to the initial configuration instruction; based on the network access information, generate and display the encoding image interface corresponding to the network access information to instruct the smart device to be connected to the target network; A registration module, configured to generate registration information of the smart device to be connected to the network in response to the device attribute information sent by the smart device to be connected to the network, according to the device attribute information and the user identifier of the user, and send the registration information to the server to establish a binding relationship between the smart device identifier and the user identifier; A generating module is used to generate a control interface of the intelligent device to be connected to the network in response to the return information of the server to the registration information and according to the return information.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the initial configuration method of the smart device according to any one of claims 1 to 5 or 6 to 7 when running.

10. An electronic device comprising a memory and a processor, characterized in that: The memory stores a computer program, and the processor is configured to execute the initial configuration method of the smart device according to any one of claims 1 to 5 or 6 to 7 through the computer program.

Citation Information

Patent Citations

  • Networking method of wireless network camera

    CN103425956A

  • Intelligent household control system

    CN105974807A

  • Method, device and system for set top box to have access to network, medium and set top box

    CN108093313A

  • Kanban page recommendation method and device, electronic equipment and storage medium

    CN116225281A

  • Equipment networking method and system

    CN116506245A