CN106796633A - Equipment authentication method, device, electronic equipment and slave unit - Google Patents

Equipment authentication method, device, electronic equipment and slave unit Download PDF

Info

Publication number
CN106796633A
CN106796633A CN201680002974.0A CN201680002974A CN106796633A CN 106796633 A CN106796633 A CN 106796633A CN 201680002974 A CN201680002974 A CN 201680002974A CN 106796633 A CN106796633 A CN 106796633A
Authority
CN
China
Prior art keywords
identification information
slave unit
certification
main equipment
equipment
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.)
Granted
Application number
CN201680002974.0A
Other languages
Chinese (zh)
Other versions
CN106796633B (en
Inventor
张云鹏
付忠鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Cloudminds Inc
Original Assignee
Cloudminds Inc
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Cloudminds Inc filed Critical Cloudminds Inc
Priority to PCT/CN2016/111852 priority Critical patent/WO2018112942A1/en
Publication of CN106796633A publication Critical patent/CN106796633A/en
Application granted granted Critical
Publication of CN106796633B publication Critical patent/CN106796633B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/44Program or device authentication
    • G06F21/445Program or device authentication by mutual authentication, e.g. between devices or programs

Abstract

The invention discloses a kind of equipment authentication method, device, electronic equipment and slave unit, methods described includes:Certification is sent to first object slave unit and enable signal, so that the identification information of oneself is changed to the second identification information by the first object slave unit from the first identification information;According to second identification information, the first specific identification information is sent to the first object slave unit, so that the identification information of oneself is changed to first specific identification information by the first object slave unit from the second identification information.The disclosure can realize that pair slave unit being connected with main equipment carries out efficient certification, and main equipment is to be capable of achieving to be authenticated cascade slave unit by a connecting interface, and using less number of pins, authentication efficiency is high.

Description

Equipment authentication method, device, electronic equipment and slave unit
Technical field
This disclosure relates to areas of information technology, more particularly to a kind of equipment authentication method, device, electronic equipment and from setting It is standby.
Background technology
At present, the concept of the cascadeization of electronic equipment reaches its maturity.The cascade of electronic equipment, i.e. electronic device exterior connect Multiple equipment is connect, constructive superposition is together.For example, for mobile phone, can by the USB of mobile phone (USB, Universal Serial Bus) interface, it is connected with external cell back splint, loudspeaker etc. is reconnected above battery back splint, realize The cascade of equipment.
Additionally, in industrial circle, the application of cascadeization is also more and more, for example, a control mainboard connects with multiple daughter boards Connect.
The cascade of equipment, in physics realization, can be by connecting line, the first-class realization of connection.But in order to ensure cascade from The normal work of equipment, main equipment needs to be authenticated each slave unit (or being identification, authentication or registration).
Main equipment is to the certification of slave unit, it is necessary to reference to slave unit and the connected mode of main equipment.In correlation technique, it is necessary to Each slave unit is connected with the connector of main equipment, and connected slave unit is authenticated respectively by main equipment.Thus, Make the size of the connector that the cascade of main device used big and high cost.However, being led as such as consumer electronics Domain, main equipment needs to accomplish light small, it is portable on the premise of, cascading used connector must be sized limitation, thus, correlation Authentication mechanism existing defects in technology.
The content of the invention
To overcome problem present in correlation technique, the disclosure provide a kind of equipment authentication method, device, electronic equipment and Slave unit.
A kind of first aspect, there is provided equipment authentication method, is applied to main equipment, and methods described includes:
Certification being sent to first object slave unit and enabling signal, the certification enables first object described in signal designation from setting It is standby that the identification information of oneself is changed to the second identification information from the first identification information;
According to second identification information, the first specific identification information is sent to the first object slave unit, described the It is described that one specific identification information indicates the first object slave unit that the identification information of oneself is changed to from the second identification information First specific identification information.
A kind of second aspect, there is provided equipment authentication method, is applied to slave unit, and methods described includes:
The certification enable signal that main equipment or other slave units send is received, then by the identification information of oneself from the first mark Knowledge information is changed to the second identification information;
The specific identification information of main equipment transmission is received, then the identification information of oneself is changed to from the second identification information The specific identification information.
A kind of third aspect, there is provided device authentication device, is applied to main equipment, and described device includes:
Certification enables signal transmitting module, is configured as sending certification enable signal, institute to the first object slave unit The identification information of oneself is changed to second by first object slave unit described in stating certification enable signal designation from the first identification information Identification information;
First identification information sending module, is configured as according to second identification information, to the first object from setting Preparation send the first specific identification information, first specific identification information to indicate the first object slave unit by the mark of oneself Information is changed to first specific identification information from the second identification information.
A kind of fourth aspect, there is provided device authentication device, is applied to slave unit, and described device includes:
First change module, is configured as receiving the certification enable signal that main equipment or other slave units send, then will The identification information of oneself is changed to the second identification information from the first identification information;
Second change module, is configured as receiving the specific identification information of main equipment transmission, then believe the mark of oneself Breath is changed to the specific identification information from the second identification information.
5th aspect, there is provided a kind of electronic equipment, including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor, is configured as sending certification enable signal to first object slave unit, and the certification is enabled The identification information of oneself is changed to the second identification information by first object slave unit from the first identification information described in signal designation;Root According to second identification information, the first specific identification information, first specific identifier are sent to the first object slave unit Information indicates the first object slave unit that the identification information of oneself is changed into the described first specific mark from the second identification information Knowledge information.
A kind of 6th aspect, there is provided computer program product, the computer program product is included can be by programmable The computer program that device is performed, the computer program has above-mentioned for performing when being performed by the programmable device It is applied to the code section of the equipment authentication method of main equipment.
7th aspect, there is provided a kind of non-transitorycomputer readable storage medium, the non-transitory computer-readable is deposited Storage media includes one or more programs, and one or more of programs are recognized for performing the above-mentioned equipment for being applied to main equipment Card method.
Eighth aspect, there is provided a kind of electronic equipment, it is characterised in that including:
The non-transitorycomputer readable storage medium of above-mentioned 7th aspect;And
One or more processor, for performing the program in the non-transitorycomputer readable storage medium.
A kind of 9th aspect, there is provided slave unit, including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor, is configured as receiving the certification enable signal that main equipment or other slave units send, then The identification information of oneself is changed to the second identification information from the first identification information;Receive the specific identifier letter of main equipment transmission Breath, then be changed to the specific identification information by the identification information of oneself from the second identification information.
A kind of tenth aspect, there is provided computer program product, the computer program product is included can be by programmable The computer program that device is performed, the computer program has above-mentioned for performing when being performed by the programmable device It is applied to the code section of the equipment authentication method of slave unit.
Tenth on the one hand, there is provided a kind of non-transitorycomputer readable storage medium, the non-transitory computer-readable Storage medium includes one or more programs, and one or more of programs are used to perform the above-mentioned equipment for being applied to slave unit Authentication method.
A kind of 12nd aspect, there is provided slave unit, including:
The non-transitorycomputer readable storage medium of above-mentioned tenth one side;And
One or more processor, for performing the program in the non-transitorycomputer readable storage medium.
The disclosure can realize that pair slave unit being connected with main equipment carries out efficient certification, and main equipment by a connection Interface is to be capable of achieving to be authenticated cascade slave unit, and using less number of pins, authentication efficiency is high.
Other feature and advantage of the disclosure will be described in detail in subsequent specific embodiment part.
Brief description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows the implementation for meeting the disclosure Example, and it is used to explain the principle of the disclosure together with specification.
Fig. 1 is the main equipment of the embodiment of the disclosure one and the connection diagram of slave unit;
Fig. 2 is the schematic flow sheet of the equipment authentication method of the embodiment of the disclosure one;
Fig. 3 is that main equipment passes through the form schematic diagram that parallel bus sends information in the embodiment of the disclosure one;
Fig. 4 is that the identifying procedure of the first object slave unit that main equipment pair is connected with oneself in the embodiment of the disclosure one is illustrated Figure;
Fig. 5 is the identifying procedure schematic diagram to the second target slave unit in the embodiment of the disclosure one;
Fig. 6 is the identifying procedure schematic diagram to the n-th target slave unit in the embodiment of the disclosure one;
Fig. 7 be in the embodiment of the disclosure one main equipment determine slave unit whether the schematic flow sheet that certification is completed;
Fig. 8 is that the main equipment of the embodiment of the disclosure one passes through the schematic diagram that I2C buses and GPIO are connected with slave unit;
Fig. 9 is the block diagram of the device authentication device of the embodiment of the disclosure one;
Figure 10 is the block diagram of the device authentication device of another embodiment of the disclosure;
Figure 11 is a kind of block diagram of the device for equipment authentication method according to an exemplary embodiment.
Specific embodiment
It is described in detail below in conjunction with accompanying drawing specific embodiment of this disclosure.It should be appreciated that this place is retouched The specific embodiment stated is merely to illustrate and explains the disclosure, is not limited to the disclosure.
It is the main equipment of the embodiment of the disclosure one and the connection diagram of slave unit referring to Fig. 1.In an implementation of the disclosure In example, main equipment 100 is control mainboard, and slave unit 200 is daughter board.It is another be example in, main equipment 100 is for electronic equipment Mainboard (CPU, Central Processing Unit), slave unit 200 is the functional module being connected with electronic equipment, for example, storing Energy module, projection module, taking module etc..
In an embodiment of the disclosure, main equipment 100 is authenticated to slave unit 200, is that its distribution is unique Identification information so that main equipment 100 and slave unit 200 can correctly carry out data, the interaction of instruction.
Referring to Fig. 1, main equipment 100 includes the first connecting interface.Slave unit 200 includes the second connecting interface.First connection Interface and the second connecting interface can be various board to board connectors (B2B connector, Board to Board Connector), the connector of ZIF (ZIF, Zero Insert Force) connector or other forms.Thus, pass through First connecting interface and the second connecting interface are connected, and are capable of achieving the connection of main equipment 100 and slave unit 200.
Connection between slave unit 200 and other slave units, also can be by above-mentioned board to board connector (B2B Connector, Board to Board Connector) or ZIF (ZIF, Zero Insert Force) connector etc. It is attached.
In an embodiment of the disclosure, at least include in the pin of connector:Parallel bus pin and enable signal draw Pin.Parallel bus pin is used to realize the communication of main equipment and each slave unit.In one embodiment, each slave unit and Row bus pin is connected with the parallel bus pin of main equipment.Enabling signal pins is used for the communication of equipment room two-by-two, for example, Main equipment and slave unit 1, slave unit 1 and slave unit 2, the communication between slave unit 2 and slave unit 3 ....
Thus, the main equipment in the embodiment of the present disclosure need to only include a connecting interface, you can realize and multiple slave units Connection.
In certain embodiments, main equipment can also wirelessly be connected with slave unit, for example, NFC (Near Field Communication, near-field communication), bluetooth, WIFI (Wireless-Fidelity, Wireless Fidelity) etc..
Hereinafter, will be described in detail the process that the main equipment of the embodiment of the present disclosure is authenticated to slave unit.
In embodiment of the disclosure, each slave unit has the identification information of three types:First identification information, second Identification information and specific identification information.Wherein, slave unit is not authenticated, and when being not received by certification enable signal, mark letter It is the first identification information to cease;Slave unit is not authenticated, but when receiving certification and enabling signal, can be by the identification information of oneself from the One identification information is changed to the second identification information;After slave unit is certified, the information of oneself is changed to from the second identification information Specific identification information.
First identification information, the second identification information and specific identification information can be address information, for example, I2C (Inter- Integrated Circuit, I2C bus) address information, IP address (Internet Protocol Address, Internet protocol Address) information etc..First identification information, the second identification information and specific identification information can also be the binary-coded character of preset length String etc., the information for realizing mark.
In an embodiment of the disclosure, the first identification information is identical for each slave unit;Second mark letter Breath is identical for each slave unit.And the specific identification information of each slave unit is differed, main equipment can be to every The slave unit of individual certification distributes different specific identification informations.If for example, the parallel of use that communicated between main equipment and slave unit Bus is I2C (Inter-Integrated Circuit) bus, then identification information can be represented using 7 bits, first Identification information can be set to 0000001, and the second identification information can be set to 0000010, and the specific identification information of each slave unit can It is unique selected one from the binary number in addition to 0000001 and 0000010.
Thus, after complete to slave unit certification, each slave unit has different specific identification informations, and main equipment can basis Specific identification information, is controlled instruction or the transmission of data, and also dependent on specific identification information, the data that differentiation is received are From which slave unit.
It is the schematic flow sheet of the equipment authentication method of the embodiment of the disclosure one referring to Fig. 2.
In step 201, main equipment sends certification and enables signal to first object slave unit, and certification enables signal designation the The identification information of oneself is changed to the second identification information by one target slave unit from the first identification information.
In an embodiment of the disclosure, when detecting first object slave unit and being connected with main equipment, or receive and recognize During card sign on etc., main equipment starts to be authenticated connected first object slave unit.
In step 202., main equipment sends the first specific identifier and believes according to the second identification information to first object slave unit Breath, the first specific identification information indicates first object slave unit that the identification information of oneself is changed into first from the second identification information Specific identification information.
In an embodiment of the disclosure, after main equipment sends certification enable signal, Preset Time is spaced, i.e., according to second Identification information sends the first specific identification information.Because first object slave unit is by the change of the first identification information for the second mark Knowledge information, therefore, first object slave unit can receive the first specific identification information, and the identification information of oneself is marked from second Knowledge information is changed to the first specific identification information, completes certification.
In an embodiment of the disclosure, after main equipment sends the first specific identification information, Preset Time is spaced, then basis First specific identification information, confirmation is sent to first object slave unit;When the sound for receiving the transmission of first object slave unit When answering information, determine that the identification information of first object slave unit has been changed to the first specific identification information, i.e. first object from setting Standby certification success.
In an embodiment of the disclosure, in order to save between the connecting interface of main equipment, slave unit by the way of cascade, After the first object slave unit certification being connected with main equipment, first object slave unit is to connected second target slave unit Send certification and enable signal, so that main equipment can be authenticated to the second target slave unit.Second target slave unit is received recognizes Card enables signal, then the identification information of oneself is changed into the second identification information from the first identification information.When main equipment is according to Two identification informations, when sending the second specific identification information (being different from the specific identification information of the first specific identification information), due to The identification information of the second target slave unit is the second identification information, then it can receive the second specific identification information, and will be from Oneself identification information is changed to the second specific identification information, realizes certification.
Likewise, main equipment can be spaced Preset Time, by the second specific identification information, confirmation is sent, with basis Whether response message is received, determine whether the certification of the second target slave unit succeeds.
It should be understood that when needing pair the 3rd target slave unit being connected with the second target slave unit to be authenticated, with second The verification process of target slave unit is similar, will send certification to the 3rd target slave unit from the second target slave unit and enable signal, Main equipment is still performed according to the second identification information, the step of send specific identification information, you can realized to the 3rd target from setting Standby certification.
In an embodiment of the disclosure, main equipment, according to the second identification information, sends according to the first prefixed time interval 3rd specific identification information;And according to the second prefixed time interval, according to third feature identification information, send confirmation; After the confirmation is sent, more than Preset Time, response message is not received, then certification terminates, i.e., all of slave unit Certification is completed.
It should be understood that in embodiment of the disclosure, if by wireless connection between main equipment and slave unit, main equipment sends Certification enables signal and specific identification information, and slave unit sends certification enable signal etc. and can wirelessly send. If being connected by wired mode, following embodiments will be described in more detail.
The equipment authentication method of the embodiment of the present disclosure, main equipment can realize that pair slave unit being connected with main equipment is carried out efficiently Certification, and main equipment is to be capable of achieving to be authenticated cascade slave unit by connecting interface, and authentication efficiency is high.
Referring to Fig. 3, in an embodiment of the disclosure, main equipment is connected with each slave unit respectively by parallel bus, And main equipment is connected by enabling signaling interface with a slave unit, connected by enabling signaling interface between remaining slave unit.
When main equipment sends information by parallel bus, information format includes:Identification information, communication type and data portion Divide, or information format includes:Identification information and communication type.
Wherein, identification information is the first identification information, the second identification information or the specific identifier of slave unit described above Information.Identification information, the slave unit of the information that main equipment is sent by parallel bus can be received for limiting.I.e. main equipment leads to When crossing parallel bus transmission information, the identification information identical slave unit in the information that identification information sends with main equipment can connect Receive the information of main equipment transmission.
Communication type includes reading or writing, if communication type is to read, related data is sent to parallel bus by slave unit, with Main equipment is set to receive the related data of slave unit transmission.When communication type is to read, in the information format that main equipment sends Including address information and communication type.If communication type is to write, slave unit receives the data of the information that main equipment sends Partial data.
Referring to Fig. 4-Fig. 7, in an embodiment of the disclosure, the verification process of slave unit of the main equipment to cascading includes:
In step 401, main equipment is sent by enabling signal pins to the first object slave unit being connected with main equipment Certification enables signal.
In an embodiment of the disclosure, whole system original state when that is, all of slave unit is all not authenticated, owns The identification information of slave unit is the first identification information.Main equipment is proceeded by from connected first object slave unit to be recognized Card.
Main equipment can be low level signal, binary signal etc. by enable the certification that signal pins send to enable signal.
In one embodiment, main equipment can send certification and enables signal when having detected slave unit and being connected thereto, Or when certification instruction (for example, certification instruction of user input) is received, send certification and enable signal.
In step 402, first object slave unit receives certification and enables signal, then by identification information from the first mark letter Breath is changed to the second identification information.
In step 403, main equipment sends authentication information by parallel bus, and the identification information in authentication information is second Identification information, to write, data division includes the first specific identification information to communication type.First identification information, is that main equipment is The identification information of first object slave unit distribution.
Because the certification for only having first object slave unit to have received main equipment transmission enables information, then only first object Identification information is changed to the second identification information by slave unit, i.e., only the first slave unit is subjected to authentication information.
In an embodiment of the disclosure, after main equipment can enable signal certification is sent, interval Preset Time is to send Authentication information.
In step 404, after first object slave unit receives authentication information, the information to receiving is parsed, will The identification information of oneself is changed to the first specific identification information.
In step 405, main equipment sends confirmation by parallel bus, and the identification information that confirmation includes is First specific identification information, communication type is reading.
In an embodiment of the disclosure, confirmation is used to confirm whether the identification information of first object slave unit has become More the first specific identification information.The data form of confirmation can be the empty packet not comprising data.
In an embodiment of the disclosure, main equipment can be after authentication information be sent, and interval Preset Time is to send to confirm Information.
In a step 406, first object slave unit receives confirmation, then send response message to parallel bus.
In an embodiment of the disclosure, confirmation is for confirming whether first object slave unit has been completed mark The change of knowledge information.If first object slave unit completes identification information change, its identification information is believed for the first specific identifier Breath, the identification information with the confirmation that main equipment is sent by parallel bus is identical, therefore, first object slave unit can be received To confirmation.First object slave unit receives confirmation, then send response message by parallel bus.Main equipment is received To the response message that first object slave unit sends, it is determined that first object slave unit has completed mark change, to first from setting Standby certification success.
Referring to Fig. 5, in step 501, first object slave unit sends certification and enables signal to connected second mesh Mark slave unit.
In embodiment of the disclosure, after first object slave unit completes certification, open right by first object slave unit The verification process of the second target slave unit, i.e. first object slave unit are given by enabling certification pin transmission certification enable signal Second target slave unit of its connection.
In step 502, the second target slave unit receives certification and enables signal, then by identification information from the first mark letter Breath is changed to the second identification information.
In embodiment of the disclosure, after identification information is changed to the second identification information by the second target slave unit, repeat Step 403 is performed to step 406, to complete the certification of the second target slave unit, after the completion of the second target slave unit certification, its mark Knowledge is changed to the second specific identification information.
By that analogy, referring to Fig. 6, after the second target slave unit completes certification, sending certification to the 3rd target slave unit makes Energy signal, to start to be authenticated the 3rd target slave unit.After main equipment completes certification to n-th target slave unit, its ground Location is changed to the n-th specific identification information.
Referring to Fig. 7, last slave unit is that slave unit n sends certification enable signal, then received without follow-up slave unit. Main equipment sends authentication information by the second identification information, but now all slave units are complete registration, do not have slave unit Identification information be the second identification information, so the authentication information for carrying out autonomous device can be received without slave unit.Main equipment can lead to Cross the (n+1)th specific identification information and send confirmation, be now the (n+1)th specific identification information without slave unit identification information, i.e., The information of not responding to returns to main equipment, and main equipment receives time-out, so as to judge that all slave unit certifications are finished.
In an embodiment of the disclosure, in order to improve authentication efficiency, main equipment when being authenticated to slave unit, to from Whether the function or type of equipment are legal to be verified.
With reference to the verification process of above-described embodiment, main equipment can identify identification information from first in first object slave unit After information is changed to the second identification information, by the second identification information, identification information is sent.In one embodiment, identification letter Cease the type or function for determining slave unit.For main equipment, it can be supported and the device type that recognizes is to determine, and sets Standby type and device id (Identifying, mark) corresponding can be stored.Slave unit receives identification information, then by parallel Bus reverting equipment ID.After main equipment obtains the device id of slave unit, verify whether it is legal, that is, verify whether to support from setting It is standby, if legal, continue executing with above-mentioned steps 303 and its afterwards the step of;If illegal, flow terminates.
In embodiment of the disclosure, main equipment send identification information to be verified to slave unit the step of, Ke Yi Performed (after step 402) before step 403, can also performed after step 403, or, performed before step 401, this It is open that this is not restricted.If performing before step 403, in a manner mentioned above, by the second identification information, send and know Other information, identification information is that the slave unit of the second identification information receives i.e. reverting equipment ID after identification information.If step 403 it After perform, then identification information can be sent by specific identification information, identification information receives knowledge for the slave unit of specific identification information It is reverting equipment ID after other information.If being performed before step 401, main equipment can send identification by the first identification information Information, because the address of all of slave unit is all the first identification information, therefore, all slave units are main all by reverting equipment ID Equipment confirms whether slave unit is legal one by one.
In an embodiment of the disclosure, if slave unit is illegal, exportable prompt message, to point out user to remove not Legal slave unit, or change slave unit.
The slave unit authentication method of the embodiment of the present disclosure, main equipment can realize that pair slave unit being connected with main equipment carries out height The certification of effect, and be to be capable of achieving to be authenticated cascade slave unit by a connecting interface, using less number of pins, recognize Card efficiency high.
Referring to Fig. 8, in an embodiment of the disclosure, above-mentioned parallel bus is I2C buses, and identification information is I2C ground Location.It is GPIO (General Purpose Input Output, universal input/output) interface that certification enables signaling interface.
Original state, all of slave unit is not all certified, and I2C addresses are all the first identification information.Main equipment will be opened First slave unit of beginning certification, sends certification and enables signal GPIO low levels to slave unit 1 first, and slave unit 1 receives certification to be made The I2C addresses of oneself can be changed to the second identification information after signal GPIO low levels, main equipment is logical with the second identification information Cross I2C buses and send authentication information, type is to write, because the I2C addresses for now there was only slave unit 1 are the second identification information, its He remains as the first identification information in slave unit I2C addresses, so only slave unit 1 receives the authentication information that main equipment sends.Connect Slave unit of getting off 1 parses the authentication information for receiving, wherein after the certification of slave unit 1 can be distributed to comprising main equipment first The I2C addresses of oneself can be changed to the first particular address information by particular address information, slave unit.Main equipment next can be using the One particular address information sends confirmation, type to read, because the I2C addresses for now there was only slave unit 1 are for first specifically Location information, after slave unit 1 receives confirmation, can send response message to parallel bus, and main equipment can be received and come from The response message of slave unit 1, be to the I2C addresses after oneself I2C address changes and change so as to learn that slave unit 1 is completed First particular address information.Then certification success of the main equipment to slave unit 1.
Following main equipment will be authenticated to slave unit 2.Slave unit 1 send certification enable signal GPIO low levels to from Equipment 2, the I2C address changes of slave unit 2 are the mistake of the second identification information, ensuing process and main equipment certification slave unit 1 Cheng Xiangtong, is not repeating, and after certification, the I2C address changes of slave unit 2 are the second particular address information.
By that analogy, main equipment completes certification to last slave unit, and its I2C address change is the n-th particular address Information.
Slave unit n still may proceed to send certification enable signal GPIO low levels, but be received without follow-up slave unit.Master sets It is standby still authentication information to be sent by the second identification information, but now all slave units are complete registration, do not have slave unit I2C addresses are the second identification information, so can receive the log-on message for carrying out autonomous device without slave unit.Following main equipment meeting Confirmation is sent by the particular address information of I2C addresses (n+1)th, is now the (n+1)th particular address without slave unit I2C addresses Information, that is, do not respond to information and return to main equipment, and main equipment receives time-out, so as to judge that all slave unit certifications are finished.
In certain embodiments, parallel bus can also be CAN (Controller Area Network, controller LAN Network) bus etc., it can be also other types of interface to enable signaling interface, and the disclosure is not restricted to this.
Referring to Fig. 9, accordingly, the embodiment of the present disclosure also provides a kind of device authentication device, is applied to main equipment.The device 900 include:
Certification enables signal transmitting module 901, is configured as sending certification enable signal to the first object slave unit, So that the identification information of oneself is changed to the second identification information by the first object slave unit from the first identification information;
First identification information sending module 902, is configured as according to second identification information, to the first object from Equipment sends the first specific identification information, so that the first object slave unit is by the identification information of oneself from the second identification information It is changed to first specific identification information.
In one embodiment, device 900 also includes:
First confirmation sending module 903, is configured as according to first specific identification information, to first mesh Mark slave unit sends confirmation;
Determining module 904, is configured as, when the response message that the first object slave unit sends is received, determining institute The identification information for stating first object slave unit has been changed to first specific identification information.
In one embodiment, device 900 also includes:
Second identification information sending module 905, is configured as, according to second identification information, sending the second specific identifier Information, so that the second target slave unit for receiving second specific identification information identifies the identification information of oneself from second Information is changed to second specific identification information;
Wherein, the second target slave unit is before second specific identification information is received, according to described first The certification that target device sends enables signal, and the identification information of oneself is changed for the second identification information from the first identification information Slave unit.
In one embodiment, the main equipment is connected by the first enable signaling interface with the first object slave unit Connect;
Certification enables signal transmitting module 901, is configured to described first and enables signaling interface, to described first Target slave unit sends certification and enables signal.
In one embodiment, the main equipment is also connected by parallel bus with the first object slave unit;
First identification information sending module 902, is configured as according to second identification information, by described parallel total Line, first specific identification information is sent to the first object slave unit.
In one embodiment, the main equipment is connected by the parallel bus with the second target slave unit;
Second identification information sending module 905, is configured as according to second identification information, by described parallel total Line, second specific identification information is sent to the first object slave unit.
In one embodiment, device 900 also includes:
3rd specific identification information sending module 906, is configured as according to the first prefixed time interval, according to described second Identification information, sends the 3rd specific identification information;And
Second confirmation sending module 907, is configured as according to the second prefixed time interval, according to the third feature Identification information, sends confirmation;
Terminate to confirm module 908, after being configured as sending the confirmation, more than Preset Time, do not receive sound Information is answered, then certification terminates.
In one embodiment, device 900 also includes:
Identification information sending module 909, is configured as sending identification information to the first object slave unit;
Device id receiver module 910, is configured as receiving the device id that the first object slave unit is returned;
Legitimacy determining module 911, is configured as determining whether the first object slave unit is legal according to device id Equipment.
Referring to Figure 10, the corresponding embodiment of the present disclosure also provides a kind of device authentication device, is applied to slave unit, device 1000 include:
First change module 1001, is configured as receiving the certification enable signal that main equipment or other slave units send, The identification information of oneself is then changed to the second identification information from the first identification information;
Second change module 1002, is configured as receiving the specific identification information of main equipment transmission, then by the mark of oneself Knowledge information is changed to the specific identification information from the second identification information.
In one embodiment, device 1000 also includes:
Response message sending module 1003, is configured as receiving the confirmation of main equipment transmission, then send response letter Breath.
In one embodiment, the slave unit is connected by enabling signaling interface with the main equipment or other slave units Connect, the certification enable signal that the main equipment or other slave units send is received with by the enable signaling interface.
In one embodiment, the slave unit is connected by parallel bus with the main equipment, with by described parallel Bus receives the specific identification information that the main equipment sends.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant the method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Figure 11 is a kind of block diagram of the device 1100 for equipment authentication method according to an exemplary embodiment, should Device 1100 can be electronic equipment, and above-mentioned main equipment can be the mainboard or CPU of electronic equipment.As illustrated, the device 1100 Can include:Processor 1101, memory 1102, multimedia groupware 1103, input/output (I/O) interface 1104, and communication Component 1105.
Wherein, processor 1101 is used to control the integrated operation of the device 1100, to complete the above-mentioned main equipment that is applied to All or part of step in equipment authentication method.Memory 1102 is used for storage program area, and various types of data are propping up Hold the operation in the device 1100, any application journey that can for example include for being operated on the device 1100 of these data The instruction of sequence or method, and the related data of application program.The memory 1102 can be by any kind of volatibility or non- Volatile storage devices or combinations thereof realization, such as static RAM (Static Random Access Memory, abbreviation SRAM), Electrically Erasable Read Only Memory (Electrically Erasable Programmable Read-Only Memory, abbreviation EEPROM), Erasable Programmable Read Only Memory EPROM (Erasable Programmable Read-Only Memory, abbreviation EPROM), programmable read only memory (Programmable Read-Only Memory, letter Claim PROM), read-only storage (Read-Only Memory, abbreviation ROM), magnetic memory, flash memory, disk or CD.
Multimedia groupware 1103 can include screen and audio-frequency assembly.Wherein screen for example can be touch-screen, audio group Part is used to export and/or input audio signal.For example, audio-frequency assembly can include a microphone, microphone is used to receive outer Portion's audio signal.The audio signal for being received can be further stored in memory 1102 or be sent out by communication component 1105 Send.Audio-frequency assembly also includes at least one loudspeaker, for exports audio signal.I/O interfaces 1104 be processor 1101 and its There is provided interface between his interface module, above-mentioned other interface modules can be keyboard, mouse, button etc..These buttons can be Virtual push button or entity button.Communication component 1105 is used to carry out wired or wireless leading between the device 1100 and other equipment Letter.Radio communication, such as Wi-Fi, bluetooth, near-field communication (Near Field Communication, abbreviation NFC), 2G, 3G or 4G, or one or more in them combination, therefore the corresponding communication component 1105 can include:Wi-Fi module, bluetooth Module, NFC module.
In one exemplary embodiment, device 1100 can be by one or more application specific integrated circuits (Application Specific Integrated Circuit, abbreviation ASIC), digital signal processor (Digital Signal Processor, abbreviation DSP), digital signal processing appts (Digital Signal Processing Device, Abbreviation DSPD), PLD (Programmable Logic Device, abbreviation PLD), field programmable gate array (Field Programmable Gate Array, abbreviation FPGA), controller, microcontroller, microprocessor or other electronics unit Part is realized, for performing the above-mentioned equipment authentication method for being applied to main equipment.
In a further exemplary embodiment, a kind of computer program product, the computer program product bag are additionally provided Containing the computer program that can be performed by programmable device, the computer program has to work as to be held by the programmable device For performing the code section of the above-mentioned equipment authentication method for being applied to main equipment during row.
In a further exemplary embodiment, a kind of non-transitory computer-readable storage medium including instructing is additionally provided Matter, such as, including the memory 1102 for instructing, above-mentioned instruction can be performed above-mentioned to complete by the processor 1101 of device 1100 It is applied to the equipment authentication method of main equipment.Illustratively, the non-transitorycomputer readable storage medium can be ROM (read- Only memory, read-only storage), random access memory (Random Access Memory, abbreviation RAM), CD-ROM (Compact disc read-only memory, compact disc read-only memory), tape, floppy disk and optical data storage devices etc..
In one exemplary embodiment, slave unit can be by one or more application specific integrated circuits (Application Specific Integrated Circuit, abbreviation ASIC), digital signal processor (Digital Signal Processor, abbreviation DSP), digital signal processing appts (Digital Signal Processing Device, referred to as DSPD), PLD (Programmable Logic Device, abbreviation PLD), field programmable gate array (Field Programmable Gate Array, abbreviation FPGA), controller, microcontroller, microprocessor or other electronics unit Part is realized, for performing the above-mentioned equipment authentication method for being applied to master-slave equipment.
In a further exemplary embodiment, a kind of computer program product, the computer program product bag are additionally provided Containing the computer program that can be performed by programmable device, the computer program has to work as to be held by the programmable device For performing the code section of the above-mentioned equipment authentication method for being applied to slave unit during row.
In a further exemplary embodiment, a kind of non-transitory computer-readable storage medium including instructing is additionally provided Matter, such as, including the memory for instructing, above-mentioned instruction can be by the computing device of slave unit completing above-mentioned being applied to from setting Standby equipment authentication method.Illustratively, the non-transitorycomputer readable storage medium can be ROM, random access memory (Random Access Memory, abbreviation RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..
Any process described otherwise above or method description can be by flow chart or in an embodiment of the present invention Be interpreted as, expression include it is one or more for realizing specific logical function or process the step of executable instruction code Module, fragment or part, and the scope of embodiment of the present invention includes other realization, wherein can not by shown or The order of discussion, including function involved by basis by it is basic simultaneously in the way of or in the opposite order, carry out perform function, this should Those skilled in the art understand described in embodiments of the invention.
Those skilled in the art will readily occur to other embodiment party of the invention after specification and the practice present invention is considered Case.The application is intended to any modification of the invention, purposes or adaptations, these modifications, purposes or adaptability Change follows general principle of the invention and including undocumented common knowledge or usual skill in the art of the invention Art means.Description and embodiments are considered only as exemplary, and true scope and spirit of the invention are by following claim Point out.
It should be appreciated that the invention is not limited in the precision architecture being described above and be shown in the drawings, and And can without departing from the scope carry out various modifications and changes.The scope of the present invention is only limited by appended claim.

Claims (24)

1. a kind of equipment authentication method, is applied to main equipment, it is characterised in that methods described includes:
Certification being sent to first object slave unit and enabling signal, the certification enables first object slave unit described in signal designation will The identification information of oneself is changed to the second identification information from the first identification information;
According to second identification information, the first specific identification information is sent to the first object slave unit, described first is special Determining identification information indicates the first object slave unit that the identification information of oneself is changed into described first from the second identification information Specific identification information.
2. method according to claim 1, it is characterised in that methods described also includes:
According to first specific identification information, confirmation is sent to the first object slave unit;
When the response message that the first object slave unit sends is received, the mark letter of the first object slave unit is determined Breath has been changed to first specific identification information.
3. method according to claim 1 and 2, it is characterised in that methods described also includes:
According to second identification information, the second specific identification information is sent, second specific identification information indicates the second mesh The identification information of oneself is changed to second specific identification information by mark slave unit from the second identification information;
Wherein, the second target slave unit is before second specific identification information is received, according to the first object Equipment send certification enable signal, by the identification information of oneself from the first identification information change in order to the second identification information from Equipment.
4. method according to claim 3, it is characterised in that the main equipment by first enable signaling interface with it is described First object slave unit is connected;
Described transmission the step of certification enables signal to the first object slave unit includes:
Signaling interface is enabled by described first, signal is enabled to certification is sent with the first object slave unit.
5. method according to claim 1, it is characterised in that methods described also includes:
According to the first prefixed time interval, according to second identification information, the 3rd specific identification information is sent;And
According to the second prefixed time interval, according to the third feature identification information, confirmation is sent;
After the confirmation is sent, more than Preset Time, response message is not received, then certification terminates.
6. method according to claim 1, it is characterised in that methods described also includes:
Identification information is sent to the first object slave unit;
Receive the device id that the first object slave unit is returned;
Determine whether the first object slave unit is legitimate device according to device id.
7. a kind of equipment authentication method, is applied to slave unit, it is characterised in that methods described includes:
The certification enable signal that main equipment or other slave units send is received, then by the identification information of oneself from the first mark letter Breath is changed to the second identification information;
The specific identification information of main equipment transmission is received, then the identification information of oneself is changed to from the second identification information described Specific identification information.
8. method according to claim 7, it is characterised in that methods described also includes:
The confirmation of main equipment transmission is received, then sends response message.
9. method according to claim 7, it is characterised in that the slave unit is set by enabling signaling interface with the master The connection of standby or other slave units, the certification that the main equipment or other slave units send is received with by the enable signaling interface Enable signal.
10. a kind of device authentication device, is applied to main equipment, it is characterised in that described device includes:
Certification enables signal transmitting module, is configured as sending certification enable signal to the first object slave unit, described to recognize The identification information of oneself is changed to the second mark by first object slave unit described in card enable signal designation from the first identification information Information;
First identification information sending module, is configured as according to second identification information, is sent out to the first object slave unit The first specific identification information, first specific identification information is sent to indicate the first object slave unit by the identification information of oneself First specific identification information is changed to from the second identification information.
11. devices according to claim 10, it is characterised in that described device also includes:
First confirmation sending module, is configured as according to first specific identification information, to the first object from setting Preparation send confirmation;
Determining module, is configured as, when the response message that the first object slave unit sends is received, determining described first The identification information of target slave unit has been changed to first specific identification information.
12. device according to claim 10 or 11, it is characterised in that described device also includes:
Second identification information sending module, is configured as, according to second identification information, sending the second specific identification information, institute Stating the second specific identification information, to indicate the second target slave unit that the identification information of oneself is changed to from the second identification information described Second specific identification information;
Wherein, the second target slave unit is before second specific identification information is received, according to the first object Equipment send certification enable signal, by the identification information of oneself from the first identification information change in order to the second identification information from Equipment.
13. devices according to claim 12, it is characterised in that the main equipment enables signaling interface and institute by first State the connection of first object slave unit;
Certification enable signal transmitting module, be configured to it is described first enable signaling interface, to the first object from Equipment sends certification and enables signal.
14. devices according to claim 10, it is characterised in that described device also includes:
3rd specific identification information sending module, is configured as according to the first prefixed time interval, according to the described second mark letter Breath, sends the 3rd specific identification information;And
Second confirmation sending module, is configured as according to the second prefixed time interval, is identified according to the third feature and believed Breath, sends confirmation;
Terminate to confirm module, after being configured as sending the confirmation, more than Preset Time, do not receive response message, Then certification terminates.
15. devices according to claim 10, it is characterised in that described device also includes:
Identification information sending module, is configured as sending identification information to the first object slave unit;
Device id receiver module, is configured as receiving the device id that the first object slave unit is returned;
Legitimacy determining module, is configured as determining whether the first object slave unit is legitimate device according to device id.
A kind of 16. device authentication devices, are applied to slave unit, it is characterised in that described device includes:
First change module, is configured as receiving the certification enable signal that main equipment or other slave units send, then by oneself Identification information be changed to the second identification information from the first identification information;
Second change module, is configured as receiving the specific identification information of main equipment transmission, then by the identification information of oneself from Second identification information is changed to the specific identification information.
17. devices according to claim 16, it is characterised in that described device also includes:
Response message sending module, is configured as receiving the confirmation of main equipment transmission, then send response message.
18. devices according to claim 16, it is characterised in that the slave unit is by enabling signaling interface with the master Equipment or other slave units are connected, with recognizing for being sent by the enable signaling interface reception main equipment or other slave units Card enables signal.
19. a kind of computer program products, it is characterised in that the computer program product is included can be by programmable device The computer program of execution, the computer program has when being performed by the programmable device for perform claim requirement The code section of the method any one of 1 to 6.
A kind of 20. non-transitorycomputer readable storage mediums, it is characterised in that the non-transitory computer-readable storage medium Matter includes one or more programs, and one or more of programs are used for the side any one of perform claim requirement 1 to 6 Method.
21. a kind of electronic equipment, it is characterised in that including:
Non-transitorycomputer readable storage medium described in claim 20;And
One or more processor, for performing the program in the non-transitorycomputer readable storage medium.
22. a kind of computer program products, it is characterised in that the computer program product is included can be by programmable device The computer program of execution, the computer program has when being performed by the programmable device for perform claim requirement The code section of the method any one of 7 to 9.
A kind of 23. non-transitorycomputer readable storage mediums, it is characterised in that the non-transitory computer-readable storage medium Matter includes one or more programs, and one or more of programs are used for the side any one of perform claim requirement 7 to 9 Method.
A kind of 24. slave units, it is characterised in that including:
Non-transitorycomputer readable storage medium described in claim 23;And
One or more processor, for performing the program in the non-transitorycomputer readable storage medium.
CN201680002974.0A 2016-12-23 2016-12-23 Equipment authentication method, device, electronic equipment and from equipment Active CN106796633B (en)

Priority Applications (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 (2)

Publication Number Publication Date
CN106796633A true CN106796633A (en) 2017-05-31
CN106796633B CN106796633B (en) 2019-09-10

Family

ID=58952280

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201680002974.0A Active CN106796633B (en) 2016-12-23 2016-12-23 Equipment authentication method, device, electronic equipment and from equipment

Country Status (2)

Country Link
CN (1) CN106796633B (en)
WO (1) WO2018112942A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020172802A1 (en) * 2019-02-26 2020-09-03 深圳配天智能技术研究院有限公司 Master-slave device communication system and method

Citations (8)

* Cited by examiner, † Cited by third party
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
CN102571708A (en) * 2010-12-27 2012-07-11 联想(北京)有限公司 Security certification method, portable terminal and portable mobile equipment
CN102750975A (en) * 2005-09-30 2012-10-24 莫塞德技术公司 Daisy chain cascading devices
CN102866565A (en) * 2011-07-05 2013-01-09 精工爱普生株式会社 Projector and control method for 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

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102750975A (en) * 2005-09-30 2012-10-24 莫塞德技术公司 Daisy chain cascading devices
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
CN102571708A (en) * 2010-12-27 2012-07-11 联想(北京)有限公司 Security certification method, portable terminal and portable mobile equipment
CN102866565A (en) * 2011-07-05 2013-01-09 精工爱普生株式会社 Projector and control method for 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 (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020172802A1 (en) * 2019-02-26 2020-09-03 深圳配天智能技术研究院有限公司 Master-slave device communication system and method

Also Published As

Publication number Publication date
CN106796633B (en) 2019-09-10
WO2018112942A1 (en) 2018-06-28

Similar Documents

Publication Publication Date Title
CN107534653B (en) Cloud-based cross-device digital pen pairing
CN102428456B (en) The accessory identification of mobile computing device
CN101686240B (en) Cross-transport authentication
CN102523213B (en) Server and terminal authenticating method and server and terminal
CN103237034A (en) Login method and device
CN106371954B (en) I2C bus verification method and system based on 10-bit slave address
CN105700732B (en) It is used for transmission the devices, systems, and methods of touch sensor information
CN104285210B (en) The methods, devices and systems of recovery operation system on the portable communication device
CN104270204A (en) Testing method and testing equipment for wireless communication module
CN104066203A (en) Method and system for generating identifier of mobile device, method for remotely controlling mobile device, and communication terminal
CN107800708A (en) A kind of vehicle device account automatic logging method and vehicle device device
CN106796633A (en) Equipment authentication method, device, electronic equipment and slave unit
CN106547435A (en) Input equipment and its control method
CN104618316A (en) Method, device and system of safety verification
CN105940384A (en) Universal serial bus emulation of peripheral devices
JP2015072621A (en) Automatic vending machine setting system
CN103761461B (en) Electronic equipment control method, device, processor and electronic equipment
CN107995103B (en) Voice conversation method, voice conversation device and electronic equipment
CN104168290A (en) Terminal registration method and register server
CN106412657B (en) A kind of method and system of set-top box programming sequence code
CN109118862A (en) A kind of put reads verifying device and point reading answer verifying methods of marking
CN103971422A (en) Check-in method and device based on electronic business card adopting NFC (Near Field Communication) technology
CN108632020A (en) Data transmission method for uplink, method of reseptance and device
CN107145463A (en) The method and system of automatic transmission hearing test data
CN106411534A (en) Embedded device and system with functions of interface recognition and wireless sharing

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant