Network distribution method, network distribution system and mobile terminal
By automatically acquiring and confirming rights via mobile terminals, the problem of cumbersome operation in existing network configuration methods is solved, and a user-friendly network experience is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- WUHU MIDEA KITCHEN & BATH APPLIANCES MFG CO LTD
- Filing Date
- 2022-01-05
- Publication Date
- 2026-07-24
AI Technical Summary
The existing network configuration method is cumbersome to operate, has a poor user experience, and requires too much user involvement in the settings.
The device information of the device to be configured on the network is obtained through the mobile terminal, uploaded to the server to request product information, and the right is confirmed based on the product information. The network configuration information is then sent to the device that has been confirmed.
Reduce user operations during network configuration and improve user network experience.
Smart Images

Figure CN116419279B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of Internet of Things (IoT) technology, and in particular to a power distribution method and system, and a mobile terminal. Background Technology
[0002] With the rapid development of IoT technology, more and more smart devices need to connect to the Internet, and smart devices need to go through a network configuration process. The existing network configuration methods are mainly WiFi wireless access point (AP) network configuration, Bluetooth network configuration, and quick connection network configuration, etc. However, these network configuration methods have cumbersome operation steps, require too much user intervention in the settings, and result in a poor user experience. Summary of the Invention
[0003] The main technical problem addressed by this application is to provide a network distribution method, network distribution system, and mobile terminal to reduce the user's network distribution operations and improve the user's network experience.
[0004] To address the aforementioned technical problems, this application provides a network configuration method. This method, used in a mobile terminal, includes: acquiring data packets broadcast by a device to be configured on the network, and obtaining device information of the device from the data packets; uploading the device information to a server to request product information of the device from the server; confirming the rights of the device based on the product information and the device information; and sending network configuration information to the device that has passed the confirmation, so that the device can perform network configuration based on the network configuration information.
[0005] The above-mentioned process of uploading device information to the server to request product information of the device to be configured on the network includes: uploading device information to the server so that the server can perform authentication and verification based on the device information, and after the authentication and verification are passed, the server returns the product information corresponding to the device information; and obtaining product information from the server.
[0006] The mobile terminal is equipped with a system and an SDK. The process of obtaining data packets broadcast by the device to be configured on the network and extracting device information from the data packets includes: the system obtaining the data packets and MAC address broadcast by the device to be configured on the network, and transmitting the MAC address and data packets to the SDK; the SDK decrypting the data packets to obtain the product serial number of the device to be configured on the network, and establishing a correspondence between the MAC address and the product serial number; the SDK transmitting the public key and MAC address corresponding to the key serial number to the configuration application on the system; and the configuration application decrypting the data packets based on the public key and MAC address corresponding to the key serial number to obtain the device information of the device to be configured on the network.
[0007] The above-mentioned confirmation of rights for the network equipment based on product information includes: the network equipment APP displays product information and obtains selection instructions for the product information; the network equipment APP transmits the MAC address of the network equipment to be distributed, the actual value and reference value of the received signal strength of the received data packet to the SDK based on the selection instructions; if the actual value is greater than or equal to the corresponding reference value, the SDK determines that the network equipment with the MAC address has passed the confirmation of rights.
[0008] The process further includes, after confirming the rights of the network devices based on the product information, the SDK transmits the confirmed MAC address and network data to the network distribution APP; the network distribution APP encrypts the network data and router information to obtain the network distribution information, and then unicasts the network distribution information to the network devices.
[0009] Before the SDK transmits the verified MAC address and distribution network data to the distribution network APP, the process further includes: after the SDK verifies the MAC address and the verification data, generating a random number and a verification identifier, and obtaining configuration information; the SDK encrypts the random number, configuration information, and verification identifier to obtain the distribution network data.
[0010] Before transmitting the MAC address and data packet to the SDK, the process further includes: the system obtaining the actual value of the received signal strength of the received data packet; and in response to the actual value being greater than or equal to the strength threshold and the device to be configured supporting the preset configuration protocol, the process of transmitting the MAC address and data packet to the SDK is executed.
[0011] Prior to confirming the rights of the network equipment to be distributed based on the product information, the process further includes: obtaining router information; and establishing a connection with the router based on the router information.
[0012] The process further includes, after sending network distribution information to the network-to-be-distributed devices that have passed the confirmation of their rights, so that the network-to-be-distributed devices can perform network distribution based on the network distribution information, the process further includes: querying the network distribution status of the network-to-be-distributed devices; based on the status response of the network-to-be-distributed devices, querying the server to see if the network-to-be-distributed devices are online; if online, obtaining the device ID of the network-to-be-distributed devices from the server.
[0013] To address the aforementioned technical problems, this application provides a technical solution: a power distribution network system. This system includes: a mobile terminal, configured to acquire data packets broadcast by devices to be distributed, obtain device information from the data packets, and upload the device information to a server; a server, communicatively connected to the mobile terminal, configured to acquire product information corresponding to the device information and return it to the mobile terminal; the mobile terminal further confirms the rights of the devices to be distributed based on the product information and sends power distribution information to the devices that have passed the confirmation, enabling the devices to be distributed to perform power distribution based on the power distribution information.
[0014] To address the aforementioned technical problems, this application provides a mobile terminal. The mobile terminal includes a processor and a memory connected to the processor. The processor executes program data from the memory to implement the aforementioned network allocation method.
[0015] The beneficial effects of this application's embodiments are as follows: The network configuration method of this application is used in mobile terminals, enabling network connectivity for devices to be configured via mobile terminals. This application first obtains data packets broadcast by the devices to be configured and extracts device information from these packets; then, it uploads the device information to a server to request product information from the server; next, it performs authorization verification on the devices to be configured based on the product information and device information; finally, it sends network configuration information to the devices that have passed authorization verification, enabling them to configure the network based on this information. In this way, this application automatically sends device information to the server via a mobile terminal, obtains product information from the server, performs authorization verification on the devices to be configured, and further sends network configuration information to the devices that have passed authorization verification. Therefore, throughout the entire network configuration process, the user only needs to participate in the authorization verification operation, reducing the user's network configuration operations and improving the user's network experience. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 This is a flowchart illustrating an embodiment of the power distribution network method of this application;
[0018] Figure 2 yes Figure 1 A schematic diagram of the specific process of step S12 in the embodiment;
[0019] Figure 3 This is a flowchart illustrating an embodiment of the power distribution network method of this application;
[0020] Figure 4 This is a flowchart illustrating an embodiment of the power distribution network method of this application;
[0021] Figure 5 This is a flowchart illustrating an embodiment of the power distribution network method of this application;
[0022] Figure 6 This is a flowchart illustrating an embodiment of the power distribution network method of this application;
[0023] Figure 7 This is a schematic diagram of the structure of an embodiment of the power distribution network system of this application;
[0024] Figure 8 yes Figure 7 Schematic diagram of data interaction in a power distribution network system (example). Detailed Implementation
[0025] The present application will now be described in further detail with reference to the accompanying drawings and embodiments. It should be particularly noted that the following embodiments are for illustrative purposes only and do not limit the scope of the application. Similarly, the following embodiments are only some, not all, embodiments of the present application, and all other embodiments obtained by those skilled in the art without inventive effort are within the scope of protection of the present application.
[0026] In the description of the embodiments of this application, it should be noted that, unless otherwise explicitly specified and limited, the terms "connected" and "linked" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium. Those skilled in the art can understand the specific meaning of the above terms in the embodiments of this application based on the specific circumstances.
[0027] In the embodiments of this application, unless otherwise expressly specified and limited, "above" or "below" the second feature can mean that the first feature is in direct contact with the second feature, or that the first feature is in indirect contact with the second feature through an intermediate medium. Furthermore, "above," "on top of," and "over" the second feature can mean that the first feature is directly above or diagonally above the second feature, or simply that the first feature is at a higher horizontal level than the second feature. "Below," "below," and "under" the second feature can mean that the first feature is directly below or diagonally below the second feature, or simply that the first feature is at a lower horizontal level than the second feature.
[0028] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of the embodiments of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0029] This application first proposes a network configuration method for mobile terminals, such as... Figure 1 As shown, Figure 1This is a flowchart illustrating an embodiment of the power distribution method of this application. The power distribution method of this embodiment specifically includes the following steps:
[0030] Step S11: Obtain the data packets broadcast by the device to be configured on the network, and obtain the device information of the device to be configured on the network from the data packets.
[0031] After the device to be configured on the network is powered on, it enters AP mode and broadcasts data packets. These data packets contain device information such as the device's serial number and category.
[0032] AP mode is wireless access point mode. An AP acts as a bridge connecting wired and wireless networks. Its main function is to connect various wireless network clients together and then connect the wireless network to the Ethernet.
[0033] The data packet in this embodiment can be a beacon data packet, which is a broadcast protocol based on the Bluetooth Low Energy protocol.
[0034] To enhance data transmission security, the network device can further encrypt data packets before broadcasting.
[0035] Among them, the devices to be networked can be smart home appliances or other smart home devices.
[0036] Optionally, the data packet in this embodiment further includes a key number, broadcast mode, random number, etc.
[0037] The mobile terminal receives the data packet broadcast by the device to be configured on the network and parses the data packet (if the data packet is encrypted by the device to be configured on the network, it decrypts the data packet before parsing) to obtain the device information of the device to be configured on the network from the data packet.
[0038] Step S12: Upload the device information to the server to request the product information of the device to be configured on the network from the server.
[0039] The server in this embodiment can be a cloud server or a physical server, and there is no limitation.
[0040] The mobile terminal uploads device information to the server and retrieves product information for the device to be configured on the network from the server. This product information may include the device's icon, image, and / or performance parameters. The device information includes the device's serial number and category.
[0041] Specifically, this embodiment can be achieved through, as follows: Figure 2 The method shown implements step S12. The method in this embodiment includes steps S21 and S22.
[0042] Step S21: Upload the device information to the server so that the server can perform authentication and verification based on the device information, and return the product information corresponding to the device information after the authentication and verification are successful.
[0043] The mobile terminal uploads device information, such as the product serial number and category of the device to be configured on the network, to the server. The server authenticates the mobile terminal based on the product serial number and category information to determine if the mobile terminal has permission to control the device. If so, authentication is successful. The server further verifies whether the product serial number and category of the device correspond. If they correspond, verification is successful. If both authentication and verification are successful, the server searches for the product information corresponding to the device information; if authentication or verification fails, the server will not search for or return the product information.
[0044] Step S22: Obtain product information from the server.
[0045] The mobile terminal obtains product information returned by the server.
[0046] In other embodiments, the mobile terminal may further acquire the received signal strength of the data packet and upload the received signal strength to the server. The server may further perform authentication processing based on the received signal strength. For example, if the received signal strength of the data packet received by the mobile terminal is greater than a strength threshold, it can be determined that the distance between the mobile terminal and the device to be configured is less than a distance threshold or the signal transmission quality between the mobile terminal and the device to be configured is higher than a quality threshold. In this case, it is determined that the mobile terminal has the authority to control the device to be configured, and the authentication is successful. Otherwise, the authentication fails.
[0047] Step S13: Confirm the rights of the distribution network equipment based on the product information.
[0048] Mobile terminals can display product information obtained from servers to users and obtain user selection commands to establish ownership of product information for devices to be configured on the network. For example, a mobile terminal can display an icon of the device to be configured on the screen, and the user can authorize the mobile terminal to control the device by clicking the icon on the screen.
[0049] Optionally, after the user confirms the rights, the mobile terminal can re-confirm the rights based on information such as the MAC address and received signal strength of the device to be configured on the network, in order to determine whether the mobile terminal can control the device to be configured on the network.
[0050] Step S14: Send distribution network information to the devices that have passed the confirmation of rights, so that the devices can perform distribution network based on the distribution network information.
[0051] After the aforementioned rights confirmation is approved, the mobile terminal sends the network configuration information to the device to be configured, and the device to be configured performs network configuration based on this information. This network configuration information includes the router information and configuration information connected to the mobile terminal.
[0052] This embodiment automatically sends the device information of the device to be configured to the server through the mobile terminal, obtains the product information of the device to be configured to the server and confirms the rights of the device to be configured to the server, and further sends the configuration information to the device to be configured that has passed the rights confirmation. Therefore, in the entire configuration process, the user only needs to participate in the rights confirmation operation, which can reduce the user's configuration operation in the configuration process and improve the user's network experience.
[0053] In another embodiment, the mobile terminal needs to be equipped with a dedicated Software Development Kit (SDK). By calling the SDK, data is transmitted with the corresponding dedicated server to ensure data security and compatibility.
[0054] Specifically, the mobile terminal in this embodiment includes a system and an SDK. For example... Figure 3 As shown, Figure 3 This is a flowchart illustrating an embodiment of the power distribution method of this application. The power distribution method of this embodiment specifically includes the following steps:
[0055] Step S31: The system obtains the data packets and MAC addresses broadcast by the device to be configured on the network, and transmits the MAC addresses and data packets to the SDK.
[0056] The system includes a processing system and a distribution network APP. The processing system receives data packets broadcast by the device to be distributed and obtains the MAC address of the device. The processing system transmits the data packets and MAC addresses to the distribution network APP, and the distribution network APP transmits the data packets and MAC addresses to the SDK.
[0057] In another embodiment, after the processing system obtains the data packet and MAC address broadcast by the device to be configured on the network, the processing system obtains the actual value of the received signal strength of the received data packet and determines the magnitude of the actual value and the strength threshold. If the actual value is greater than or equal to the strength threshold, and the device to be configured on the network supports a preset configuration protocol, then the MAC address and data packet are transmitted to the configuration application. This strength threshold can be (-42dBm) to (-48dBm), such as -42dBm, -43dBm, -44dBm, -45dBm, -46dBm, -47dBm, -48dBm, etc.
[0058] If the received signal strength of the data packet received by the mobile terminal's processing system is greater than or equal to the strength threshold, and the network distribution device supports the preset network distribution protocol, then the device to be distributed is determined to be a compliant device. The processing system then transmits a prompt message, the data packet of the device to be distributed, and its MAC address to the network distribution APP. The network distribution APP then transmits the MAC address of the device to be distributed and the data packet to the SDK.
[0059] The device to be configured with this preset network configuration protocol is configured before leaving the factory or before use to ensure that it can connect to the network and be controlled during use. Mobile terminals can query the network configuration protocol of the device to be configured based on its MAC address (or through a server) and other information.
[0060] Step S32: The SDK decrypts the data packet, obtains the product serial number of the device to be configured on the network, and establishes a correspondence between the MAC address and the product serial number.
[0061] The SDK establishes a mapping between the MAC address of the device to be configured and the product serial number. Since the product serial number is unique to each device with network configuration, the device to be configured can be determined based on the MAC address.
[0062] In this embodiment, the mobile terminal uses the SDK to decrypt data packets. On the one hand, this can improve the data security between the system and the SDK. On the other hand, since the SDK in this embodiment is a dedicated SDK corresponding to the server and is not developed based on the mobile terminal, the data format is converted through the decryption process, enabling the system to communicate with the server.
[0063] Step S33: The SDK transmits the public key and MAC address corresponding to the key serial number to the network configuration APP on the system side.
[0064] The SDK decrypts each encrypted data packet, and each data packet corresponds to a different key sequence number. The SDK obtains the key sequence number and the public key corresponding to the key sequence number from the data packet, and can match the key sequence number, public key and MAC address according to the correspondence between the product serial number and MAC address in the data packet. The SDK transmits the key sequence number, public key, MAC address and the correspondence between them to the network configuration APP.
[0065] Step S34: The network distribution APP decrypts the data packet based on the public key and MAC address corresponding to the key sequence number to obtain the device information of the device to be distributed.
[0066] The distribution network APP uses the public key corresponding to the key serial number to decrypt the data packet with the MAC address corresponding to the key serial number in order to obtain the device information of the corresponding device to be distributed.
[0067] Steps S31 to S34 in this embodiment implement step S11 of the above embodiment.
[0068] Step S35: Upload the device information to the server to request the product information of the device to be configured on the network from the server.
[0069] The distribution network app uploads device information, such as the product serial number and category of the device to be distributed, to the server. The server authenticates the device based on the product serial number and category information to determine if the mobile terminal has permission to control the device. If so, authentication is successful. The server further verifies whether the product serial number and category of the device correspond. If they correspond, verification is successful. If both authentication and verification are successful, the server searches for the product information corresponding to the device information; if authentication or verification fails, the server will not search for or return the product information.
[0070] The power distribution network APP obtains product information returned by the server.
[0071] In other embodiments, the distribution network APP can further obtain the received signal strength of the data packet and upload the received signal strength to the server. The server further performs authentication processing based on the received signal strength. For example, if the received signal strength of the data packet received by the processing system is greater than the strength threshold, it can be determined that the distance between the mobile terminal and the device to be distributed is less than the distance threshold or the signal transmission quality between the mobile terminal and the distribution network device is higher than the quality threshold. In this case, it is determined that the mobile terminal has the right to control the device to be distributed, and the authentication is successful; otherwise, the authentication fails.
[0072] Step S36: The power distribution APP displays product information and obtains selection instructions for the product information.
[0073] The power distribution network app can display product information of the devices to be distributed to the network, such as icons and performance parameters, through its interface. The app also receives user input to authorize control of the devices' product information. For example, the app can display the icon of the device to be distributed to the user, who can then authorize control of the device via their mobile device by clicking the icon.
[0074] Step S37: The distribution network APP transmits the MAC address of the device to be distributed, the actual value and reference value of the received signal strength of the received data packet to the SDK based on the selection command.
[0075] After the user confirms the product information, the distribution network APP transmits the MAC address of the device to be distributed, the actual value and reference value of the received signal strength of the received data packet to the SDK.
[0076] Step S38: If the actual value is greater than or equal to the corresponding reference value, the SDK determines that the network device with the MAC address has passed the authorization confirmation.
[0077] After confirming the product information, the SDK can reconfirm the authorization based on information such as the MAC address and received signal strength of the device to be configured on the network, in order to determine whether the mobile terminal can control the device to be configured on the network.
[0078] Steps S36 to S38 in this embodiment implement step S13 of the above embodiment.
[0079] Step S39: The distribution network APP sends distribution network information to the devices that have passed the confirmation of rights, so that the devices can perform distribution network based on the distribution network information.
[0080] The distribution network APP sends distribution network information to the devices that have passed the authorization through the processor, so that the devices can perform distribution network based on the distribution network information.
[0081] Step S39 is similar to step S14 above, and will not be described in detail here.
[0082] In another embodiment, such as Figure 4 As shown, Figure 4 This is a flowchart illustrating an embodiment of the power distribution method of this application. The power distribution method of this embodiment specifically includes the following steps:
[0083] Step S41: The system obtains the data packets and MAC addresses broadcast by the device to be configured on the network, and transmits the MAC addresses and data packets to the SDK.
[0084] Step S42: The SDK decrypts the data packet, obtains the product serial number of the device to be configured on the network, and establishes a correspondence between the MAC address and the product serial number.
[0085] Step S43: The SDK transmits the public key and MAC address corresponding to the key sequence number to the network configuration APP on the system side.
[0086] Step S44: The network distribution APP decrypts the data packet based on the public key and MAC address corresponding to the key sequence number to obtain the device information of the device to be distributed.
[0087] Step S45: Upload the device information to the server to request the product information of the device to be configured on the network from the server.
[0088] Step S46: The power distribution APP displays product information and obtains selection instructions for the product information.
[0089] Step S47: The network distribution APP transmits the MAC address of the device to be distributed, the actual value and reference value of the received signal strength of the received data packet to the SDK based on the selection command.
[0090] Step S48: If the actual value is greater than or equal to the corresponding reference value, the SDK determines that the network device with the MAC address has passed the authorization process.
[0091] Steps S41 to S48 are similar to steps S31 to S38 above, and will not be repeated here.
[0092] Step S49: The SDK transmits the verified MAC address and network distribution data to the network distribution APP.
[0093] The distribution network data includes random numbers, configuration information, and ownership identification.
[0094] Step S410: The distribution network APP encrypts the distribution network data and router information to obtain the distribution network information, and sends the distribution network information to the device to be distributed via unicast.
[0095] This router information pertains to the router connected to the mobile terminal. The network configuration app can determine this router information upon receiving the user's selection command.
[0096] The distribution network APP can encrypt distribution network data and router information using keys generated through methods such as ECDH key exchange.
[0097] Furthermore, the distribution network APP can also encrypt information such as the router's channel, service set identifier (SSID), and encryption method, and send them to the device to be distributed.
[0098] Optionally, this embodiment may further include steps S401 and S402 before step S49.
[0099] Step S401: After the SDK authorization is approved, a random number and authorization identifier are generated, and configuration information is obtained.
[0100] This configuration information may include protocol information, IP address, DNS, and other auxiliary information.
[0101] Step S402: The SDK encrypts the random number, configuration information, and rights confirmation identifier to obtain the distribution network data.
[0102] Random numbers, configuration information, and ownership identifiers can be encrypted using methods such as CCM encryption to improve data security and compatibility.
[0103] The SDK can also look up the product serial number corresponding to a MAC address by matching the MAC address with the product serial number, and establish a correspondence between the product serial number and random numbers and other information.
[0104] The device to be configured on the network connects to the router based on the network configuration information.
[0105] In another embodiment, such as Figure 5 As shown, the distribution network method in this embodiment specifically includes the following steps:
[0106] Step S51: Obtain the data packets broadcast by the device to be configured on the network, and obtain the device information of the device to be configured on the network from the data packets.
[0107] Step S52: Upload the device information to the server to request the product information of the device to be configured on the network from the server.
[0108] Step S53: Display product information and obtain instructions on selecting product information.
[0109] For details on the implementation of steps S51 and S53, please refer to the above embodiments.
[0110] Step S54: Obtain router information.
[0111] Mobile terminal router information includes the router's login account, password, and other information.
[0112] Step S55: Establish a connection with the router based on the router information.
[0113] The mobile terminal establishes a connection with the router based on the router information; the mobile terminal can pre-connect to the router, which can be completed in advance. If it has not been completed in advance, a reminder interface will pop up during the network configuration process, prompting the user to connect the mobile terminal to the router.
[0114] Step S56: Based on the selection command, transmit the MAC address of the device to be configured, the actual value and reference value of the received signal strength of the received data packet to the SDK.
[0115] Step S57: If the actual value is greater than or equal to the corresponding reference value, the network device with the MAC address is confirmed to have passed the authorization process.
[0116] Step S58: Send distribution network information to the devices that have passed the confirmation of rights, so that the devices can perform distribution network based on the distribution network information.
[0117] For details on the implementation of steps S56 and S58, please refer to the above embodiments.
[0118] In another embodiment, such as Figure 6 As shown, this embodiment specifically includes the following steps:
[0119] Step S61: Obtain the data packets broadcast by the device to be configured on the network, and obtain the device information of the device to be configured on the network from the data packets.
[0120] Step S62: Upload the device information to the server to request the product information of the device to be configured on the network from the server.
[0121] Step S63: Confirm the rights of the distribution network equipment based on the product information.
[0122] Step S64: Send distribution network information to the devices that have passed the confirmation of rights, so that the devices can perform distribution network based on the distribution network information.
[0123] For details on the implementation of steps S61 and S64, please refer to the above embodiments.
[0124] Step S65: Query the network distribution status of the device to be distributed.
[0125] After the device to be configured obtains the network configuration information, it connects to the router; the mobile terminal sends a query command to the device to be configured to check the network configuration status; the device to be configured returns a status response to the mobile terminal via unicast mode. This status response is used to inform the mobile terminal whether the network configuration information has been successfully sent, that is, whether the device to be configured has successfully received the network configuration information.
[0126] Step S66: Based on the status response of the device to be configured, query the server to see if the device is online.
[0127] If the network configuration data is successfully transmitted, the mobile terminal will query the server to see if the device is online, based on its MAC address. Specifically, the mobile terminal can upload information such as the MAC address, product serial number, and random number of the device to be configured to the server, so that the server can determine whether the device is online based on this information.
[0128] Step S67: If online, obtain the device ID of the device to be configured on the network from the server.
[0129] If the device to be configured is online, the mobile terminal obtains the device ID corresponding to the MAC address from the server; the mobile terminal binds the device ID to control the device to be configured.
[0130] This application further proposes a power distribution network system, such as Figure 7 As shown, Figure 7 This is a schematic diagram of the structure of an embodiment of the distribution network system of this application. The distribution network system of this embodiment (not shown in the figure) includes: a mobile terminal 71 and a server 72; wherein, the mobile terminal 71 is used to obtain data packets broadcast by the device to be distributed 73, obtain the device information of the device to be distributed 73 from the data packets, and upload the device information to the server 72; the server 72 is communicatively connected to the mobile terminal 71, and is used to obtain product information corresponding to the device information and return it to the mobile terminal 71; the mobile terminal 71 further confirms the rights of the device to be distributed based on the product information, and sends distribution network information to the device to be distributed 73 that has passed the confirmation, so that the device to be distributed can perform distribution network based on the distribution network information.
[0131] In this embodiment, server 72 can be a cloud server or a physical server, and mobile terminal 71 can be a mobile phone, etc. The device to be configured on the network 73 can be a smart home appliance or other smart home device.
[0132] Optionally, the mobile terminal 71 is equipped with a dedicated SDK, which is used to transmit data with the corresponding dedicated server 72 to ensure data security and compatibility. The mobile terminal 71 includes a system and an SDK, and the system includes a processing system and a network configuration APP.
[0133] The working principle of the distribution network system in this embodiment can be found in the above embodiments.
[0134] In an application scenario, such as Figure 8As shown, after the device 73 to be configured is powered on, it enters AP mode and broadcasts data packets, which can be beacon data packets. These data packets contain device information, key number, broadcast mode, and random numbers for the device 73 to be configured. The device information includes the product serial number (SN) and category of the device 73. The processing system obtains the data packets and MAC address broadcast by the device 73 to be configured. The processing system also obtains the actual value of the received signal strength (RSSI) of the received data packets and determines whether the actual value is greater than or equal to the strength threshold. If the actual value is greater than or equal to the strength threshold, and the device 73 to be configured supports the preset configuration protocol, the processing system transmits the MAC address and data packets to the configuration APP. The configuration APP then transmits the data packets and MAC address to the SDK. The SDK decrypts the data packets to obtain the key information. The SDK obtains the product serial number of the distribution device 73 and establishes a mapping between the MAC address and the product serial number; the SDK transmits the public key and MAC address corresponding to the key serial number to the distribution APP; the distribution APP decrypts the data packet based on the public key and MAC address corresponding to the key serial number to obtain the device information of the device 73 to be distributed; the distribution APP uploads the product serial number, category, and other device information of the device 73 to be distributed, as well as the received signal strength, to the server 72; the server 72 performs authentication and verification based on the product serial number and category information (authentication is performed based on the product serial number and category information to determine whether the mobile terminal has the authority to control the device to be distributed and to receive the received signal of the data packet). If the signal strength exceeds the threshold, authentication passes. If the product serial number corresponds to the product category, verification passes. After authentication and verification, the icon of the device to be configured (73) is returned to the configuration app. The configuration app displays product information, obtains selection instructions, determines router information based on the selection instructions, and connects to the router. The configuration app transmits the MAC address of the device to be configured, the actual value of the received signal strength of the received data packet, and a reference value to the SDK. If the actual value is greater than or equal to the corresponding reference value, the SDK determines that the device to be configured (73) with the MAC address has passed authentication. After authentication, the SDK generates a random number and an authentication identifier. The SDK obtains configuration information; it encrypts the random number, configuration information, and authorization identifier to obtain network distribution data; the SDK transmits the authorized MAC address and network distribution data to the network distribution APP; the network distribution APP encrypts the network distribution data and router information to obtain network distribution information, and sends the network distribution information unicast to the device to be networked 73; the processing system queries the network distribution status of the device to be networked 73; based on the status response of the device to be networked 73, the network distribution APP queries the server 72 to see if the device to be networked 73 is online; if online, the network distribution APP obtains the device ID of the device to be networked 73 from the server 72 and binds the device ID to achieve control of the device to be networked 73.
[0135] The network distribution system in this embodiment can distribute multiple devices 73 to be distributed, and can be distinguished by the MAC address and product serial number of the devices 73 to be distributed.
[0136] This application further proposes a mobile terminal, including a processor and a memory connected to the processor, wherein the processor executes program data in the memory to implement the above-described network distribution method based on the system framework of the mobile terminal in the above embodiments.
[0137] The processor can be integrated within the controller; it can also be called a CPU (Central Processing Unit). A processor may be an integrated circuit chip with signal processing capabilities. A processor can also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. A general-purpose processor can be a microprocessor or any conventional processor.
[0138] Other structures of the mobile terminal can be found in the above embodiments.
[0139] Unlike existing technologies, the network configuration method of this application is used for mobile terminals, enabling network connectivity for devices to be configured via mobile terminals. This application first acquires data packets broadcast by the devices to be configured and extracts device information from these packets. Next, it uploads the device information to a server to request product information from the server. Then, it confirms the rights of the devices based on the product and device information. Finally, it sends network configuration information to the devices that have passed the confirmation process, enabling them to configure the network. In this way, this application automatically sends device information to the server via a mobile terminal, retrieves product information from the server, confirms the rights of the devices, and then sends network configuration information to the devices that have passed the confirmation process. Therefore, throughout the entire network configuration process, the user only needs to participate in the confirmation operation, reducing the user's network configuration operations and improving the user's network experience.
[0140] The above description is merely an embodiment of this application and does not limit the patent scope of this application. Any equivalent structural or procedural changes made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.
Claims
1. A power distribution network method, characterized in that, For use in mobile terminals, including: Obtain the data packets broadcast by the device to be configured on the network, and obtain the device information of the device to be configured on the network from the data packets; The device information is uploaded to the server to request product information of the device to be configured on the network from the server; The rights to the network-connected equipment are confirmed based on the product information. Send network distribution information to the network-to-distribution device that has passed the confirmation of rights, so that the network-to-distribution device can perform network distribution based on the network distribution information; The mobile terminal is equipped with a network configuration APP and SDK, and the process of confirming the rights of the device to be configured based on the product information includes: The power distribution network APP displays the product information and obtains selection instructions for the product information; The network distribution APP transmits the MAC address of the device to be distributed, the actual value and reference value of the received signal strength of the data packet to the SDK based on the selection instruction; If the actual value is greater than or equal to the corresponding reference value, the SDK determines that the network device with the MAC address has been granted authorization.
2. The distribution network method according to claim 1, characterized in that, The step of uploading the device information to the server to request the product information of the device to be configured on the network from the server includes: The device information is uploaded to the server so that the server can perform authentication and verification based on the device information, and after the authentication and verification are successful, the server returns the product information corresponding to the device information. The product information is obtained from the server.
3. The distribution network method according to claim 1, characterized in that, The mobile terminal is equipped with a system terminal. The step of acquiring the data packets broadcast by the device to be configured on the network and obtaining the device information of the device to be configured on the network from the data packets includes: The system obtains the data packets and MAC addresses broadcast by the device to be configured on the network, and transmits the MAC addresses and the data packets to the SDK; The SDK decrypts the data packet, obtains the product serial number of the device to be configured on the network, and establishes a correspondence between the MAC address and the product serial number. The SDK transmits the public key and MAC address corresponding to the key sequence number to the network configuration APP on the system side; The network configuration application decrypts the data packet based on the public key and MAC address corresponding to the key serial number to obtain the device information of the device to be configured.
4. The distribution network method according to claim 1, characterized in that, After confirming the rights of the device to be distributed to the network based on the product information, the process further includes: The SDK transmits the verified MAC address and network distribution data to the network distribution APP. The network distribution APP encrypts the network distribution data and router information to obtain network distribution information, and then sends the network distribution information to the device to be distributed via unicast.
5. The distribution network method according to claim 4, characterized in that, Before the SDK transmits the verified MAC address and the network distribution data to the network distribution APP, it further includes: After the SDK is successfully authenticated, a random number and authentication identifier are generated, and configuration information is obtained. The SDK encrypts the random number, the configuration information, and the rights confirmation identifier to obtain the distribution network data.
6. The distribution network method according to claim 3, characterized in that, Before transmitting the MAC address and the data packet to the SDK, the method further includes: The system acquires the actual value of the received signal strength when receiving the data packet; If the actual value is greater than or equal to the strength threshold and the device to be configured supports the preset configuration protocol, then the step of transmitting the MAC address and the data packet to the SDK is executed.
7. The distribution network method according to claim 1, characterized in that, Before confirming the rights of the network-connected device based on the product information, the method further includes: Obtain router information; A connection is established with the router based on the router information.
8. The distribution network method according to any one of claims 1 to 7, characterized in that, After sending distribution network information to the network-to-be-distributed device that has passed the confirmation of rights, so that the network-to-be-distributed device can perform network distribution based on the distribution network information, the process further includes: Query the network distribution status of the device to be distributed; Based on the status response of the device to be configured on the network, the server is used to query whether the device to be configured on the network is online. If online, the device ID of the device to be configured on the network is obtained from the server.
9. A power distribution network system, characterized in that, include: A mobile terminal is used to acquire data packets broadcast by a device to be configured on the network, to obtain device information of the device to be configured on the network from the data packets, and to upload the device information to a server. The server is communicatively connected to the mobile terminal to obtain product information corresponding to the device information and return it to the mobile terminal. The mobile terminal further verifies the authorization of the device to be configured on the network based on the product information, and sends network configuration information to the device that has passed the authorization verification, so that the device to be configured on the network can perform network configuration based on the network configuration information. The mobile terminal is equipped with a network configuration APP and SDK. The verification of authorization of the device to be configured on the network based on the product information includes: The power distribution network APP displays the product information and obtains selection instructions for the product information; The network distribution APP transmits the MAC address of the device to be distributed, the actual value and reference value of the received signal strength of the data packet to the SDK based on the selection instruction; If the actual value is greater than or equal to the corresponding reference value, the SDK determines that the network device with the MAC address has been granted authorization.
10. A mobile terminal, characterized in that, It includes a processor and a memory connected to the processor, wherein the processor executes program data in the memory to implement the distribution network method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Method for guiding intelligent equipment to access network, medium, control terminal and system
CN111246545A
Network configuration method, device, equipment and system
CN113099440A
Network configuration method, terminal equipment and readable storage medium
CN113316147A