WO2018112942A1 - Device authentication method, apparatus, electronic device and slave device - Google Patents
Device authentication method, apparatus, electronic device and slave device Download PDFInfo
- Publication number
- WO2018112942A1 WO2018112942A1 PCT/CN2016/111852 CN2016111852W WO2018112942A1 WO 2018112942 A1 WO2018112942 A1 WO 2018112942A1 CN 2016111852 W CN2016111852 W CN 2016111852W WO 2018112942 A1 WO2018112942 A1 WO 2018112942A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- information
- identifier information
- slave device
- authentication
- enable signal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/44—Program or device authentication
- G06F21/445—Program or device authentication by mutual authentication, e.g. between devices or programs
Definitions
- the present disclosure relates to the field of information technology, and in particular, to a device authentication method, apparatus, electronic device, and slave device.
- the cascading of electronic devices that is, the external connection of multiple devices of electronic devices, is structurally superimposed.
- a mobile phone it can be connected to an external battery back clip through a universal serial bus (USB) interface of the mobile phone, and a speaker is connected to the battery back clip to realize cascading of the device.
- USB universal serial bus
- the cascading of devices can be realized by physical connection, connection lines, and the like.
- the master device needs to authenticate (or refer to, identify, authenticate, or register) each slave device.
- the master device authenticates the slave device and needs to combine the connection mode between the slave device and the master device.
- each slave device is required to be connected to a connector of the master device, and the master device separately authenticates the slave device connected thereto.
- the size of the connector used for the cascade of the master device is large and costly.
- the main device needs to be light and small, and the connector used in the cascading must have a size limitation. Therefore, the authentication mechanism in the related art has drawbacks.
- the present disclosure provides a device authentication method and device. Set, electronic equipment and slave equipment.
- the first aspect provides a device authentication method, which is applied to a master device, where the method includes:
- a second aspect provides a device authentication method, which is applied to a slave device, where the method includes:
- the identity information Upon receiving the specific identification information sent by the master device, the identity information is changed from the second identifier information to the specific identifier information.
- a device authentication apparatus for use in a master device, the device comprising:
- An authentication enable signal sending module configured to send an authentication enable signal to the first target slave device, the authentication enable signal instructing the first target slave device to change its own identification information from the first identification information to Second identification information;
- the first identifier information sending module is configured to send first specific identifier information to the first target slave device according to the second identifier information, where the first specific identifier information indicates that the first target slave device sets itself The identification information is changed from the second identification information to the first specific identification information.
- a fourth aspect provides a device authentication apparatus, which is applied to a slave device, where the device includes:
- the first change module is configured to receive the authentication enable signal sent by the master device or other slave devices, and then change the own identity information from the first identifier information to the second identifier information;
- the second change module is configured to receive the specific identification information sent by the master device, and then change the own identity information from the second identifier information to the specific identifier information.
- an electronic device including:
- a memory for storing processor executable instructions
- the processor is configured to send an authentication enable signal to the first target slave device, where the authentication enable signal instructs the first target slave device to change its own identification information from the first identification information to the second And identifying, according to the second identifier information, first specific identifier information, where the first target identifier information indicates that the first target slave device sets its own identifier information from the second identifier. The information is changed to the first specific identification information.
- a computer program product comprising a computer program executable by a programmable device, the computer program having, when executed by the programmable device, for performing the application to the main The code portion of the device's device authentication method.
- a seventh aspect a non-transitory computer readable storage medium comprising one or more programs for performing the above-described application to a host device Device authentication method.
- an electronic device including:
- One or more processors for executing a program in the non-transitory computer readable storage medium.
- a slave device comprising:
- a memory for storing processor executable instructions
- the processor is configured to receive the authentication enable signal sent by the master device or other slave devices, and then change the identity information of the user from the first identifier information to the second identifier information; and receive the specific information sent by the master device.
- the identification information changes its own identification information from the second identification information to the specific identification information.
- a computer program product comprising A computer program executed by a programmable device, the computer program having code portions for performing the above-described device authentication method applied to the slave device when executed by the programmable device.
- a non-transitory computer readable storage medium comprising one or more programs for performing the above application to a slave device Device authentication method.
- a slave device including:
- One or more processors for executing a program in the non-transitory computer readable storage medium.
- the present disclosure can implement efficient authentication of the slave device connected to the master device, and the master device can authenticate the cascade slave device through a connection interface, adopting a small number of pins, and the authentication efficiency is high.
- FIG. 1 is a schematic diagram of connection between a master device and a slave device according to an embodiment of the present disclosure
- FIG. 2 is a schematic flowchart of a device authentication method according to an embodiment of the present disclosure
- FIG. 3 is a schematic diagram of a format in which a master device transmits information through a parallel bus according to an embodiment of the present disclosure
- FIG. 4 is a schematic diagram of an authentication process of a primary device to a first target slave device connected to itself according to an embodiment of the present disclosure
- FIG. 5 is a schematic diagram of an authentication process for a second target slave device according to an embodiment of the present disclosure
- FIG. 6 is a schematic diagram of an authentication process for an nth target slave device according to an embodiment of the present disclosure
- FIG. 7 is a schematic diagram of a flow of determining whether a slave device is authenticated by a master device according to an embodiment of the present disclosure
- FIG. 8 is a schematic diagram of a master device connected to a slave device through an I2C bus and a GPIO according to an embodiment of the present disclosure
- FIG. 9 is a block diagram of a device authentication apparatus according to an embodiment of the present disclosure.
- FIG. 10 is a block diagram of a device authentication apparatus according to another embodiment of the present disclosure.
- FIG. 11 is a block diagram of an apparatus for a device authentication method, according to an exemplary embodiment.
- FIG. 1 it is a schematic diagram of a connection between a master device and a slave device according to an embodiment of the present disclosure.
- the master device 100 is a control board
- the slave device 200 is a daughter board.
- the master device 100 is a central processing unit (CPU) of the electronic device
- the slave device 200 is a functional module connected to the electronic device, for example, an energy storage module, a projection module, a shooting module, and the like.
- the master device 100 authenticates the slave device 200 and assigns it a unique identification information, so that the master device 100 and the slave device 200 can correctly perform data and instruction interaction.
- the master device 100 includes a first connection interface.
- the slave device 200 includes a second connection interface.
- the first connection interface and the second connection interface may be various B2B connector (Board to Board Connector), Zero Insert Force (ZIF) connectors or other forms of connectors.
- B2B connector Board to Board Connector
- ZIF Zero Insert Force
- connection between the slave device 200 and the other slave devices can also be connected through the above-mentioned B2B connector (Board to Board Connector) or Zero Insert Force (ZIF) connector.
- B2B connector Board to Board Connector
- ZIF Zero Insert Force
- the pins of the connector include at least: a parallel bus pin and an enable signal pin.
- Parallel bus pins are used to enable communication between the master and each slave.
- the parallel bus pins of each slave device are connected to the parallel bus pins of the master device.
- the enable signal pin is used for communication between two devices, for example, communication between the master device 1 and the slave device 1, slave device 2, slave device 2, and slave device 3.
- the master device in the embodiment of the present disclosure only needs to include one connection interface, so as to be connected to multiple slave devices.
- the master device and the slave device may also be connected by wireless, for example, NFC (Near Field Communication), Bluetooth, WIFI (Wireless-Fidelity), and the like.
- NFC Near Field Communication
- Bluetooth Wireless-Fidelity
- WIFI Wireless-Fidelity
- each slave device has three types of identification information: first identification information, second identification information, and specific identification information.
- the identifier information is the first identifier information; when the slave device is not authenticated, but receives the authentication enable signal, the identifier information is obtained from the first The identification information is changed to the second identification information; after the slave device is authenticated, the self-identification information is changed from the second identification information to the specific identification information.
- the first identification information, the second identification information, and the specific identification information may be address information, for example, I2C (Inter-Integrated Circuit) address information, IP address (Internet Protocol Address) information, and the like.
- the first identification information, the second identification information, and the specific identification information may also be a binary string of a preset length or the like for implementing the identified information.
- the first identification information is the same for each slave device; the second identification information is the same for each slave device. And the specific identification information of each slave device is not Similarly, the master device assigns different specific identification information to each authenticated slave device.
- the parallel bus used for communication between the master device and the slave device is an I2C (Inter-Integrated Circuit) bus
- the identification information may be represented by a 7-bit binary number, and the first identifier information may be set to 0000001, and the second identifier information may be Set to 0000010, and the specific identification information of each slave device can be uniquely selected from binary numbers other than 0000001 and 0000010.
- each slave device has different specific identifier information, and the master device may perform control command or data transmission according to the specific identifier information, and may also distinguish the received data according to the specific identifier information. Which slave device is from.
- FIG. 2 is a schematic flowchart of a device authentication method according to an embodiment of the present disclosure.
- step 201 the master device sends an authentication enable signal to the first target slave device, and the authentication enable signal indicates that the first target slave device changes its own identity information from the first identifier information to the second identifier information.
- the master device when detecting that the first target slave device is connected to the master device, or receiving an authentication start instruction or the like, the master device starts authenticating the first target slave device connected thereto.
- step 202 the master device sends the first specific identifier information to the first target slave device according to the second identifier information, where the first target identifier information indicates that the first target slave device changes its own identifier information from the second identifier information to the first identifier.
- a specific identification information is included in step 202.
- the master device sends the first specific identifier information according to the second identifier information. Since the first target slave device has changed the first identifier information to the second identifier information, the first target slave device can receive the first specific identifier information, and change the own identifier information from the second identifier information to the first identifier. Specific identification information to complete the certification.
- the master device sends the confirmation information to the first target slave device according to the first specific identifier information;
- the first target receives the response information from the device, it is determined that the identification information of the first target slave device has been changed to the first specific identifier information, that is, the first target slave device is successfully authenticated.
- the slave device adopts a cascade connection manner, and after the first target slave device connected to the master device is authenticated, the first target slave device is connected to the first device.
- the second target sends an authentication enable signal from the device, so that the master device can authenticate the second target slave device.
- the identity information is changed from the first identification information to the second identification information.
- the primary device When the primary device sends the second specific identification information (specific identification information different from the first specific identification information) according to the second identification information, since the identification information of the second target secondary device is the second identification information, it may receive the first Second, the specific identification information is changed, and the identification information of the user is changed to the second specific identification information to implement the authentication.
- the second specific identification information specific identification information different from the first specific identification information
- the master device may send the confirmation information by using the second specific identifier information to determine whether the authentication of the second target slave device is successful according to whether the response information is received.
- the authentication is enabled by the second target slave device to the third target slave device.
- the signal, the master device still performs the step of transmitting the specific identifier information according to the second identifier information, so that the third target slave device can be authenticated.
- the master device sends the third specific identifier information according to the second identifier information according to the first preset time interval, and sends the acknowledgement according to the third feature identifier information according to the second preset time interval. After the confirmation message is sent, if the response time is exceeded, and the response information is not received, the authentication ends, that is, all the slave device authentication is completed.
- the master device sends the authentication enable signal and the specific identifier information
- the slave device sends the authentication enable signal and the like to be wirelessly transmitted. .
- the following embodiments will be described in detail if they are connected by wire.
- the master device can implement the slave device connected to the master device Efficient authentication is performed, and the master device can authenticate the cascaded slave device through a connection interface, and the authentication efficiency is high.
- a master device is respectively connected to each slave device through a parallel bus, and the master device is connected to a slave device through an enable signal interface, and the remaining slave devices pass an enable signal interface. connection.
- the information format includes: identification information, communication type and data portion, or the information format includes: identification information and communication type.
- the identifier information is the first identifier information, the second identifier information, or the specific identifier information of the slave device described above.
- Identification information for defining a slave device that can receive information transmitted by the master device through the parallel bus That is, when the master device transmits information through the parallel bus, the slave device whose identification information is the same as the identifier information in the information sent by the master device can receive the information sent by the master device.
- the communication type includes reading or writing. If the communication type is read, the slave device transmits the relevant data to the parallel bus so that the master device can receive the related data transmitted from the device.
- the information format sent by the master device includes the address information and the communication type. If the communication type is write, the slave device receives data of the data portion of the information transmitted by the master device.
- the authentication process of the master device to the cascaded slave device includes:
- step 401 the master device transmits an authentication enable signal to the first target slave device connected to the master device via the enable signal pin.
- the identifier information of all the slave devices is the first identifier information.
- the master device authenticates from the first target slave device to which it is connected.
- the authentication enable signal sent by the master device through the enable signal pin can be a low level signal, a binary signal, or the like.
- the master device may send a certificate when it detects that a slave device is connected thereto.
- the enable signal is sent, or an authentication enable signal is sent upon receipt of an authentication command (eg, an authentication command entered by the user).
- the first target slave device receives the authentication enable signal, and then changes the identifier information from the first identifier information to the second identifier information.
- the master device sends the authentication information through the parallel bus.
- the identifier information in the authentication information is the second identifier information
- the communication type is write
- the data portion includes the first specific identifier information.
- the first identification information is identification information that is allocated by the primary device to the first target secondary device.
- the first target slave device Since only the first target slave device receives the authentication enable information sent by the master device, only the first target slave device changes the identifier information to the second identifier information, that is, only the first slave device can accept the authentication information.
- the master device may send the authentication information at a preset time interval.
- step 404 after receiving the authentication information, the first target device parses the received information and changes its own identification information to the first specific identification information.
- step 405 the master device sends the confirmation information through the parallel bus, and the identification information included in the confirmation information is the first specific identification information, and the communication type is read.
- the confirmation information is used to confirm whether the identification information of the first target slave device has been changed to the first specific identification information.
- the data format of the confirmation information can be an empty data packet that does not contain data.
- the master device may send the confirmation information at intervals after the authentication information is sent.
- step 406 the first target receives the acknowledgment information from the device, and then sends the response message to the parallel bus.
- the confirmation information is a change for confirming whether the first target slave device has completed the identification information. If the first target slave device completes the identification information change, its identifier The information is the first specific identification information, which is the same as the identification information of the confirmation information transmitted by the master device through the parallel bus, and therefore, the first target slave device can receive the confirmation information.
- the response information is transmitted through the parallel bus. After receiving the response information sent by the first target slave device, the master device determines that the first target slave device has completed the identity change, and the authentication of the first slave device is successful.
- step 501 the first target slave device transmits an authentication enable signal to the second target slave device connected thereto.
- the authentication process for the second target slave device is started by the first target slave device, that is, the first target slave device sends the authentication enable by enabling the authentication pin.
- the signal is sent to the second target slave device to which it is connected.
- the second target slave device receives the authentication enable signal, and then changes the identifier information from the first identifier information to the second identifier information.
- step 403 to step 406 are repeatedly performed to complete the authentication of the second target slave device, and after the second target slave device is authenticated, The identifier is changed to the second specific identification information.
- an authentication enable signal is sent to the third target slave device to start authenticating the third target slave device.
- the master device completes the authentication for the nth target slave device, its address is changed to the nth specific identifier information.
- the last slave device that is, the slave device n, transmits the authentication enable signal, and no subsequent slave device receives.
- the master device sends the authentication information by using the second identifier information.
- the identifier information of the slave device is the second identifier information. Therefore, the slave device does not receive the authentication information from the master device.
- the master device sends the acknowledgement information through the n+1th specific identifier information.
- the slave device identifier information is the n+1th specific identifier information, that is, no response information is returned to the master device, and the master device receives the timeout, thereby determining all the slave devices.
- the certification is completed.
- the master device recognizes the slave device. At the time of the certificate, verify that the function or type of the slave device is legal.
- the master device may send the identification information by using the second identifier information after the first target slave device changes the identifier information from the first identifier information to the second identifier information.
- the identification information is used to determine the type or function of the slave device. For the primary device, the type of device that it can support and identify is determined, and the device type and device ID (Identifying) can be stored correspondingly.
- the device ID is replied via the parallel bus.
- the master device obtains the device ID of the slave device, it is verified whether it is legal, that is, whether the slave device is supported. If it is legal, the step 303 and subsequent steps are continued; if not, the process ends.
- the step of the primary device transmitting the identification information to verify the secondary device may be performed before step 403 (after step 402), may be performed after step 403, or may be performed before step 401.
- the identification information is sent by the second identification information according to the above manner, and the device ID is returned after receiving the identification information from the device whose identification information is the second identification information.
- the identification information may be sent by using the specific identification information, and the identification information is the device identification information, and the device ID is returned after receiving the identification information.
- the master device may send the identification information by using the first identifier information. Since all the addresses of the slave devices are the first identifier information, all the slave devices will reply to the device ID, and the master device is one by one. Confirm that the slave device is legal.
- the prompt information may be output to prompt the user to remove the illegal slave device or replace the slave device.
- the master device can implement efficient authentication of the slave device connected to the master device, and the cascading slave device can be authenticated through a connection interface, and the number of pins is used. , the certification efficiency is high.
- the parallel bus is an I2C bus
- the identification information is an I2C address.
- the authentication enable signal interface is a GPIO (General Purpose Input Output) interface.
- the I2C address is the first identifier information.
- the master device starts to authenticate the first slave device, first sends the authentication enable signal GPIO low level to the slave device 1, and the slave device 1 receives the authentication enable signal GPIO low level and then changes its own I2C address to the second identifier.
- the information is sent by the master device through the I2C bus with the second identifier information.
- the type is write. Since only the I2C address of the slave device 1 is the second identifier information, the other slave device I2C addresses are still the first identifier information, so only The authentication information sent by the master device is received from the device 1.
- the received authentication information is parsed from the device 1, which will contain the first specific address information after the authentication of the master device assigned to the slave device 1, and the slave device will change its own I2C address to the first specific address information.
- the master device then sends the acknowledgement information using the first specific address information, the type is read. Since only the I2C address of the slave device 1 is the first specific address information, the slave device 1 sends the response message after receiving the acknowledgement information.
- the master device receives the response information from the slave device 1, and learns that the slave device 1 has completed the I2C address change and changed its own I2C address as the first specific address information. Then, the master device successfully authenticates the slave device 1.
- the master device authenticates the slave device 2.
- the device sends the authentication enable signal GPIO low level to the slave device 2, and the slave device 2 changes the I2C address to the second identifier information.
- the following procedure is the same as the master device authentication slave device 1, and is not described again.
- the slave device 2's I2C address is changed to the second specific address information.
- the master device authenticates the last slave device and changes its I2C address to the nth specific address information.
- Slave n will continue to send the authentication enable signal GPIO low, but no subsequent slaves receive it.
- the master device still sends the authentication information through the second identifier information, but at this time all the slave devices have completed registration, and the slave device I2C address is not the second identifier information, so no slave device will receive the registration information from the master device.
- the master device sends an acknowledgement message through the n+1th address information of the I2C address.
- the slave device I2C address is not the n+1th specific address information, that is, no response information is returned to the master device, and the master device receives the timeout, thereby Determine that all slave devices have been authenticated.
- the parallel bus may also be a CAN (Controller Area Network) bus or the like.
- the enable signal interface may also be other types of interfaces, which is not limited in this disclosure.
- an embodiment of the present disclosure further provides a device authentication apparatus, which is applied to a master device.
- the device 900 includes:
- the authentication enable signal sending module 901 is configured to send an authentication enable signal to the first target slave device, so that the first target slave device changes its own identity information from the first identifier information to the second identifier information. ;
- the first identifier information sending module 902 is configured to send the first specific identifier information to the first target slave device according to the second identifier information, so that the first target slave device sets its own identifier information from the first The two identification information is changed to the first specific identification information.
- the apparatus 900 further includes:
- the first confirmation information sending module 903 is configured to send the confirmation information to the first target slave device according to the first specific identifier information
- the determining module 904 is configured to determine that the identifier information of the first target slave device has been changed to the first specific identifier information when receiving the response information sent by the first target slave device.
- the apparatus 900 further includes:
- the second identifier information sending module 905 is configured to send second specific identifier information according to the second identifier information, so that the second target slave device that receives the second specific identifier information sets its own identifier information from the second identifier information Changing the second identification information to the second specific identification information;
- the second target slave device changes the identity information of the user from the first identifier information to the second identifier according to the authentication enable signal sent by the first target device before receiving the second specific identifier information. Information from the device.
- the master device is connected to the first target slave device through a first enable signal interface
- the authentication enable signal sending module 901 is configured to send an authentication enable signal to the first target slave device through the first enable signal interface.
- the master device is further connected to the first target slave device through a parallel bus;
- the first identifier information sending module 902 is configured to send the first specific identifier information to the first target slave device through the parallel bus according to the second identifier information.
- the master device is connected to the second target slave device through the parallel bus;
- the second identifier information sending module 905 is configured to send the second specific identifier information to the first target slave device by using the parallel bus according to the second identifier information.
- the apparatus 900 further includes:
- the third specific identifier information sending module 906 is configured to send the third specific identifier information according to the second identifier information according to the first preset time interval;
- the second confirmation information sending module 907 is configured to send the confirmation information according to the third feature identification information according to the second preset time interval;
- the end confirmation module 908 is configured to, after transmitting the confirmation information, exceed the preset time, and the response information is not received, the authentication ends.
- the apparatus 900 further includes:
- the identification information sending module 909 is configured to send the identification information to the first target slave device
- the device ID receiving module 910 is configured to receive the device ID returned by the first target slave device
- the legality determining module 911 is configured to determine, according to the device ID, whether the first target slave device is a legitimate device.
- the corresponding embodiment of the present disclosure further provides a device authentication apparatus, which is applied to a slave device, and the device 1000 includes:
- the first change module 1001 is configured to receive the authentication enable signal sent by the master device or other slave devices, and then change the own identity information from the first identifier information to the second identifier information;
- the second change module 1002 is configured to receive the specific identification information sent by the master device, and then change the own identity information from the second identifier information to the specific identifier information.
- the apparatus 1000 further includes:
- the response information sending module 1003 is configured to receive the confirmation information sent by the master device, and then send the response information.
- the slave device is coupled to the master device or other slave device via an enable signal interface to receive an authentication enable signal transmitted by the master device or other slave device via the enable signal interface.
- the slave device is connected to the master device via a parallel bus to receive specific identification information transmitted by the master device over the parallel bus.
- FIG. 11 is a block diagram of an apparatus 1100 for a device authentication method, which may be an electronic device, which may be a motherboard or a CPU of an electronic device, according to an exemplary embodiment.
- the apparatus 1100 can include a processor 1101, a memory 1102, a multimedia component 1103, an input/output (I/O) interface 1104, and a communication component 1105.
- the processor 1101 is configured to control the overall operation of the device 1100 to complete all or part of the steps of the device authentication method applied to the primary device.
- the memory 1102 is for storing operating systems, various types of data to support operations at the device 1100, such as instructions for any application or method for operation on the device 1100, and application-related data.
- the memory 1102 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as a static random access memory (SRAM), an electrically erasable programmable read only memory ( Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read Only Memory ( Read-Only Memory (ROM), magnetic memory, flash memory, disk or optical disk.
- SRAM static random access memory
- EEPROM Electrically Erasable Programmable Read-Only Memory
- EPROM Erasable Programmable Read-Only Memory
- PROM Programmable Read-Only Memory
- ROM Read Only Memory
- magnetic memory flash memory
- flash memory disk or optical disk.
- the multimedia component 1103 can include a screen and an audio component.
- the screen may be, for example, a touch screen, and the audio component is used to output and/or input an audio signal.
- the audio component can include a microphone for receiving an external audio signal.
- the received audio signal may be further stored in memory 1102 or transmitted via communication component 1105.
- the audio component also includes at least one speaker for outputting an audio signal.
- the I/O interface 1104 provides an interface between the processor 1101 and other interface modules.
- the other interface modules may be keyboards, mice, buttons, and the like. These buttons can be virtual buttons or physical buttons.
- Communication component 1105 is used for wired or wireless communication between the device 1100 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G or 4G, or a combination of one or more of them, so the corresponding communication component 1105 can include: Wi-Fi module, Bluetooth module, NFC module.
- the device 1100 may be configured by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), and digital signal processing devices (Digital Signal Processors).
- ASICs Application Specific Integrated Circuits
- DSPs Digital Signal Processors
- Digital Signal Processors Digital Signal Processors
- DSPD Processing Device
- PLD Programmable Logic Device
- FPGA Field Programmable Gate Array
- controller microcontroller, microprocessor or other electronic components And for performing the above device authentication method applied to the master device.
- a computer program product comprising a computer program executable by a programmable device, the computer program having when executed by the programmable device For performing the above device authentication method applied to the master device Code section.
- non-transitory computer readable storage medium comprising instructions, such as a memory 1102 comprising instructions executable by processor 1101 of apparatus 1100 to perform the above application to the primary Device authentication method for the device.
- the non-transitory computer readable storage medium may be a ROM (read-only memory), a Random Access Memory (RAM), or a CD-ROM (Compact Disc read-only memory). CD-ROM, tape, floppy disk and optical data storage devices.
- the slave device may be configured by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), and digital signal processing devices (Digital Signal Processors).
- ASICs Application Specific Integrated Circuits
- DSPs Digital Signal Processors
- Digital Signal Processors Digital Signal Processors
- DSPD Processing Device
- PLD Programmable Logic Device
- FPGA Field Programmable Gate Array
- controller microcontroller, microprocessor or other electronic components And for performing the above device authentication method applied to the master and slave devices.
- a computer program product comprising a computer program executable by a programmable device, the computer program having when executed by the programmable device A code portion for performing the above-described device authentication method applied to a slave device.
- non-transitory computer readable storage medium comprising instructions, such as a memory comprising instructions executable by a processor of a slave device to perform the above-described application to a slave device Device authentication method.
- the non-transitory computer readable storage medium can be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.
- Any process or method description in the flowcharts or otherwise described in the embodiments of the invention may be understood to include the inclusion of one or more elements for implementing a particular logical function or process.
- a module, segment or portion of code of an executable instruction of a step, and the scope of the embodiments of the invention includes additional implementations, which may not be in the order shown or discussed, including in a substantially simultaneous manner depending on the function involved or The functions are performed in the reverse order, which should be understood by those skilled in the art to which the embodiments of the invention are.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Computer Security & Cryptography (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephonic Communication Services (AREA)
Abstract
Description
本公开涉及信息技术领域,尤其涉及一种设备认证方法、装置、电子设备及从设备。The present disclosure relates to the field of information technology, and in particular, to a device authentication method, apparatus, electronic device, and slave device.
目前,电子设备的级联化的概念日趋成熟。电子设备的级联化,即电子设备外部连接多个设备,结构上叠加在一起。例如,对于手机,可通过手机的通用串行总线(USB,Universal Serial Bus)接口,与外部电池背夹连接,电池背夹上面再连接扬声器等,实现设备的级联化。At present, the concept of cascading of electronic devices is maturing. The cascading of electronic devices, that is, the external connection of multiple devices of electronic devices, is structurally superimposed. For example, for a mobile phone, it can be connected to an external battery back clip through a universal serial bus (USB) interface of the mobile phone, and a speaker is connected to the battery back clip to realize cascading of the device.
此外,在工业领域,级联化的应用也越来越多,例如,一个控制主板与多个子板连接。In addition, in the industrial field, there are more and more applications of cascading, for example, a control board is connected to multiple daughter boards.
设备的级联,在物理实现上,可通过连接线、连接头等实现。但为了保证级联的从设备的正常工作,主设备需要对每个从设备进行认证(或称为识别、鉴权或注册)。The cascading of devices can be realized by physical connection, connection lines, and the like. However, in order to ensure the normal operation of the cascaded slave devices, the master device needs to authenticate (or refer to, identify, authenticate, or register) each slave device.
主设备对从设备的认证,需要结合从设备和主设备的连接方式。相关技术中,需要每个从设备均与主设备的连接器连接,由主设备对与其连接的从设备分别进行认证。由此,使得主设备的级联所采用的连接器的尺寸大和成本高。然而,在诸如消费类电子这样的领域,主设备需要做到轻小,便携的前提下,级联所采用的连接器必定有尺寸限制,由此,相关技术中的认证机制存在缺陷。The master device authenticates the slave device and needs to combine the connection mode between the slave device and the master device. In the related art, each slave device is required to be connected to a connector of the master device, and the master device separately authenticates the slave device connected thereto. Thereby, the size of the connector used for the cascade of the master device is large and costly. However, in a field such as consumer electronics, the main device needs to be light and small, and the connector used in the cascading must have a size limitation. Therefore, the authentication mechanism in the related art has drawbacks.
发明内容Summary of the invention
为克服相关技术中存在的问题,本公开提供一种设备认证方法、装 置、电子设备及从设备。In order to overcome the problems in the related art, the present disclosure provides a device authentication method and device. Set, electronic equipment and slave equipment.
第一方面,提供一种设备认证方法,应用于主设备,所述方法包括:The first aspect provides a device authentication method, which is applied to a master device, where the method includes:
向第一目标从设备发送认证使能信号,所述认证使能信号指示所述第一目标从设备将自己的标识信息从第一标识信息变更为第二标识信息;Sending an authentication enable signal to the first target slave device, where the authentication enable signal indicates that the first target slave device changes its own identification information from the first identifier information to the second identifier information;
根据所述第二标识信息,向所述第一目标从设备发送第一特定标识信息,所述第一特定标识信息指示所述第一目标从设备将自己的标识信息从第二标识信息变更为所述第一特定标识信息。Transmitting, according to the second identifier information, the first specific identifier information to the first target slave device, where the first specific identifier information indicates that the first target slave device changes its own identifier information from the second identifier information to The first specific identification information.
第二方面,提供一种设备认证方法,应用于从设备,所述方法包括:A second aspect provides a device authentication method, which is applied to a slave device, where the method includes:
接收到主设备或其它从设备发送的认证使能信号,则将自己的标识信息从第一标识信息变更为第二标识信息;Receiving the authentication enable signal sent by the master device or other slave devices, changing the identity information of the user from the first identifier information to the second identifier information;
接收到主设备发送的特定标识信息,则将自己的标识信息从第二标识信息变更为所述特定标识信息。Upon receiving the specific identification information sent by the master device, the identity information is changed from the second identifier information to the specific identifier information.
第三方面,提供一种设备认证装置,应用于主设备,所述装置包括:In a third aspect, a device authentication apparatus is provided for use in a master device, the device comprising:
认证使能信号发送模块,被配置为向所述第一目标从设备发送认证使能信号,所述认证使能信号指示所述第一目标从设备将自己的标识信息从第一标识信息变更为第二标识信息;An authentication enable signal sending module configured to send an authentication enable signal to the first target slave device, the authentication enable signal instructing the first target slave device to change its own identification information from the first identification information to Second identification information;
第一标识信息发送模块,被配置为根据所述第二标识信息,向所述第一目标从设备发送第一特定标识信息,所述第一特定标识信息指示所述第一目标从设备将自己的标识信息从第二标识信息变更为所述第一特定标识信息。The first identifier information sending module is configured to send first specific identifier information to the first target slave device according to the second identifier information, where the first specific identifier information indicates that the first target slave device sets itself The identification information is changed from the second identification information to the first specific identification information.
第四方面,提供一种设备认证装置,应用于从设备,所述装置包括:A fourth aspect provides a device authentication apparatus, which is applied to a slave device, where the device includes:
第一变更模块,被配置为接收到主设备或其它从设备发送的认证使能信号,则将自己的标识信息从第一标识信息变更为第二标识信息;The first change module is configured to receive the authentication enable signal sent by the master device or other slave devices, and then change the own identity information from the first identifier information to the second identifier information;
第二变更模块,被配置为接收到主设备发送的特定标识信息,则将自己的标识信息从第二标识信息变更为所述特定标识信息。The second change module is configured to receive the specific identification information sent by the master device, and then change the own identity information from the second identifier information to the specific identifier information.
第五方面,提供一种电子设备,包括: In a fifth aspect, an electronic device is provided, including:
处理器;processor;
用于存储处理器可执行指令的存储器;a memory for storing processor executable instructions;
其中,所述处理器,被配置为向第一目标从设备发送认证使能信号,所述认证使能信号指示所述第一目标从设备将自己的标识信息从第一标识信息变更为第二标识信息;根据所述第二标识信息,向所述第一目标从设备发送第一特定标识信息,所述第一特定标识信息指示所述第一目标从设备将自己的标识信息从第二标识信息变更为所述第一特定标识信息。The processor is configured to send an authentication enable signal to the first target slave device, where the authentication enable signal instructs the first target slave device to change its own identification information from the first identification information to the second And identifying, according to the second identifier information, first specific identifier information, where the first target identifier information indicates that the first target slave device sets its own identifier information from the second identifier. The information is changed to the first specific identification information.
第六方面,提供一种计算机程序产品,所述计算机程序产品包含能够由可编程的装置执行的计算机程序,所述计算机程序具有当由所述可编程的装置执行时用于执行上述应用于主设备的设备认证方法的代码部分。In a sixth aspect, a computer program product is provided, the computer program product comprising a computer program executable by a programmable device, the computer program having, when executed by the programmable device, for performing the application to the main The code portion of the device's device authentication method.
第七方面,提供一种非临时性计算机可读存储介质,所述非临时性计算机可读存储介质中包括一个或多个程序,所述一个或多个程序用于执行上述应用于主设备的设备认证方法。A seventh aspect, a non-transitory computer readable storage medium comprising one or more programs for performing the above-described application to a host device Device authentication method.
第八方面,提供一种电子设备,其特征在于,包括:In an eighth aspect, an electronic device is provided, including:
上述第七方面的非临时性计算机可读存储介质;以及a non-transitory computer readable storage medium of the above seventh aspect;
一个或者多个处理器,用于执行所述非临时性计算机可读存储介质中的程序。One or more processors for executing a program in the non-transitory computer readable storage medium.
第九方面,提供一种从设备,包括:In a ninth aspect, a slave device is provided, comprising:
处理器;processor;
用于存储处理器可执行指令的存储器;a memory for storing processor executable instructions;
其中,所述处理器,被配置为接收到主设备或其它从设备发送的认证使能信号,则将自己的标识信息从第一标识信息变更为第二标识信息;接收到主设备发送的特定标识信息,则将自己的标识信息从第二标识信息变更为所述特定标识信息。The processor is configured to receive the authentication enable signal sent by the master device or other slave devices, and then change the identity information of the user from the first identifier information to the second identifier information; and receive the specific information sent by the master device. The identification information changes its own identification information from the second identification information to the specific identification information.
第十方面,提供一种计算机程序产品,所述计算机程序产品包含能够由 可编程的装置执行的计算机程序,所述计算机程序具有当由所述可编程的装置执行时用于执行上述应用于从设备的设备认证方法的代码部分。In a tenth aspect, a computer program product is provided, the computer program product comprising A computer program executed by a programmable device, the computer program having code portions for performing the above-described device authentication method applied to the slave device when executed by the programmable device.
第十一方面,提供一种非临时性计算机可读存储介质,所述非临时性计算机可读存储介质中包括一个或多个程序,所述一个或多个程序用于执行上述应用于从设备的设备认证方法。In an eleventh aspect, a non-transitory computer readable storage medium is provided, the non-transitory computer readable storage medium comprising one or more programs for performing the above application to a slave device Device authentication method.
第十二方面,提供一种从设备,包括:According to a twelfth aspect, a slave device is provided, including:
上述第十一方面的非临时性计算机可读存储介质;以及a non-transitory computer readable storage medium of the above eleventh aspect;
一个或者多个处理器,用于执行所述非临时性计算机可读存储介质中的程序。One or more processors for executing a program in the non-transitory computer readable storage medium.
本公开可实现对与主设备连接的从设备进行高效的认证,且主设备通过一个连接接口即可实现对级联从设备进行认证,采用较少的引脚数目,认证效率高。The present disclosure can implement efficient authentication of the slave device connected to the master device, and the master device can authenticate the cascade slave device through a connection interface, adopting a small number of pins, and the authentication efficiency is high.
本公开的其他特征和优点将在随后的具体实施方式部分予以详细说明。Other features and advantages of the present disclosure will be described in detail in the detailed description which follows.
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in the specification
图1是本公开一实施例的主设备和从设备的连接示意图;1 is a schematic diagram of connection between a master device and a slave device according to an embodiment of the present disclosure;
图2是本公开一实施例的设备认证方法的流程示意图;2 is a schematic flowchart of a device authentication method according to an embodiment of the present disclosure;
图3是本公开一实施例中主设备通过并行总线发送信息的格式示意图;3 is a schematic diagram of a format in which a master device transmits information through a parallel bus according to an embodiment of the present disclosure;
图4是本公开一实施例中主设备对与自己连接的第一目标从设备的认证流程示意图;4 is a schematic diagram of an authentication process of a primary device to a first target slave device connected to itself according to an embodiment of the present disclosure;
图5是本公开一实施例中对第二目标从设备的认证流程示意图;FIG. 5 is a schematic diagram of an authentication process for a second target slave device according to an embodiment of the present disclosure; FIG.
图6是本公开一实施例中对第n目标从设备的认证流程示意图;6 is a schematic diagram of an authentication process for an nth target slave device according to an embodiment of the present disclosure;
图7是本公开一实施例中主设备确定从设备是否认证完成的流程示意 图;FIG. 7 is a schematic diagram of a flow of determining whether a slave device is authenticated by a master device according to an embodiment of the present disclosure; Figure
图8是本公开一实施例的主设备通过I2C总线和GPIO与从设备连接的示意图;8 is a schematic diagram of a master device connected to a slave device through an I2C bus and a GPIO according to an embodiment of the present disclosure;
图9是本公开一实施例的设备认证装置的框图;9 is a block diagram of a device authentication apparatus according to an embodiment of the present disclosure;
图10是本公开另一实施例的设备认证装置的框图;FIG. 10 is a block diagram of a device authentication apparatus according to another embodiment of the present disclosure; FIG.
图11是根据一示例性实施例示出的一种用于设备认证方法的装置的框图。FIG. 11 is a block diagram of an apparatus for a device authentication method, according to an exemplary embodiment.
以下结合附图对本公开的具体实施方式进行详细说明。应当理解的是,此处所描述的具体实施方式仅用于说明和解释本公开,并不用于限制本公开。The specific embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are not to be construed
参见图1,为本公开一实施例的主设备和从设备的连接示意图。在本公开的一实施例中,主设备100为控制主板,从设备200为子板。在另一是实例中,主设备100为电子设备的主板(CPU,Central Processing Unit),从设备200为与电子设备连接的功能模块,例如,蓄能模块、投影模块、拍摄模块等等。Referring to FIG. 1 , it is a schematic diagram of a connection between a master device and a slave device according to an embodiment of the present disclosure. In an embodiment of the present disclosure, the
在本公开的一实施例中,主设备100对从设备200进行认证,为其分配一个唯一的标识信息,使得主设备100和从设备200可正确进行数据、指令的交互。In an embodiment of the present disclosure, the
参见图1,主设备100包括第一连接接口。从设备200包括第二连接接口。第一连接接口和第二连接接口可以为各种板对板连接器(B2B connector,Board to Board Connector)、零插拔力(ZIF,Zero Insert Force)连接器或其它形式的连接器。由此,通过第一连接接口和第二连接接口连接,可实现主设备100和从设备200的连接。
Referring to FIG. 1, the
从设备200与其它从设备之间的连接,也可通过上述的板对板连接器(B2B connector,Board to Board Connector)或零插拔力(ZIF,Zero Insert Force)连接器等进行连接。The connection between the
在本公开的一实施例中,连接器的引脚中至少包括:并行总线引脚和使能信号引脚。并行总线引脚用于实现主设备与每个从设备的通信。在一个实施例中,每个从设备的并行总线引脚均与主设备的并行总线引脚连接。使能信号引脚用于两两设备间的通信,例如,主设备与从设备1,从设备1与从设备2,从设备2与从设备3……之间的通信。In an embodiment of the present disclosure, the pins of the connector include at least: a parallel bus pin and an enable signal pin. Parallel bus pins are used to enable communication between the master and each slave. In one embodiment, the parallel bus pins of each slave device are connected to the parallel bus pins of the master device. The enable signal pin is used for communication between two devices, for example, communication between the master device 1 and the slave device 1, slave device 2, slave device 2, and slave device 3.
由此,本公开实施例中的主设备只需包括一个连接接口,即可实现与多个从设备连接。Therefore, the master device in the embodiment of the present disclosure only needs to include one connection interface, so as to be connected to multiple slave devices.
在一些实施例中,主设备与从设备还可通过无线的方式连接,例如,NFC(Near Field Communication,近场通信)、蓝牙、WIFI(Wireless-Fidelity,无线保真)等。In some embodiments, the master device and the slave device may also be connected by wireless, for example, NFC (Near Field Communication), Bluetooth, WIFI (Wireless-Fidelity), and the like.
以下,将详细介绍本公开实施例的主设备对从设备进行认证的过程。Hereinafter, the process of authenticating the slave device by the master device of the embodiment of the present disclosure will be described in detail.
在本公开的实施例中,每个从设备具有三种类型的标识信息:第一标识信息、第二标识信息和特定标识信息。其中,从设备未被认证,且没有接收到认证使能信号时,标识信息为第一标识信息;从设备未被认证,但接收到认证使能信号时,会将自己的标识信息从第一标识信息变更为第二标识信息;从设备被认证后,将自己的信息从第二标识信息变更为特定标识信息。In an embodiment of the present disclosure, each slave device has three types of identification information: first identification information, second identification information, and specific identification information. Wherein, when the slave device is not authenticated and the authentication enable signal is not received, the identifier information is the first identifier information; when the slave device is not authenticated, but receives the authentication enable signal, the identifier information is obtained from the first The identification information is changed to the second identification information; after the slave device is authenticated, the self-identification information is changed from the second identification information to the specific identification information.
第一标识信息、第二标识信息和特定标识信息可为地址信息,例如,I2C(Inter-Integrated Circuit,I2C总线)地址信息,IP地址(Internet Protocol Address,网际协议地址)信息等。第一标识信息、第二标识信息和特定标识信息还可为预设长度的二进制字符串等等,用于实现标识的信息。The first identification information, the second identification information, and the specific identification information may be address information, for example, I2C (Inter-Integrated Circuit) address information, IP address (Internet Protocol Address) information, and the like. The first identification information, the second identification information, and the specific identification information may also be a binary string of a preset length or the like for implementing the identified information.
在本公开的一实施例中,第一标识信息对于每个从设备都是相同的;第二标识信息对于每个从设备都是相同的。而每个从设备的特定标识信息是不 相同的,主设备会对每个认证的从设备分配不同的特定标识信息。例如,若主设备和从设备之间通信采用的并行总线为I2C(Inter-Integrated Circuit)总线,则标识信息可采用7位二进制数表示,第一标识信息可设为0000001,第二标识信息可设为0000010,而每个从设备的特定标识信息可从除0000001和0000010之外的二进制数中唯一选定一个。In an embodiment of the present disclosure, the first identification information is the same for each slave device; the second identification information is the same for each slave device. And the specific identification information of each slave device is not Similarly, the master device assigns different specific identification information to each authenticated slave device. For example, if the parallel bus used for communication between the master device and the slave device is an I2C (Inter-Integrated Circuit) bus, the identification information may be represented by a 7-bit binary number, and the first identifier information may be set to 0000001, and the second identifier information may be Set to 0000010, and the specific identification information of each slave device can be uniquely selected from binary numbers other than 0000001 and 0000010.
由此,当对从设备认证完后,每个从设备具有不同的特定标识信息,主设备可根据特定标识信息,进行控制指令或数据的发送,也可根据特定标识信息,区分接收到的数据是来自哪个从设备。Therefore, after the slave device is authenticated, each slave device has different specific identifier information, and the master device may perform control command or data transmission according to the specific identifier information, and may also distinguish the received data according to the specific identifier information. Which slave device is from.
参见图2,为本公开一实施例的设备认证方法的流程示意图。2 is a schematic flowchart of a device authentication method according to an embodiment of the present disclosure.
在步骤201中,主设备向第一目标从设备发送认证使能信号,认证使能信号指示第一目标从设备将自己的标识信息从第一标识信息变更为第二标识信息。In
在本公开的一实施例中,当检测到第一目标从设备与主设备连接时,或接收到认证开始指令等时,主设备开始对与其连接的第一目标从设备进行认证。In an embodiment of the present disclosure, when detecting that the first target slave device is connected to the master device, or receiving an authentication start instruction or the like, the master device starts authenticating the first target slave device connected thereto.
在步骤202中,主设备根据第二标识信息,向第一目标从设备发送第一特定标识信息,第一特定标识信息指示第一目标从设备将自己的标识信息从第二标识信息变更为第一特定标识信息。In
在本公开的一实施例中,主设备发送认证使能信号后,间隔预设时间,即根据第二标识信息发送第一特定标识信息。由于第一目标从设备已将第一标识信息变更为了第二标识信息,因此,第一目标从设备可接收到第一特定标识信息,并将自己的标识信息从第二标识信息变更为第一特定标识信息,完成认证。In an embodiment of the present disclosure, after the primary device sends the authentication enable signal, the master device sends the first specific identifier information according to the second identifier information. Since the first target slave device has changed the first identifier information to the second identifier information, the first target slave device can receive the first specific identifier information, and change the own identifier information from the second identifier information to the first identifier. Specific identification information to complete the certification.
在本公开的一实施例中,主设备发送第一特定标识信息后,间隔预设时间,则根据第一特定标识信息,向第一目标从设备发送确认信息;当接收到 第一目标从设备发送的响应信息时,确定第一目标从设备的标识信息已变更为第一特定标识信息,即第一目标从设备认证成功。In an embodiment of the present disclosure, after the first specific identifier information is sent, the master device sends the confirmation information to the first target slave device according to the first specific identifier information; When the first target receives the response information from the device, it is determined that the identification information of the first target slave device has been changed to the first specific identifier information, that is, the first target slave device is successfully authenticated.
在本公开的一实施例中,为了节约主设备的连接接口,从设备间采用级联的方式,当与主设备连接的第一目标从设备认证后,第一目标从设备向与其连接的第二目标从设备发送认证使能信号,以使主设备可对第二目标从设备进行认证。第二目标从设备接收到认证使能信号,则将自己的标识信息从第一标识信息变更为第二标识信息。当主设备根据第二标识信息,发送第二特定标识信息(不同于第一特定标识信息的特定标识信息)时,由于第二目标从设备的标识信息为第二标识信息,则其可以接收到第二特定标识信息,并将自己的标识信息变更为第二特定标识信息,实现认证。In an embodiment of the present disclosure, in order to save the connection interface of the master device, the slave device adopts a cascade connection manner, and after the first target slave device connected to the master device is authenticated, the first target slave device is connected to the first device. The second target sends an authentication enable signal from the device, so that the master device can authenticate the second target slave device. When the second target receives the authentication enable signal from the device, the identity information is changed from the first identification information to the second identification information. When the primary device sends the second specific identification information (specific identification information different from the first specific identification information) according to the second identification information, since the identification information of the second target secondary device is the second identification information, it may receive the first Second, the specific identification information is changed, and the identification information of the user is changed to the second specific identification information to implement the authentication.
同样的,主设备可间隔预设时间,通过第二特定标识信息,发送确认信息,以根据是否接收到响应信息,确定第二目标从设备的认证是否成功。Similarly, the master device may send the confirmation information by using the second specific identifier information to determine whether the authentication of the second target slave device is successful according to whether the response information is received.
应理解,当需要对与第二目标从设备连接的第三目标从设备进行认证时,与第二目标从设备的认证过程相似,将由第二目标从设备向第三目标从设备发送认证使能信号,主设备还是执行根据第二标识信息,发送特定标识信息的步骤,即可实现对第三目标从设备的认证。It should be understood that when the third target slave device connected to the second target slave device needs to be authenticated, similar to the authentication process of the second target slave device, the authentication is enabled by the second target slave device to the third target slave device. The signal, the master device still performs the step of transmitting the specific identifier information according to the second identifier information, so that the third target slave device can be authenticated.
在本公开的一实施例中,主设备按照第一预设时间间隔,根据第二标识信息,发送第三特定标识信息;以及按照第二预设时间间隔,根据第三特征标识信息,发送确认信息;当发送所述确认信息后,超过预设时间,未接收到响应信息,则认证结束,即所有的从设备认证完成。In an embodiment of the present disclosure, the master device sends the third specific identifier information according to the second identifier information according to the first preset time interval, and sends the acknowledgement according to the third feature identifier information according to the second preset time interval. After the confirmation message is sent, if the response time is exceeded, and the response information is not received, the authentication ends, that is, all the slave device authentication is completed.
应理解,本公开的实施例中,若主设备和从设备之间通过无线连接,则主设备发送认证使能信号和特定标识信息,以及从设备发送认证使能信号等可通过无线的方式发送。若通过有线的方式连接,则下述实施例将进行详细描述。It should be understood that, in the embodiment of the present disclosure, if the master device and the slave device are connected by wireless, the master device sends the authentication enable signal and the specific identifier information, and the slave device sends the authentication enable signal and the like to be wirelessly transmitted. . The following embodiments will be described in detail if they are connected by wire.
本公开实施例的设备认证方法,主设备可实现对与主设备连接的从设备 进行高效的认证,且主设备通过一个连接接口即可实现对级联从设备进行认证,认证效率高。The device authentication method of the embodiment of the present disclosure, the master device can implement the slave device connected to the master device Efficient authentication is performed, and the master device can authenticate the cascaded slave device through a connection interface, and the authentication efficiency is high.
参见图3,在本公开的一实施例中,主设备通过并行总线分别与每个从设备连接,且主设备通过使能信号接口与一从设备连接,其余从设备之间通过使能信号接口连接。Referring to FIG. 3, in an embodiment of the present disclosure, a master device is respectively connected to each slave device through a parallel bus, and the master device is connected to a slave device through an enable signal interface, and the remaining slave devices pass an enable signal interface. connection.
主设备通过并行总线发送信息时,信息格式包括:标识信息,通信类型和数据部分,或信息格式包括:标识信息和通信类型。When the master device transmits information through the parallel bus, the information format includes: identification information, communication type and data portion, or the information format includes: identification information and communication type.
其中,标识信息即上述所述的从设备的第一标识信息、第二标识信息或特定标识信息。标识信息,用于限定可接收到主设备通过并行总线发送的信息的从设备。即主设备通过并行总线发送信息时,标识信息与主设备发送的信息中的标识信息相同的从设备,可接收到主设备发送的信息。The identifier information is the first identifier information, the second identifier information, or the specific identifier information of the slave device described above. Identification information for defining a slave device that can receive information transmitted by the master device through the parallel bus. That is, when the master device transmits information through the parallel bus, the slave device whose identification information is the same as the identifier information in the information sent by the master device can receive the information sent by the master device.
通信类型包括读或写,若通信类型为读,则从设备将相关数据发送到并行总线,以使主设备可接收到从设备发送的相关数据。当通信类型为读时,主设备发送的信息格式中包括地址信息和通信类型即可。若通信类型为写,则从设备接收主设备发送的信息的数据部分的数据。The communication type includes reading or writing. If the communication type is read, the slave device transmits the relevant data to the parallel bus so that the master device can receive the related data transmitted from the device. When the communication type is read, the information format sent by the master device includes the address information and the communication type. If the communication type is write, the slave device receives data of the data portion of the information transmitted by the master device.
参见图4-图7,在本公开的一实施例中,主设备对级联的从设备的认证过程包括:Referring to FIG. 4-7, in an embodiment of the present disclosure, the authentication process of the master device to the cascaded slave device includes:
在步骤401中,主设备通过使能信号引脚向与主设备连接的第一目标从设备发送认证使能信号。In
在本公开的一实施例中,整个系统初始状态,即所有的从设备都未被认证时,所有从设备的标识信息均为第一标识信息。主设备从与其连接的第一目标从设备开始进行认证。In an embodiment of the present disclosure, when the entire system is in an initial state, that is, all the slave devices are not authenticated, the identifier information of all the slave devices is the first identifier information. The master device authenticates from the first target slave device to which it is connected.
主设备通过使能信号引脚发送的认证使能信号可为低电平信号、二进制信号等。The authentication enable signal sent by the master device through the enable signal pin can be a low level signal, a binary signal, or the like.
在一个实施例中,主设备可在检测到有从设备与其连接时,即发送认证 使能信号,或在接收到认证指令(例如,用户输入的认证指令)时,发送认证使能信号。In one embodiment, the master device may send a certificate when it detects that a slave device is connected thereto. The enable signal is sent, or an authentication enable signal is sent upon receipt of an authentication command (eg, an authentication command entered by the user).
在步骤402中,第一目标从设备接收到认证使能信号,则将标识信息从第一标识信息变更为第二标识信息。In
在步骤403中,主设备通过并行总线发送认证信息,认证信息中的标识信息为第二标识信息,通信类型为写,数据部分包括第一特定标识信息。该第一标识信息,为主设备为第一目标从设备分配的标识信息。In
由于只有第一目标从设备接收到了主设备发送的认证使能信息,则只有第一目标从设备将标识信息变更为第二标识信息,即只有第一从设备可接受到认证信息。Since only the first target slave device receives the authentication enable information sent by the master device, only the first target slave device changes the identifier information to the second identifier information, that is, only the first slave device can accept the authentication information.
在本公开的一实施例中,主设备可在发送认证使能信号后,间隔预设时间即发送认证信息。In an embodiment of the present disclosure, after transmitting the authentication enable signal, the master device may send the authentication information at a preset time interval.
在步骤404中,第一目标从设备接收到认证信息后,对接收到的信息进行解析,将自己的标识信息变更为第一特定标识信息。In
在步骤405中,主设备通过并行总线发送确认信息,确认信息中包括的标识信息为第一特定标识信息,通信类型为读。In
在本公开的一实施例中,确认信息用于确认第一目标从设备的标识信息是否已变更为第一特定标识信息。确认信息的数据格式可为不包含数据的空数据包。In an embodiment of the present disclosure, the confirmation information is used to confirm whether the identification information of the first target slave device has been changed to the first specific identification information. The data format of the confirmation information can be an empty data packet that does not contain data.
在本公开的一实施例中,主设备可在发送认证信息后,间隔预设时间即发送确认信息。In an embodiment of the present disclosure, the master device may send the confirmation information at intervals after the authentication information is sent.
在步骤406中,第一目标从设备接收到确认信息,则发送响应信息到并行总线上。In
在本公开的一实施例中,确认信息是用于确认第一目标从设备是否已经完成了标识信息的变更。若第一目标从设备完成了标识信息变更,则其标识 信息为第一特定标识信息,与主设备通过并行总线发送的确认信息的标识信息相同,因此,第一目标从设备可接收到确认信息。第一目标从设备接收到确认信息,则通过并行总线发送响应信息。主设备接收到第一目标从设备发送的响应信息,则确定第一目标从设备已完成标识变更,对第一从设备的认证成功。In an embodiment of the present disclosure, the confirmation information is a change for confirming whether the first target slave device has completed the identification information. If the first target slave device completes the identification information change, its identifier The information is the first specific identification information, which is the same as the identification information of the confirmation information transmitted by the master device through the parallel bus, and therefore, the first target slave device can receive the confirmation information. When the first target receives the confirmation information from the device, the response information is transmitted through the parallel bus. After receiving the response information sent by the first target slave device, the master device determines that the first target slave device has completed the identity change, and the authentication of the first slave device is successful.
参见图5,在步骤501中,第一目标从设备发送认证使能信号给与其连接的第二目标从设备。Referring to FIG. 5, in
在本公开的实施例中,第一目标从设备完成认证后,通过第一目标从设备开启对第二目标从设备的认证过程,即第一目标从设备通过使能认证引脚发送认证使能信号给与其连接的第二目标从设备。In the embodiment of the present disclosure, after the first target slave device completes the authentication, the authentication process for the second target slave device is started by the first target slave device, that is, the first target slave device sends the authentication enable by enabling the authentication pin. The signal is sent to the second target slave device to which it is connected.
在步骤502中,第二目标从设备接收到认证使能信号,则将标识信息从第一标识信息变更为第二标识信息。In
在本公开的实施例中,第二目标从设备将标识信息变更为第二标识信息后,重复执行步骤403至步骤406,以完成第二目标从设备的认证,第二目标从设备认证完成后,其标识变更为第二特定标识信息。In the embodiment of the present disclosure, after the second target slave device changes the identification information to the second identifier information, step 403 to step 406 are repeatedly performed to complete the authentication of the second target slave device, and after the second target slave device is authenticated, The identifier is changed to the second specific identification information.
以此类推,参见图6,第二目标从设备完成认证后,向第三目标从设备发送认证使能信号,以开始对第三目标从设备进行认证。主设备对第n个目标从设备完成认证后,其地址变更为第n特定标识信息。By analogy, referring to FIG. 6, after the second target slave device completes the authentication, an authentication enable signal is sent to the third target slave device to start authenticating the third target slave device. After the master device completes the authentication for the nth target slave device, its address is changed to the nth specific identifier information.
参见图7,最后一个从设备即从设备n发送认证使能信号,则没有后续从设备接收。主设备通过第二标识信息发送认证信息,但是此时所有从设备都已完成注册,没有从设备的标识信息为第二标识信息,所以没有从设备会接收来自主设备的认证信息。主设备会通过第n+1特定标识信息发送确认信息,此时没有从设备标识信息为第n+1特定标识信息,即没有响应信息返回给主设备,主设备接收超时,从而判断所有从设备认证完毕。Referring to FIG. 7, the last slave device, that is, the slave device n, transmits the authentication enable signal, and no subsequent slave device receives. The master device sends the authentication information by using the second identifier information. However, all the slave devices have completed registration at this time, and the identifier information of the slave device is the second identifier information. Therefore, the slave device does not receive the authentication information from the master device. The master device sends the acknowledgement information through the n+1th specific identifier information. At this time, the slave device identifier information is the n+1th specific identifier information, that is, no response information is returned to the master device, and the master device receives the timeout, thereby determining all the slave devices. The certification is completed.
在本公开的一实施例中,为了提高认证效率,主设备在对从设备进行认 证时,对从设备的功能或类型是否合法进行验证。In an embodiment of the present disclosure, in order to improve the authentication efficiency, the master device recognizes the slave device. At the time of the certificate, verify that the function or type of the slave device is legal.
结合上述实施例的认证过程,主设备可在第一目标从设备将标识信息从第一标识信息变更为第二标识信息后,通过第二标识信息,发送识别信息。在一个实施例中,识别信息用于确定从设备的类型或功能。对于主设备,其可支持和识别的设备类型是确定的,且设备类型和设备ID(Identifying,标识)可相对应存储。从设备接收到识别信息,则通过并行总线回复设备ID。主设备获得从设备的设备ID后,验证其是否合法,即验证是否支持从设备,若合法,则继续执行上述步骤303及其之后的步骤;若不合法,则流程结束。In combination with the authentication process of the foregoing embodiment, the master device may send the identification information by using the second identifier information after the first target slave device changes the identifier information from the first identifier information to the second identifier information. In one embodiment, the identification information is used to determine the type or function of the slave device. For the primary device, the type of device that it can support and identify is determined, and the device type and device ID (Identifying) can be stored correspondingly. Upon receipt of the identification information from the device, the device ID is replied via the parallel bus. After the master device obtains the device ID of the slave device, it is verified whether it is legal, that is, whether the slave device is supported. If it is legal, the step 303 and subsequent steps are continued; if not, the process ends.
在本公开的实施例中,主设备发送识别信息以对从设备进行验证的步骤,可以在步骤403之前(步骤402之后)执行,也可在步骤403之后执行,或者,在步骤401之前执行,本公开对此不作限制。若在步骤403之前执行,则按照上述的方式,通过第二标识信息,发送识别信息,标识信息为第二标识信息的从设备收到识别信息后即回复设备ID。若在步骤403之后执行,则可通过特定标识信息,发送识别信息,标识信息为特定标识信息的从设备收到识别信息后即回复设备ID。若在步骤401之前执行,则主设备可通过第一标识信息,发送识别信息,由于所有的从设备的地址都为第一标识信息,因此,所有从设备都将回复设备ID,主设备一一确认从设备是否合法。In the embodiment of the present disclosure, the step of the primary device transmitting the identification information to verify the secondary device may be performed before step 403 (after step 402), may be performed after
在本公开的一实施例中,若从设备不合法,则可输出提示信息,以提示用户去除不合法的从设备,或更换从设备。In an embodiment of the present disclosure, if the slave device is not legal, the prompt information may be output to prompt the user to remove the illegal slave device or replace the slave device.
本公开实施例的从设备认证方法,主设备可实现对与主设备连接的从设备进行高效的认证,且通过一个连接接口即可实现对级联从设备进行认证,采用较少的引脚数目,认证效率高。In the slave device authentication method of the embodiment of the present disclosure, the master device can implement efficient authentication of the slave device connected to the master device, and the cascading slave device can be authenticated through a connection interface, and the number of pins is used. , the certification efficiency is high.
参见图8,在本公开的一实施例中,上述的并行总线为I2C总线,标识信息为I2C地址。认证使能信号接口为GPIO(General Purpose Input Output,通用输入/输出)接口。 Referring to FIG. 8, in an embodiment of the present disclosure, the parallel bus is an I2C bus, and the identification information is an I2C address. The authentication enable signal interface is a GPIO (General Purpose Input Output) interface.
初始状态,所有的从设备都没有被认证,I2C地址都为第一标识信息。主设备要开始认证第一个从设备,首先发送认证使能信号GPIO低电平给从设备1,从设备1收到认证使能信号GPIO低电平之后将自己的I2C地址更改为第二标识信息,主设备用第二标识信息通过I2C总线发送认证信息,类型为写,由于此时只有从设备1的I2C地址为第二标识信息,其他从设备I2C地址仍然为第一标识信息,所以只有从设备1接收主设备发送的认证信息。接下来从设备1解析接收到的认证信息,其中会包含主设备分配给从设备1的认证之后的第一特定地址信息,从设备会将自己的I2C地址改为第一特定地址信息。主设备接下来会使用第一特定地址信息发送确认信息,类型为读,由于此时只有从设备1的I2C地址为第一特定地址信息,从设备1接收到确认信息后,会发送响应信息到并行总线上,主设备会接收到来自从设备1的响应信息,从而得知从设备1完成了对自己的I2C地址变更及变更后的I2C地址为第一特定地址信息。则主设备对从设备1的认证成功。In the initial state, all slave devices are not authenticated, and the I2C address is the first identifier information. The master device starts to authenticate the first slave device, first sends the authentication enable signal GPIO low level to the slave device 1, and the slave device 1 receives the authentication enable signal GPIO low level and then changes its own I2C address to the second identifier. The information is sent by the master device through the I2C bus with the second identifier information. The type is write. Since only the I2C address of the slave device 1 is the second identifier information, the other slave device I2C addresses are still the first identifier information, so only The authentication information sent by the master device is received from the device 1. Next, the received authentication information is parsed from the device 1, which will contain the first specific address information after the authentication of the master device assigned to the slave device 1, and the slave device will change its own I2C address to the first specific address information. The master device then sends the acknowledgement information using the first specific address information, the type is read. Since only the I2C address of the slave device 1 is the first specific address information, the slave device 1 sends the response message after receiving the acknowledgement information. On the parallel bus, the master device receives the response information from the slave device 1, and learns that the slave device 1 has completed the I2C address change and changed its own I2C address as the first specific address information. Then, the master device successfully authenticates the slave device 1.
接下来主设备要对从设备2进行认证。从设备1发送认证使能信号GPIO低电平给从设备2,从设备2的I2C地址变更为第二标识信息,接下来的过程与主设备认证从设备1的过程相同,不在赘述,认证之后,从设备2的I2C地址变更为第二特定地址信息。Next, the master device authenticates the slave device 2. The device sends the authentication enable signal GPIO low level to the slave device 2, and the slave device 2 changes the I2C address to the second identifier information. The following procedure is the same as the master device authentication slave device 1, and is not described again. The slave device 2's I2C address is changed to the second specific address information.
以此类推,主设备对最后一个从设备完成了认证,其I2C地址变更为第n特定地址信息。By analogy, the master device authenticates the last slave device and changes its I2C address to the nth specific address information.
从设备n仍会继续发送认证使能信号GPIO低电平,但是没有后续从设备接收。主设备仍会通过第二标识信息发送认证信息,但是此时所有从设备都已完成注册,没有从设备I2C地址为第二标识信息,所以没有从设备会接收来自主设备的注册信息。接下来主设备会通过I2C地址第n+1特定地址信息发送确认信息,此时没有从设备I2C地址为第n+1特定地址信息,即没有响应信息返回给主设备,主设备接收超时,从而判断所有从设备认证完毕。 Slave n will continue to send the authentication enable signal GPIO low, but no subsequent slaves receive it. The master device still sends the authentication information through the second identifier information, but at this time all the slave devices have completed registration, and the slave device I2C address is not the second identifier information, so no slave device will receive the registration information from the master device. Then, the master device sends an acknowledgement message through the n+1th address information of the I2C address. At this time, the slave device I2C address is not the n+1th specific address information, that is, no response information is returned to the master device, and the master device receives the timeout, thereby Determine that all slave devices have been authenticated.
在一些实施例中,并行总线还可为CAN(Controller Area Network,控制器局域网络)总线等,使能信号接口还可为其它类型的接口,本公开对此不作限制。In some embodiments, the parallel bus may also be a CAN (Controller Area Network) bus or the like. The enable signal interface may also be other types of interfaces, which is not limited in this disclosure.
参见图9,相应的,本公开实施例还提供一种设备认证装置,应用于主设备。该装置900包括:Referring to FIG. 9 , correspondingly, an embodiment of the present disclosure further provides a device authentication apparatus, which is applied to a master device. The
认证使能信号发送模块901,被配置为向所述第一目标从设备发送认证使能信号,以使所述第一目标从设备将自己的标识信息从第一标识信息变更为第二标识信息;The authentication enable
第一标识信息发送模块902,被配置为根据所述第二标识信息,向所述第一目标从设备发送第一特定标识信息,以使所述第一目标从设备将自己的标识信息从第二标识信息变更为所述第一特定标识信息。The first identifier
在一个实施例中,装置900还包括:In one embodiment, the
第一确认信息发送模块903,被配置为根据所述第一特定标识信息,向所述第一目标从设备发送确认信息;The first confirmation
确定模块904,被配置为在接收到所述第一目标从设备发送的响应信息时,确定所述第一目标从设备的标识信息已变更为所述第一特定标识信息。The determining
在一个实施例中,装置900还包括:In one embodiment, the
第二标识信息发送模块905,被配置为根据所述第二标识信息,发送第二特定标识信息,以使接收到所述第二特定标识信息的第二目标从设备将自己的标识信息从第二标识信息变更为所述第二特定标识信息;The second identifier
其中,所述第二目标从设备为在接收所述第二特定标识信息之前,根据所述第一目标设备发送的认证使能信号,将自己的标识信息从第一标识信息变更为了第二标识信息的从设备。The second target slave device changes the identity information of the user from the first identifier information to the second identifier according to the authentication enable signal sent by the first target device before receiving the second specific identifier information. Information from the device.
在一个实施例中,所述主设备通过第一使能信号接口与所述第一目标从设备连接; In one embodiment, the master device is connected to the first target slave device through a first enable signal interface;
认证使能信号发送模块901,被配置为通过所述第一使能信号接口,向与所述第一目标从设备发送认证使能信号。The authentication enable
在一个实施例中,所述主设备还通过并行总线与所述第一目标从设备连接;In one embodiment, the master device is further connected to the first target slave device through a parallel bus;
第一标识信息发送模块902,被配置为根据所述第二标识信息,通过所述并行总线,向所述第一目标从设备发送所述第一特定标识信息。The first identifier
在一个实施例中,所述主设备通过所述并行总线与所述第二目标从设备连接;In one embodiment, the master device is connected to the second target slave device through the parallel bus;
第二标识信息发送模块905,被配置为根据所述第二标识信息,通过所述并行总线,向所述第一目标从设备发送所述第二特定标识信息。The second identifier
在一个实施例中,装置900还包括:In one embodiment, the
第三特定标识信息发送模块906,被配置为按照第一预设时间间隔,根据所述第二标识信息,发送第三特定标识信息;以及The third specific identifier
第二确认信息发送模块907,被配置为按照第二预设时间间隔,根据所述第三特征标识信息,发送确认信息;The second confirmation
结束确认模块908,被配置为当发送所述确认信息后,超过预设时间,未接收到响应信息,则认证结束。The
在一个实施例中,装置900还包括:In one embodiment, the
识别信息发送模块909,被配置为向所述第一目标从设备发送识别信息;The identification
设备ID接收模块910,被配置为接收所述第一目标从设备返回的设备ID;The device
合法性确定模块911,被配置为根据设备ID确定所述第一目标从设备是否为合法设备。The
参见图10,相应的本公开实施例还提供一种设备认证装置,应用于从设备,装置1000包括:
Referring to FIG. 10, the corresponding embodiment of the present disclosure further provides a device authentication apparatus, which is applied to a slave device, and the
第一变更模块1001,被配置为接收到主设备或其它从设备发送的认证使能信号,则将自己的标识信息从第一标识信息变更为第二标识信息;The
第二变更模块1002,被配置为接收到主设备发送的特定标识信息,则将自己的标识信息从第二标识信息变更为所述特定标识信息。The
在一个实施例中,装置1000还包括:In one embodiment, the
响应信息发送模块1003,被配置为接收到主设备发送的确认信息,则发送响应信息。The response
在一个实施例中,所述从设备通过使能信号接口与所述主设备或其它从设备连接,以通过所述使能信号接口接收所述主设备或其它从设备发送的认证使能信号。In one embodiment, the slave device is coupled to the master device or other slave device via an enable signal interface to receive an authentication enable signal transmitted by the master device or other slave device via the enable signal interface.
在一个实施例中,所述从设备通过并行总线与所述主设备连接,以通过所述并行总线接收所述主设备发送的特定标识信息。In one embodiment, the slave device is connected to the master device via a parallel bus to receive specific identification information transmitted by the master device over the parallel bus.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。With regard to the apparatus in the above embodiments, the specific manner in which the respective modules perform the operations has been described in detail in the embodiment relating to the method, and will not be explained in detail herein.
图11是根据一示例性实施例示出的一种用于设备认证方法的装置1100的框图,该装置1100可以是电子设备,上述主设备可为电子设备的主板或CPU。如图所示,该装置1100可以包括:处理器1101,存储器1102,多媒体组件1103,输入/输出(I/O)接口1104,以及通信组件1105。FIG. 11 is a block diagram of an
其中,处理器1101用于控制该装置1100的整体操作,以完成上述应用于主设备的设备认证方法中的全部或部分步骤。存储器1102用于存储操作系统,各种类型的数据以支持在该装置1100的操作,这些数据的例如可以包括用于在该装置1100上操作的任何应用程序或方法的指令,以及应用程序相关的数据。该存储器1102可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,例如静态随机存取存储器(Static Random Access Memory,简称SRAM),电可擦除可编程只读存储器(Electrically Erasable
Programmable Read-Only Memory,简称EEPROM),可擦除可编程只读存储器(Erasable Programmable Read-Only Memory,简称EPROM),可编程只读存储器(Programmable Read-Only Memory,简称PROM),只读存储器(Read-Only Memory,简称ROM),磁存储器,快闪存储器,磁盘或光盘。The
多媒体组件1103可以包括屏幕和音频组件。其中屏幕例如可以是触摸屏,音频组件用于输出和/或输入音频信号。例如,音频组件可以包括一个麦克风,麦克风用于接收外部音频信号。所接收的音频信号可以被进一步存储在存储器1102或通过通信组件1105发送。音频组件还包括至少一个扬声器,用于输出音频信号。I/O接口1104为处理器1101和其他接口模块之间提供接口,上述其他接口模块可以是键盘,鼠标,按钮等。这些按钮可以是虚拟按钮或者实体按钮。通信组件1105用于该装置1100与其他设备之间进行有线或无线通信。无线通信,例如Wi-Fi,蓝牙,近场通信(Near Field Communication,简称NFC),2G、3G或4G,或它们中的一种或几种的组合,因此相应的该通信组件1105可以包括:Wi-Fi模块,蓝牙模块,NFC模块。The
在一示例性实施例中,装置1100可以被一个或多个应用专用集成电路(Application Specific Integrated Circuit,简称ASIC)、数字信号处理器(Digital Signal Processor,简称DSP)、数字信号处理设备(Digital Signal Processing Device,简称DSPD)、可编程逻辑器件(Programmable Logic Device,简称PLD)、现场可编程门阵列(Field Programmable Gate Array,简称FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述的应用于主设备的设备认证方法。In an exemplary embodiment, the
在另一示例性实施例中,还提供了一种计算机程序产品,所述计算机程序产品包含能够由可编程的装置执行的计算机程序,所述计算机程序具有当由所述可编程的装置执行时用于执行上述应用于主设备的设备认证方法的 代码部分。In another exemplary embodiment, there is also provided a computer program product comprising a computer program executable by a programmable device, the computer program having when executed by the programmable device For performing the above device authentication method applied to the master device Code section.
在另一示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器1102,上述指令可由装置1100的处理器1101执行以完成上述的应用于主设备的设备认证方法。示例地,该非临时性计算机可读存储介质可以是ROM(read-only memory,只读存储器)、随机存取存储器(Random Access Memory,简称RAM)、CD-ROM(Compact disc read-only memory,光盘只读存储器)、磁带、软盘和光数据存储设备等。In another exemplary embodiment, there is also provided a non-transitory computer readable storage medium comprising instructions, such as a
在一示例性实施例中,从设备可以被一个或多个应用专用集成电路(Application Specific Integrated Circuit,简称ASIC)、数字信号处理器(Digital Signal Processor,简称DSP)、数字信号处理设备(Digital Signal Processing Device,简称DSPD)、可编程逻辑器件(Programmable Logic Device,简称PLD)、现场可编程门阵列(Field Programmable Gate Array,简称FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述的应用于主从设备的设备认证方法。In an exemplary embodiment, the slave device may be configured by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), and digital signal processing devices (Digital Signal Processors). Processing Device (DSPD), Programmable Logic Device (PLD), Field Programmable Gate Array (FPGA), controller, microcontroller, microprocessor or other electronic components And for performing the above device authentication method applied to the master and slave devices.
在另一示例性实施例中,还提供了一种计算机程序产品,所述计算机程序产品包含能够由可编程的装置执行的计算机程序,所述计算机程序具有当由所述可编程的装置执行时用于执行上述应用于从设备的设备认证方法的代码部分。In another exemplary embodiment, there is also provided a computer program product comprising a computer program executable by a programmable device, the computer program having when executed by the programmable device A code portion for performing the above-described device authentication method applied to a slave device.
在另一示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器,上述指令可由从设备的处理器执行以完成上述的应用于从设备的设备认证方法。示例地,该非临时性计算机可读存储介质可以是ROM、随机存取存储器(Random Access Memory,简称RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In another exemplary embodiment, there is also provided a non-transitory computer readable storage medium comprising instructions, such as a memory comprising instructions executable by a processor of a slave device to perform the above-described application to a slave device Device authentication method. By way of example, the non-transitory computer readable storage medium can be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.
流程图中或在本发明的实施例中以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的 步骤的可执行指令的代码的模块、片段或部分,并且本发明实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所述技术领域的技术人员所理解。Any process or method description in the flowcharts or otherwise described in the embodiments of the invention may be understood to include the inclusion of one or more elements for implementing a particular logical function or process. A module, segment or portion of code of an executable instruction of a step, and the scope of the embodiments of the invention includes additional implementations, which may not be in the order shown or discussed, including in a substantially simultaneous manner depending on the function involved or The functions are performed in the reverse order, which should be understood by those skilled in the art to which the embodiments of the invention are.
本领域技术人员在考虑说明书及实践本发明后,将容易想到本发明的其它实施方案。本申请旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本发明未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明的真正范围和精神由下面的权利要求指出。Other embodiments of the invention will be apparent to those skilled in the <RTIgt; The present application is intended to cover any variations, uses, or adaptations of the present invention, which are in accordance with the general principles of the present invention and include common general knowledge or conventional technical means in the art that are not disclosed in the present invention. . The specification and examples are to be considered as illustrative only,
应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求来限制。 It is to be understood that the invention is not limited to the details of the details of The scope of the invention is limited only by the appended claims.
Claims (24)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2016/111852 WO2018112942A1 (en) | 2016-12-23 | 2016-12-23 | Device authentication method, apparatus, electronic device and slave device |
| CN201680002974.0A CN106796633B (en) | 2016-12-23 | 2016-12-23 | Equipment authentication method, device, electronic equipment and from equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2016/111852 WO2018112942A1 (en) | 2016-12-23 | 2016-12-23 | Device authentication method, apparatus, electronic device and slave device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2018112942A1 true WO2018112942A1 (en) | 2018-06-28 |
Family
ID=58952280
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2016/111852 Ceased WO2018112942A1 (en) | 2016-12-23 | 2016-12-23 | Device authentication method, apparatus, electronic device and slave device |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN106796633B (en) |
| WO (1) | WO2018112942A1 (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111147602A (en) * | 2019-12-31 | 2020-05-12 | 湖南中联重科智能技术有限公司 | Networking method and networking device for master vehicle and slave vehicle |
| CN111585794A (en) * | 2020-04-20 | 2020-08-25 | 南京南瑞继保电气有限公司 | Communication method, device and system based on acquisition board card and storage medium |
| CN114285692A (en) * | 2021-12-22 | 2022-04-05 | 广州极飞科技股份有限公司 | Communication control system, identity determination method, allocation method and device |
| US11394608B2 (en) * | 2018-09-28 | 2022-07-19 | Huawei Technologies Co., Ltd. | Speaker interaction method, speaker, and speaker system |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2020172802A1 (en) * | 2019-02-26 | 2020-09-03 | 深圳配天智能技术研究院有限公司 | Master-slave device communication system and method |
| CN112671763B (en) * | 2020-12-23 | 2022-08-30 | 深圳金信诺高新技术股份有限公司 | Data synchronization method and device in networking environment, computer equipment and storage medium |
| CN116996341B (en) * | 2023-09-26 | 2023-12-19 | 深圳市顾美科技有限公司 | Device management method, device, terminal device and storage medium |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101039132A (en) * | 2006-03-14 | 2007-09-19 | 三星电子株式会社 | Method of distributing gid in PLC network, method of receiving gid in PLC network, apparatus for authorization in PLC network, and PLC device |
| CN101572606A (en) * | 2009-06-12 | 2009-11-04 | 阿里巴巴集团控股有限公司 | Method for sending authentication request message in social network and device thereof |
| CN102866565A (en) * | 2011-07-05 | 2013-01-09 | 精工爱普生株式会社 | Projector and method for controlling the projector |
| CN103677193A (en) * | 2012-09-07 | 2014-03-26 | 苹果公司 | Cascading power for accessories |
| US9268917B1 (en) * | 2013-08-30 | 2016-02-23 | Ca, Inc. | Method and system for managing identity changes to shared accounts |
| US20160119320A1 (en) * | 2014-10-23 | 2016-04-28 | Aislelabs Inc. | Method and system for secure deployment and use of bluetooth low energy beacons and other network devices |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070076502A1 (en) * | 2005-09-30 | 2007-04-05 | Pyeon Hong B | Daisy chain cascading devices |
| CN102571708B (en) * | 2010-12-27 | 2015-08-26 | 联想(北京)有限公司 | Safety certifying method, portable terminal device and portable mobile equipment |
-
2016
- 2016-12-23 WO PCT/CN2016/111852 patent/WO2018112942A1/en not_active Ceased
- 2016-12-23 CN CN201680002974.0A patent/CN106796633B/en active Active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101039132A (en) * | 2006-03-14 | 2007-09-19 | 三星电子株式会社 | Method of distributing gid in PLC network, method of receiving gid in PLC network, apparatus for authorization in PLC network, and PLC device |
| CN101572606A (en) * | 2009-06-12 | 2009-11-04 | 阿里巴巴集团控股有限公司 | Method for sending authentication request message in social network and device thereof |
| CN102866565A (en) * | 2011-07-05 | 2013-01-09 | 精工爱普生株式会社 | Projector and method for controlling the projector |
| CN103677193A (en) * | 2012-09-07 | 2014-03-26 | 苹果公司 | Cascading power for accessories |
| US9268917B1 (en) * | 2013-08-30 | 2016-02-23 | Ca, Inc. | Method and system for managing identity changes to shared accounts |
| US20160119320A1 (en) * | 2014-10-23 | 2016-04-28 | Aislelabs Inc. | Method and system for secure deployment and use of bluetooth low energy beacons and other network devices |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US11394608B2 (en) * | 2018-09-28 | 2022-07-19 | Huawei Technologies Co., Ltd. | Speaker interaction method, speaker, and speaker system |
| CN111147602A (en) * | 2019-12-31 | 2020-05-12 | 湖南中联重科智能技术有限公司 | Networking method and networking device for master vehicle and slave vehicle |
| CN111147602B (en) * | 2019-12-31 | 2022-06-14 | 湖南中联重科智能技术有限公司 | Networking method and networking device for master vehicle and slave vehicle |
| CN111585794A (en) * | 2020-04-20 | 2020-08-25 | 南京南瑞继保电气有限公司 | Communication method, device and system based on acquisition board card and storage medium |
| CN114285692A (en) * | 2021-12-22 | 2022-04-05 | 广州极飞科技股份有限公司 | Communication control system, identity determination method, allocation method and device |
| CN114285692B (en) * | 2021-12-22 | 2023-09-01 | 广州极飞科技股份有限公司 | Communication control system, identity determination method, distribution method and device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106796633A (en) | 2017-05-31 |
| CN106796633B (en) | 2019-09-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2018112942A1 (en) | Device authentication method, apparatus, electronic device and slave device | |
| US10977057B2 (en) | Electronic apparatus capable of collectively managing different firmware codes and operation method thereof | |
| JP5269949B2 (en) | Method and system for authenticating accessories | |
| CN102483728B (en) | Device-dependent selection between modes for asymmetric serial protocols | |
| CN102983970B (en) | Portable media device | |
| EP3281141B1 (en) | Cloud-based cross-device digital pen pairing | |
| CN103221962B (en) | Peripheral authentication | |
| EP3148225A1 (en) | Bluetooth connection-based audio playback method and apparatus | |
| JP2017523509A (en) | Reversible connector for accessory devices | |
| CN105740718B (en) | Electronic system, electronic device and access authentication method of electronic device | |
| CN107926075A (en) | Systems and methods supporting data communication in heterogeneous environments | |
| KR20200137302A (en) | Electronic device for performing discovery device and method thereof | |
| JP6483398B2 (en) | Terminal authentication system for vehicle network connection and authentication method thereof | |
| US20160253273A1 (en) | Hub, operation system, and control method thereof | |
| WO2016150191A1 (en) | Data sharing method and device | |
| US20160077986A1 (en) | Electronic apparatus providing real-time switching and sharing of usb electronic devices among hosts | |
| US9912578B2 (en) | Image communication apparatus, control method for the same, and computer-readable storage medium | |
| CN105207916B (en) | Routing device and method for associating equipment connected by routing device | |
| KR20210150174A (en) | Electronic device using blockchain and a method thereof | |
| CN106663069B (en) | Side channel access over universal serial bus stream | |
| CN105207917B (en) | Routing device and method for associating equipment connected by routing device | |
| JP2015184861A (en) | Network system, communication method, server, terminal, and program | |
| JP5201583B2 (en) | Information processing system, information processing apparatus, information processing method, and startup program | |
| CN119494091A (en) | Function realization method, storage device and computer readable storage medium | |
| CN121264174A (en) | Authorize controller devices with registered interest to control controllable devices. |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16924695 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 15/10/2019) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 16924695 Country of ref document: EP Kind code of ref document: A1 |