Automatic network access, automatic connection method, system, device and medium
Through the electronic device broadcasting the network access identification and matching the network access identification of the preset network when the electronic device is powered on, the automatic connection of the smart device is realized, solving the problem of complicated manual authorization in the existing technology, improving the user experience and ensuring the connection security. .
Patent Information
- Application Number
- CN202110184819.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-10
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2041-02-10
AI Technical Summary
Existing smart devices require manual authorization from users when accessing the network, resulting in a poor and complicated user experience, especially in multi-device connection scenarios, which increases the user's operational burden.
Through the electronic device broadcasting the network access ID when it is powered on, the network access device receives and matches the network access ID in advance, and automatically completes the connection without additional user authorization, simplifying the device access process.
It enables smart devices to automatically connect in a network environment, improves user experience, simplifies authorization operations, and ensures connection security and privacy.
Smart Images

Figure CN114916038B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to an automatic network access and automatic connection method, system, device and medium. Background Art
[0002] At present, with the continuous promotion and popularization of smart devices, users' demand for the use of smart devices is also increasing, and they are beginning to shift from the functional requirements of smart devices to paying more attention to how to improve the convenience of using these smart devices. Smart devices need to be connected to a network environment for use, such as the most common local area network or home network.
[0003] In actual application scenarios, multiple smart devices can be connected to a local area network at the same time. For example, in a home network, multiple smart devices such as smartphones, tablets, computers, smart TVs, smart speakers, routers, etc. can be connected at the same time. Considering the privacy of the home network environment, before the smart device accesses the home network, the access action needs to be verified for security, and the user is required to authorize the access request of the smart device to the home network. Summary of the invention
[0004] The purpose of this application is to provide an automatic network access and automatic connection method, system and device. Through the technical solution of this application, electronic devices can automatically connect by broadcasting network access identification when they need to access a new network environment or connect to other Bluetooth devices for the first time. The technical solution of this application can realize automatic connection when the electronic device is in the power-on state on the basis of ensuring the security and privacy of the user device connection, thereby improving the user experience.
[0005] A first aspect of the present application provides a network access method for an electronic device, comprising: a network access device receives a first network access identifier of a first electronic device; the first electronic device broadcasts a network access request, wherein the network access request includes a second network access identifier of the first electronic device; the network access device matches the second network access identifier in the network access request with the first network access identifier based on the received network access request; and the network access device connects the first electronic device to a preset network when the first network access identifier and the second network access identifier match.
[0006] That is, in an embodiment of the present application, the first electronic device can broadcast its own second network access identifier to the surrounding environment when it is powered on, and the network access device of the preset network can receive the first network access identifier of the first electronic device in advance, and judge whether the first electronic device is allowed to access the preset network by comparing whether the second network access identifier matches the first network access identifier. In the case where the first network access identifier and the second network access identifier match, it means that the first electronic device is allowed to access the preset network. At this time, the network access device automatically connects the first electronic device to the preset network without the user performing additional authorization operations, thereby improving the user's experience of using the first electronic device.
[0007] For example, the preset network may be a local area network such as a home network, and the network access device may be an access point device of the local area network such as a router or a laptop computer. The first electronic device may be a terminal device such as a smart printer or a smart scanner that needs to be connected to the local area network. The first network access identifier may be the product serial number of the first electronic device, which is used to identify the identity of the first electronic device and is unique. The second network access identifier may be the same as the first network access identifier, or it may be verification information that has a one-to-one correspondence with the first network access identifier. The network access device determines whether the first electronic device has access rights to the preset network by matching the first network access identifier and the second network access identifier, and connects the first electronic device to the preset network if the first network access identifier and the second network access identifier match.
[0008] In a possible implementation of the first aspect above, the network access method also includes: when the purchase order of the first electronic device is completed, the second electronic device obtains the first network access identifier of the first electronic device from the first server; wherein, when the purchase order of the first electronic device is generated, the first server obtains the first network access identifier of the first electronic device from the first electronic device; and the second electronic device is able to access a preset network.
[0009] For example, the first server may be a shopping mall server, and when a purchase order for the first electronic device is generated, the first network access identifier of the first electronic device is obtained. The second electronic device may be a user device such as a mobile phone, and the user may confirm receipt of the first electronic device through the user device such as a mobile phone, thereby completing the purchase order for the first electronic device. When the purchase order for the first electronic device is completed, the second electronic device may obtain the first network access identifier of the first electronic device from the shopping mall server.
[0010] In a possible implementation of the first aspect above, upon receiving the first network access identifier of the first electronic device, the second electronic device sends the first network access identifier of the first electronic device to the network access device.
[0011] It can be understood that since the second electronic device can access the preset network, the second electronic device can send the first network access identifier of the first electronic device to the network access device of the preset network. The second electronic device can send the first network access identifier to the network access device in a timely manner after receiving the first network access identifier of the first electronic device, so as to ensure that the first electronic device can smoothly access the preset network when it is powered on.
[0012] In a possible implementation of the first aspect above, the second electronic device sends the first network access identifier of the first electronic device to the network access device when the second server verifies that the first account bound to the first electronic device meets the access conditions of the preset network; wherein, when the purchase order of the first electronic device is completed, the second electronic device sends the binding information of the first electronic device and the first account to the second server.
[0013] That is, in an embodiment of the present application, the authentication process for the first electronic device to connect to the preset network can be implemented by means of account verification. When the first account bound to the first electronic device meets the access conditions of the preset network, it means that the first electronic device corresponding to the first account meets the access conditions of the preset network and can access the preset network. At this time, the second electronic device carrying the first network access identifier sends the first network access identifier to the network access device of the preset network, thereby ensuring that the first electronic device can successfully access the preset network by broadcasting the second network access identifier after power-on. Among them, the binding information of the first electronic device and the first account is confirmed by the user through the second electronic device, and the user can select a suitable first account so that the first electronic device can successfully access the preset network that the user needs to connect to.
[0014] For example, the second electronic device may be a user device such as a mobile phone, and the user may confirm the receipt of the first electronic device through the user device such as a mobile phone, thereby completing the purchase order of the first electronic device. When the purchase order of the first electronic device is completed, the user may bind the first electronic device to the first account through the user device, and the first account may be the device account bound to the first electronic device. The second server determines whether the first electronic device can access the preset network based on the binding information between the first electronic device and the first account by verifying whether the first account (such as the device account) meets the access conditions of the preset network: when the first account meets the access conditions of the preset network, it means that the first electronic device can access the preset network, and at this time, the second electronic device sends the first network access identifier of the first electronic device to the network access device.
[0015] In a possible implementation of the first aspect above, the second server pre-acquires binding information between a preset network and a second account; the second server matches the first account and the second account based on the received binding information between the first electronic device and the first account, and verifies that the first account meets the access conditions of the preset network when the first account and the second account match.
[0016] For example, the second account may be a network account corresponding to a preset network, and each network account may have at least one connection permission account that allows access to the network environment corresponding to the network account. The second server determines whether the device account as the first account and the second account as the network account match by identifying whether the device account of the first electronic device belongs to the connection permission account of the network account. In the case where the device account belongs to the connection permission account of the network account, it means that the first electronic device corresponding to the device account is allowed to be connected to the preset network corresponding to the network account, that is, the first account and the second account match.
[0017] In a possible implementation of the first aspect above, the second electronic device sends the first network access identifier to the network access device through the second server when the second server verifies that the first account bound to the first electronic device meets the access conditions of the preset network. It can be understood that the second electronic device (such as a mobile phone) can access the preset network (such as a home network), but it cannot be guaranteed to be always connected to the preset network. The first network access identifier of the first electronic device to be connected to the network access device (such as a router) of the preset network may be sent in time by the second electronic device to the network access device (such as a router) of the preset network. The situation, which causes the first electronic device to be unable to complete the automatic access to the preset network in the first time after power-on. In this case, considering that the second electronic device (such as a mobile phone) can maintain a connection with the second server (such as an account server), and the preset network can also maintain a connection with the second server, the second electronic device can send the first network access identifier of the first electronic device to the network access device through the second server, so that the network access device can obtain the first network access identifier in time, ensuring that the first electronic device can successfully access the preset network when the second network access identifier is broadcast after the first power-on.
[0018] In a possible implementation of the first aspect above, the network access method also includes: when the purchase order of the first electronic device is completed, the second server obtains the first network access identifier of the first electronic device from the first server; wherein, when the purchase order of the first electronic device is generated, the first server obtains the first network access identifier of the first electronic device from the first electronic device.
[0019] That is, in an embodiment of the present application, the first network access identifier of the first electronic device can also be sent directly from the first server to the second server. For example, the first server can be a shopping mall server, and the first network access identifier of the first electronic device is obtained when a purchase order for the first electronic device is generated. The second server can be an account server that has a connection channel with the shopping mall server, and the first network access identifier of the first electronic device is obtained from the shopping mall server when the purchase order for the first electronic device is completed.
[0020] In a possible implementation of the first aspect, the second server sends the first network access identifier of the first electronic device to the network access device when verifying that the first account bound to the first electronic device meets the access conditions of the preset network; wherein, when the purchase order of the first electronic device is completed, the second electronic device sends the binding information between the first electronic device and the first account to the second server. It can be understood that whether the second server or the second electronic device receives the first network access identifier of the first electronic device, the authentication process for the first electronic device to connect to the preset network can be implemented by account verification, which will not be elaborated here.
[0021] In a possible implementation of the first aspect above, the second server pre-acquires the binding information between the preset network and the second account; the second server matches the first account with the second account based on the received binding information between the first electronic device and the first account, and verifies that the first account meets the access conditions of the preset network when the first account and the second account match. It can be understood that when the first server sends the first network access identifier of the first electronic device to the second server, the second server also needs to match the first account with the second account of the preset network based on the received binding information between the first electronic device and the first account. The matching process can adopt the same matching strategy as described above, which will not be repeated here. When the first account and the second account match, the second server sends the first network access identifier of the first electronic device to the network access device for local storage.
[0022] In a possible implementation of the first aspect above, the second server sends the first network access identifier of the first electronic device to the network access device when verifying that the first account bound to the first electronic device meets the access conditions of the preset network and receiving the network access identifier update request from the network access device; wherein, if the first network access identifier and the second network access identifier fail to match successfully for the first time, the network access device sends the network access identifier update request to the second server.
[0023] That is, in an embodiment of the present application, the first network access identifier of the first electronic device can be stored in a second server (such as an account server). When the first electronic device is powered on and starts broadcasting the second network access identifier, the network access device first matches and identifies the second network access identifier based on the historical first network access identifier information stored locally. In the case where the first historical network access identifier and the second network access identifier stored locally in the network access device fail to match for the first time, the network access device sends an update request to the second server to update the latest first network access identifier information. The second server sends the first network access identifier of the first electronic device to the network access device only when the first account bound to the first electronic device meets the access conditions of the preset network and the network access identifier update request of the network access device is received.
[0024] It can be understood that when the first network access identifier of the first electronic device can be stored in the second server, the network access device of the preset network does not need to locally store the first network access identifiers of all terminal devices that need to be connected to the preset network, and can only store the first network access identifiers of the access terminal devices commonly used in the preset network; and for the access terminal devices that are not commonly used in the preset network, when the corresponding first network access identifier cannot be found locally, the corresponding first network access identifier can be obtained by sending an update request to the second server. At the same time, storing the first network access identifier of the first electronic device in the second server also facilitates the first electronic device to access the required preset network, and all preset networks that allow the first electronic device to access can achieve the acquisition of the first network access identifier of the first electronic device through interaction with the second server.
[0025] In a possible implementation of the first aspect, the first network access identifier includes a product serial number of the first electronic device and a physical address of the first electronic device. It can be understood that the first network access identifier of the first electronic device has a function of indicating the uniqueness of the identity of the first electronic device, and can be the product serial number of the first electronic device or the physical address of the first electronic device.
[0026] In a possible implementation of the first aspect, the network access device sends the network configuration information of the preset network to the first electronic device when the first network access identifier and the second network access identifier match; the first electronic device accesses the preset network according to the network configuration information. It can be understood that after obtaining the network configuration information of the preset network, the first electronic device can store the network configuration information locally, and the first electronic device can directly retrieve the locally stored network configuration information to access the corresponding preset network in the subsequent network access process.
[0027] The second aspect of the present application provides a network access method for an electronic device, comprising: a network access device receives a first network access identifier of a first electronic device; the network access device receives a network access request broadcast by the first electronic device, wherein the network access request includes a second network access identifier of the first electronic device; the network access device matches the second network access identifier in the network access request with the first network access identifier according to the received network access request; the network access device connects the first electronic device to a preset network when the first network access identifier and the second network access identifier match. It can be understood that the network access device can be an access point device of a preset network, for example, a router in a home network is a network access device. The network access device authenticates the first electronic device to access the preset network based on the received first network access identifier and the second network access identifier. When the first network access identifier and the second network access identifier match, it indicates that the first electronic device has obtained user authorization to access the preset network in advance, and at this time, the network access device can connect the first electronic device to the preset network to realize automatic access of the first electronic device to the preset network.
[0028] In a possible implementation of the second aspect, the network access device sends network configuration information of the preset network to the first electronic device when the first network access identifier and the second network access identifier match, wherein the network configuration information can be used by the first electronic device to access the preset network, and the first network access identifier includes the product serial number of the first electronic device and the physical address of the first electronic device. It can be understood that the network access device, as an access point of the preset network, stores the network configuration information of the preset network, and the first electronic device can access the preset network through the network configuration information sent by the network access device.
[0029] A third aspect of the present application provides a network access method for an electronic device, including: a second electronic device determines that a purchase order for a first electronic device is completed; the second electronic device obtains a first network access identifier of the first electronic device from a first server; wherein, when a purchase order for the first electronic device is generated, the first server obtains the first network access identifier of the first electronic device from the first electronic device, and the second electronic device is able to access a preset network.
[0030] It can be understood that the second electronic device can be a user device such as a mobile phone. When the first electronic device completes the logistics transportation process, the user can confirm the receipt of the goods through the second electronic device and obtain the first network access identifier of the first electronic device from the first server (such as a shopping mall server). The second electronic device can access the preset network to send the first network access identifier of the first electronic device to the preset network.
[0031] In a possible implementation of the third aspect above, upon receiving the first network access identifier of the first electronic device, the second electronic device sends the first network access identifier of the first electronic device to the network access device.
[0032] In a possible implementation of the third aspect, the second electronic device sends the first network access identifier of the first electronic device to the network access device when the second server verifies that the first account bound to the first electronic device meets the access conditions of the preset network; wherein, when the purchase order of the first electronic device is completed, the second electronic device sends the binding information between the first electronic device and the first account to the second server. Different from the above possible implementation, the second electronic device can send the first network access identifier to the network access device after verifying that the first electronic device meets the preset network access conditions, which can better take into account the security of the connection of the first electronic device.
[0033] The fourth aspect of the present application provides a network access method for an electronic device, comprising: when the purchase order of the first electronic device is completed, the second server obtains the first network access identifier of the first electronic device from the first server; the second server sends the first network access identifier of the first electronic device to the network access device; wherein, when the purchase order of the first electronic device is generated, the first server obtains the first network access identifier of the first electronic device from the first electronic device. For example, the second server can be an account server, and according to the device account bound to the first electronic device and the network account bound to the preset network, the second server performs security verification on whether the first electronic device can access the preset network through the authorized connection relationship between the device account and the network account, thereby further improving the security of the first electronic device in the process of accessing the preset network.
[0034] In a possible implementation of the fourth aspect above, the second server pre-acquires binding information between a preset network and a second account; the second server matches the first account and the second account based on the received binding information between the first electronic device and the first account, and verifies that the first account meets access conditions for the preset network when the first account and the second account match; wherein, when the purchase order of the first electronic device is completed, the second electronic device sends the binding information between the first electronic device and the first account to the second server.
[0035] In a possible implementation of the fourth aspect above, the second server sends the first network access identifier of the first electronic device to the network access device when verifying that the first account bound to the first electronic device meets the access conditions of the preset network.
[0036] In a possible implementation of the fourth aspect above, the second server sends the first network access identifier of the first electronic device to the network access device when verifying that the first account bound to the first electronic device meets the access conditions of the preset network and receiving the network access identifier update request from the network access device; wherein, if the network access device fails to match the first network access identifier and the second network access identifier for the first time, the network access device sends the network access identifier update request to the second server.
[0037] That is, in the embodiment of the present application, in addition to performing security verification on whether the first electronic device can access the preset network, the second server (such as an account server) can also provide cloud storage space for the first network access identifier. In the case where the first network access identifier of the first electronic device can be stored in the second server, the network access device of the preset network does not need to locally store the first network access identifiers of all terminal devices that need to be connected to the preset network, and can only store the first network access identifiers of the access terminal devices commonly used in the preset network; and for the access terminal devices that are not commonly used in the preset network, when the corresponding first network access identifier cannot be found locally, the corresponding first network access identifier can be obtained by sending an update request to the second server.
[0038] The fifth aspect of the present application provides a Bluetooth connection method for an electronic device, including: a Bluetooth connection device receives a first connection identifier of a third electronic device; the third electronic device broadcasts a Bluetooth connection request, wherein the Bluetooth connection request includes a second connection identifier of the third electronic device; the Bluetooth connection device matches the second connection identifier and the first connection identifier in the Bluetooth connection request based on the received Bluetooth connection request; and the Bluetooth connection device establishes a Bluetooth connection with the third electronic device when the first connection identifier and the second connection identifier match.
[0039] That is, in the embodiment of the present application, as a third electronic device that needs to perform a Bluetooth connection, it can broadcast a second connection identifier when it is powered on. The Bluetooth connection device matches the second connection identifier broadcast by the third electronic device according to the first connection identifier received in advance. If the first connection identifier and the second connection identifier match, it means that the third electronic device has the authority to access the Bluetooth connection device and can perform a Bluetooth connection with the Bluetooth connection device.
[0040] It can be understood that how the Bluetooth connection device receives the first connection identifier of the third electronic device can adopt the same method as the network access device receiving the first network access identifier of the first electronic device in the network access method provided in the first aspect above, and will not be elaborated here.
[0041] In a possible implementation of the fifth aspect, the first connection identifier of the third electronic device includes a product serial number of the third electronic device and a physical address of the third electronic device. It can be understood that the first connection identifier of the third electronic device has a function of indicating the uniqueness of the identity of the third electronic device, and can be the product serial number of the third electronic device or the physical address of the third electronic device.
[0042] In a possible implementation of the fifth aspect, when the first connection identifier and the second connection identifier match, the Bluetooth connection device sends the Bluetooth configuration information of the Bluetooth connection device to the third electronic device; the third electronic device performs a Bluetooth connection with the Bluetooth connection device according to the Bluetooth configuration information. It can be understood that after obtaining the Bluetooth configuration information of the Bluetooth connection device, the third electronic device can store the Bluetooth configuration information locally, and the third electronic device can directly retrieve the locally stored Bluetooth configuration information and access the corresponding Bluetooth connection device in the subsequent Bluetooth connection process.
[0043] The sixth aspect of the present application provides an electronic device, comprising: a memory storing instructions; a processor, the processor and the memory are coupled, when the program instructions stored in the memory are executed by the processor, the electronic device executes the network access method provided in the first aspect or the Bluetooth connection method provided in the second aspect.
[0044] The seventh aspect of the present application provides a readable medium, characterized in that the readable medium stores instructions, and when the instructions are executed on an electronic device, the electronic device executes the network access method provided in the first aspect or the Bluetooth connection method provided in the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 According to an embodiment of the present application, a scenario architecture of a terminal device accessing a network environment is shown;
[0046] Figure 2 According to an embodiment of the present application, an operation diagram of realizing the smart scanner 300 accessing the home network 400 through the mobile phone 100 is shown;
[0047] Figure 3 According to an embodiment of the present application, another operation diagram of realizing the smart scanner 300 accessing the home network 400 through the mobile phone 100 is shown;
[0048] Figure 4 According to an embodiment of the present application, a method for device network access is shown;
[0049] Figure 5 According to an embodiment of the present application, a scenario architecture of an automatic network access method is shown;
[0050] Figure 6According to the embodiment of the present application, the specific steps of purchasing the smart scanner 300 through the mobile phone 100 are shown;
[0051] Figure 7 According to the embodiment of the present application, the specific steps of authorizing the smart scanner 300 to access the home network 400 through the mobile phone 100 are shown;
[0052] Figure 8 According to an embodiment of the present application, an automatic network access method is shown;
[0053] Fig. 9 According to an embodiment of the present application, a schematic diagram of a process for returning or exchanging a smart scanner 300 is shown;
[0054] Fig.10 According to an embodiment of the present application, another scenario architecture of an automatic network access method is shown;
[0055] Fig.11 According to an embodiment of the present application, a schematic diagram of binding a device account to a smart scanner 300 through a mobile phone 100 is shown;
[0056] Fig.12 According to an embodiment of the present application, another schematic diagram of binding a device account to a smart scanner 300 through a mobile phone 100 is shown;
[0057] Fig.13 According to an embodiment of the present application, another schematic diagram of binding a device account to a smart scanner 300 through a mobile phone 100 is shown;
[0058] Fig.14 According to an embodiment of the present application, a method for device account binding and authentication is shown;
[0059] Fig.15 According to an embodiment of the present application, another scenario architecture of an automatic network access method is shown;
[0060] Fig.16 According to an embodiment of the present application, another scenario architecture of an automatic network access method is shown;
[0061] Fig.17 According to an embodiment of the present application, another automatic network access method is shown;
[0062] Fig.18 According to an embodiment of the present application, another scenario architecture of an automatic network access method is shown;
[0063] Fig.19 According to an embodiment of the present application, another automatic network access method is shown;
[0064] Fig. 20According to an embodiment of the present application, another scenario architecture of an automatic network access method is shown;
[0065] Fig.21 According to an embodiment of the present application, another automatic network access method is shown;
[0066] Fig. 22 According to the embodiment of the present application, the device connection management interface of the mobile phone 100 is shown;
[0067] Fig.23 According to an embodiment of the present application, a scenario architecture of automatic Bluetooth connection is shown;
[0068] Fig.24 According to an embodiment of the present application, a structural schematic diagram of an electronic device is shown;
[0069] Fig.25 According to an embodiment of the present application, a software structure block diagram of an electronic device is shown. DETAILED DESCRIPTION
[0070] The present application provides a technical solution for automatically connecting a terminal device to a local area network. Through this technical solution, the terminal device can realize automatic connection to the local area network. The user only needs to give the terminal device the corresponding network access permission before the terminal device first accesses the local area network, and the terminal device can automatically obtain the network configuration information of the local area network after power-on and automatically access the local area network. The user does not need to give the corresponding authorization permission every time the terminal device accesses the local area network, which simplifies the user's network access permission operation while ensuring the security of the terminal device's network access.
[0071] The embodiments of the present application will be described in further detail below in conjunction with the accompanying drawings.
[0072] Figure 1 According to some embodiments of the present application, a scenario architecture for a terminal device to access a network environment is shown.
[0073] like Figure 1 As shown, the scenario includes a user device 100, a local area network 400 and a terminal device 300 to be connected to the local area network 400. The user device 100 is connected to the local area network 400.
[0074] In the above scenario, the user can obtain the device information of the terminal device 300 to be connected to the local area network 400 through the user device 100. At this time, the terminal device 300 initiates a connection request to the user to access the local area network 400 through the user device 100. If the user agrees to the above connection request through the user device 100, the terminal device 300 obtains the network configuration information of the local area network 400, and the terminal device 300 accesses the local area network 400 according to the network configuration information. The way in which the terminal device 300 obtains the network configuration information of the local area network 400 can be that the user device 100 directly sends the network configuration information to the terminal device 300, or the user device 100 controls the local area network 400 to send the network configuration information to the terminal device 300.
[0075] It can be understood that the user equipment 100 and the terminal equipment 300 applicable to the technical solution of the present application can be various electronic devices with network connection functions, such as smart phones, tablet computers, desktop computers, laptop computers, wearable devices, head-mounted displays, portable game consoles, portable music players, smart TVs, smart speakers, smart scanners, routers, smart printers, etc. At the same time, it can be understood that the local area network 400 applicable to the technical solution of the present application can be a regional network environment within a local range, such as a home network in a home environment and a work network in an office environment.
[0076] For ease of description, the following description is given by assuming that the user device 100 is a mobile phone, the terminal device 300 is a smart scanner, and the local area network 400 is a home network.
[0077] For example, Figure 1 and Figure 2 FIG. 4 shows an operation mode in which a user uses a mobile phone 100 to implement an intelligent scanner 300 to access a home network 400. Figure 2 a to Figure 2 As shown in b, the user uses the mobile phone 100 to scan the QR code on the surface of the smart scanner 300 to obtain the device information of the smart scanner 300. Figure 2 c, when the device information of the smart scanner 300 is displayed on the display screen of the mobile phone 100, the smart scanner 300 initiates a request to the mobile phone 100 to "allow the smart scanner to access the home network". When the user checks the "yes" option on the display screen, it means that the user allows the smart scanner 300 to access the home network 400. Figure 2 As shown in FIG. 4 , the mobile phone 100 can send the network configuration information of the home network 400 to the smart scanner 300. The smart scanner 300 can access the home network 400 according to the network configuration information.
[0078] For example, Figure 1 and Figure 3FIG. 1 shows an operation mode in which a user uses a mobile phone 100 to implement an intelligent scanner 300 to access a home network 400. Figure 2 The operation shown is different from that shown in Figure 3 As shown in a, the user uses the mobile phone 100 to approach the smart scanner 300 to establish near field communication with the smart scanner 300 and obtain the device information of the smart scanner 300. Figure 3 b's user authorization steps are the same as and Figure 3 The steps of network access of the intelligent scanner 300 shown in c are respectively Figure 2 The scene shown Figure 2 Steps shown in c and Figure 2 d is consistent with the steps shown in FIG. 4 and will not be repeated here.
[0079] Based on the aforementioned Figure 2 or Figure 3 The scene shown, Figure 4 The implementation process of a device network access method is shown, which specifically includes:
[0080] Step 401: The terminal device 300 is pre-assigned a device identification, wherein the device identification includes the device information of the terminal device 300 and is unique, and the device identification may be a product serial number or a physical (Media Access Control Address, MAC) address of the terminal device 300.
[0081] Each terminal device 300 corresponds to an independent device identifier, which may be assigned to the terminal device by the device manufacturer during the production stage or the factory stage of the terminal device 300. Figure 2 or Figure 3 As shown, the specific form of the device identification can be a recognizable QR code or a readable code stored in the terminal device 300.
[0082] Step 402: the user equipment 100 obtains the device information of the terminal equipment 300 by parsing the device identification of the terminal equipment 300.
[0083] The user device 100 may select a corresponding parsing method according to the specific form of the device identifier. Figure 2 As shown, when the device identifier is capable of recognizing a QR code, the mobile phone 100 can obtain the device information of the smart scanner 300 by scanning the QR code. Figure 3 As shown, when the device identification is a readable code, the mobile phone 100 can establish a connection with the smart scanner 300 through near field communication to read the code and obtain the device information of the smart scanner 300. Here, the specific parsing method of the user device 100 for the device identification is not limited.
[0084] Step 403: The terminal device 300 makes a connection authorization request to the user device 100. Figure 2 c or Figure 3 As shown in step b, when the mobile phone 100 obtains the device information of the smart scanner 300, the smart scanner 300 sends a connection authorization request to the mobile phone 100. The mobile phone 100 responds to the authorization request and displays a confirmation notification for the user to choose. The content of the confirmation notification can be, for example, "whether to allow the smart scanner to access the home network" or other content, which is not limited here. The user can confirm the authorization or reject the authorization of the connection authorization request of the smart scanner 300 by performing touch operations on the mobile phone 100. Step 404: The terminal device 300 obtains the network configuration information of the local area network 400. Among them, the network configuration information may include the connection information of the local area network 400, such as the IP address, subnet mask, gateway, etc. The terminal device 300 can access the local area network 400 according to the network configuration information of the local area network 400.
[0085] Step 405: The terminal device 300 accesses the local area network 400 according to the network configuration information.
[0086] It is understandable that, for the terminal device 300, after obtaining the network configuration information of the local area network 400 in the above step 404, the terminal device 300 can save the network configuration information locally; when the terminal device 300 needs to access the local area network 400 next time, it can directly access the local area network 400 with the locally stored network configuration information, without the need for a secondary authorization operation requiring user intervention. Therefore, the application scenario to which this technical solution is applicable can be the scenario where the terminal device 300 requests to access the local area network 400 for the first time.
[0087] In the above-mentioned embodiment, the terminal device 300 can access the local area network 400 when the user confirms the authorization. Since the access operation of the terminal device 300 is authorized by the user, the security of the terminal device 300 accessing the local area network 400 is effectively guaranteed. However, this device access method also has the problem of poor user experience: for each terminal device 300 to be connected to the network, the user needs to obtain the device information of the terminal device 300 by scanning a QR code or establishing near-field communication, and send the network configuration information of the local area network 400 to the terminal device 300. This authorization operation is relatively complicated and cumbersome, especially when the number of terminal devices 300 that need to access the local area network 400 is large, the user needs to repeat the above authorization operation, which will greatly reduce the user experience.
[0088] In order to solve the above problems, some embodiments of the present application illustrate a scenario architecture of an automatic network access method.
[0089] like Figure 5 As shown, the above scenario specifically includes a user device 100, a shopping mall server 200, a terminal device 300 purchased by the user, and a home network 400. In this scenario, the user can purchase the terminal device 300 in the online shopping mall corresponding to the shopping mall server 200 through the user device 100, and at the same time as confirming the receipt of the terminal device 300 through the user device 100, the user device 100 gives the terminal device 300 the network access permission to automatically access the local area network 400, so that the terminal device 300 can automatically access the local area network 400 after the first power-on, which greatly simplifies the steps of the authorization operation compared to the previous embodiment. For the convenience of description, the following description is based on the user device 100 as a mobile phone, the terminal device 300 as a smart scanner, and the local area network 400 as a home network.
[0090] Figure 6 The specific process of the user entering the shopping mall application through the mobile phone 100 and purchasing the smart scanner 300 in the above scenario is shown.
[0091] Specifically, Figure 6 a and Figure 6 As shown in FIG. 2 , the user clicks the “mall” icon in the mobile phone 100 to enter the display interface of the mall application. At this time, the mall application accesses the mall server 200 from the background to obtain the specific display content in the display interface. Figure 6 As shown in c, the user clicks Figure 6 b and then enter the smart scanner 300 product page. After the user clicks the "buy button" on the product page, Figure 6 d, the mall application generates a purchase order locally on the mobile phone 100 and displays the purchase order in the display interface of the mall application. If the user clicks "Submit Order" in the purchase order at this time, the mall application will guide the user to complete the payment, and Figure 6 e shows the payment success information. At the same time, the mall application sends the purchase order information to the mall server 200 in the background. The mall server 200 generates a shopping order based on the received purchase order information and issues a delivery instruction for the smart scanner 300 to the logistics server. Figure 6 As shown in f, after the mall server 200 issues a delivery instruction, the user can view the specific information and logistics status of the above order through the "My" interface in the mall application program on the mobile phone 100.
[0092] When the mall server 200 issues a delivery instruction for the smart scanner 300 to the logistics server, the product serial number corresponding to the smart scanner 300 is obtained at the same time. For example, the logistics server can respond to the delivery instruction of the smart scanner 300 and issue a delivery instruction for the smart scanner 300 to the delivery person in charge of the logistics warehouse; the delivery person in charge extracts the smart scanner 300 from the logistics warehouse according to the delivery instruction and performs the delivery operation. During the delivery operation, the delivery person in charge uses a handheld scanner to scan the smart scanner 300 for inspection and obtains the product serial number corresponding to the smart device 300, and then feeds the product serial number back to the mall server 200. The mall server 200 binds the product serial number of the smart scanner 300 to the shopping order of the smart scanner 300.
[0093] The product serial number may be a unique identification code of the smart scanner 300, which is equivalent to the "ID number" of the smart scanner 300. In the process of the smart scanner 300 accessing the home network 400, the product serial number of the smart scanner 300 may be used as the identity of the smart scanner 300. The process of how the smart scanner 300 automatically accesses the home network 400 according to its own product serial number will be described in detail below.
[0094] Figure 7 It shows the specific process of the user authorizing the smart scanner 300 to access the home network 400 through the mobile phone 100 after confirming the receipt of the goods.
[0095] Specifically, Figure 7 As shown in Figures 7a to 7b, when the smart scanner 300 is delivered to the user's delivery address through logistics transportation, the user can confirm the delivery by checking the "Yes" option on the mall application interface running on the mobile phone 100. The mall application running on the mobile phone 100 generates a delivery confirmation message and sends it to the mall server 200 from the background. The mall server 200 sends the product serial number bound to the shopping order to the mobile phone 100. Figure 7 c to Figure 7 d, the shopping mall application of the mobile phone 100 automatically jumps to the device configuration page after confirming the receipt, and displays "whether to allow the device to automatically access the local area network that is allowed to be accessed" on the display screen of the mobile phone 100. When the user checks the "yes" option on the display screen of the mobile phone 100 again, it means that the user allows the smart scanner 300 to perform the automatic network access operation. Figure 7 As shown in FIG. 5 , if the automatic access configuration of the smart scanner 300 is successful, the mobile phone 100 will automatically synchronize the obtained product serial number to the local area network that is allowed to be accessed. The local area network that is allowed to be accessed includes the home network 400. At this point, the user authorization process for the first access of the smart scanner 300 has been completed.
[0096] In the above Figure 6 The product purchase process shown and Figure 7 After the user authorization process shown, the smart scanner 300 can automatically access the home network 400 when it is powered on for the first time. Specifically, when the smart scanner 300 is powered on for the first time, the smart scanner 300 starts to broadcast its own product serial number to the surroundings through its own wireless transceiver module. At this time, the router 402, as the access point of the home network 400, can compare the product serial number broadcast by the smart scanner 300 with the list of serial numbers allowed to access that is pre-stored in the router 402: when it is found that there is the same content as the product serial number broadcast by the smart scanner 300 in the above-mentioned serial number list, it can be determined that the smart scanner 300 has the autonomous connection authority of the home network 400. At this time, the router 402 feeds back the network configuration information of the home network 400 to the smart scanner 300, so that the smart scanner 300 can autonomously access the home network 400 according to the network configuration information, without the user performing additional authorization and authentication actions.
[0097] Through the above Figure 5 In the scenario architecture shown, when the user confirms receipt of the purchased terminal device, he can complete the authorization for the terminal device to automatically access the network by entering a simple permission instruction on a mobile phone or other confirmation device. There is no need for the user to perform authorization again when the terminal device needs to access the local area network environment, which solves the problem of cumbersome and complicated authorization operations during the automatic network access of the terminal device.
[0098] It is understandable that the list of access-permitted sequence numbers pre-stored in router 402 may be formed based on the user's historical authorization behavior. Figure 7As shown in FIG. 5 , when the mobile phone 100 sends the product serial number of the smart scanner 300 to the home network 400, the router 402 stores the product serial number of the smart scanner 300 locally, and forms the aforementioned serial number list together with the previously stored product serial numbers corresponding to other terminal devices that are allowed to access the home network 400. If the product serial number broadcast by the smart scanner 300 is in the serial number list stored locally by the router 402, it means that the smart scanner is allowed to access the home network 400, thereby realizing the verification of the automatic network connection of the terminal device by the home network 400. In other embodiments, the verification method may also use other contents: for example, when the smart scanner 300 is shipped out, the mall server 200 may also obtain an electronic signature or other verification information corresponding to the product serial number of the smart scanner 300; after the user confirms receipt of the goods, the mall server 200 feeds back such electronic signature or verification information to the mobile phone 100 and then sends it to the home network 400; the router 402, as an access point of the home network 400, stores such electronic signature or verification information locally as a verification information set, and verifies the product serial number broadcast by the smart scanner 300 through this verification information set.
[0099] It is understandable that the home network 400 does not have an entity, but is composed of at least two smart devices connected to the same local area network. Figure 5 In the scenario shown, the home network 400 is composed of a smart printer 401, a router 402, a desktop computer 403 and a laptop computer 404. In theory, these smart devices are all access points to the home network 400. However, for the desktop computer 403, since it is connected to the home network 400 through a network cable and does not have the function of wireless communication, it is unable to receive the product serial number sent by the mobile phone 100, and it is also unable to receive the product serial number broadcast by the smart scanner 300, and is unable to perform authentication actions and network access permission actions. Therefore, in an embodiment of the present application, the access point of the home network 400 can be limited to a smart device in the home network 400 that has a wireless data receiving and sending function. For example, in a case such as Figure 5 In the illustrated scenario, the smart printer 401, the router 402 and the laptop 404 can be used as access points of the home network 400 due to their wireless data transceiving functions. For ease of description, the router 402 will be used as an access point of the home network 400 in other embodiments below.
[0100] Furthermore, in Figure 5In the illustrated scenario, the home network 400 includes at least one access point. When the mobile phone 100 sends the product serial number of the smart scanner 300 to the home network 400, in the specific implementation process, the mobile phone 100 sends the product serial number of the smart scanner 300 to each access point of the home network 400 respectively, and each access point stores the product serial number of the smart scanner 300 locally and generates a serial number list. For ease of explanation, in other embodiments below, descriptions such as "sending the product serial number to the home network 400" mean sending the product serial number to the access point in the home network 400. Similarly, descriptions such as "the home network 400 performs network access verification on the broadcast serial number according to the locally stored serial number list" below also mean that the access points of the home network 400 perform network access verification actions respectively.
[0101] Specifically, Figure 8 According to some embodiments, a method suitable for Figure 5 A flowchart of an automatic network access method for the scenario shown includes:
[0102] Step 801: The mobile phone 100 accesses the shopping mall server 200 through an application program, and performs a purchase operation on the smart scanner 300 according to a user instruction. For example, the application program is a shopping mall application program.
[0103] Step 802 , the shopping mall server 200 generates a purchase order, obtains the product serial number of the smart scanner 300 , and binds the product serial number of the smart scanner 300 to the purchase order.
[0104] Step 803: The mobile phone 100 feeds back the delivery confirmation information to the mall server 200 according to the user's instruction.
[0105] Step 804 : the mall server 200 sends the product serial number to the mobile phone 100 .
[0106] Step 805: The mobile phone 100 sends the product serial number of the smart scanner 300 to the corresponding home network 400 according to the user's network access authorization.
[0107] Specifically, the above steps 801 and 805 can be implemented as follows: Figure 6 to Figure 7 As shown, no further elaboration is given here.
[0108] Step 806: After the smart scanner 300 is powered on, the product serial number of the smart scanner 300 is broadcasted.
[0109] Step 807: The home network 400 performs network access verification on the smart scanner 300 according to the locally stored serial number list. The network access verification can be implemented by identifying whether the product serial number broadcast by the smart scanner 300 exists in the serial number list locally stored in the access point of the home network 400. If it exists, it means that the smart scanner 300 has passed the network access verification.
[0110] If the network access verification is passed, it means that the smart scanner 300 has obtained the connection authorization given by the user, and then enters step 808; if the network access verification is not passed, it means that the smart scanner 300 has not obtained the connection authorization given by the user, and then enters step 810.
[0111] Step 808 : The home network 400 sends the network access configuration information to the smart scanner 300 .
[0112] Step 809: The smart scanner 300 automatically accesses the home network 400 according to the network configuration information.
[0113] Step 810: the home network 400 feeds back connection failure information to the mobile phone 100.
[0114] The operations in the above steps 806 to 810 are independent of the user, and the smart scanner 300 and the access point of the home network 400 cooperate to realize the automatic network access process: the smart scanner 300 actively broadcasts its own product serial number to the surrounding after power-on, and the access point router 402, smart printer 401 and laptop 404 in the home network 400 can independently verify the broadcast serial number according to their locally stored serial number lists. When the network access verification of any access point (such as router 402) is passed, the access point will send the corresponding network access configuration information to the smart scanner 300, and the smart scanner 300 will automatically access the network according to these network access configuration information.
[0115] In an actual application scenario, if all access points in the home network 400 fail to verify the network access, it means that the currently broadcasted serial number does not exist in the serial number lists stored locally in the access point router 402, the smart printer 401, and the laptop 404. At this time, it means that the smart device with the currently broadcasted serial number has not obtained the authorization for automatic network access and cannot automatically access. This may be because the user did not agree to the network access authorization request of the smart scanner 300 in the aforementioned step 805. In this case, the access point can feedback the information of the automatic network access failure to the mobile phone 100, and the mobile phone 100 can prompt the user or request the user to grant a new automatic network access permission.
[0116] Furthermore, the mobile phone 100 can determine that the automatic network access of the smart device has failed after receiving the connection failure information fed back by all the access points in the home network 400, and feed back the automatic network access failure information to the user or request corresponding further authorization. This is because considering that the access points such as the router 402, the smart printer 401 and the laptop 404 in the home network 400 have access times in sequence, the serial number list of the access point device that accesses later on the timeline may be relatively small: for example, the router 402 is the access point with the longest access time in the home network 400, and its stored serial number list contains 5 product serial numbers, while the laptop 404 is the access point with the shortest access time in the home network 400, and its stored serial number list is empty. In this case, even if the smart scanner 300 has the automatic access permission of the home network 400, it will still fail to access the network in front of the access point laptop 404. Therefore, only after all the access points have fed back the connection failure information, the mobile phone 100 can accurately determine that the automatic network access of the smart device has failed, and can remind the user through pop-up prompts or request new automatic network access authorization.
[0117] In the above embodiments of the present application, the user confirms receipt after receiving the smart scanner 300 to complete the entire purchase process. In other practical scenarios, the user may request a return or exchange due to damage to the smart scanner 300 during logistics transportation or other reasons. Specifically, Fig. 9 Shown is applicable to Figure 5 The illustrated scenario is a schematic diagram of a process for returning or exchanging a smart scanner 300, including:
[0118] Step 901: The mobile phone 100 accesses the shopping mall server 200 through the application program, and performs a purchase operation on the smart scanner 300 according to the user's instruction.
[0119] Step 902 : The mall server 200 generates a purchase order and sends it to the logistics terminal 201 .
[0120] Step 903: the logistics terminal 201 obtains the product serial number by scanning the smart scanner 300 to be shipped out of the warehouse, and writes the product serial number of the smart scanner 300 into the purchase order.
[0121] Step 904 : The logistics terminal 201 performs a warehouse-out operation on the smart scanner 300 .
[0122] Step 905: The mobile phone 100 feeds back to the mall server 200 confirmation information of the smart scanner 300 or request for return or exchange according to the user's instruction.
[0123] Step 906: When the mobile phone 100 sends a request for return or exchange information to the mall server 200, the logistics terminal 201 monitors the return and storage of the smart scanner 300. The logistics terminal 201 can monitor whether the smart scanner 300 is sent back to the shipping warehouse by tracking the return or exchange logistics status of the smart scanner 300.
[0124] Step 907: When the logistics terminal 201 confirms that the smart scanner 300 is returned to the warehouse, the logistics terminal 201 notifies the mall server 200 to delete the product serial number written into the purchase order.
[0125] Specifically, after the shopping mall server 200 generates a purchase order for the smart scanner 300, it needs to send the purchase order to the logistics terminal 201 to perform a specific outbound logistics operation. In the outbound logistics operation, the logistics terminal 201 can obtain the product serial number of the smart scanner 300 purchased by the user by scanning a barcode or other appropriate method and write the product serial number of the smart scanner 300 into the purchase order. It is understandable that since the shopping mall server 200 needs to keep a continuous tracking status of the purchase order, the product serial number written into the purchase order can also be obtained by the shopping mall server 200.
[0126] When the smart scanner 300 is delivered to the user's delivery address through logistics transportation, the user can feedback the receipt information to the mall server 200 through the mobile phone 100, and the subsequent steps can be consistent with the aforementioned steps 804 to 810, which will not be repeated here. When the smart scanner 300 is damaged or the user does not want to buy the smart device again for other reasons, he can choose to feedback the return and exchange information to the mall server 200 through the mobile phone 100. At this time, the logistics terminal 201 begins to continuously monitor the return and storage of the smart scanner 300, and notifies the mall server 200 after confirming that the smart device has been returned to the warehouse. At this time, the mall server 200 will delete the product serial number bound to the purchase order.
[0127] Furthermore, in actual application scenarios, after a period of use, the user may request a return or exchange of the smart scanner 300 due to dissatisfaction with the performance of the smart scanner 300 or other reasons if the return or exchange conditions are met. In this case, since the smart scanner 300 has been connected to the home network 400 during use, not only does the smart scanner 300 store network configuration information that can access the home network 400, but for the home network 400, the locally stored serial number list of at least one access point device (such as the router 402) also contains the product serial number of the smart scanner 300. In order to ensure the connection security of the home network 400, in addition to deleting the network configuration information of the home network 400 stored in the smart scanner 300 during the return or exchange process, the access point device (such as the router 402) of the home network 400 also needs to delete the product serial number corresponding to the smart scanner 300 stored in the local serial number list and add it to the connection blacklist of the home network 400 when the return or exchange process is initiated, thereby ensuring the connection security of the home network 400. For example, when the smart scanner 300 is purchased and used by other users in the subsequent circulation process, the smart scanner 300 cannot directly access the home network 400 by broadcasting the product serial number after powering on, thereby avoiding the potential risk of user privacy leakage. If a device in the connection blacklist wants to join the home network 400 again in the future, the user needs to re-grant it the corresponding access authorization.
[0128] In the aforementioned embodiment, when the user grants the smart scanner 300 automatic network access permission through the mobile phone 100, the mobile phone 100 sends the smart scanner 300 product serial number to the corresponding home network 400. Here, the "corresponding home network 400" is only associated with the mobile phone 100 (for example, it may include the home network that the mobile phone 100 is currently connected to, the home network that the mobile phone 100 allows to access, and other home networks associated with the mobile phone 100, etc.), resulting in the user being unable to accurately specify the smart scanner 300 to connect to the network environment they want to connect to. In order to solve the above problem, Fig.10 According to some embodiments of the present application, another scenario architecture of the automatic network access method is shown. Figure 5 The scene shown, Fig.10In the illustrated scenario, an account server 500 is newly added, which interacts with the home network 400, the mobile phone 100 and the smart scanner 300. Through the account server 500, the home network 400 and the smart scanner 300 are bound to a network account and a device account respectively. The user can select the device account bound to the smart scanner 300 according to the association between the network account and the device account, so that the product serial number of the smart scanner 300 can be sent to the network environment that the user wants the smart scanner 300 to connect to, thereby improving the connection accuracy between the terminal device and the local area network.
[0129] In such Fig.10 In the scenario shown, the user purchases the smart scanner 300 through the mobile phone 100 in the online mall and authorizes it to automatically access the home network 400. The purchase process of the smart scanner 300 by the user through the mobile phone 100 and the automatic network access verification process after the smart scanner 300 is powered on are consistent with the above-mentioned embodiments, and are not described in detail here. That is, the purchase process of the smart scanner 300 by the user through the mobile phone 100 can be implemented through the above steps 801 to 803, and the automatic network access verification process after the smart scanner 300 is powered on can be implemented through the above steps 806 to 810. The difference is that: after the mobile phone 100 initiates an authorization request for the smart scanner 300 to automatically access the network to the user and obtains the authorization license, it will also initiate an account binding request for the smart scanner 300 to the user, associate the smart scanner 300 with a device account according to the user's instructions, and synchronize the association information between the smart scanner 300 and the device account to the account server 500.
[0130] Specifically, multiple device accounts and multiple network accounts can be pre-stored in the account server 500, wherein the device account can be associated with a smart device, and the network account can be associated with a local area network. It can be understood that in the embodiments of the present application, the device account and the network account are only defined and distinguished based on the different binding objects. In the actual application scenario, taking the account entity "ABC@hw.com" as an example, when "ABC@hw.com" is bound to a smart device such as a mobile phone 100, it can be identified as a device account in the embodiments of the present application; and when "ABC@hw.com" is bound to a local area network such as a home network 400, it can be identified as a network account in the embodiments of the present application.
[0131] Further, in actual application scenarios, there is no limitation on the objects that each account entity can bind to. For example, taking the account entity "ABC@hw.com" as an example, it can bind a new smart device based on a smart device that has been bound, for example, it can bind to the smart scanner 300 based on the binding instruction of the user based on the binding instruction of the mobile phone 100 that has been bound; it can also bind a new smart device based on a local area network that has been bound, for example, it can bind to the smart scanner 300 based on the binding instruction of the user based on the binding instruction of the home network 400 that has been bound. The mapping relationship between the account entity and the smart device or the local area network is one-to-many. That is to say, in actual application scenarios, the account server 500 stores multiple account entities and the binding information of each account entity, each smart device and each local area network corresponds to an account subject, and each account subject corresponds to one or more smart devices or local area networks; and for the sake of convenience, in other embodiments below, the device account and network account will be uniformly described, each smart device corresponds to a device account, and each local area network corresponds to a network account.
[0132] In such Fig.10 In the scenario shown, the account server 500 pre-stores a network account bound to the home network 400. After receiving the association information between the smart scanner 300 and the device account transmitted by the mobile phone 100, the account server 500 determines whether the device account associated with the smart scanner is an authorized connection account of the network account of the home network 400. If so, it means that the smart scanner 300 can be connected to the home network 400. At this time, the account server 500 returns an authorization license to the mobile phone 100, and the mobile phone 100 sends the product serial number to the home network 400 according to the authorization license. If not, it means that the smart scanner 300 cannot be connected to the home network 400, and the user needs to further apply to the network account of the home network 400 for the authorization connection permission of the device account of the smart scanner 300.
[0133] Specifically, whether the device account is an authorized connection account of the network account is determined based on the user's historical authorization permission. For example, when the network account of the home network 400 is "zhangsan@hw.com" and the device account of the smart scanner 300 is "ABC@hw.com", if the user has authorized "ABC@hw.com" as the authorized connection account of "zhangsan@hw.com" in the previous daily use, based on this authorized account, the server 500 can directly feedback the mobile phone 100 to send the product serial number to the home network 400; if the device account "ABC@hw.com" is not the authorized connection account of the network account "zhangsan@hw.com", the account server 500 can initiate a new connection permission application request to the user through the mobile phone 100.
[0134] It is understandable that the user only selected the device account bound to the smart scanner 300 during the aforementioned account binding process, and did not select the home network 400 to be connected. The account server 500 cannot know in advance whether the user wants to access the home network 400. Therefore, in the actual application scenario, the account server 500 will traverse all network accounts related to the current user in the storage space and make authorization connection determinations one by one with the device account of the smart scanner 300, and return the local area networks corresponding to all network accounts with authorized connection permissions of the device account to the mobile phone 100 according to the determination results, and the mobile phone 100 will uniformly issue the product serial number to these local area networks. In the actual application scenario, considering that there is often only one or several home networks corresponding to a user, the account server 500 performs the above traversal process operation more conveniently and has operability. In addition, considering that the user does not directly select the home network 400 to be connected through the mobile phone 100, the user can select the device account with authorized connection to the home network 400 for binding, thereby realizing the automatic network connection of the smart scanner 300 to the home network 400.
[0135] In particular, in actual application scenarios, if the account subject corresponding to the network account and the device account are the same, for example, when the network account of the home network 400 is "zhangsan@hw.com", and the user can also bind the account subject "zhangsan@hw.com" as the device account of the smart scanner 300 again through the mobile phone 100; when the user selects the account subject corresponding to the network account as the device account of the smart scanner 300, it obviously means that the user expects to authorize the smart scanner 300 to automatically access the home network 400. Therefore, when the account subject corresponding to the network account and the device account are the same, the account server 500 can directly identify the device account as the authorized connection account of the network account.
[0136] It is understandable that in the above embodiment, considering the preset application scenario of "the user purchases the smart scanner 300 in the online mall through the mobile phone 100 and authorizes it to automatically connect to the home network 400", when the user confirms the receipt through the mobile phone 100 and gives the smart scanner 300 account binding, the smart scanner 300 may not have completed the unpacking and the first power-on, and naturally cannot obtain its own account binding information through the account server 500 or the mobile phone 100. Therefore, in the above embodiment, the smart scanner 300 can periodically send a binding account synchronization request to the account server 500 after powering on to obtain or update the binding status of its own device account.
[0137] Figures 11 to 13The specific steps of binding the device account of the smart scanner 300 by the user through the mobile phone 100 in the above scenario are shown.
[0138] like Fig.11 As shown in a, when the user completes the delivery confirmation through the mobile phone 100, the mobile phone 100 will first send a request to the user "whether to allow the device to automatically access the local area network that is allowed to be accessed", and when the user agrees, turn to Fig.11 b to submit a new account binding request. Figure 6 As shown in Figure 1, when a user uses mobile phone 100 to shop in a mall, he needs to log in to an account "ABC@hw.com". This account can be the device account of mobile phone 100 itself. As the most frequently used device in the smart home environment, mobile phone 100 can have access rights to home network 400. The device account of mobile phone 100 can also be the authorized connection account of the corresponding network account of home network 400. Fig.11 As shown in FIG. 2 , in order to simplify the steps for the user to input the account to be bound, the mobile phone 100 will ask the user in advance whether the smart scanner 300 needs to be bound to the current login account "ABC@hw.com". Fig.11 As shown in Figure c, when the user clicks the "Yes" option on the display screen of the mobile phone 100, the mobile phone 100 sends the binding information of the smart scanner 300 and the device account "ABC@hw.com" from the background to the account server 500. Fig.11 d to Fig.11 As shown in FIG. 5 , the account server 500 performs permission verification on the device account bound to the smart scanner 300 in the background. The permission verification method can be that the account server 500 traverses all network accounts related to the current user in its storage space and performs authorization connection determination with the device account one by one, and then returns the local area networks corresponding to all network accounts with authorized connection permissions of the device account to the mobile phone 100 according to the determination result, and the mobile phone 100 uniformly sends the product serial number to these local area networks. Fig.11 As shown in FIG. 4 , when there is a home network 400 that allows the smart scanner 300 to access, the mobile phone 100 will display “Automatic access configuration successful” on the mobile phone 100 after the product serial number is issued to prompt the user.
[0139] Different from Fig.11 The steps shown are as follows Fig.12 b to Fig.12 As shown in FIG. 4 , the user may also select other device accounts, such as the device account “Zhangsan@hw.com” to bind to the smart scanner 300 . Fig.12 The other binding steps shown in Fig.11 The binding steps shown are all the same and will not be repeated here.
[0140] Different from Fig.11 The steps shown are as follows Fig.13 e to Fig.13 As shown in FIG. 5 , when the device account bound to the smart scanner 300 does not belong to the authorized connection account of any network account in the account server 500, it means that there is no local area network that allows the smart scanner 300 to access. At this time, the mobile phone 100 will prompt the user that "the device binding account does not have a local area network that is allowed to access" and provide a jump link. The user can enter an "account management" interface by clicking on the jump link. In the account management interface, the user can directly access the account server 500 through the mobile phone 100, and obtain the account information of the account subject, the bound device, and perform the association or release of the associable account through the mobile phone 100. It can be understood that the user can manage the binding relationship between the device account and the smart device, the binding relationship between the network account and the local area network, and the establishment and release of the authorized connection relationship between each account subject through the "account management" interface. . Fig.13 The other binding steps shown in Fig.11 The binding steps shown are all the same and will not be repeated here.
[0141] Specifically, Fig.14 According to some embodiments, a method suitable for Fig.10 The following is a schematic diagram of the process of device account binding and authentication in the scenario shown:
[0142] Step 1400: The account server 500 obtains the network account corresponding to the home network 400 in advance.
[0143] The network account corresponding to the home network 400 can be fed back to the account server 500 by the access point of the home network 400. For example, the router 402 as the gateway of the home network 400 can periodically update the network account corresponding to the home network 400 to the account server 500, and can also synchronize and update with the account server 500 in time when the network account changes.
[0144] Step 1401: The mobile phone 100 binds the smart scanner 300 to a device account according to a user instruction.
[0145] Step 1402 : The mobile phone 100 sends the binding information of the smart scanner 300 and the device account to the account server 500 .
[0146] Step 1403: The account server 500 determines whether the device account of the smart scanner 300 is an authorized connection account of the network account of the home network 400 based on the binding information.
[0147] If so, it means that the smart scanner 300 has connection permission for the home network 400, and then go to step 1404; if not, it means that the smart scanner 300 currently does not have connection permission for the home network 400, and then go to step 1405.
[0148] Step 1404 : the mobile phone 100 sends the product serial number to the home network 400 , and then goes to step 1406 .
[0149] Step 1405: The mobile phone 100 feeds back to the user that the smart scanner 300 currently does not have the connection permission to the home network 400, and then exits the current process.
[0150] Step 1406: The account server 500 synchronizes the device account corresponding to the smart scanner 300 to the smart scanner 300 according to the request of the smart scanner 300. After being powered on, the smart scanner 300 will send a binding account synchronization request to the account server 500 every preset period to obtain its current bound device account. In addition, when the account server 500 detects that the bound device account of the smart scanner 300 has changed, it can also actively send new account binding information to the smart scanner 300 to achieve timely update.
[0151] In the aforementioned embodiment, for the newly purchased smart scanner 300, the mall server 200 sends the product serial number of the smart scanner 300 to the mobile phone 100 after obtaining it, and sends the product serial number of the smart scanner 300 to the home network 400 through the mobile phone 100. It can be understood that the mobile phone 100 needs to maintain a wireless connection with the home network 400 before sending the product serial number of the smart scanner 300 to the home network 400. If the mobile phone 100 fails to complete the sending of the product serial number to the home network 400 before the smart scanner 300 is powered on for the first time, it will cause the problem of automatic access failure of the smart scanner 300 after the first power-on.
[0152] In order to solve the above problems, in some embodiments of the present application, based on Fig.10 The scenario architecture shown in the figure places the account server 500 in the process of issuing the product serial number, which can further ensure the success of the automatic connection to the network after the smart scanner 300 is powered on for the first time. Fig.15 as well as Fig.16 The illustrated scenario architecture further describes how to place the account server 500 into the process of sending the product serial number to the home network 400 .
[0153] Specifically, Fig.15 According to some embodiments of the present application, a scenario architecture of an automatic network access method is shown.
[0154] and Fig.10 The scene architecture shown is different in that Fig.15 As shown in FIG. 1 , after the account server 500 confirms to the mobile phone 100 that the device account bound to the smart scanner 300 is the authorized connection account of the network account corresponding to the home network 400, the mobile phone 100 does not send the product serial number of the smart scanner 300 to the home network 400, but the mobile phone 100 transmits the product serial number to the account server 500, and then the account server 500 sends the product serial number of the smart scanner 300 to the home network 400. Considering that the mobile phone 100 and the home network 400 cannot be guaranteed to be always connected, but the account server 500 can maintain continuous connection interaction with the home network 400 and the mobile phone 100, the following example is used to describe the connection between the mobile phone 100 and the home network 400: Fig.15 The scenario architecture shown enables the product serial number of the smart scanner 300 to be sent to the home network 400 in a timely manner. Fig.15 In the scenario architecture shown, the account server 500 only serves as a transmission relay and does not store the product serial number.
[0155] Accordingly, Fig.16 According to some embodiments of the present application, another scenario architecture of an automatic network access method is shown.
[0156] and Fig.15 The scene architecture shown is different in that Fig.16 As shown, after the user confirms receipt of the goods through the mobile phone 100, the mall server 200 does not send the product serial number of the smart scanner 300 to the mobile phone 100, but sends the product serial number of the smart scanner 300 to the account server 500 for caching. When the account server 500 confirms that the device account bound to the smart scanner 300 is the authorized connection account of the network account corresponding to the home network 400, on the one hand, the account server 500 can feedback the prompt of "automatic access configuration successful" to the mobile phone 100, and on the other hand, directly send the cached product serial number of the smart scanner 300 to the home network 400, which can also realize the timely release and update of the product serial number.
[0157] It is understandable that Fig.16In the scenario architecture shown, the account server 500 and the mall server 200 have a connection channel, which enables the mall server 200 to send the product serial number of the smart scanner 300 to the account server 500. For example, the user can log in to the mall application of the same supplier as the account server 500 through the mobile phone 100 to purchase the smart scanner 300. For another example, when the user chooses a third-party mall such as Taobao or JD.com to purchase the smart scanner 300, the third-party mall server needs to provide a write interface for the product serial number and a connection interface for the account server 500 to ensure the implementation of the above technical solution.
[0158] It is understandable that when the account server 500 confirms that the device account bound to the smart scanner 300 is the authorized connection account of the network account corresponding to the home network 400, the product serial number of the smart scanner 300 will be synchronized with the device account of the smart scanner 300 to ensure that the product serial number of the smart scanner 300 can be accurately sent to the home network 400.
[0159] It is understandable that Fig.16 In the illustrated scenario architecture, the account server 500 performs a cache operation on the product serial number of the smart scanner 300 through an independent cache unit, and does not perform backup storage on the product serial number after the serial number is issued.
[0160] Specifically, Fig.17 According to Fig.16 The scenario architecture shown is a schematic diagram of a process of an automatic network access method, including:
[0161] Steps 1701 to 1703 are consistent with the aforementioned steps 801 to 803 and are not described in detail here.
[0162] Step 1704: The mall server 200 sends the product serial number to the account server 500.
[0163] Step 1705: The mobile phone 100 binds the smart scanner 300 to a device account according to the user's instruction.
[0164] Step 1706 : The mobile phone 100 sends the binding information of the smart scanner 300 and the device account to the account server 500 .
[0165] Step 1707: The account server 500 determines whether the device account of the smart scanner 300 is an authorized connection account of the network account of the home network 400 based on the binding information.
[0166] If so, it means that the smart scanner 300 has connection permission for the home network 400, and then go to step 1708; if not, it means that the smart scanner 300 currently does not have connection permission for the home network 400, and then go to step 1709.
[0167] Step 1708 : The mobile phone 100 sends the product serial number to the home network 400 , and then goes to step 1710 .
[0168] Step 1709: The mobile phone 100 feeds back to the user that the smart scanner 300 currently does not have the connection permission to the home network 400, and then exits the current process.
[0169] Steps 1710 to 1714 are consistent with the aforementioned steps 806 to 810 and are not described in detail here.
[0170] Through Fig.17 The automatic network access method shown adopts a technical solution in which the mall server 200 directly sends the product serial number to the account server 500, which can ensure the timely update and issuance of the product serial number. The smart scanner 300 can actively connect to the home network 400 after the initial power-on, without the user having to perform authorization operations in a complex manner such as scanning a QR code or near-field communication, which greatly simplifies the automatic network access operation of the device and improves the user experience.
[0171] In the aforementioned embodiment, for the newly purchased smart scanner 300, the product serial number of the smart scanner 300 is ultimately sent to the home network 400 regardless of the sending channel, and is locally stored by the access point of the home network 400. This technical implementation method does not need to store the product serial number of the smart scanner 300 in the cloud, which provides better protection for the privacy and security of the user. However, this technical implementation method requires the access point of the home network 400 to store locally, and the product serial numbers of all smart devices that can be connected to the home network 400 are locally saved, which is also not conducive to the timely update of the access point of the home network 400 for the connectible smart devices.
[0172] In order to solve the above problems, Fig.18 According to some other embodiments of the present application, another scenario architecture of the automatic network access method is shown. Figure 5 or Fig.15 or Fig.16 The scene shown, Fig.18 In the scenario shown, the product serial number of the smart scanner 300 is no longer stored locally in the home network 400 but is stored in the account server 500, and can be sent by actively requesting an update from the account server 500 through the home network 400.
[0173] like Fig.18As shown, the process of a user purchasing a smart scanner 300 in an online mall through a mobile phone 100 and authorizing it to automatically connect to a home network 400, wherein the process of the user purchasing the smart scanner 300 through the mobile phone 100, the process of binding the device account of the smart scanner 300 through the mobile phone 100, and the account server 500 authorizing the connection account to determine whether the device account belongs to a network account are consistent with the aforementioned embodiments and are not elaborated here.
[0174] When the smart scanner 300 is powered on for the first time, the smart scanner 300 starts broadcasting its own product serial number to the surroundings through its own wireless transceiver module. The router 402 in the home network 400, as a network access point, receives the product serial number broadcasted by the smart scanner 300 and compares it with the serial number list pre-stored locally. When it is found that there is information in the serial number list that is the same as the product serial number broadcasted by the smart scanner 300, the router 402 can directly feed back the network configuration information of the home network 400 to the smart scanner 300.
[0175] It can be understood that the account server 500 includes a pre-storage process and a reallocation storage process in the process of storing the product serial number: when the mall server 200 sends the product serial number to the account server 500, the account server 500 will store these product serial numbers in a pre-storage unit. After the user gives the device account bound to the smart scanner 300 through the mobile phone 100, the product serial number of the smart scanner 300 will be allocated to the independent storage space of the bound device account for storage.
[0176] At Fig.18 In the illustrated scenario architecture, if the router 402 finds that the current serial number list does not contain the same information as the product serial number broadcast by the smart scanner 300 in the first comparison, the router 402 as an access point can send an update request to the account server 500, and the account server 500 sends the product serial number of the accessible device corresponding to the home network 400 to the router 402 according to the update request. The router 402 performs a second comparison with the product serial number broadcast by the smart scanner 300 according to the updated serial number list, and the specific process of the second comparison is consistent with the specific process of the first comparison.
[0177] At Fig.18In the illustrated scenario architecture, if the router 402 finds that the updated serial number list contains the same information as the product serial number broadcast by the smart scanner 300 during the secondary comparison process, the network configuration information of the home network 400 can also be directly fed back to the smart scanner 300. If the router 402 finds that the updated serial number list still does not contain the same information as the product serial number broadcast by the smart scanner 300 during the secondary comparison process, it means that the smart scanner 300 does not have the automatic connection authority for the home network 400, and the user can be prompted by feeding back the connection failure information to the mobile phone 100.
[0178] Furthermore, if the router 402 finds that the updated serial number list still does not contain the same product serial number as the one broadcasted by the smart scanner 300 during the secondary comparison process, the smart scanner 300 that initiated the automatic network access request can also be added to the blacklist of the current home network 400. In actual application scenarios, there may be scenarios where terminal devices illegally access the home network 400 through other means, and such terminal devices may fail to apply for automatic network access in the subsequent access process. In order to prevent the access of such smart devices from causing hidden dangers to the stability and security of the home network environment, the terminal devices that failed the automatic network access request can be uniformly added to the blacklist of the current home network 400. If the devices in the blacklist want to join the home network 400 again in the future, the user needs to give them corresponding access authorization through the network account corresponding to the home network 400.
[0179] At Fig.18In the scenario architecture shown, the account server 500 can adopt the following method in the serial number list update process of the router 402: when the router 402 submits an update request, the account server 500 selects one or more device accounts corresponding to the network account of the home network 400 corresponding to the router 402, and each of the above device accounts may store a certain number of product serial numbers; the account server 500 sends the product serial number corresponding to each of the above device accounts to the router 402 in a certain order for local comparison query: if there is a broadcast serial number in the product serial number corresponding to the current device account, the router 402 sends the network configuration information to the smart scanner 300 according to the above steps; if there is no broadcast serial number in the product serial number corresponding to the current device account, the router 402 deletes all product serial numbers corresponding to the current device account from the local, and receives the product serial number corresponding to the next device account from the account server 500 in order and performs the same comparison operation until all device accounts that are authorized to connect to the home network 400 are compared. Through the above technical solution, the router 402 does not need to receive all product serial numbers stored in the account server 500 when submitting an update request, making the update of the serial number list more targeted and simplifying the update data communication volume and update time in actual application.
[0180] Specifically, Fig.19 According to the above embodiment of the present application, a flow chart of an automatic network access method is shown, wherein steps 1901 to 1909 are consistent with the aforementioned steps 1701 to 1709, and are not described in detail here. The flow chart also includes:
[0181] Step 1910: After the smart scanner 300 is powered on, the product serial number of the smart scanner 300 is broadcast.
[0182] Step 1911: The home network 400 performs the first network access verification on the product serial number broadcast by the smart scanner 300 according to the locally stored serial number list. The network access verification can be implemented by identifying whether the product serial number broadcast by the smart scanner 300 exists in the serial number list locally stored in the access point of the home network 400. If it exists, it means that the smart scanner 300 has passed the network access verification.
[0183] If passed, it means that the smart scanner 300 is allowed to access the home network 400, and then go to step 1915.
[0184] If it fails, it means that the current smart scanner 300 is not allowed to access the home network 400 for network verification, and then goes to step 1912.
[0185] Step 1912: The home network 400 submits a serial number update request to the account server 500.
[0186] Step 1913: the account server 500 sends the product serial number to the home network 400 according to the serial number update request, and the home network 400 performs a secondary network access verification on the broadcast serial number according to the updated serial number list.
[0187] If it passes, it means that the smart scanner 300 is not allowed to access the home network 400, and then go to step 1914.
[0188] Step 1914: the home network 400 feeds back connection failure information to the mobile phone 100, and then exits the process.
[0189] Step 1915: The home network 400 sends network access configuration information to the smart scanner 300.
[0190] Step 1916: The smart scanner 300 automatically accesses the home network 400 according to the network configuration information.
[0191] Through the above process steps, the product serial numbers are not all stored in the local end of the home network 400, but can be synchronously stored in the account server 500. In some embodiments of the present application, the home network 400 can only store the serial number information of some currently commonly used devices (such as smart devices bound to the network account corresponding to the home network 400), and the product serial numbers of other infrequently used smart devices can all be stored in the account server 500. When there is a need for automatic network access and the home network 400 cannot find the serial number list stored locally, the corresponding serial number information can be obtained from the account server 500.
[0192] It is understandable that the product serial number of the terminal device can be synchronized and stored in a cloud server connected to the home network 400, and the cloud server is not limited to the account server 500; similarly, the mall server 200 can also directly send the product serial number to the cloud server, or the home network 400 can synchronize the product serial number to the cloud server after receiving it according to the other embodiments described above.
[0193] In the aforementioned embodiments, the application scenarios are all set for the process in which the user purchases the smart scanner 300 in the online mall through the mobile phone 100 and authorizes it to automatically access the home network 400. In other embodiments of the present application, for the process in which the smart scanner 300 needs to switch from the home network 400 to another home network 410 to perform automatic access, another automatic network access architecture and corresponding process are proposed.
[0194] Fig. 20 According to some embodiments of the present application, another scenario architecture of an automatic network access method is shown.
[0195] It is understandable that, in view of the functional requirement that the smart scanner 300 can automatically connect when accessing a new network environment, the application scenarios that need to be covered include both the automatic access when the smart scanner 300 is powered on for the first time after purchase, and the first automatic access to other local area networks when the smart scanner 300 needs to switch to access the network environment during daily use. When the smart scanner 300 successfully accesses the home network 400 for the first time, the smart scanner 300 will store the obtained network configuration information about the home network 400 so that the network access can be automatically performed without verification during subsequent power-ons. Therefore, in some embodiments of the present application, when the smart scanner 300 needs to switch to a new local area network, it is only necessary to implement the automatic connection authorization at the time of initial access.
[0196] like Fig. 20 In the illustrated scenario architecture, the product serial number of the smart scanner 300 is stored locally by the access point of the local area network. That is, when the smart scanner 300 wants to access a new home network 410, the product serial number of the smart scanner 300 needs to be pre-sent to the access point of the home network 410 through the mobile phone 100 or the account server 500 for local storage. The case where the product serial number of the smart scanner 300 is stored in the cloud (such as the account server 500) will be described later.
[0197] It is understandable that when the smart scanner 300 needs to switch from the home network 400 to another home network 410 to perform automatic access, it is pre-set that the smart scanner 300 has completed the binding with the device account at this time, and the network account corresponding to the home network 410 is also stored in the account server 500.
[0198] like Fig. 20 As shown, the user can submit an authorization request for automatic connection to the home network 410 through the mobile phone 100; the authorization request is sent by the mobile phone 100 to the account server 500 for verification, and the verification method can still be to verify whether the device account of the smart scanner 300 is an authorized connection account of the network account corresponding to the home network 410. If so, it means that the smart scanner 300 is allowed to access the home network 410, and the mobile phone 100 sends the product serial number of the smart scanner 300 to the home network 410. If not, it means that the smart scanner 300 is not allowed to access the home network 410, and the account server 500 returns an authorization failure message to the mobile phone 100 and requests the user to perform additional authorization update operations. The specific process diagram can be shown as follows. Fig.21 Similarly, in order to ensure that the product serial number of the smart scanner 300 can be sent to the home network 410 in a timely manner, the mobile phone 100 can also send the product serial number to the home network 410 through the account server 500.
[0199] It is understandable that the broadcast serial number and network access verification process after the smart scanner 300 is powered on can adopt the same implementation scheme as any of the above embodiments, which will not be described in detail here. The above technical solution makes the switching and automatic access to the home network 410 more targeted, and at the same time covers the network switching scenarios that cannot be realized in the above embodiments.
[0200] It can be understood that, as an intelligent device, the smart scanner 300 allows the storage of network configuration information of multiple different local area networks for automatic access and use. When the smart scanner 300 finds that multiple network configuration information can be connected to the corresponding local area network when it is powered on, it will select one of the local area networks for connection according to preset rules: it can select the local area network with the best connection status for connection based on the signal strength of the local area network or other connection influencing factors, or it can select the local area network with the highest priority for connection based on the custom connection priority pre-set by the user.
[0201] Specifically, Fig. 22 As shown in a, the user can enter the "Device Connection Management" interface through the mobile phone 100 and view all devices under the current device account by logging into the device account. Fig. 22 As shown in b, the user clicks the details button on the right side of "Smart Scanner" to view the local area network information and signal strength that the smart scanner 300 is allowed to connect to. Fig. 22 c to Fig. 22 As shown in FIG. 4 , the user can manually adjust the automatic access priority of the smart device 300 to the home network 400, the home network 410 and the work network 420 by dragging the movable bar on the right side of the local area network information such as “work network 420”.
[0202] At the same time, users can also view and manage the current connection status of the device through the "Device Connection Management" interface. Fig. 22 c to Fig. 22d, when the user enters the "Device Connection Management" interface through the mobile phone 100, the current connection status of the smart scanner 300 can also be viewed by clicking the details button on the right side of the "Smart Scanner". In the above embodiment, the connection status of the terminal device can include "initial status", "connected status" and "shared status", where "initial status" means that the terminal device is not currently allowed to join any local area network, that is, the user has not yet granted automatic network access permission to the terminal device or has cancelled the automatic network access permission of the device; "connected status" means that the terminal device is currently connected to a local area network and is in a successful network access state; "shared status" means that the terminal device is allowed to access multiple local area networks and is not currently connected to any local area network. Smart devices in "connected status" and "shared status" all have the user's automatic network access permission and have passed the corresponding automatic network access verification. Further, the user can also grant or revoke the automatic network access permission of the smart scanner 300 in the "Device Connection Management Interface".
[0203] When the product serial number of the smart scanner 300 is stored in the cloud (such as the account server 500), if the smart scanner 300 needs to switch to a new home network 410, the user does not need to make an advance selection through the mobile phone 100. When the smart scanner 300 is in the "sharing state", the smart scanner 300 broadcasts its own product serial number after powering on; when the access point of the home network 410 receives the product serial number broadcast by the smart scanner 300 and fails to match for the first time, it can request the cloud server (such as the account server 500) storing the product serial number to update the locally stored serial number list, which can further simplify the user's authorization selection operation.
[0204] It is understandable that when the smart scanner 300 needs to switch from the home network 400 to the home network 410, the reason for the switch may be the user's active selection through the mobile phone 100, or the smart scanner 300 may be passively selected due to network connection restrictions. In some embodiments of the present application, if the smart scanner 300 is automatically connected to the network according to the locally stored network configuration information, if all network configuration information cannot be connected to the corresponding local area network, it means that the smart scanner 300 needs to switch to a new network environment. Further, when all network configuration information cannot be connected to the corresponding local area network, the smart scanner 300 can continue to broadcast the product serial number to the local area network to be connected to update the network configuration information, but when these local area networks cannot find the broadcast serial number from the local serial number list or the cloud-updated serial number list (this may be because the user manually deleted the automatic access permission of the smart scanner 300 to these local area networks due to the adjustment of the network connection environment), it can also be explained that the smart scanner 300 needs to switch to a new network environment. When the smart scanner 300 passively chooses to access a new home network 410 due to network connection restrictions, the user can make an authorization request for automatic connection to the home network 410 without pre-selecting through the mobile phone 100. At this time, the smart scanner 300 can directly broadcast the product serial number to the home network 410. When the access point of the home network 410 fails the first comparison verification, it can actively apply to the account server 500 for network access permission verification. The verification method can be to check whether the device account bound to the smart scanner 300 belongs to the authorized connection account of the network account corresponding to the home network 410. If the network access verification passes, the authorized connection information is returned to the home network 410 and the corresponding network configuration information is issued by the home network 410. If the network access verification fails, the prohibited connection information is returned to the home network 410, and the home network 410 can feedback the connection failure information to the user through the mobile phone 100.
[0205] The present application also provides a technical solution for a terminal device to automatically execute Bluetooth connection.
[0206] In the aforementioned embodiments, the set application scenarios are all processes for the smart scanner 300 to automatically access the home network 400 or the home network 410; and in other embodiments of the present application, for the smart watch 2301, a smart device that requires a Bluetooth connection, the same technical solution can also be adopted to achieve automatic Bluetooth connection between it and the mobile phone 100.
[0207] Specifically, Fig.23 A scenario architecture of an automatic connection method for a Bluetooth connection environment is shown.
[0208] It is understandable that before the Bluetooth connection, the smart watch 2301 can complete the binding process between the smart watch 2301 and the device account by logging into the device account through the display screen of the smart watch 2301, and synchronize the binding result, device information (including the product serial number of the smart watch 2301) and its corresponding Bluetooth connection preference to the account server 500.
[0209] like Fig.23 As shown, when the smart watch 2301 needs to perform a Bluetooth connection, the product serial number is also broadcast to the surrounding Bluetooth connection environment 2300, and the Bluetooth connection environment 2300 includes at least one accessible Bluetooth device, such as Fig.17 The Bluetooth connection environment 2300 includes two accessible Bluetooth devices, a mobile phone 100 and a smart scanner 300, wherein the accessible Bluetooth device refers to a smart device with a Bluetooth connection function and currently in an idle state. When the smart watch 2301 starts broadcasting its own product serial number, these accessible Bluetooth devices independently determine whether they have the automatic connection permission with the smart watch 2301 based on the serial number. When having the automatic connection permission with the smart watch 2301, the accessible Bluetooth device returns its own device connection code to the smart watch 2301. The step of determining whether the automatic connection permission is available can adopt any of the methods in the previous text, which will not be repeated here.
[0210] It can be understood that in the present application, the device access point to the Bluetooth connection environment 2300 is equivalent to the access point to the home network 400. When any accessible Bluetooth device receives the product serial number, it can independently perform connection verification. The connection verification method can also be to compare whether the broadcast serial number is included in the locally stored serial number list; similarly, any accessible Bluetooth device can also independently send a Bluetooth connection request to the account server 500; for example, according to the pre-set Bluetooth connection preference, the mobile phone 100 is the device access point with the highest priority among the device access points that are currently idle, so according to the above process steps, the smart watch 2301 finally completes the Bluetooth pairing connection with the mobile phone 100.
[0211] Fig.24 A schematic structural diagram of the mobile phone 100 is shown.
[0212] The mobile phone 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0213] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the mobile phone 100. In other embodiments of the present application, the mobile phone 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0214] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0215] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0216] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0217] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the mobile phone 100. In other embodiments of the present application, the mobile phone 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0218] The wireless communication function of the mobile phone 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0219] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in mobile phone 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization rate of the antennas.
[0220] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the mobile phone 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0221] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the mobile phone 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0222] The mobile phone 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change display information, for example, an interface that automatically pops up when displaying the management of input methods to prompt the user to switch input methods, or an interface including a list of available input methods.
[0223] The internal memory 121 can be used to store computer executable program codes, and the executable program codes include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the mobile phone 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the mobile phone 100 by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor.
[0224] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key, such as a key of a virtual keyboard of a first input method displayed by the mobile phone 100. The mobile phone 100 may receive key input and generate key signal input related to user settings and function control of the mobile phone 100.
[0225] The software system of the mobile phone 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present invention takes the Android system of the layered architecture as an example to exemplify the software structure of the mobile phone 100.
[0226] Fig.25 It is a software structure block diagram of the mobile phone 100 according to an embodiment of the present invention.
[0227] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
[0228] The application layer can include a series of application packages.
[0229] like Fig.25 As shown, the application package may include applications such as mall, camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
[0230] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0231] like Fig.25 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
[0232] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0233] Content providers are used to store and retrieve data and make it accessible to applications. The data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0234] The view system may be the display system service 101 of the mobile phone 100, which is used to manage and modify the display style of the application of the mobile phone 100. The view system obtains the display function corresponding to the display style parameter according to the display style parameter included in the display parameter obtained by the mobile phone 100 from the tablet computer 200, and is used to configure the application of the mobile phone 100.
[0235] The phone manager is used to provide communication functions of the mobile phone 100, such as management of call status (including answering, hanging up, etc.).
[0236] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0237] In an embodiment of the present invention, the resource manager may also be used to store an Overlay configuration file.
[0238] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0239] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
[0240] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
[0241] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0242] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0243] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0244] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0245] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0246] A 2D graphics engine is a drawing engine for 2D drawings.
[0247] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0248] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0249] In the several embodiments provided in the present application, 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 modules or 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 device, 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.
[0250] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0251] In addition, each functional unit in each embodiment of the present application 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 software functional units.
[0252] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the various embodiments of the present application. 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 code.
[0253] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A network access method for an electronic device, It is characterized in that include: When a first account bound to a first electronic device meets the access condition of a preset network, the network access device receives a first network access identifier of the first electronic device, wherein when the first account matches a second account corresponding to the preset network, the first account meets the access condition of the preset network; The first electronic device broadcasts a network access request, wherein the network access request includes a second network access identifier of the first electronic device; The network access device matches the second network access identifier in the network access request with the first network access identifier according to the received network access request; The network access device connects the first electronic device to the preset network when the first network access identifier and the second network access identifier match.
2. The method according to claim 1, It is characterized in that The network access method further includes: When the purchase order of the first electronic device is completed, the second electronic device obtains the first network access identifier of the first electronic device from the first server; Wherein, when a purchase order for the first electronic device is generated, the first server obtains the first network access identifier of the first electronic device from the first electronic device; The second electronic device can access the preset network.
3. The method according to claim 2, It is characterized in that When receiving the first network access identifier of the first electronic device, the second electronic device sends the first network access identifier of the first electronic device to the network access device.
4. The method according to claim 2, It is characterized in that The second electronic device sends the first network access identifier of the first electronic device to the network access device when the second server verifies that the first account bound to the first electronic device meets the access condition of the preset network; When the purchase order of the first electronic device is completed, the second electronic device sends the binding information between the first electronic device and the first account to the second server.
5. The method according to claim 4, It is characterized in that The second server pre-acquires binding information between the preset network and the second account; The second server matches the first account with the second account according to the received binding information between the first electronic device and the first account, and verifies that the first account meets the access condition of the preset network when the first account and the second account match.
6. The method according to claim 4, It is characterized in that The second electronic device sends the first network access identifier to the network access device through the second server when the second server verifies that the first account bound to the first electronic device meets the access condition of the preset network.
7. The method according to claim 1, It is characterized in that The network access method further includes: When the purchase order of the first electronic device is completed, the second server obtains the first network access identifier of the first electronic device from the first server; When a purchase order for the first electronic device is generated, the first server obtains the first network access identifier of the first electronic device from the first electronic device.
8. The method according to claim 7, It is characterized in that The second server sends the first network access identifier of the first electronic device to the network access device when verifying that the first account bound to the first electronic device meets the access condition of the preset network; When the purchase order of the first electronic device is completed, the second electronic device sends the binding information between the first electronic device and the first account to the second server.
9. The method according to claim 8, It is characterized in that The second server pre-acquires binding information between the preset network and the second account; The second server matches the first account with the second account according to the received binding information between the first electronic device and the first account, and verifies that the first account meets the access condition of the preset network when the first account and the second account match.
10. The method according to claim 8, It is characterized in that The second server sends the first network access identifier of the first electronic device to the network access device when verifying that the first account bound to the first electronic device meets the access condition of the preset network and receiving the network access identifier update request of the network access device; Wherein, when the first network access identifier and the second network access identifier fail to match each other for the first time, the network access device sends the network access identifier update request to the second server.
11. The method according to claim 1, It is characterized in that The first network access identifier includes a product serial number of the first electronic device and a physical address of the first electronic device.
12. The method of claim 1, It is characterized in that The network access device sends the network configuration information of the preset network to the first electronic device when the first network access identifier and the second network access identifier match; The first electronic device accesses the preset network according to the network configuration information.
13. A network access method for an electronic device, It is characterized in that include: When a first account bound to a first electronic device meets the access condition of a preset network, the network access device receives a first network access identifier of the first electronic device, wherein when the first account matches a second account corresponding to the preset network, the first account meets the access condition of the preset network; The network access device receives a network access request broadcasted by a first electronic device, wherein the network access request includes a second network access identifier of the first electronic device; The network access device matches the second network access identifier in the network access request with the first network access identifier according to the received network access request; The network access device connects the first electronic device to the preset network when the first network access identifier and the second network access identifier match.
14. The method according to claim 13, It is characterized in that Also includes: When the first network access identifier and the second network access identifier match, the network access device sends network configuration information of the preset network to the first electronic device, wherein the network configuration information can be used by the first electronic device to access the preset network, and the first network access identifier includes a product serial number of the first electronic device and a physical address of the first electronic device.
15. A network access method for an electronic device, It is characterized in that include: The second electronic device determines that the purchase order of the first electronic device is completed; The second electronic device obtains the first network access identifier of the first electronic device from the first server; Wherein, when the purchase order of the first electronic device is generated, the first server obtains the first network access identifier of the first electronic device from the first electronic device, and the second electronic device can access the preset network; The method further comprises: The second electronic device sends the first network access identifier of the first electronic device to the network access device when the second server verifies that the first account bound to the first electronic device meets the access condition of the preset network; Wherein, when the purchase order of the first electronic device is completed, the second electronic device sends the binding information between the first electronic device and the first account to the second server; Wherein, if the first account matches the second account corresponding to the preset network, the first account satisfies the access condition of the preset network; Among them, the first network access identifier is used by the network access device to match the second network access identifier in the network access request with the first network access identifier when receiving the network access request of the first electronic device, and to connect the first electronic device to the preset network when the first network access identifier and the second network access identifier match.
16. The method of claim 15, It is characterized in that When receiving the first network access identifier of the first electronic device, the second electronic device sends the first network access identifier of the first electronic device to the network access device.
17. A network access method for an electronic device, It is characterized in that include: When the purchase order of the first electronic device is completed, the second server obtains the first network access identifier of the first electronic device from the first server; When the first account bound to the first electronic device meets the access condition of the preset network, the second server sends the first network access identifier of the first electronic device to the network access device, wherein when the first account matches the second account corresponding to the preset network, the first account meets the access condition of the preset network. When a purchase order for the first electronic device is generated, the first server obtains the first network access identifier of the first electronic device from the first electronic device.
18. The method of claim 17, It is characterized in that The second server pre-acquires binding information between the preset network and the second account; The second server matches the first account with the second account according to the received binding information between the first electronic device and the first account, and verifies that the first account meets the access condition of the preset network when the first account and the second account match; When the purchase order of the first electronic device is completed, the second electronic device sends the binding information between the first electronic device and the first account to the second server.
19. The method of claim 18, It is characterized in that The second server sends the first network access identifier of the first electronic device to the network access device when verifying that the first account bound to the first electronic device meets the access condition of the preset network.
20. The method of claim 18, It is characterized in that The second server sends the first network access identifier of the first electronic device to the network access device when verifying that the first account bound to the first electronic device meets the access condition of the preset network and receiving the network access identifier update request of the network access device; Wherein, when the first network access identifier and the second network access identifier fail to match each other for the first time, the network access device sends the network access identifier update request to the second server.
21. An electronic device, It is characterized in that include: A memory storing instructions; A processor, wherein the processor is coupled to a memory, and when the program instructions stored in the memory are executed by the processor, the electronic device executes the network access method described in any one of claims 1 to 20.
22. A readable medium, It is characterized in that The readable medium stores instructions, and when the instructions are executed on an electronic device, the electronic device executes the network access method according to any one of claims 1 to 20.
