Device verification method, device, computer device and storage medium
The post-authentication mechanism allows the first device to access the wireless network before authenticating the second device in smart home devices, solving the problem of cumbersome verification before device access in the existing technology, and improving convenience and security.
Patent Information
- Application Number
- CN202110190534.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-18
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2041-02-18
AI Technical Summary
In the existing technology, smart home devices need to manually complete the verification steps of the mobile terminal before accessing the wireless network, which is cumbersome and inconvenient.
Provide a post-authentication mechanism that allows the first device to access the wireless network before authenticating the second device, and determines the legal usage rights of the second device through the server. If verification is not required, it can be accessed directly without outputting a verification prompt signal. If necessary The verification instructs the second device to output verification operation instructions.
This allows the first device to conveniently access the wireless network, and the user can promptly view the accessible first device through the second device, which improves user experience and device security.
Smart Images

Figure CN114980093B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of Internet of Things (IOT), and in particular to a device verification method, apparatus, computer equipment and storage medium. Background Art
[0002] Authentication refers to verifying whether the user has legal authority to use smart home devices.
[0003] In the related art, after the mobile terminal discovers the smart home device, it displays the device identification of the smart device. The user triggers the device identification, and the mobile terminal jumps to display a list of wireless networks allowed to access. The user selects the target wireless network to be accessed and enters the password. When the entered password matches the password of the target wireless network, it is determined that the mobile terminal has passed the verification and instructs the smart home device to access the target wireless network.
[0004] In the related art, before the smart home device accesses the target wireless network, it is necessary to manually complete the verification steps for the mobile terminal, which is very cumbersome. Summary of the invention
[0005] The present application provides a device verification method, apparatus, computer equipment and storage medium. The technical solution includes:
[0006] On the one hand, an embodiment of the present application provides a device verification method, which is applied to a server, and the method includes:
[0007] Establishing a communication connection with a first device;
[0008] receiving a first message sent by a second device, where the first message is used to request access to the first device;
[0009] Determining whether verification of the second device is required;
[0010] If the judgment result is that the second device needs to be verified, a first notification message is sent to the second device, and the first notification message is used to instruct the second device to output verification operation guidance information for the first device; if the judgment result is that the second device does not need to be verified, a second message is sent to the second device, and the second message is used to indicate the access result of the first message.
[0011] On the other hand, an embodiment of the present application provides a device verification method, which is applied to a first device, and the method includes:
[0012] Establish a communication connection with the server;
[0013] Receive a second notification message sent by the server, the second notification message is sent by the server after the second device determines that verification of the second device is required when the second device initiates access to the first device, the second notification message is used to instruct the first device to output a verification prompt signal, and the verification prompt signal is used to indicate that the first device is waiting for a verification operation.
[0014] On the other hand, an embodiment of the present application provides a device verification method, which is applied to a second device, and the method includes:
[0015] Sending a first message to a server, where the first message is used to request access to the first device;
[0016] receiving a second message sent by the server, where the second message is sent by the server after the server determines that verification of the second device is not required when the second device initiates access to the first device, and the second message is used to indicate an access result of the first message;
[0017] Receive a first notification message sent by the server, where the first notification message is sent by the server after the server determines that verification of the second device is required when the second device initiates access to the first device, and the first notification message is used to instruct the second device to output verification operation guidance information for the first device.
[0018] In another aspect, an embodiment of the present application provides a device verification apparatus, the apparatus comprising:
[0019] A first connection module, used to establish a communication connection with a first device;
[0020] A first receiving module, configured to receive a first message sent by a second device, where the first message is used to request access to the first device;
[0021] A determination module, used to determine whether to verify the second device;
[0022] A first sending module, configured to send a first notification message to the second device if the judgment result is that the second device needs to be verified, wherein the first notification message is used to instruct the second device to output verification operation guidance information for the first device;
[0023] The second sending module is used to send a second message to the second device if the judgment result is that the second device does not need to be verified, and the second message is used to indicate the access result of the first message.
[0024] In another aspect, an embodiment of the present application provides a device verification apparatus, the apparatus comprising:
[0025] A second connection module, used to establish a communication connection with the server;
[0026] A second receiving module is used to receive a second notification message sent by the server. The second notification message is sent by the server after the server determines that the second device needs to be verified when the second device initiates access to the first device. The second notification message is used to instruct the first device to output a verification prompt signal, and the verification prompt signal is used to indicate that the first device is waiting for a verification operation.
[0027] In another aspect, an embodiment of the present application provides a device verification apparatus, the apparatus comprising:
[0028] A third sending module, configured to send a first message to the server, where the first message is used to request access to the first device;
[0029] a third receiving module, configured to receive a second message sent by the server, the second message being sent by the server after the server determines that verification of the second device is not required when the second device initiates access to the first device, and the second message being used to indicate an access result of the first message;
[0030] The fourth receiving module is used to receive a first notification message sent by the server. The first notification message is sent by the server after the second device determines that verification of the second device is required when the second device initiates access to the first device. The first notification message is used to instruct the second device to output verification operation guidance information for the first device.
[0031] On the other hand, an embodiment of the present application provides a computer device, which includes a processor and a memory, wherein the memory stores a computer program, and the computer program is loaded by the processor and executes the device verification method as described above.
[0032] Optionally, when the computer device is a server, it is used to execute the device verification method on the server side as described above; when the computer device is a first device, it is used to execute the device verification method on the first device side as described above; when the computer device is a second device, it is used to execute the device verification method on the second device side as described above.
[0033] On the other hand, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. The computer program is loaded and executed by a processor to implement the device verification method as described in the first aspect.
[0034] In another aspect, an embodiment of the present application provides a computer program product, the computer program product or computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the above-mentioned device verification method.
[0035] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:
[0036] By providing a post-authentication mechanism, the first device is allowed to access the wireless network before the second device is verified. Compared with the related art that requires the verification of the second device to be completed before the first device accesses the wireless network, the technical solution provided in the embodiment of the present application can make the first device access the wireless network more convenient, so that the user can view the accessible first device through the second device in time, and then guide the user to access the first device through the second device. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 It is a schematic diagram of an implementation environment provided by an embodiment of the present application;
[0038] Figure 2 is a flow chart of a device verification method provided by an embodiment of the present application;
[0039] Figure 3 is a schematic diagram of an interface for querying a first device provided by an embodiment of the present application;
[0040] Figure 4 is a schematic diagram of an interface for controlling a first device provided by an embodiment of the present application;
[0041] Figure 5 is a flow chart of a device verification method provided by an embodiment of the present application;
[0042] Figure 6 is a flow chart of a device verification method provided by an embodiment of the present application;
[0043] Figure 7 is a schematic diagram of an interface for displaying verification operation information corresponding to a first device provided by an embodiment of the present application;
[0044] Figure 8 This is a schematic diagram of an interface for displaying prompt information to be verified provided by an embodiment of the present application;
[0045] Fig. 9 is a block diagram of a device verification apparatus provided by an embodiment of the present application;
[0046] Fig.10is a block diagram of a device verification apparatus provided by an embodiment of the present application;
[0047] Fig.11 It is a block diagram of a computer device provided by one embodiment of the present application. DETAILED DESCRIPTION
[0048] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0049] Figure 1 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application. The implementation environment includes a first device 11, a second device 12 and a server 13.
[0050] The first device 11 may be a smart home device, such as a smart purifier, a smart night light, a smart air conditioner, a smart curtain, a smart water dispenser, etc. The first device 11 has the ability to access a wireless network.
[0051] The second device 12 can access the first device 11, for example, to query the working status of the first device 11 and control the first device 11. Optionally, an application for accessing the first device 11 is installed in the second device 12, and the query and control of the first device 11 are realized through the application. The second device 12 can be a mobile terminal, a tablet computer, a smart wearable device, a personal computer (PC), etc.
[0052] Exemplarily, after determining that the second device 12 has the legal right to use the first device 11, the server 13 allows the second device 12 to access the first device 11. Optionally, the server 13 determines that the second device 12 has the legal right to use the first device 11 after the second device 12 completes the verification. In the embodiment of the present application, in addition to the verification process, the mobile terminal also determines whether the second device 12 has the legal right to use the first device 11 through at least one of the device type of the first device 11, the communication method of the second device 12 discovering the first device 11, the distance between the first device 11 and the second device 12, and the operation method of the first device 11 entering the network distribution state.
[0053] The server 13 may be a single server, a server cluster consisting of multiple servers, or a cloud computing service center. Optionally, the server 13 is a background server corresponding to an application installed in the second device 12 for accessing the first device 11 .
[0054] A communication connection is established between the first device 11 and the server 13 via a wireless network. A communication connection is established between the second device 12 and the server 13 via a wireless network.
[0055] In the related art, before the smart home device accesses the target wireless network, it is necessary to manually complete the verification steps for the mobile terminal, which is very cumbersome.
[0056] Based on this, the embodiment of the present application provides a post-authentication mechanism, which allows the first device to access the wireless network before verifying the second device. Compared with the related technology that requires the verification of the second device to be completed before the first device accesses the wireless network, the technical solution provided by the embodiment of the present application can make the first device access the wireless network more convenient, so that the user can view the accessible first device through the second device in time, and then guide the user to access the first device through the second device.
[0057] Figure 2 This is a flow chart of a device verification method provided by an embodiment of the present application. The method is applied to a server and includes the following steps:
[0058] Step 201: Establish a communication connection with a first device.
[0059] After the first device completes access to the wireless network, the server establishes a communication connection with the first device.
[0060] In one possible implementation, the second device displays a list of first devices in a network configuration state. After the user selects the first device to be connected to the wireless network, a wireless network list is displayed. The user selects the target wireless network in the wireless network list and enters the key of the target wireless network. The second device sends the networking information to the first device via a direct connection or a broadcast. After that, the first device accesses the target wireless network based on the networking information and successfully establishes a communication connection with the server.
[0061] In another possible implementation, the user uses the second device to scan the QR code pasted on the body of the first device to obtain the device information of the first device. The second device quickly discovers the first device or displays the network configuration operation instructions of the first device, and sends the networking information to the first device via direct connection or broadcast. At this time, the first device accesses the target wireless network according to the networking information and successfully establishes a communication connection with the server.
[0062] Step 202: Receive a first message sent by a second device.
[0063] The first message is used to request access to the first device.
[0064] Optionally, the first message is used to request a query on the first device. When the first message is used to query the first device, the first message carries a query instruction, a query content, etc. In one possible implementation, the first message is used to query the first device, such as querying the current working status of the first device. Taking the first device as a smart air conditioner as an example, the second device sends a first message to query whether the smart air conditioner is in operation, the current working mode (such as cooling mode, heating mode), the current working temperature, etc. Optionally, the second device displays a list of first devices. When the user triggers a first device, the second device displays the control page of the selected first device. Prior to this, the second device needs to query the first device from the cloud.
[0065] See also Figure 3 , which shows a schematic diagram of an interface for querying a first device provided by an embodiment of the present application. The user can check through the second device that the washing machine is in a turned off state, and the supported working modes include quick wash, mixed wash, single dehydration, large-piece wash, etc.
[0066] Optionally, the first message is used to request control of the first device. When the first message is used to control the first device, the first message carries a control instruction. In another possible implementation, the first message is used to control the first device, such as controlling the first device to turn on or off, switch working modes, etc. Optionally, the second device displays a control page of the first device, and if the user operates on the current control page, the second device sends the first message to request control of the second device.
[0067] See also Figure 4 , which shows a schematic diagram of an interface for controlling a first device provided by an embodiment of the present application, and a user can add working conditions of a camera through a second device.
[0068] Optionally, the first message also carries a combination of one or more of the following: a device identifier of the first device, a wireless network to which the first device accesses, a device type of the first device, a communication method for the second device to discover the first device, an operation method for entering a network configuration state, and the like.
[0069] Step 203: Determine whether to authenticate the second device.
[0070] After receiving the access request (i.e., the first message) sent by the second device corresponding to the first device, the server needs to first determine whether the second device needs to be authenticated to determine whether the second device has the legal right to use the first device, so as to improve the security of the first device. The method of determining whether the second device needs to be authenticated will be explained in the following embodiments.
[0071] If the judgment result is that the second device needs to be authenticated, step 204 is executed; if the judgment result is that the second device does not need to be authenticated, step 205 is executed.
[0072] Step 204: Send a first notification message to the second device.
[0073] The first notification message is used to instruct the second device to output verification operation instruction information for the first device, and the verification operation instruction information is used to indicate the operations required to be performed to verify the second device.
[0074] Correspondingly, the second device receives the first notification message sent by the server and outputs verification operation guidance information.
[0075] Optionally, if the judgment result is that the second device needs to be verified, the server also sends a second notification message to the first device, and the second notification message is used to instruct the first device to output a verification prompt signal, and the verification prompt signal is used to indicate that the first device is waiting for verification. The way of outputting the verification prompt signal includes but is not limited to: voice broadcast mode, indicator light flashing mode, display screen display mode, etc.
[0076] Correspondingly, the first device receives the second notification message sent by the server and outputs a verification prompt signal. By outputting the verification prompt signal by the first device, on the one hand, the verification prompt information is used to prompt the first device that it is in the verification process, so that the user can be aware of this situation in time, avoiding user cognitive errors when the first device cannot be queried or controlled during the verification process of the second device, thereby reducing user loss. On the other hand, it can enable the user to promptly detect the situation of other illegal users verifying the second device and prevent this situation from happening, thereby improving the safety of the first device.
[0077] Step 205: Send a second message to the second device.
[0078] The second message is used to indicate the access result of the first message. Optionally, when the first message is used to query the first device, the second message carries the corresponding query result. Optionally, when the first message is used to control the first device, the second message carries a control confirmation indication.
[0079] After determining that there is no need to authenticate the second device, the server directly sends a second message to the second device to instruct the second device to access the first device.
[0080] To sum up, the technical solution provided in the embodiment of the present application, by providing a post-authentication mechanism, allows the first device to access the wireless network before verifying the second device. Compared with the related technology that requires the verification of the second device to be completed before the first device accesses the wireless network, the technical solution provided in the embodiment of the present application can make the first device access the wireless network more convenient, so that the user can view the accessible first device through the second device in time, and then guide the user to access the first device through the second device.
[0081] In a possible implementation, determining whether verification of the second device is required includes the following sub-steps:
[0082] Step 203a: determine whether the distance between the first device and the second device is greater than a first threshold.
[0083] The first threshold is set based on experiments or experience. Exemplarily, the first threshold is 3 meters. It should be noted that the first threshold is stored in the cloud, and it can be adjusted based on user feedback and data analysis. Optionally, the first message includes a received signal strength (RSSI), and step 203a is specifically implemented as: determining whether the received signal strength is greater than the second threshold.
[0084] Since the received signal strength is negatively correlated with the distance, that is, the greater the received signal strength, the smaller the distance, and the smaller the received signal strength, the greater the distance, therefore, in this implementation, the received signal strength of the first device is used as an indicator to measure the distance between the first device and the second device.
[0085] The received signal strength is obtained by the second device when discovering the first device and reported to the server. Optionally, the second threshold is set based on experiments or experience, or determined based on the first threshold. It should be noted that the second threshold is also stored in the cloud, and it can also be adjusted based on user feedback and data analysis.
[0086] If the judgment result is no, it is determined that the second device does not need to be verified. When the server determines that the distance between the first device and the second device is less than the first threshold, that is, the distance between the first device and the second device is small, it determines that the second device has the legal right to use the first device, and the second device does not need to be verified. When the received signal strength is used as an indicator to measure the distance, when the server determines that the received signal strength is greater than the second threshold, it determines that the distance between the first device and the second device is less than the first threshold.
[0087] If the judgment result is yes, it is determined that the second device needs to be verified. When the server determines that the distance between the first device and the second device is greater than the first threshold, that is, the distance between the first device and the second device is large, it is determined that the second device does not have the legal right to use the first device, and the second device needs to be verified. When the received signal strength is used as an indicator to measure the distance, when the server determines that the received signal strength is less than the second threshold, it is determined that the distance between the first device and the second device is greater than the first threshold.
[0088] In another possible implementation, the method of determining whether to authenticate the second device includes the following sub-steps:
[0089] Step 203b: determine whether the second device discovers the first device through a preset communication method.
[0090] The preset communication mode is used to indicate that the second device has the legal right to use the first device, for example, by determining that the distance between the first device and the second device is less than a third threshold, to indicate that the second device has the legal right to use the first device, or by determining that the second device is a security device, to determine that the second device has the legal right to use the first device.
[0091] Optionally, the preset communication method includes a QR code scanning method, a near field communication (NFC) method, and an ultra wide band (UWB) method. These three methods are explained below.
[0092] Optionally, the method of scanning the QR code is as follows: the second device is installed with a QR code scanning application, a QR code is affixed to the body of the first device, the QR code carries the device information of the first device, and the user controls the second device to scan the QR code to obtain the device information of the first device. It should be noted that when the second device sends the first message to the first device, the second device finds in the first message that the communication method of the first device is the QR code scanning method.
[0093] Optionally, the NFC method is as follows: the first device is equipped with an NFC sensing device, and the second device is also equipped with an NFC sensing device. After the first device is powered on, the NFC sensing device emits a radio frequency signal. When the NFC sensing device of the second device approaches or touches the NFC sensing device of the first device, the NFC sensing device of the second device is activated, and the two recognize each other through a handshake. It should be noted that when the second device sends a first message to the first device, the second device finds the information that the communication method of the first device is NFC in the first message. Since NFC is a near-field communication capability, its recognizable distance is 10 cm. Therefore, the second device finds the first device through NFC, which means that the distance between the first device and the second device is close enough, and there is no need to verify the second device at this time.
[0094] Optionally, the UWB method is as follows: the first device is configured with a UWB device, and the second device is also configured with a UWB device. After the first device is powered on, a pulse signal is emitted outwardly through the UWB device. The user triggers the UWB device of the second device to start working. When the above pulse signal is received by the UWB device of the second device, the second device discovers the first device. It should be noted that when the second device discovers the first device through the UWB method, based on the difference between the timestamp of the received pulse signal and the timestamp of the sent pulse signal, the distance and angle between the first device and the second device can be determined. When the second device sends a first message to the first device, the first message carries the information that the second device discovers that the communication method of the first device is the UWB method. Furthermore, the first message also carries the distance and angle between the first device and the second device.
[0095] If the judgment result is yes, it is determined that the second device does not need to be verified. After the server determines that the second device has discovered the first device through the preset communication method, it determines that the second device has the legal right to use the first device, and the second device does not need to be verified.
[0096] Optionally, if the server determines that the second device discovers the first device via UWB, it further detects whether the angle between the first device and the second device meets the first preset condition, and whether the angle between the first device and the second device meets the second preset condition. If the angle between the first device and the second device meets the first preset condition, and the distance between the first device and the second device meets the second preset condition, it is determined that there is no need to verify the second device. The first preset condition and the second preset condition are set based on actual experience. Exemplarily, the first preset condition is that the angle between the first device and the second device is less than the preset angle, and the second preset condition is that the distance between the first device and the second device is less than the preset distance.
[0097] If the judgment result is no, it is determined that the second device needs to be verified. After the server determines that the second device does not find the first device through the preset communication method, it determines that the second device does not have the legal right to use the first device, and the second device needs to be verified.
[0098] In another possible implementation, the method of determining whether to authenticate the second device includes the following sub-steps:
[0099] Step 203c, determining whether the first device enters the network configuration state through a preset operation method.
[0100] The preset operation mode is used to indicate that the second device has the legal right to use the first device. Optionally, the preset operation mode includes manual setting. The first device usually automatically enters the network configuration state when it is powered on for the first time. If the wireless network connected is wrong, it needs to be re-configured. At this time, the user operates the first device according to the specified network configuration operation to indicate that the first device enters the network configuration state. Exemplarily, the specified network configuration operation is to press and hold the power button of the first device for a preset time.
[0101] When the first device enters the network configuration state through manual settings, since the user has manually operated the device, it can be considered that the device's security confirmation has been performed. At this time, the broadcast released by the first device carries a special mark. When the second device obtains the mark, no authentication is required after the network configuration is successful.
[0102] If the judgment result is yes, it is determined that the second device does not need to be verified. After the server determines that the first device enters the network configuration state through the preset operation mode, it determines that the second device has the legal right to use the first device, and the second device does not need to be verified at this time.
[0103] If the judgment result is no, it is determined that the second device needs to be verified. When the server judges that the first device enters the network configuration state through the preset operation mode and determines that the second device does not have the legal right to use the first device, the second device needs to be verified.
[0104] In another possible implementation, the method of determining whether to authenticate the second device includes the following sub-steps:
[0105] Step 203d: determine whether the device type of the first device is a preset type.
[0106] The preset type is used to indicate that the security level is less than the first preset level. When the device type of the first device is the preset type, the security level of the first device is low. Optionally, the preset type is a smart night light, a smart air purifier, a smart water dispenser, etc. The preset type can be negotiated and set by the smart device manufacturer and the mobile terminal manufacturer.
[0107] In one possible implementation, the server saves a preset type list whose security level is lower than the first preset level. The server searches for the device type of the first device in the preset type list. If found, it means that the device type of the first device is the preset type. If not found, it means that the type of the first device is not the preset type.
[0108] In another possible implementation, the server saves the correspondence between different device types and different security levels. The server searches for the security level corresponding to the device type of the first device in the above correspondence. If the security level corresponding to the device type of the first device is less than the first preset level, it is determined that the device type of the first device is the preset type. If the security level corresponding to the device type of the first device is greater than the first preset level, it is determined that the device type of the first device is not the preset type.
[0109] If the judgment result is yes, it is determined that the second device does not need to be verified. When the server determines that the device type of the first device is a preset type, it determines that the security level of the first device is low and the second device does not need to be verified.
[0110] If the judgment result is no, it is determined that the second device needs to be verified. When the server determines that the device type of the first device is not the preset type, it determines that the security level of the second device is low and the second device needs to be verified.
[0111] To summarize, the technical solution provided in the embodiment of the present application also provides a judgment logic that does not require verification of the second device. It judges whether the second device needs to be verified based on at least one of factors such as the distance between the first device and the second device, the communication method for the second device to discover the first device, the operation method for the first device to enter the network distribution state, and the device type of the first device. If it is determined that the second device does not need to be verified, the verification step is skipped, so that the second device can access the first device more conveniently while ensuring the safety of use of the first device.
[0112] Figure 5 1 is a flow chart of a device verification method provided by an embodiment of the present application. The method is applied to a first device, and the method includes the following steps:
[0113] Step 501, establishing a communication connection with a server.
[0114] After the first device accesses the target wireless network, it establishes a communication connection with the server. The way in which the first device accesses the target wireless network can be referred to in the above embodiment, which will not be described in detail here.
[0115] Step 502: Receive a second notification message sent by the server.
[0116] The second notification message is sent by the server after the server determines that the second device needs to be verified when the second device initiates access to the first device. The second notification message is used to instruct the first device to output a verification prompt signal, and the verification prompt signal is used to indicate that the first device is waiting for a verification operation.
[0117] The first device outputs a verification prompt signal based on the second notification message. Through the above method, on the one hand, the user can be made aware that the second device is currently being verified, and on the other hand, the user can be made aware of other illegal users verifying the second device in a timely manner, thereby preventing the occurrence of such a situation and improving the safety of the first device.
[0118] Optionally, before step 501, the device verification method further includes the following steps: acquiring networking information sent by the second device, and accessing the target wireless network according to the networking information.
[0119] The networking information includes the identifier and password of the target wireless network. Optionally, after the second device obtains the access indication of the first device accessing the target wireless network, the first device obtains the networking information sent by the second device.
[0120] In one possible implementation, the second device displays the device identification of the first device and receives a trigger signal corresponding to the device identification. At this time, the second device displays a wireless connection list, receives a selection signal corresponding to the target wireless connection, and receives an input password. At this time, the second device obtains an access indication of the first device to access the target wireless network.
[0121] In another possible implementation, the second device scans the QR code pasted on the first device, and after obtaining the scanning signal, displays the device identification of the first device matching the scanning information and an inquiry message for asking whether to connect to the first device. After receiving the confirmation indication corresponding to the inquiry message, the second device obtains the access indication of the first device to access the target wireless network.
[0122] To sum up, the technical solution provided in the embodiment of the present application, by providing a post-authentication mechanism, allows the first device to access the wireless network before verifying the second device. Compared with the related technology that requires the verification of the second device to be completed before the first device accesses the wireless network, the technical solution provided in the embodiment of the present application can make the first device access the wireless network more convenient, so that the user can view the accessible first device through the second device in time, and then guide the user to access the first device through the second device.
[0123] The first device also outputs a verification prompt signal. On the one hand, the verification prompt information is used to prompt the first device that it is in the verification process, so that the user can be aware of this situation in time, avoiding user cognitive errors when the first device cannot be queried or controlled during the verification of the second device, thereby reducing user loss. On the other hand, it can enable the user to promptly notice the situation of other illegal users verifying the second device and prevent this situation from occurring, thereby improving the safety of use of the first device.
[0124] Figure 6 : is a flow chart of a device verification method provided by an embodiment of the present application. The method is applied to a second device, and the method includes the following steps:
[0125] Step 601: Send a first message to a server.
[0126] The first message is used to request access to the first device.
[0127] Step 602: Receive a second message sent by the server.
[0128] The second message is sent by the server after the server determines that it is not necessary to authenticate the second device when the second device initiates access to the first device. The second message is used to indicate the access result of the first message.
[0129] Step 603: Receive a first notification message sent by the server.
[0130] The first notification message is sent by the server after the second device determines that the second device needs to be verified when the second device initiates access to the first device. Optionally, the first notification message is used to instruct the second device to output verification operation guidance information for the first device. The verification operation guidance information is used to guide the user to perform a verification operation for the first device.
[0131] refer to Figure 7 , which shows a schematic diagram of an interface in which a second device outputs verification operation guidance information for a first device, provided by an embodiment of the present application, and the second device displays verification operation guidance information 711 for the first device.
[0132] Optionally, the device verification method further comprises the following step: after the first device accesses the target wireless network, displaying a prompt message to be verified, the prompt message to be verified is used to prompt the second device to be verified. Figure 8 , which shows a schematic diagram of an interface for displaying prompt information to be verified provided by an embodiment of the present application, and the second device displays prompt information to be verified 811 "Pending security confirmation".
[0133] To sum up, the technical solution provided in the embodiment of the present application, by providing a post-authentication mechanism, allows the first device to access the wireless network before verifying the second device. Compared with the related technology that requires the verification of the second device to be completed before the first device accesses the wireless network, the technical solution provided in the embodiment of the present application can make the first device access the wireless network more convenient, so that the user can view the accessible first device through the second device in time, and then guide the user to access the first device through the second device.
[0134] After the first device accesses the target wireless network, a verification prompt message is displayed on the second device to prompt the second device to perform verification as soon as possible, thereby avoiding the need for other users' devices to complete verification and improving the safety of the first device.
[0135] The following is an embodiment of the device of the present application. For parts not described in detail in the embodiment of the device, refer to the technical details disclosed in the above method embodiment.
[0136] Fig. 9 A block diagram of a device verification method provided by an exemplary embodiment of the present application is shown. The device verification device is implemented as all or part of a server through software, hardware, or a combination of both. The device verification device includes:
[0137] The first connection module 901 is used to establish a communication connection with a first device.
[0138] The first receiving module 902 is configured to receive a first message sent by a second device, where the first message is used to request access to the first device.
[0139] The judgment module 903 is used to judge whether to verify the second device.
[0140] The first sending module 904 is configured to send a first notification message to the second device if the judgment result is that the second device needs to be verified, wherein the first notification message is used to instruct the second device to output verification operation guidance information for the first device.
[0141] The second sending module 905 is configured to send a second message to the second device if the judgment result is that the second device does not need to be authenticated, where the second message is used to indicate the access result of the first message.
[0142] Based on Fig. 9 In the optional embodiment provided by the illustrated embodiment, the judging module 903 is used to:
[0143] Determine whether the distance between the first device and the second device is greater than a first threshold;
[0144] If the judgment result is no, it is determined that the second device does not need to be verified; if the judgment result is yes, it is determined that the second device needs to be verified.
[0145] Optionally, the first message includes received signal strength RSSI, and the judging module 903 is configured to:
[0146] Determining whether the received signal strength is greater than a second threshold;
[0147] If the judgment result is no, it is confirmed that the distance between the first device and the second device is greater than the first threshold; if the judgment result is yes, it is confirmed that the distance between the first device and the second device is less than the first threshold.
[0148] Based on Fig. 9 In the optional embodiment provided by the illustrated embodiment, the judging module 903 is used to:
[0149] Determining whether the second device discovers the first device through a preset communication method;
[0150] If the judgment result is yes, it is determined that the second device does not need to be verified; if the judgment result is no, it is determined that the second device needs to be verified.
[0151] Optionally, the preset communication method includes scanning a QR code, an NFC or a UWB method.
[0152] Based on Fig. 9 In the optional embodiment provided by the illustrated embodiment, the judging module 903 is used to:
[0153] Determine whether the first device enters the network distribution state through a preset operation mode;
[0154] If the judgment result is yes, it is determined that the second device does not need to be verified; if the judgment result is no, it is determined that the second device needs to be verified.
[0155] Optionally, the preset operation mode includes manual setting.
[0156] Based on Fig. 9 In the optional embodiment provided by the illustrated embodiment, the judging module 903 is used to:
[0157] Determining whether the device type of the first device is a preset type;
[0158] If the judgment result is yes, it is determined that the second device does not need to be verified; if the judgment result is no, it is determined that the second device needs to be verified.
[0159] Based on Fig. 9In an optional embodiment provided by the illustrated embodiment, the device further includes: a fourth sending module ( Fig. 9 not shown).
[0160] The third sending module is used to send a second notification message to the first device if the judgment result is that the second device needs to be verified, and the second notification message is used to instruct the first device to output a verification prompt signal, and the verification prompt signal is used to indicate that the first device is waiting for a verification operation.
[0161] Fig.10 A block diagram of a device verification method provided by an exemplary embodiment of the present application is shown. The device verification device is implemented as all or part of the first device through software, hardware or a combination of both. The device verification device includes:
[0162] The second connection module 1001 is used to establish a communication connection with the server.
[0163] The second receiving module 1002 is used to receive a second notification message sent by the server. The second notification message is sent by the server after the server determines that the second device needs to be verified when the second device initiates access to the first device. The second notification message is used to instruct the first device to output a verification prompt signal, and the verification prompt signal is used to indicate that the first device is waiting for a verification operation.
[0164] Based on Fig.10 In an optional embodiment provided by the illustrated embodiment, the device further includes: a first acquisition module and a wireless network access module ( Fig.10 not shown).
[0165] The first acquisition module is used to acquire the networking information sent by the second device.
[0166] The wireless network access module is used to access the target wireless network according to the networking information.
[0167] refer to Fig.11 , which shows a block diagram of a computer device provided by an exemplary embodiment of the present application. The computer device in the present application may include one or more of the following components: a processor 1110 and a memory 1120.
[0168] The processor 1110 may include one or more processing cores. The processor 1110 uses various interfaces and lines to connect various parts of the entire computer device, and executes various functions of the computer device and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 1120, and calling data stored in the memory 1120. Optionally, the processor 1110 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 1110 can integrate one or a combination of a central processing unit (CPU) and a modem. Among them, the CPU mainly processes the operating system and application programs; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 1110, but may be implemented separately through a chip.
[0169] Optionally, when the processor 1110 executes the program instructions in the memory 1120 , the device verification method on the server side provided by each of the above method embodiments is implemented.
[0170] The memory 1120 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 1120 includes a non-transitory computer-readable storage medium. The memory 1120 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 1120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function, instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data created according to the use of the computer device, etc.
[0171] The structure of the above-mentioned computer device is only illustrative. In actual implementation, the computer device may include more or fewer components, such as a display screen, etc., which is not limited in this embodiment.
[0172] Those skilled in the art will understand that Fig.11 The structure shown in the figure does not constitute a limitation on the computer device, and may include more or less components than shown in the figure, or combine some components, or adopt a different component arrangement.
[0173] In an exemplary embodiment, a computer-readable storage medium is further provided, in which a computer program is stored. The computer program is loaded and executed by a processor of a terminal to implement the device verification method in the above method embodiment.
[0174] Optionally, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic tape, a floppy disk, an optical data storage device, or the like.
[0175] In an exemplary embodiment, a computer program product is also provided, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above-mentioned device verification method.
[0176] It should be understood that the "plurality" mentioned in this article refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. The words "first", "second" and similar terms used in this article do not indicate any order, quantity or importance, but are only used to distinguish different components.
[0177] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0178] The above description is only an exemplary embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A device verification method, applied to a server, characterized in that: include: After the first device completes access to the wireless network, establishing a communication connection with the first device; receiving a first message sent by a second device, wherein the first message is used to request access to the first device, wherein an application for accessing the first device is installed in the second device, the application is used to query and control the first device, and the server is a background server corresponding to the application; Determine whether the first device enters the network configuration state through a preset operation mode, the preset operation mode is used to indicate that the second device has the legal right to use the first device, and the preset operation mode includes manual setting, wherein, when the first device enters the network configuration state through the preset operation mode, the broadcast released by the first device carries a special mark, and after the second device obtains the special mark and the first device successfully configures the network, there is no need to verify the second device; If the judgment result is yes, it is determined that the second device does not need to be verified; if the judgment result is no, it is determined that the second device needs to be verified; If the judgment result is that the second device needs to be verified, a first notification message is sent to the second device, and a second notification message is sent to the first device, wherein the first notification message is used to instruct the second device to output verification operation guidance information for the first device, and the verification operation guidance information is used to indicate the operation required to be performed to verify the second device, and the second notification message is used to instruct the first device to output a verification prompt signal, and the verification prompt signal is used to indicate that the first device is waiting for a verification operation, and the way of outputting the verification prompt signal includes at least one of the following: voice broadcast mode, indicator light flashing mode, and display screen display mode; If the second device does not need to be authenticated, a second message is sent to the second device, where the second message is used to indicate an access result of the first message.
2. A device verification method, applied to a first device, characterized in that: include: After the first device completes access to the wireless network, establishing a communication connection with the server; receiving a second notification message sent by the server, the second notification message being sent by the server after the server determines that verification of the second device is required when the second device initiates access to the first device, the second notification message being used to instruct the first device to output a verification prompt signal, the verification prompt signal being used to indicate that the first device is waiting for a verification operation, and the way of outputting the verification prompt signal comprising at least one of the following: a voice broadcasting way, a flashing indicator light way, and a display screen display way; Wherein, an application for accessing the first device is installed in the second device, the application is used to query and control the first device, and the server is a background server corresponding to the application; when the server determines that the first device enters the network configuration state through a preset operation mode, it determines that the second device does not need to be verified; when the server determines that the first device does not enter the network configuration state through the preset operation mode, it determines that the second device needs to be verified; the preset operation mode is used to indicate that the second device has the legal right to use the first device, and the preset operation mode includes manual setting. When the first device enters the network configuration state through the preset operation mode, the broadcast released by the first device carries a special mark. After the second device obtains the special mark and the first device is successfully configured, the second device does not need to be verified; when the second device needs to be verified, the server is also used to send a first notification message to the second device, the first notification message is used to instruct the second device to output verification operation guide information for the first device, and the verification operation guide information is used to indicate the operation required to be performed to verify the second device; In a case where verification of the second device is not required, the server is further used to send a second message to the second device, where the second message is used to indicate an access result of the first message.
3. The method according to claim 2, characterized in that Before establishing a communication connection with the server, the method further includes: Acquire networking information sent by the second device; Access the target wireless network according to the networking information.
4. A device verification device, characterized in that: The device is implemented as a server, and the device includes: A first connection module, configured to establish a communication connection with the first device after the first device completes access to the wireless network; A first receiving module, configured to receive a first message sent by a second device, wherein the first message is used to request access to the first device, wherein an application for accessing the first device is installed in the second device, the application is used to query and control the first device, and the server is a background server corresponding to the application; a judgment module, used to judge whether the first device enters the network configuration state through a preset operation mode, the preset operation mode is used to indicate that the second device has the legal right to use the first device, and the preset operation mode includes manual setting, wherein, when the first device enters the network configuration state through the preset operation mode, the broadcast released by the first device carries a special mark, and after the second device obtains the special mark and the first device successfully configures the network, it is not necessary to verify the second device; The judgment module is further configured to determine that the second device does not need to be verified if the judgment result is yes; and determine that the second device needs to be verified if the judgment result is no; a first sending module, configured to send a first notification message to the second device and a second notification message to the first device if a judgment result shows that the second device needs to be verified, wherein the first notification message is used to instruct the second device to output verification operation guidance information for the first device, the verification operation guidance information is used to indicate an operation required to be performed to verify the second device, the second notification message is used to instruct the first device to output a verification prompt signal, the verification prompt signal is used to indicate that the first device is waiting for a verification operation, and a method of outputting the verification prompt signal includes at least one of the following: a voice broadcast method, an indicator light flashing method, and a display screen display method; The second sending module is used to send a second message to the second device if verification of the second device is not required, where the second message is used to indicate an access result of the first message.
5. A device verification device, characterized in that: The device comprises: A second connection module is used to establish a communication connection with the server after the first device completes access to the wireless network; A second receiving module is used to receive a second notification message sent by the server, the second notification message is sent by the server after the second device determines that the second device needs to be verified when the second device initiates access to the first device, the second notification message is used to instruct the first device to output a verification prompt signal, the verification prompt signal is used to indicate that the first device is waiting for a verification operation, and the way of outputting the verification prompt signal includes at least one of the following: voice broadcast mode, indicator light flashing mode, display screen display mode; Wherein, an application for accessing the first device is installed in the second device, the application is used to query and control the first device, and the server is a background server corresponding to the application; when the server determines that the first device enters the network configuration state through a preset operation mode, it determines that the second device does not need to be verified; when the server determines that the first device does not enter the network configuration state through the preset operation mode, it determines that the second device needs to be verified; the preset operation mode is used to indicate that the second device has the legal right to use the first device, and the preset operation mode includes manual setting. When the first device enters the network configuration state through the preset operation mode, the broadcast released by the first device carries a special mark. After the second device obtains the special mark and the first device is successfully configured, the second device does not need to be verified; when the second device needs to be verified, the server is also used to send a first notification message to the second device, the first notification message is used to instruct the second device to output verification operation guide information for the first device, and the verification operation guide information is used to indicate the operation required to be performed to verify the second device; when the second device does not need to be verified, the server is also used to send a second message to the second device, the second message is used to indicate the access result of the first message.
6. A computer device, characterized in that: The computer device includes a processor and a memory, the memory stores a computer program, and the computer program is loaded by the processor and executes the device verification method according to claim 1, or the device verification method according to claim 2 or 3.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is loaded and executed by a processor to implement the device verification method according to claim 1, or the device verification method according to claim 2 or 3.
8. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes to implement the device verification method as claimed in claim 1, or the device verification method as claimed in claim 2 or 3.
Citation Information
Patent Citations
Terminal control method and device
CN106506577A
Control method and device of equipment as well as electronic equipment and terminal
CN107205094A
Wireless local area network access control method and device
CN107484165A
Intelligent household appliance binding verification method
CN107547204A
Control method and device of terminal equipment
CN107734139A
