Device authentication method and device
Non-access authentication between devices is achieved by detecting the optical, thermal or audio signals of the second device, which solves the problem of manual password input in the prior art, and improves the convenience and intelligence of device authentication.
Patent Information
- Application Number
- CN202110155190.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-04
- Publication Date
- 2024-12-10
- Estimated Expiration
- 2041-02-04
AI Technical Summary
The existing inter-device authentication method requires users to manually enter passwords, which is cumbersome to operate and poor user experience, and the device needs to enter devices, which limits convenience and intelligence.
By detecting the optical signal, thermal signal or audio signal emitted by the second device, the authentication information is determined, and non-accessible device authentication is realized. The first device only needs to detect these signals to complete the authentication without the user entering the authentication information.
It improves the convenience and intelligence of device authentication, simplifies user operations, realizes inter-device authentication without manual input, and improves user experience.
Smart Images

Figure CN112861111B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic technology, and in particular to a device authentication method and apparatus. Background Art
[0002] With the advancement of technology, various devices around people's lives are becoming more and more intelligent. Devices can be connected to each other. When devices establish communication connections, mutual authentication and confirmation processes between devices are usually required to ensure security.
[0003] Currently, when authenticating between devices, the method usually adopted is to authenticate by entering an authentication password. However, this method requires the device to have an input device and requires the user to perform manual operation input, which is cumbersome and has a poor user experience. Summary of the invention
[0004] The embodiments of the present application provide a device authentication method and apparatus to improve the convenience and intelligence of device authentication.
[0005] In a first aspect, an embodiment of the present application provides a device authentication method, which is applied to a first device, and the method includes:
[0006] Detecting an authentication signal of the second device, where the authentication signal includes any one or more of the following: an optical signal, a thermal signal, and an audio signal;
[0007] determining authentication information according to the authentication signal;
[0008] The second device is authenticated using the authentication information to determine an authentication result.
[0009] In a second aspect, an embodiment of the present application provides a device authentication method, which is applied to a second device, and the method includes:
[0010] Generate authentication information, where the authentication information is random authentication information;
[0011] The authentication information is displayed through an authentication signal, and the authentication signal is used by the first device to detect the authentication signal, confirm the authentication information according to the authentication signal, and authenticate the second device according to the authentication information to determine the authentication result. The authentication signal includes any one or more of the following: light signal, heat signal, audio signal.
[0012] In a third aspect, an embodiment of the present application provides a device authentication apparatus, which is applied to a first device, and the device authentication apparatus includes a detection unit, a determination unit, and an authentication unit, wherein:
[0013] The detection unit is used to detect an authentication signal of the second device, where the authentication signal includes any one or more of the following: an optical signal, a thermal signal, and an audio signal;
[0014] The determining unit is used to determine the authentication information according to the authentication signal;
[0015] The authentication unit is used to authenticate the second device through the authentication information and determine an authentication result.
[0016] In a fourth aspect, an embodiment of the present application provides a device authentication apparatus, which is applied to a second device, and the device authentication apparatus includes a generating unit and a display unit, wherein:
[0017] The generating unit is used to generate authentication information, wherein the authentication information is random authentication information;
[0018] The display unit is used to display the authentication information through an authentication signal, and the authentication signal is used by the first device to detect the authentication signal, confirm the authentication information according to the authentication signal, and authenticate the second device according to the authentication information to determine the authentication result. The authentication signal includes any one or more of the following: light signal, heat signal, audio signal.
[0019] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps of any method in the first aspect of the embodiment of the present application, or the program includes instructions for executing the steps of any method in the second aspect of the embodiment of the present application.
[0020] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps described in any method of the first aspect of the embodiment of the present application, or the computer program enables a computer to execute part or all of the steps described in any method of the second aspect of the embodiment of the present application.
[0021] In a seventh aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps described in any method of the first aspect of the embodiment of the present application, or the computer program is operable to cause a computer to execute some or all of the steps described in any method of the second aspect of the embodiment of the present application. The computer program product may be a software installation package.
[0022] It can be seen that in the embodiment of the present application, the first device detects the authentication signal of the second device, and the authentication signal includes any one or more of the following: optical signal, thermal signal, audio signal, and determines the authentication information according to the authentication signal, and then authenticates the second device through the authentication information to determine the authentication result. It can be seen that the first device only needs to detect the optical signal, thermal signal or audio signal emitted by the second device to determine the authentication information of the second device, and the user does not need to input the authentication information, so that non-access authentication can be achieved, which is conducive to improving the intelligence and convenience of device authentication. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0024] Figure 1 It is a system architecture diagram of a device authentication system provided in an embodiment of the present application;
[0025] Figure 2 It is a flowchart of a device authentication method provided in an embodiment of the present application;
[0026] Figure 3 It is a flowchart of another device authentication method provided in an embodiment of the present application;
[0027] Figure 4 It is a flowchart of another device authentication method provided in an embodiment of the present application;
[0028] Figure 5 It is a block diagram of a distributed functional unit of a device authentication device provided in an embodiment of the present application;
[0029] Figure 6 It is a block diagram of a distributed functional unit of another device authentication device provided in an embodiment of the present application;
[0030] Figure 7 It is a block diagram of an integrated functional unit of a device authentication apparatus provided in an embodiment of the present application. DETAILED DESCRIPTION
[0031] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0032] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0033] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0034] The electronic device involved in the embodiments of the present application may be a portable electronic device that also includes other functions such as a personal digital assistant and / or a music player function, such as a mobile phone, a tablet computer, a wearable electronic device with a wireless communication function (such as a smart watch), etc. Exemplary embodiments of portable electronic devices include but are not limited to portable electronic devices equipped with an IOS system, an Android system, a Microsoft system or other operating systems. The above-mentioned portable electronic device may also be other portable electronic devices, such as a laptop computer (Laptop), etc. It should also be understood that in some other embodiments, the above-mentioned electronic device may not be a portable electronic device, but a desktop computer. The embodiments of the present application are described in detail below.
[0035] For example, Figure 1 The system architecture of a device authentication system 100 is shown. The device authentication system 100 includes a server 110 and multiple electronic devices (such as a first device 120 and a second device 130). The server 110 is communicatively connected to the multiple electronic devices, and each electronic device can be communicatively connected to each other through authentication.
[0036] The embodiments of the present application are described in detail below.
[0037] See also Figure 2 , Figure 2 This is a flow chart of a device authentication method provided in an embodiment of the present application. As shown in the figure, the device authentication method includes the following operations.
[0038] S201, the second device generates authentication information, where the authentication information is random authentication information;
[0039] The second device may be various, such as a doorbell, a stereo, a television, etc., which is not limited here.
[0040] Among them, the authentication information is non-fixed authentication information, and after the authentication information is generated, the authentication information is time-limited. For example, the authentication information is only valid within ten minutes, or within five minutes, etc., which is not limited here to ensure the security of the authentication information.
[0041] The authentication information may also include a PIN code (Personal Identification Number, personal identification password), SSID (Service Set Identifier, service set identifier) and other information used for wireless pairing authentication.
[0042] The authentication information may be, for example, information composed of one or more combinations of numbers, letters, and text, which is not limited here.
[0043] S202, the second device displays the authentication information through an authentication signal, where the authentication signal includes any one or more of the following: an optical signal, a thermal signal, and an audio signal;
[0044] Among them, when the second device has the ability to display more than two signals, it can first obtain environmental information and determine which authentication signal to use to display the authentication information based on the environmental information. For example, the second device is a doorbell, which can display light signals or audio signals. The doorbell can obtain environmental information, and when it is confirmed based on environmental information that there is no one in the house, it can send out an audio signal. When there is someone in the house, it can send out a light signal to avoid suddenly making a sound and scaring the people in the house. It can also obtain the current time information and determine the authentication signal type of the authentication information based on the time information. For example, if the time information is the user's bedtime, the authentication information can be displayed through a light signal; if the time information is the user's work time, the authentication information can be displayed through an audio signal, etc., which is not limited here.
[0045] Among them, when the second device is a lamp, the authentication information can be displayed through a light signal. For example, if the authentication information is 12345, then the authentication signal can be that the light of the lamp flashes five times, and the length of time it lights up each time is different. 1 corresponds to the shortest lighting time, and 5 corresponds to the longest lighting time, etc., which is not limited here.
[0046] Among them, when the second device is a doorbell, the authentication information can be displayed through an audio signal. For example, if the authentication information is 12345, then the authentication signal can be a voice broadcast of 12345, or it can be a sound wave. The higher the frequency of the sound wave, the larger the number represented, and the lower the frequency of the sound wave, the smaller the number represented, etc., which are not limited here.
[0047] Among them, when the second device is a refrigerator, the second device can also display authentication information by generating heat. Different amounts of heat represent different authentication information, which is not limited here.
[0048] S203, the first device detects the authentication signal of the second device;
[0049] Among them, the first device can be various, for example, it can be an electronic device such as a doorbell, a mobile phone, a camera, etc. that carries a camera, and / or a light sensing element, and / or a heat sensing element, and / or a sound sensing device, which is not limited here.
[0050] Among them, the first device can capture the authentication signal emitted by the second device through a camera or detect it through a light sensing element, or can detect the heat signal of the second device as an authentication signal through a heat sensing element, or can obtain an audio signal as authentication information through a sound sensing device, etc., which is not limited here.
[0051] For example, the second device is a doorbell, which includes an indicator light. The first device captures the indicator light of the doorbell flashing five times through a camera, with each flash having a different color, and determines that an authentication signal has been detected. Different colors represent different numbers or letters, etc.
[0052] S204, the first device determines authentication information according to the authentication signal;
[0053] Among them, different ways of displaying the authentication signal represent different authentication information. For example, when the authentication signal is a light signal, different authentication information can be confirmed by the rhythm, brightness, color, etc. of the flashing light, or when the authentication signal is an audio signal, the authentication information can be determined by voice recognition of a sound clip, or by identifying the volume, frequency, etc. of the audio.
[0054] Among them, the specific implementation method of the first device determining the authentication information according to the authentication signal can be various. For example, the first device can query the first mapping relationship through the authentication signal (such as the color and rhythm of the flashing light) to determine the authentication information corresponding to the authentication signal, and the first mapping relationship is the relationship between the authentication signal and the authentication information; or the first device can send the obtained authentication signal to the server, and the server determines the authentication information according to the above-mentioned first mapping relationship, and then feeds back the authentication confidence to the first device, which is not limited here.
[0055] S205: The first device authenticates the second device through the authentication information and determines an authentication result.
[0056] Among them, the specific implementation method of the first device authenticating the second device through the authentication information can be various, for example, it can be performed locally, that is, before the first device performs authentication, it receives the target authentication information corresponding to the second device sent by the server, and then the first device matches the above authentication information with the target authentication information. When the match is successful, it is determined that the authentication is successful; or it can be performed on the server side, that is, the first device sends the acquired authentication information to the server, and the server matches the authentication information received from the first device with the authentication information received from the second device. If the match is successful, it confirms that the authentication is successful and sends the authentication result to the first device, etc., which are not limited here.
[0057] It can be seen that in the embodiment of the present application, the first device detects the authentication signal of the second device, and the authentication signal includes any one or more of the following: optical signal, thermal signal, audio signal, and determines the authentication information according to the authentication signal, and then authenticates the second device through the authentication information to determine the authentication result. It can be seen that the first device only needs to detect the optical signal, thermal signal or audio signal emitted by the second device to determine the authentication information of the second device, without the user inputting the authentication information, so that non-access authentication can be achieved, which is conducive to improving the intelligence and convenience of device authentication. In some embodiments, the authentication signal includes an optical signal; the detection of the authentication signal of the second device includes: using a camera module to detect the authentication signal emitted by the second device according to preset camera parameters to obtain video data, and the authentication signal is generated by the second device modulating the optical carrier signal according to the authentication information according to the preset communication mechanism; the determination of the authentication information according to the authentication signal includes: decoding the video data to obtain a series of image frames; performing image recognition on the image frames to obtain metadata; performing protocol parsing on the metadata according to the preset communication mechanism to obtain the authentication information.
[0058] Specifically, the second device can convert the character string of the authentication information into binary coded data. The coding method may include cyclic code and forward error correction coding, such as block code, convolutional code, Trubo code, LDPC code (Low Density Parity Check Code, low density parity check code) and other coding. Then the binary coded data is packaged according to the preset framing rules. The preset framing rules may include bit-oriented and byte-oriented framing rules. Due to the edge problem in image processing (the state of the LED (light emitting diode) captured by the image is uncertain when it changes from 0 to 1 or 1 to 0), this article adopts bit-oriented framing technology. Then, the LED is turned on and off to represent 0 and 1, and the optical carrier emitted by the LED is modulated according to the preset modulation method to generate an authentication signal. The preset modulation method may be on-off keying modulation and other methods, and each information bit sends the modulated optical carrier at equal intervals.
[0059] It can be seen that in this embodiment, the authentication signal is generated by the second device modulating the optical carrier signal according to the authentication information in accordance with the preset communication mechanism, and when the first device obtains the authentication information, it performs protocol parsing on the metadata in accordance with the preset communication mechanism to obtain the authentication information, which is beneficial to improving the accuracy and efficiency of obtaining the authentication information.
[0060] In this embodiment, decoding the video data to obtain a series of image frames may specifically include decoding the video into YUV (Luminance-Bandwidth-Chrominance, a color encoding method) data using FFmpeg (Fast Forward Mpeg) technology to obtain image frames, and then transcoding to obtain original RGB (a color mode, R (Red) represents red, G (Green) represents green, and B (Blue) represents blue) information. FFmpeg is an open source computer program that can be used to record and convert digital audio and video and convert them into streams.
[0061] It can be seen that in this embodiment, when the first device decodes the video data to obtain a series of image frames, FFmpeg is used to decode the video into YUV data to obtain image frames, and then the original RGB information is obtained through transcoding, which is beneficial to improve the accuracy of subsequent image processing.
[0062] In this embodiment, the image information includes image information of the second device; the method further includes: using an image recognition algorithm to identify the product type of the second device according to the image information; and obtaining the preset camera parameters according to the product type of the second device.
[0063] It can be seen that in this embodiment, the first device obtains the preset camera parameters according to the product type of the second device, which is conducive to improving the flexibility of determining the camera parameters.
[0064] In this embodiment, performing image recognition on the image frame to obtain metadata may specifically include searching for bright spots in the image frame according to a preset image recognition algorithm, and determining metadata corresponding to the image frame according to the search result.
[0065] Among them, the preset image recognition algorithm can be a traditional image recognition algorithm or an image recognition algorithm based on machine learning, such as an image recognition algorithm based on a deep convolutional network.
[0066] It can be seen that in this embodiment, the first device searches for bright spots in the image frame according to the preset image recognition algorithm, and determines metadata corresponding to the image frame according to the search results. Using the image recognition algorithm to search for bright spots is conducive to improving the accuracy of the search results.
[0067] In this embodiment, searching for bright spots in an image according to a preset image recognition algorithm includes: searching for strong brightness pixels in the image frame according to a first preset brightness threshold; counting the number of high brightness blue pixels near the strong brightness pixels; when there are high brightness pixels whose number of nearby high brightness blue pixels is greater than a preset number threshold, determining that a bright spot is searched; if not, determining that a bright spot is not searched.
[0068] The high-brightness pixel is a pixel in the image frame whose brightness exceeds the first preset brightness threshold; and the high-brightness blue pixel is a blue pixel whose brightness exceeds the second preset brightness threshold.
[0069] The pixels near the high-brightness pixel are pixels at a position that is a preset number of pixels away from the high-brightness pixel.
[0070] It can be seen that in this embodiment, the first device searches for high-brightness pixels in the image frame according to the first preset brightness threshold, and then counts the number of high-brightness blue pixels near the high-brightness pixels. When there are high-brightness pixels whose number of nearby high-brightness blue pixels is greater than the preset number threshold, it is determined that a bright spot is searched; if not, it is determined that a bright spot is not searched, which is beneficial to improving the accuracy of the bright spot search results.
[0071] In this embodiment, counting the number of high-brightness blue pixels near the high-brightness pixels includes: counting the number of high-brightness blue pixels near the high-brightness pixels according to a preset matching template.
[0072] It can be seen that in this embodiment, the first device counts high-brightness blue pixels near strong-brightness pixels according to the preset matching template, which is conducive to improving the accuracy of the statistical results.
[0073] In some embodiments, determining authentication information according to the authentication signal includes:
[0074] Classifying the authentication signal to obtain a first characteristic signal and a second characteristic signal;
[0075] detecting an authentication object of the second device according to the first characteristic signal;
[0076] When it is detected that the authentication object is the first device, the authentication information is determined according to the second characteristic signal.
[0077] Among them, when the second device displays the authentication information through the authentication signal, it is similar to broadcasting the authentication signal. In this case, many devices may detect the authentication signal of the second device at the same time. In this case, the device needs to detect and confirm whether the second device needs to authenticate the authentication object, that is, the authentication signal displayed by the second device needs to carry the authentication object information. The first device obtains the authentication object information through the authentication signal and determines whether the authentication object is itself. If so, it needs to continue to determine the authentication information. If not, it does not need to confirm the authentication information.
[0078] The first characteristic signal and the second characteristic signal may be various and are not limited here. For example, when the authentication signal is a light signal, the first characteristic signal may be a color signal and the second characteristic signal may be a flashing rhythm signal.
[0079] Among them, the first device is pre-set with its own corresponding password. For example, when the first characteristic signal is a color signal, if the color signal is blue, it represents the first device, then the first device only needs to determine whether the first characteristic signal is blue to determine whether the authentication object is itself.
[0080] It can be seen that in this real-time example, when the first device detects the authentication signal, it first determines whether the authentication object required by the second device is itself based on the first characteristic signal of the authentication signal. If it is itself, it then determines the authentication information. This can effectively avoid invalid authentication by the first device, improve the directionality of device authentication, and can perform multiple applications on the authentication signal, reduce device complexity, and improve the utilization rate of the authentication signal.
[0081] In this embodiment, the authentication signal further includes a third characteristic signal, and after authenticating the second device through the authentication information and determining the authentication result, the method further includes:
[0082] When it is determined that the authentication result is authentication passed, determining an operation command according to the third characteristic signal;
[0083] Execute the operation corresponding to the operation command.
[0084] The authentication signal may also carry operation command information that the second device requires the first device to execute. After the authentication is passed, the first device executes a corresponding operation according to the operation command.
[0085] For example, when the authentication signal is a light signal, the first characteristic signal may be a color signal, the second characteristic signal may be a flashing rhythm signal, and the third characteristic signal may be a brightness signal of each flash. Combinations of different brightness signals represent different operation commands.
[0086] It can be seen that in this embodiment, when the first device authenticates the authentication signal, it determines the operation command information carried on the same authentication signal to perform a corresponding operation, which further improves the utilization rate of the authentication signal and improves the timeliness of communication between devices.
[0087] In some embodiments, the second device is a doorbell, the authentication signal is a light signal, and determining the authentication information according to the authentication signal includes:
[0088] Separating the light signal into a color feature and a light emission frequency;
[0089] Determining an authentication object according to the color feature;
[0090] When it is determined that the authentication object is the first device, the authentication information is determined according to the light emitting frequency.
[0091] For example, the implementation method of the light frequency representing authentication information can be long-short-long to represent 1, long-long-short to represent 2, short-short-long to represent 3, etc., which is not limited here.
[0092] In some embodiments, the second device is a doorbell, the authentication signal is an audio signal, and determining the authentication information according to the authentication signal includes:
[0093] Dividing the audio signal into a volume feature and a duration of each audio segment in the audio signal;
[0094] Determining an authentication object according to the volume characteristics;
[0095] When the authentication object is the first device, the authentication information is determined according to the duration of each audio segment in the audio.
[0096] It can be seen that in this embodiment, the first device can determine the authentication information of the doorbell based on the audio signal emitted by the doorbell, and determine whether the authentication object is itself, which expands the role of the doorbell, improves the utilization rate of the device, and improves the convenience of device authentication.
[0097] See also Figure 3 , Figure 3FIG. 1 is a flow chart of another device authentication method provided in an embodiment of the present application. As shown in the figure, the device authentication method includes the following operations:
[0098] S301, the second device generates an authentication signal, where the authentication information is random authentication information.
[0099] S302: The second device displays the authentication information through an authentication signal, where the authentication signal includes any one or more of the following: a light signal, a heat signal, and an audio signal.
[0100] S303: The first device detects the authentication signal of the second device.
[0101] S304: The first device classifies the authentication signal to obtain a first characteristic signal and a second characteristic signal.
[0102] S305: The first device detects an authentication object of the second device according to the first characteristic signal.
[0103] S306: When the first device detects that the authentication object is the first device, the first device determines authentication information according to the second characteristic signal.
[0104] S307: The first device authenticates the second device through the authentication information and determines an authentication result.
[0105] S308: When the first device determines that the authentication result is authentication passed, it determines an operation command according to the third characteristic signal of the authentication signal.
[0106] S309: The first device performs an operation corresponding to the operation command.
[0107] It can be seen that in the embodiment of the present application, the first device detects the authentication signal of the second device, and the authentication signal includes any one or more of the following: optical signal, thermal signal, audio signal, and determines the authentication information according to the authentication signal, and then authenticates the second device through the authentication information to determine the authentication result. It can be seen that the first device only needs to detect the optical signal, thermal signal or audio signal emitted by the second device to determine the authentication information of the second device, and the user does not need to input the authentication information, so that non-access authentication can be achieved, which is conducive to improving the intelligence and convenience of device authentication.
[0108] In addition, when the first device detects the authentication signal, it first determines whether the authentication object required by the second device is itself based on the first characteristic signal of the authentication signal. If it is itself, it then determines the authentication information. This can effectively avoid invalid authentication by the first device, improve the directionality of device authentication, and can perform multiple applications on the authentication signal, reducing device complexity and improving the utilization rate of the authentication signal.
[0109] In addition, when the first device authenticates the authentication signal, it determines the operation command information carried on the same authentication signal and performs a corresponding operation, which further improves the utilization rate of the authentication signal and improves the timeliness of communication between devices.
[0110] See also Figure 4 , Figure 4 FIG. 1 is a flow chart of another device authentication method provided in an embodiment of the present application. As shown in the figure, the device authentication method includes the following operations:
[0111] S401, a second device generates an authentication signal, the authentication information is random authentication information, and the second device is a doorbell.
[0112] S402: The second device displays the authentication information through an optical signal.
[0113] S403: The first device detects the optical signal of the second device.
[0114] S404: The first device classifies the optical signal to obtain color characteristics and light emission frequency.
[0115] S405: The first device determines an authentication object according to the color feature.
[0116] S406: When the first device determines that the authentication object is the first device, the first device determines authentication information according to the light emitting frequency.
[0117] S407: The first device authenticates the second device through the authentication information and determines an authentication result.
[0118] It can be seen that in the embodiment of the present application, the first device detects the authentication signal of the second device, and the authentication signal includes any one or more of the following: optical signal, thermal signal, audio signal, and determines the authentication information according to the authentication signal, and then authenticates the second device through the authentication information to determine the authentication result. It can be seen that the first device only needs to detect the optical signal, thermal signal or audio signal emitted by the second device to determine the authentication information of the second device, and the user does not need to input the authentication information, so that non-access authentication can be achieved, which is conducive to improving the intelligence and convenience of device authentication.
[0119] In addition, the first device can determine the authentication information of the doorbell based on the audio signal emitted by the doorbell, and determine whether the authentication object is itself, which expands the role of the doorbell, improves the utilization rate of the device, and improves the convenience of device authentication.
[0120] The embodiment of the present application provides a device authentication apparatus, which may be an electronic device. Specifically, the device authentication apparatus is used to execute the steps of the above device authentication method. The device authentication apparatus provided in the embodiment of the present application may include modules corresponding to the corresponding steps.
[0121] The embodiment of the present application can divide the functional modules of the device authentication device according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. The division of modules in the embodiment of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation.
[0122] In the case of dividing each functional module into corresponding functional modules, Figure 5 A possible structural diagram of the device authentication device involved in the above embodiment is shown. Figure 5 As shown, the device authentication apparatus 500 includes a detection unit 501, a determination unit 502 and an authentication unit 503, wherein:
[0123] The detection unit 501 is used to detect an authentication signal of the second device, where the authentication signal includes any one or more of the following: an optical signal, a thermal signal, and an audio signal;
[0124] The determining unit 502 is used to determine the authentication information according to the authentication signal;
[0125] The authentication unit 503 is used to authenticate the second device through the authentication information and determine an authentication result.
[0126] Among them, all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and will not be repeated here. Of course, the device authentication device provided in the embodiment of the present application includes but is not limited to the above modules, for example: the device authentication device may also include a storage unit. The storage unit can be used to store the program code and data of the device authentication device.
[0127] In the case of dividing each functional module into corresponding functional modules, Figure 6 Another possible structural diagram of the device authentication device involved in the above embodiment is shown. Figure 6As shown, the device authentication apparatus 600 includes a generating unit 601 and a display unit 602, wherein:
[0128] The generating unit 601 is used to generate an authentication signal, wherein the authentication information is random authentication information;
[0129] The display unit 602 is used to display the authentication information through an authentication signal, and the authentication signal is used by the first device to detect the authentication signal, confirm the authentication information according to the authentication signal, and authenticate the second device according to the authentication information to determine the authentication result. The authentication signal includes any one or more of the following: light signal, heat signal, audio signal.
[0130] Among them, all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and will not be repeated here. Of course, the device authentication device provided in the embodiment of the present application includes but is not limited to the above modules, for example: the device authentication device may also include a storage unit. The storage unit can be used to store the program code and data of the device authentication device.
[0131] In the case of using an integrated unit, the structural diagram of the device authentication device provided in the embodiment of the present application is as follows: Figure 7 As shown. Figure 7 In the embodiment, the device authentication device 700 includes: a processing module 702 and a communication module 701. The processing module 702 is used to control and manage the actions of the device authentication device, for example, to execute the steps executed by the detection unit 501, the determination unit 502 and the authentication unit 503, or to execute the steps executed by the generation unit 601 and the display unit 602, and / or to execute other processes of the technology described in this article. The communication module 701 is used to support the interaction between the device authentication device and other devices, or between modules within the device authentication device. Figure 7 As shown, the device authentication apparatus may further include a storage module 703, and the storage module 703 is used to store program codes and data of the device authentication apparatus, such as storing the content stored in the above storage unit.
[0132] Among them, the processing module 702 can be a processor or a controller, for example, a central processing unit (CPU), a general processor, a digital signal processor (DSP), an ASIC, an FPGA or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. It can implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements a computing function, for example, a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like. The communication module 701 can be a transceiver, a radio frequency circuit or a communication interface, and the like. The storage module 703 can be a memory.
[0133] Among them, all relevant contents of each scenario involved in the above method embodiment can be referred to the functional description of the corresponding functional module, and will not be repeated here. The above device authentication device 500, device authentication device 600 and device authentication device 700 can all execute the above Figure 2-Figure 4 Any of the device authentication methods shown.
[0134] This embodiment further provides a computer storage medium, in which computer instructions are stored. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the operation method in the above-mentioned embodiment.
[0135] This embodiment also provides a computer program product. When the computer program product runs on a computer, the computer executes the above-mentioned related steps to implement the device authentication method in the above-mentioned embodiment.
[0136] In addition, an embodiment of the present application also provides a device, which may specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor may execute the computer-executable instructions stored in the memory so that the chip executes the device authentication method in the above-mentioned method embodiments.
[0137] Among them, the server, computer storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0138] 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.
[0139] 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.
[0140] 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.
[0141] 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.
[0142] 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.
[0143] 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 device authentication method, characterized in that: Applied to a first device, the method includes: detecting an authentication signal of a second device, wherein the authentication signal comprises an optical signal; Classifying the authentication signal to obtain a first characteristic signal and a second characteristic signal, wherein the first characteristic signal includes a color signal and the second characteristic signal includes a flashing rhythm signal; detecting an authentication object of the second device according to the first characteristic signal; When it is detected that the authentication object is the first device, determining authentication information according to the second characteristic signal; The second device is authenticated using the authentication information to determine an authentication result.
2. A device authentication method, characterized in that: Applied to the second device, the method includes: Generate authentication information, where the authentication information is random authentication information; The authentication information is displayed through an authentication signal, and the authentication signal is used by a first device to detect the authentication signal and classify the authentication signal to obtain a first characteristic signal and a second characteristic signal, and detect an authentication object of the second device according to the first characteristic signal, and when the authentication object is detected to be the first device, determine the authentication information according to the second characteristic signal, and authenticate the second device according to the authentication information to determine an authentication result, the authentication signal includes a light signal, the first characteristic signal includes a color signal, and the second characteristic signal includes a flashing rhythm signal.
3. The method according to claim 2, characterized in that The authentication signal is generated by the second device modulating the optical carrier signal according to the authentication information in accordance with a preset communication mechanism.
4. A device authentication device, characterized in that: Applied to a first device, the device authentication apparatus comprises a detection unit, a determination unit and an authentication unit, wherein: The detection unit is used to detect an authentication signal of the second device, wherein the authentication signal includes an optical signal; The determination unit is used to classify the authentication signal to obtain a first characteristic signal and a second characteristic signal, and to detect an authentication object of the second device according to the first characteristic signal, and to determine authentication information according to the second characteristic signal when the authentication object is detected to be the first device, wherein the first characteristic signal includes a color signal and the second characteristic signal includes a flashing rhythm signal; The authentication unit is used to authenticate the second device through the authentication information and determine an authentication result.
5. A device authentication apparatus, characterized in that: Applied to a second device, the device authentication apparatus comprises a generating unit and a displaying unit, wherein: The generating unit is used to generate authentication information, wherein the authentication information is random authentication information; The display unit is used to display the authentication information through an authentication signal, the authentication signal is used for the first device to detect the authentication signal, and classify the authentication signal to obtain a first characteristic signal and a second characteristic signal, and detect the authentication object of the second device according to the first characteristic signal, and when the authentication object is detected to be the first device, determine the authentication information according to the second characteristic signal, and authenticate the second device according to the authentication information to determine the authentication result, the authentication signal includes a light signal, the first characteristic signal includes a color signal, and the second characteristic signal includes a flashing rhythm signal.
6. An electronic device, characterized in that: The method comprises a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, wherein the programs include instructions for executing the steps in the method as claimed in claim 1, or the programs include instructions for executing the steps in the method as claimed in claim 2 or 3.
7. A computer-readable storage medium, characterized in that: A computer program for electronic data exchange is stored, wherein the computer program enables a computer to execute the method according to claim 1, or the computer program enables a computer to execute the method according to claim 2 or 3.
