CN105407001B - A kind of method, system and device of quick identification communications parameter configuration - Google Patents

A kind of method, system and device of quick identification communications parameter configuration Download PDF

Info

Publication number
CN105407001B
CN105407001B CN201510846932.2A CN201510846932A CN105407001B CN 105407001 B CN105407001 B CN 105407001B CN 201510846932 A CN201510846932 A CN 201510846932A CN 105407001 B CN105407001 B CN 105407001B
Authority
CN
China
Prior art keywords
data
terminal device
cipher key
intelligent cipher
key 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.)
Active
Application number
CN201510846932.2A
Other languages
Chinese (zh)
Other versions
CN105407001A (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.)
Feitian Technologies Co Ltd
Original Assignee
Feitian Technologies Co Ltd
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 Feitian Technologies Co Ltd filed Critical Feitian Technologies Co Ltd
Priority to CN201510846932.2A priority Critical patent/CN105407001B/en
Publication of CN105407001A publication Critical patent/CN105407001A/en
Application granted granted Critical
Publication of CN105407001B publication Critical patent/CN105407001B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention discloses a kind of method, system and device of quick identification communications parameter configuration, and this method includes:When intelligent cipher key equipment receives being parsed to it when quickly shaking hands and instructing for terminal device transmission, and analytically obtain downgoing communication parameter in result and number and preserve, when in instruction of quickly shaking hands including a kind of last downgoing communication parameter or the time of data to be received being waited to be more than preset duration, corresponding uplink communication parameter and all downgoing communication parameters got number are sent to terminal device by intelligent cipher key equipment respectively according to the different upstream frequencies of preservation by second channel;Terminal device parses the data received, and analytically acquisition uplink communication parameter and all downgoing communication parameters are numbered and preserved in result;Corresponding downgoing communication parameter is obtained according to all downgoing communication parameters of preservation number, determines that the communications parameter of intelligent cipher key equipment configures according to all uplink communication parameters of the downgoing communication parameter and acquisition that get.

Description

A kind of method, system and device of quick identification communications parameter configuration
Technical field
The present invention relates to information security field more particularly to a kind of method of quick identification communications parameter configuration, system and Device.
Background technology
In the prior art, intelligent cipher key equipment and app (application program) be in communication process, intelligent cipher key equipment be from The host equipment of equipment, app is main equipment, and main equipment is actively shaken hands to from equipment before being communicated, and is shaken hands and is divided into Downlink and uplink, if the existing app of downlink has m kind schemes, uplink to have n kind parameter configurations, then shaking hands has m*n kind schemes.Want Confirm whether this main equipment is how the equipment that intelligent cipher key equipment is supported (identifies that the communications parameter of this main equipment is matched Set), it needs to go to attempt to be communicated with each scheme in turn, but finds cause there are one this realization methods in practical applications The weakness of life, if it is the library for the equipment that intelligent cipher key equipment is supported that first, which is called the library got up, if that connection one Other equipment, it is necessary to just can determine that whether the equipment of connection is setting for intelligent cipher key equipment support after having tried m*n kind schemes It is standby, and complete this process and need 50 seconds or so, cause communication speed low.How quickly to identify that the communications parameter of main equipment is matched It sets, is prior art urgent problem to be solved.
Invention content
The purpose of the invention is to overcome the deficiencies of the prior art and provide a kind of side of quick identification communications parameter configuration Method, system and device.
The embodiment of the present invention provides a kind of method of quick identification communications parameter configuration, including:
Terminal device gives the intelligent cipher key equipment transmission pair of connection according to different downstream frequencies respectively by the first channel The instruction of quickly shaking hands comprising downgoing communication parameter answered, the data for waiting the intelligent cipher key equipment to be received to return;
Step S1:When the intelligent cipher key equipment receive that the terminal device sends quickly shake hands instruction when to its into Row parsing, and judge whether successfully resolved, it is that downgoing communication parameter is analytically obtained in result numbers and preserve, and executes step S2 otherwise waits for receiving data, executes step S3;
Step S2:Whether the intelligent cipher key equipment judges in the quick instruction of shaking hands received comprising a kind of last downlink Communications parameter is to then follow the steps S4, otherwise waits for receiving data, executes step S3;
Step S3:Whether the time of the data to be received such as the intelligent cipher key equipment judgement is more than preset duration, is to hold Row step S4, otherwise return to step S1;
Step S4:The intelligent cipher key equipment will be corresponded to according to the different upstream frequencies of preservation by second channel respectively Uplink communication parameter and get all downgoing communication parameters number be sent to the terminal device;
Step S5:When the terminal device receives the corresponding uplink communication that all intelligent cipher key equipments are sent When parameter and all downgoing communication parameter numbers got, by a uplink communication parameter and all downgoing communications got Parameter number is as current response;
Step S6:The terminal device is parsed to currently responding, and judges whether parsing succeeds, and is to then follow the steps S8, it is no to then follow the steps S7;
Step S7:The terminal device judges whether all downlinks for having handled all uplink communication parameters He having got Communications parameter is numbered, and is to report an error, and is terminated, otherwise by another uplink communication parameter and all downgoing communication parameters got Number is as current response, return to step S6;
Step S8:The terminal device analytically obtains uplink communication parameter in result and all downgoing communication parameters are compiled Number and preserve;
Step S9:The terminal device judges whether all downlinks for having handled all uplink communication parameters He having got Communications parameter is numbered, and is to then follow the steps S10, otherwise joins another uplink communication parameter and all downgoing communications got Number number is as current response, return to step S6;
Step S10:The terminal device obtains corresponding downgoing communication according to all downgoing communication parameters of preservation number Parameter determines the logical of the intelligent cipher key equipment according to all uplink communication parameters of the downgoing communication parameter and acquisition that get Interrogate parameter configuration.
Further, before the step S1, further include:The terminal device judges quick comprising downgoing communication parameter Whether instruction of shaking hands all is sent completely, and is the data for waiting for the intelligent cipher key equipment to return, and otherwise continues to send quick It shakes hands instruction.
Further, before the step S1, further include:
Step A:When the intelligent cipher key equipment receives the protocol data instruction that the terminal device is sent, institute is judged Whether the type for stating protocol data instruction is the instruction of quickly shaking hands, and is to then follow the steps S1, otherwise to the protocol data Instruction is handled.
Further, include before the step A:The intelligent cipher key equipment judges whether received in preset time The protocol data instruction, is to then follow the steps A, otherwise reports an error, terminate.
Further, the step S2 is specially:The downgoing communication ginseng got described in the intelligent cipher key equipment judgement Whether number number is preset data, is that the instruction of quickly shaking hands received includes a kind of last downgoing communication parameter, otherwise connects The instruction of quickly shaking hands received does not include a kind of last downgoing communication parameter.
Further, further include before the step S5:
Step B:When the terminal device receives the data that the intelligent cipher key equipment is sent, received described in judgement Whether include uplink communication parameter in data, is to then follow the steps S5, otherwise reports an error, wait data to be received.
Further, include before the step B:It is described whether the terminal device judges to receive in preset time The data that intelligent cipher key equipment returns, are to then follow the steps B, otherwise report an error, and are terminated.
Further, further include after the step S10:
Step C1:It includes to get that the terminal device, which is sent by first channel to the intelligent cipher key equipment, The detection of downgoing communication parameter instructs, and the detection response for waiting the intelligent cipher key equipment to be received to return;
Step C2:It is parsed when the intelligent cipher key equipment receives the detection instruction, such as successfully resolved, Then the intelligent cipher key equipment is returned to using the analysis result of the detection instruction as detection response by the second channel The terminal device reports an error if parsing failure, terminates;
Step C3:The terminal device solves it when receiving the detection response that the intelligent cipher key equipment returns Analysis, and judge whether successfully resolved, it is to then follow the steps C4, it is no to then follow the steps C5;
Step C4:The terminal device obtains downgoing communication parameter and is preserved from the analysis result of detection response, executes Step C5;
Step C5:The terminal device judges whether all detection instructions are sent completely, and is the downlink then from preservation Downgoing communication parameter is obtained in communications parameter, executes step C6, otherwise return to step C1;
Step C6:The downgoing communication parameter of one acquisition is sent to described by the terminal device by first channel Intelligent cipher key equipment simultaneously starts to carry out data communication with it.
Further, further include before the terminal device sends instruction of quickly shaking hands:
Step D1:The terminal device judges whether there is intelligent cipher key equipment and is connected thereto, and is to then follow the steps D2, otherwise Return to step D1;
Step D2:The terminal device judges whether to connect with the intelligent cipher key equipment for the first time, is that the terminal is set Preparation send instruction of quickly shaking hands, no to then follow the steps D3;
Step D3:The terminal device negotiates communication speed using the downgoing communication parameter preserved and the intelligent cipher key equipment Rate, and judge whether to negotiate successfully, it is to then follow the steps D4, otherwise the terminal device sends instruction of quickly shaking hands;
Step D4:The terminal device is led to using successful communication speed is negotiated with intelligent cipher key equipment progress data News.
Further, the step S1 includes:
Step S1-1:When the intelligent cipher key equipment receives four byte datas that the terminal device is sent, sentence Whether disconnected is correct frame head data, is then to execute step S1-2 by four byte data sequential storages to buffer area, It otherwise waits for receiving data, executes step S3;
Step S1-2:The intelligent cipher key equipment waits for and receives backhaul frequency, the agreement ginseng that the terminal device issues Number, data length, data content, by the backhaul frequency, protocol parameter, data length, data content sequential storage described in In buffer area;
Step S1-3:When the intelligent cipher key equipment receives check code, the caching is judged according to the check code Whether the data in area are correct, are to then follow the steps S1-4, otherwise empty the buffer area, wait data to be received, execute step S3;
Step S1-4:The intelligent cipher key equipment judges whether reception the first parameter field of uplink according to the protocol parameter, It is to then follow the steps S1-5, it is no to then follow the steps S1-9;
Step S1-5:Its sequential storage is delayed to described when the intelligent cipher key equipment receives the first parameter field of uplink It deposits in area;
Step S1-6:The intelligent cipher key equipment judges whether to receive preset data, is then that the preset data is suitable Sequence storage is no to then follow the steps S1-9 in the buffer area, executing step S1-7;
Step S1-7:The intelligent cipher key equipment receives the second parameter field of uplink and by its sequential storage to the buffer area In;
Step S1-8:The intelligent cipher key equipment judges whether the second parameter field of the uplink is correct, is to then follow the steps Otherwise S1-9 empties the buffer area, wait data to be received, executes step S3;
Step S1-9:The intelligent cipher key equipment is properly received letter by the second channel to terminal device return Breath, acquisition downgoing communication parameter is numbered and is preserved from the data content, executes step S2.
Further, the step S1-1 includes:
Step S1-11:The data to be received such as the intelligent cipher key equipment, when receive first character joint number according to when, judge Whether it is the first frame head data, is to execute step S1- then by the first character joint number according in storage to the buffer area 12, it otherwise waits for receiving data, executes step S3;
Step S1-12:When the intelligent cipher key equipment receives second byte data, judge whether it is the second frame Head data are then to execute step S1-13 by second byte data sequential storage to the buffer area, otherwise empty The buffer area waits data to be received, executes step S3;
Step S1-13:Judge whether it is third frame when the intelligent cipher key equipment receives third byte data Head data are then to execute step S1-14 by the third byte data sequential storage to the buffer area, otherwise empty The buffer area waits data to be received, executes step S3;
Step S1-14:Judge whether it is the 4th frame when the intelligent cipher key equipment receives the 4th byte data Head data are then to execute step S1-2 by the 4th byte data sequential storage to the buffer area, otherwise empty institute Buffer area is stated, data to be received are waited, executes step S3.
Further, the step S1-3 includes:
The intelligent cipher key equipment calculate the data in the buffer area verification and, and judge the verification that is calculated and It is whether consistent with the check code, it is that the data then in the buffer area are correct, the data otherwise in the buffer area are incorrect.
Further, the step S1-8 includes:
The intelligent cipher key equipment carries out calculating verification to other data for removing check code in the second parameter field of the uplink With, and judge the verification being calculated and whether consistent with the check code in the second parameter field of the uplink, it is the then uplink Second parameter field is correct, and otherwise the second parameter field of the uplink is incorrect.
Further, the step S4 includes:
Step S41:The intelligent cipher key equipment is using a upstream frequency as current upstream frequency;
Step S42:The intelligent cipher key equipment is according to current upstream frequency by second channel by corresponding uplink communication Parameter and all downgoing communication parameters number got are sent to the terminal device;
Step S43:The intelligent cipher key equipment judges whether the upstream frequency preserved handles completion, is the institute to be received such as then The data for stating terminal device return, otherwise using next upstream frequency as current upstream frequency, return to step S42.
Further, the step S42 includes:
Step S42-1:The intelligent cipher key equipment sends preset head by the second channel to the terminal device Redundant data;
Step S42-2:The intelligent cipher key equipment sends first to the terminal device by the second channel and presets Frame head;
Step S42-3:The intelligent cipher key equipment sends second to the terminal device by the second channel and presets Frame head;
Step S42-4:The intelligent cipher key equipment is according to current uplink communication parameter and all downgoing communications got Parameter number calculates data length, and sends the data length to the terminal device by the second channel;
Step S42-5:The intelligent cipher key equipment is according to current upstream frequency by the second channel to the terminal Equipment sends the corresponding uplink communication parameter and all downgoing communication parameters number;
Step S42-6:The intelligent cipher key equipment by the second channel to the terminal device send verification and;
Step S42-7:The intelligent cipher key equipment sends preset tail by the second channel to the terminal device Redundant data.
Further, the step S6 includes:
Step S61:The terminal device judges whether current response meets predetermined format, is to then follow the steps S62, otherwise Execute step S7;
Step S62:The terminal device is parsed to currently responding, and according in analysis result verification and judge solve It whether correct analyses result, is to then follow the steps S8, it is no to then follow the steps S7.
The embodiment of the present invention provides a kind of method of quick identification communications parameter configuration again, including:
Step P1:When the intelligent cipher key equipment receive that the terminal device sends quickly shake hands instruction when to its into Row parsing, and judge whether successfully resolved, it is that downgoing communication parameter is analytically obtained in result numbers and preserve, and executes step P2 otherwise waits for receiving data, executes step P3;
Step P2:The intelligent cipher key equipment judges whether the quick instruction of shaking hands received is logical comprising a kind of last downlink Parameter is interrogated, is to then follow the steps P4, otherwise waits for receiving data, executes step P3;
Step P3:Whether the time of the data to be received such as the intelligent cipher key equipment judgement is more than preset duration, is to hold Row step P4, otherwise return to step P1;
Step P4:The intelligent cipher key equipment will be corresponded to according to the different upstream frequencies of preservation by second channel respectively Uplink communication parameter and get all downgoing communication parameters number be sent to the terminal device.
Further, before the step P1, further include:
Step M:When the intelligent cipher key equipment receives the protocol data instruction that the terminal device is sent, institute is judged Whether the type for stating protocol data instruction is the instruction of quickly shaking hands, and is to then follow the steps P1, otherwise to the protocol data Instruction is handled.
Further, include before the step M:The intelligent cipher key equipment judges whether received in preset time The protocol data instruction, is to then follow the steps M, otherwise reports an error, terminate.
Further, the step P2 is specially:The downgoing communication ginseng got described in the intelligent cipher key equipment judgement Whether number number is preset data, is that the instruction of quickly shaking hands received includes a kind of last downgoing communication parameter, otherwise connects The instruction of quickly shaking hands received does not include a kind of last downgoing communication parameter.
Further, further include after the step P4:
Step L:It is solved when the intelligent cipher key equipment receives when the detection that the terminal device is sent instructs It analyses, such as successfully resolved, then the intelligent cipher key equipment passes through described using the analysis result of the detection instruction as detection response Second by returning to the terminal device, reports an error if parsing failure, terminates.
Further, the step P1 includes:
Step T1:When the intelligent cipher key equipment receives four byte datas that the terminal device is sent, judge Whether it is correct frame head data, is then to execute step T2, otherwise by four byte data sequential storages to buffer area Etc. data to be received, step P3 is executed;
Step T2:The intelligent cipher key equipment wait for and receive the backhaul frequency that the terminal device issues, protocol parameter, Data length, data content, by the backhaul frequency, protocol parameter, data length, data content sequential storage to the caching Qu Zhong;
Step T3:When the intelligent cipher key equipment receives check code, the buffer area is judged according to the check code In data it is whether correct, be to then follow the steps T4, otherwise empty the buffer area, wait data to be received, execute step P3;
Step T4:The intelligent cipher key equipment judges whether reception the first parameter field of uplink according to the protocol parameter, is T5 is thened follow the steps, it is no to then follow the steps T9;
Step T5:When the intelligent cipher key equipment receives the first parameter field of uplink by its sequential storage to the caching Qu Zhong;
Step T6:The intelligent cipher key equipment judges whether to receive preset data, is then by preset data sequence It stores in the buffer area, executes step T7, it is no to then follow the steps T9;
Step T7:The intelligent cipher key equipment receives the second parameter field of uplink and by its sequential storage to the buffer area In;
Step T8:The intelligent cipher key equipment judges whether the second parameter field of the uplink is correct, is to then follow the steps T9, Otherwise the buffer area is emptied, data to be received are waited, executes step P3;
Step T9:The intelligent cipher key equipment is properly received letter by the second channel to terminal device return Breath, acquisition downgoing communication parameter is numbered and is preserved from the data content, executes step P2.
Further, the step T1 includes:
Step T11:The data to be received such as the intelligent cipher key equipment, when receive first character joint number according to when, judge it Whether be the first frame head data, be then by the first character joint number according to storage in the buffer area, executing step T12, it is no The data to be received such as then execute step P3;
Step T12:When the intelligent cipher key equipment receives second byte data, judge whether it is the second frame head Data are then to execute step T13 by second byte data sequential storage to the buffer area, otherwise empty described Buffer area waits data to be received, executes step P3;
Step T13:Judge whether it is third frame head when the intelligent cipher key equipment receives third byte data Data are then to execute step T14 by the third byte data sequential storage to the buffer area, otherwise empty described Buffer area waits data to be received, executes step P3;
Step T14:Judge whether it is the 4th frame head when the intelligent cipher key equipment receives the 4th byte data Data are then to execute step T2 by the 4th byte data sequential storage to the buffer area, otherwise empty described slow Area is deposited, data to be received are waited, executes step P3.
Further, the step T3 includes:
The intelligent cipher key equipment calculate the data in the buffer area verification and, and judge the verification that is calculated and It is whether consistent with the check code, it is that the data then in the buffer area are correct, the data otherwise in the buffer area are incorrect.
Further, the step T8 includes:
The intelligent cipher key equipment carries out calculating verification to other data for removing check code in the second parameter field of the uplink With, and judge the verification being calculated and whether consistent with the check code in the second parameter field of the uplink, it is the then uplink Second parameter field is correct, and otherwise the second parameter field of the uplink is incorrect.
Further, the step P4 includes:
Step P41:The intelligent cipher key equipment is using a upstream frequency as current upstream frequency;
Step P42:The intelligent cipher key equipment is according to current upstream frequency by second channel by corresponding uplink communication Parameter and all downgoing communication parameters number got are sent to the terminal device;
Step P43:The intelligent cipher key equipment judges whether the upstream frequency preserved handles completion, is the institute to be received such as then The data for stating terminal device return, otherwise using next upstream frequency as current upstream frequency, return to step P42.
Further, the step P42 includes:
Step P42-1:The intelligent cipher key equipment sends preset head redundancy by second channel to the terminal device Data;
Step P42-2:The intelligent cipher key equipment sends the first default frame head by second channel to the terminal device;
Step P42-3:The intelligent cipher key equipment sends the second default frame head by second channel to the terminal device;
Step P42-4:The intelligent cipher key equipment is according to current uplink communication parameter and all downgoing communications got Parameter number calculates data length, and sends the data length to the terminal device by second channel;
Step P42-5:The intelligent cipher key equipment is according to current upstream frequency by second channel to the terminal device Send the corresponding uplink communication parameter and all downgoing communication parameters number;
Step P42-6:The intelligent cipher key equipment by second channel to the terminal device send verification and;
Step P42-7:The intelligent cipher key equipment sends preset tail redundancy by second channel to the terminal device Data.
The embodiment of the present invention provides a kind of system of quick identification communications parameter configuration, including terminal device and intelligent key Equipment,
The intelligent cipher key equipment includes:
First receiving module, the instruction of quickly shaking hands sent for receiving the terminal device;
First parsing module for being parsed to the instruction of quickly shaking hands that first receiving module receives, and is sentenced It is disconnected whether successfully resolved, be that downgoing communication parameter is analytically obtained in result number and preserve, the first judgment module of triggering is no The data to be received such as then trigger third judgment module;
Whether first judgment module is logical comprising a kind of last downlink in the instruction of quickly shaking hands for judging to receive Parameter is interrogated, is to trigger the first sending module, otherwise waits for receiving data, triggers the third judgment module;
The third judgment module, for judging etc. that time of data to be received is to trigger whether more than preset duration First sending module, otherwise triggers the first receiving module;
First sending module, being used for respectively will be corresponding by second channel according to the different upstream frequencies of preservation Uplink communication parameter and all downgoing communication parameters number got are sent to the terminal device;
The terminal device includes:
Second sending module, for giving the intelligent key of connection to set respectively by the first channel according to different downstream frequencies Preparation send the corresponding instruction of quickly shaking hands comprising downgoing communication parameter;
Second receiving module, for receive corresponding uplink communication parameter that all intelligent cipher key equipment is sent and All downgoing communication parameters number got;
It is current for a uplink communication parameter and all downgoing communication parameters got number to be used as module Response;
Second parsing module for being parsed to currently responding, and judges whether parsing succeeds, is, triggers first and obtains Otherwise modulus block triggers the second judgment module;
Second judgment module, it is all for judging whether to have handled when second parsing module parses failure Uplink communication parameter and all downgoing communication parameters number got, are to report an error, terminate, otherwise by another uplink communication Parameter and all downgoing communication parameters number got are responded as current, trigger second parsing module;
First acquisition module, for from the analysis result of second parsing module obtain uplink communication parameter and All downgoing communication parameters are numbered and are preserved;
4th judgment module, all downlinks for judging whether to have handled all uplink communication parameters and got are logical Parameter number is interrogated, is to trigger the second acquisition module, otherwise leads to another uplink communication parameter and all downlinks got Parameter number is interrogated as current response, triggers second parsing module;
Second acquisition module is joined for obtaining corresponding downgoing communication according to all downgoing communication parameters of preservation number Number, the communication of the intelligent cipher key equipment is determined according to all uplink communication parameters of the downgoing communication parameter and acquisition that get Parameter configuration.
Further, the terminal device further includes:6th judgment module, it is fast comprising downgoing communication parameter for judging Speed is shaken hands, and whether instruction is whole to be sent completely, and is the data for waiting for the intelligent cipher key equipment to return, otherwise continues to send fast Speed is shaken hands instruction.
Further, the intelligent cipher key equipment further includes the 5th judgment module;
First receiving module is additionally operable to receive the protocol data instruction that the terminal device is sent;
5th judgment module, for judging whether the type of the protocol data instruction is the finger of quickly shaking hands It enables, is to trigger first parsing module, otherwise protocol data instruction is handled.
Further, the intelligent cipher key equipment further includes:
7th judgment module, for judging whether first receiving module receives the agreement number in preset time According to instruction, it is to trigger the 5th judgment module, otherwise reports an error, terminates.
Further, whether first judgment module is specifically used for the downgoing communication parameter got described in judgement number For preset data, it is that the instruction of quickly shaking hands received includes a kind of last downgoing communication parameter, what is otherwise received is quick Instruction of shaking hands does not include a kind of last downgoing communication parameter.
Further, the terminal device further includes the 8th judgment module;
Second receiving module is additionally operable to receive the data that the intelligent cipher key equipment is sent;
Whether the 8th judgment module is logical comprising uplink in data that second receiving module receives for judging Parameter is interrogated, is to trigger as module, otherwise reports an error, wait data to be received.
Further, the terminal device further includes:
Tenth judgment module, for judging it is close whether second receiving module receives the intelligence in preset time The data that key equipment returns, are to trigger the 8th judgment module, otherwise report an error, and are terminated.
Further, the terminal device further includes the 12nd judgment module;
Second sending module, it includes to get to be additionally operable to send to the intelligent cipher key equipment by first channel Downgoing communication parameter detection instruction;
First receiving module is additionally operable to receive the detection instruction;
First parsing module, is additionally operable to parse detection instruction, and such as successfully resolved then triggers the first hair Module is sent, is reported an error if parsing failure, is terminated;
First sending module is additionally operable to the analysis result of the detection instruction passing through described the as detection response Two channels return to the terminal device;
Second receiving module is additionally operable to receive the detection response that the intelligent cipher key equipment returns;
Second parsing module is additionally operable to parse detection response, and judges whether successfully resolved, is then Second acquisition module is triggered, the 12nd judgment module is otherwise triggered;
Second acquisition module is additionally operable to obtain downgoing communication parameter from the analysis result of detection response and preserve, Trigger the 12nd judgment module;
12nd judgment module is then from described in preservation for judging whether all detection instructions are sent completely Downgoing communication parameter is obtained in downgoing communication parameter;
Second sending module is additionally operable to be sent to the downgoing communication parameter that one obtains by first channel The intelligent cipher key equipment simultaneously starts to carry out data communication with it.
Further, the terminal device further includes:
14th judgment module is connected thereto for judging whether there is intelligent cipher key equipment;
16th judgment module, for judge whether when the 14th judgment module is judged as YES for the first time with the intelligence It can key devices connection;
Negotiate judgment module, for the downgoing communication parameter when the 14th judgment module is judged as NO using preservation Negotiate communication speed with the intelligent cipher key equipment, and judges whether to negotiate successfully;
Communication module, for when the negotiation judgment module is judged as YES using negotiate successful communication speed with it is described Intelligent cipher key equipment carries out data communication.
Further, first parsing module includes:
First judging submodule, four sent for judging the terminal device that first receiving module receives Whether byte data is correct frame head data, is then by four byte data sequential storages to buffer area, triggering is deposited Submodule is stored up, the third judgment module is otherwise triggered;
The sub-module stored, the loopback frequency that the terminal device for receiving first receiving module issues In rate, protocol parameter, data length, data content sequential storage to the buffer area;
Second judgment submodule, for when first receiving module receives check code, being sentenced according to the check code Whether the data in the disconnected buffer area are correct, are to trigger third judging submodule, otherwise empty the buffer area, wait waiting Data are received, the third judgment module is triggered;
The third judging submodule receives the first parameter field of uplink for judging whether according to the protocol parameter, is The sub-module stored is then triggered, acquisition submodule is otherwise triggered;
The sub-module stored is additionally operable to uplink the first parameter field sequential storage for receiving first receiving module Into the buffer area;
4th judging submodule receives preset data for judging whether, is then by the preset data sequential storage Into the buffer area, the sub-module stored is triggered, acquisition submodule is otherwise triggered;
The sub-module stored, uplink the second parameter field sequential storage for receiving first receiving module arrive In the buffer area;
5th judging submodule is to trigger acquisition submodule for judging whether the second parameter field of the uplink is correct, Otherwise the buffer area is emptied, data to be received are waited, triggers the third judgment module;
The acquisition submodule is numbered and is preserved for obtaining downgoing communication parameter from the data content;
First sending module is additionally operable to be properly received information to terminal device return by second channel.
Further, first judging submodule includes:
First judging unit, for judging whether the first character joint number evidence that first receiving module receives is first Frame head data is that will be the first character joint number according in storage to the buffer area, otherwise waiting for receiving data, triggers institute State third judgment module;
Second judgment unit, for judging whether second byte data that first receiving module receives is second Frame head data is then otherwise to empty the buffer area by second byte data sequential storage to the buffer area, etc. Data to be received trigger the third judgment module;
Third judging unit, for judging whether the third byte data that first receiving module receives is third Frame head data is then otherwise to empty the buffer area by the third byte data sequential storage to the buffer area, etc. Data to be received trigger the third judgment module;
4th judging unit, for judging whether the 4th byte data that first receiving module receives is the 4th Frame head data is then otherwise to empty the buffer area by the 4th byte data sequential storage to the buffer area, etc. Data to be received trigger the third judgment module.
Further, the second judgment submodule be specifically used for calculating the verification of the data in the buffer area and, and Judge the verification that is calculated and whether consistent with the check code, be that the data then in the buffer area are correct, otherwise described in Data in buffer area are incorrect.
Further, the 5th judging submodule be specifically used for in the second parameter field of the uplink remove check code its His data carry out calculate verification and, and judge be calculated verification and whether with the check code in the second parameter field of the uplink Unanimously, it is that then the second parameter field of the uplink is correct, otherwise the second parameter field of the uplink is incorrect.
Further, first sending module includes:
First is used as submodule:For using a upstream frequency as current upstream frequency;
First sending submodule, for according to current upstream frequency by second channel by corresponding uplink communication parameter and All downgoing communication parameters number got is sent to the terminal device;
6th judging submodule is to trigger described first to connect for judging whether the upstream frequency preserved handles completion Module is received, otherwise using next upstream frequency as current upstream frequency, triggers first sending submodule.
Further, first sending submodule includes:
First transmission unit, for sending preset head redundant data to the terminal device by second channel;
Second transmission unit, for sending the first default frame head to the terminal device by second channel;
Third transmission unit, for sending the second default frame head to the terminal device by second channel;
4th transmission unit, based on according to current uplink communication parameter and all downgoing communication parameters got number Data length is calculated, and the data length is sent to the terminal device by second channel;
5th transmission unit, it is described right for being sent to the terminal device by second channel according to current upstream frequency The uplink communication parameter answered and all downgoing communication parameters number;
6th transmission unit, for by second channel to the terminal device send verification and;
7th transmission unit, for sending preset tail redundant data to the terminal device by second channel.
Further, second parsing module includes:
7th judging submodule is to trigger analysis judgment submodule for judging currently respond whether meet predetermined format Otherwise block triggers the 4th judgment module;
The analysis judgment submodule, for being parsed to currently responding, and according in analysis result verification and sentence Whether disconnected analysis result is correct, is, triggers second acquisition module, otherwise triggers the 4th judgment module.
The embodiment of the present invention provides a kind of device of quick identification communications parameter configuration, including:
First receiving module, the instruction of quickly shaking hands sent for receiving the terminal device;
First parsing module for being parsed to the instruction of quickly shaking hands that first receiving module receives, and is sentenced It is disconnected whether successfully resolved, be that downgoing communication parameter is analytically obtained in result number and preserve, the first judgment module of triggering is no The data to be received such as then trigger third judgment module;
First judgment module, whether the instruction of quickly shaking hands for judging to receive is comprising a kind of last downgoing communication Parameter is to trigger the first sending module, otherwise waits for receiving data, triggers the third judgment module;
The third judgment module, for judging etc. that time of data to be received is to trigger whether more than preset duration First sending module, otherwise triggers the first receiving module;
First sending module, being used for respectively will be corresponding by second channel according to the different upstream frequencies of preservation Uplink communication parameter and all downgoing communication parameters number got are sent to the terminal device.
Further, the present embodiment device further includes the 5th judgment module;
First receiving module is additionally operable to receive the protocol data instruction that the terminal device is sent;
5th judgment module, for judging whether the type of the protocol data instruction is the finger of quickly shaking hands It enables, is to trigger first parsing module, otherwise protocol data instruction is handled.
Further, the present embodiment device further includes:
7th judgment module, for judging whether first receiving module receives the agreement number in preset time According to instruction, it is to trigger the 5th judgment module, otherwise reports an error, terminates.
Further, whether first judgment module is specifically used for the downgoing communication parameter got described in judgement number For preset data, it is that the instruction of quickly shaking hands received includes a kind of last downgoing communication parameter, what is otherwise received is quick Instruction of shaking hands does not include a kind of last downgoing communication parameter.
Further, first parsing module is additionally operable to parse the detection instruction that the terminal device is sent, Such as successfully resolved, then the first sending module is triggered, reported an error if parsing failure, terminated;
First sending module is additionally operable to the analysis result of the detection instruction passing through described the as detection response Two channels return to the terminal device.
Further, first parsing module includes:
First judging submodule, four sent for judging the terminal device that first receiving module receives Whether byte data is correct frame head data, is then by four byte data sequential storages to buffer area, triggering is deposited Submodule is stored up, data to be received is waited, otherwise triggers the third judgment module;
The sub-module stored, the loopback frequency that the terminal device for receiving first receiving module issues In rate, protocol parameter, data length, data content sequential storage to the buffer area;
Second judgment submodule, for when first receiving module receives check code, being sentenced according to the check code Whether the data in the disconnected buffer area are correct, are to trigger third judging submodule, otherwise empty the buffer area, wait waiting Data are received, the third judgment module is triggered;
The third judging submodule receives the first parameter field of uplink for judging whether according to the protocol parameter, is The sub-module stored is then triggered, acquisition submodule is otherwise triggered;
The sub-module stored is additionally operable to uplink the first parameter field sequential storage for receiving first receiving module Into the buffer area;
4th judging submodule receives preset data for judging whether, is then by the preset data sequential storage Into the buffer area, the sub-module stored is triggered, acquisition submodule is otherwise triggered;
The sub-module stored, uplink the second parameter field sequential storage for receiving first receiving module arrive In the buffer area;
5th judging submodule is to trigger acquisition submodule for judging whether the second parameter field of the uplink is correct, Otherwise the buffer area is emptied, data to be received are waited, triggers the third judgment module;
The acquisition submodule is numbered and is preserved for obtaining downgoing communication parameter from the data content;
First sending module is additionally operable to be properly received information to terminal device return by second channel.
Further, first judging submodule includes:
First judging unit, for judging whether the first character joint number evidence that first receiving module receives is first Frame head data is that will be the first character joint number according in storage to the buffer area, otherwise waiting for receiving data, triggers institute State third judgment module;
Second judgment unit, for judging whether second byte data that first receiving module receives is second Frame head data is then otherwise to empty the buffer area by second byte data sequential storage to the buffer area, etc. Data to be received trigger the third judgment module;
Third judging unit, for judging whether the third byte data that first receiving module receives is third Frame head data is then otherwise to empty the buffer area by the third byte data sequential storage to the buffer area, etc. Data to be received trigger the third judgment module;
4th judging unit, for judging whether the 4th byte data that first receiving module receives is the 4th Frame head data is then otherwise to empty the buffer area by the 4th byte data sequential storage to the buffer area, etc. Data to be received trigger the third judgment module.
Further, the second judgment submodule be specifically used for calculating the verification of the data in the buffer area and, and Judge the verification that is calculated and whether consistent with the check code, be that the data then in the buffer area are correct, otherwise described in Data in buffer area are incorrect.
Further, the 5th judging submodule be specifically used for in the second parameter field of the uplink remove check code its His data carry out calculate verification and, and judge be calculated verification and whether with the check code in the second parameter field of the uplink Unanimously, it is that then the second parameter field of the uplink is correct, otherwise the second parameter field of the uplink is incorrect.
Further, first sending module includes:
First is used as submodule:For using a upstream frequency as current upstream frequency;
First sending submodule, for according to current upstream frequency by second channel by corresponding uplink communication parameter and All downgoing communication parameters number got is sent to the terminal device;
6th judging submodule is to trigger described first to connect for judging whether the upstream frequency preserved handles completion Module is received, otherwise using next upstream frequency as current upstream frequency, triggers first sending submodule.
Further, first sending submodule includes:
First transmission unit, for sending preset head redundant data to the terminal device by second channel;
Second transmission unit, for sending the first default frame head to the terminal device by second channel;
Third transmission unit, for sending the second default frame head to the terminal device by second channel;
4th transmission unit, based on according to current uplink communication parameter and all downgoing communication parameters got number Data length is calculated, and the data length is sent to the terminal device by second channel;
5th transmission unit, it is described right for being sent to the terminal device by second channel according to current upstream frequency The uplink communication parameter answered and all downgoing communication parameters number;
6th transmission unit, for by second channel to the terminal device send verification and;
7th transmission unit, for sending preset tail redundant data to the terminal device by second channel.
Compared with prior art, the present invention haing the following advantages:
Technical solution of the present invention can accelerate the negotiations process of communication speed;And it can quickly identify whether main equipment is intelligence The equipment that key devices are supported improves communication speed.
Description of the drawings
Fig. 1 is a kind of method flow diagram for quick identification communications parameter configuration that the embodiment of the present invention one provides;
Fig. 2 is a kind of method flow diagram of quick identification communications parameter configuration provided by Embodiment 2 of the present invention;
Fig. 3 is the finger of quickly shaking hands that a kind of intelligent cipher key equipment receiving terminal apparatus that the embodiment of the present invention three provides issues It enables and it is parsed, judge whether parsing successfully implements process flow diagram flow chart;
Fig. 4 be a kind of intelligent cipher key equipment that provides of the embodiment of the present invention four to terminal device send uplink communication parameter and The implementation method flow chart of all downgoing communication parameters number got;
Fig. 5 is a kind of method flow diagram for quick identification communications parameter configuration that the embodiment of the present invention five provides;
Fig. 6 is a kind of system block diagram for quick identification communications parameter configuration that the embodiment of the present invention six provides;
Fig. 7 is a kind of device block diagram for quick identification communications parameter configuration that the embodiment of the present invention seven provides.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, the every other implementation that those skilled in the art are obtained without making creative work Example, shall fall within the protection scope of the present invention.
In the present embodiment, terminal device and intelligent cipher key equipment send number between each other by two different channels According to terminal device gives intelligent cipher key equipment transmission data by the first channel, and intelligent cipher key equipment is by second channel to terminal Equipment transmission data.
Embodiment one
The embodiment of the present invention one provides a kind of method of quick identification equipment communications parameter configuration, as shown in Figure 1, including:
Step S0:Terminal device gives the intelligent cipher key equipment of connection according to different downstream frequencies respectively by the first channel Send the corresponding instruction of quickly shaking hands comprising downgoing communication parameter, the data for waiting intelligent cipher key equipment to be received to return;
For example, in the present embodiment, terminal device according to preset a kinds downstream frequency respectively to intelligent cipher key equipment according to A, a-1.....2,1 sequence send quickly shaking hands instruction comprising downgoing communication parameter;
In the present embodiment, after the step S0 with further include before step S1:Terminal device judges to include downgoing communication Whether the instruction of quickly shaking hands of parameter is all sent completely, and is the data that then etc. intelligent cipher key equipment to be received returns;Otherwise it returns Return step S0;
Step S1:When intelligent cipher key equipment receive terminal device transmission quickly shake hands instruction when it is parsed, And judge whether successfully resolved, it is that downgoing communication parameter is analytically obtained in result numbers and preserve, and executes step S2, otherwise Etc. data to be received, step S3 is executed;
Specifically, in the present embodiment, before step S1, further including:Step A:When intelligent cipher key equipment receives terminal When the protocol data instruction that equipment is sent, judge whether the type of protocol data instruction is instruction of quickly shaking hands, and is to execute step Otherwise rapid S1 is handled protocol data instruction.
Specifically, intelligent cipher key equipment judges whether the data in the 6th byte in protocol data instruction are quickly to hold Hand identifies, and is, the type of protocol data instruction is instruction of quickly shaking hands, and otherwise the type of protocol data instruction is not quickly to hold Finger enables;
Include before step A:Intelligent cipher key equipment judges protocol data instruction whether is received in preset time, is then Step A is executed, is otherwise reported an error, is terminated.
Specifically, intelligent cipher key equipment judges whether the first four byte data in the data command received is default Value is that the data command received instructs for protocol data, and the data command otherwise received is not that protocol data instructs;
The specific implementation process of step S1 in the present embodiment is described in detail in embodiment three;
Step S2:Whether intelligent cipher key equipment judges in the quick instruction of shaking hands received comprising a kind of last downgoing communication Parameter is to then follow the steps S4, otherwise waits for receiving data, executes step S3;
In the present embodiment, step S2 is specially:Intelligent cipher key equipment judges that the downgoing communication parameter got number is No is preset data, is that the instruction of quickly shaking hands received includes a kind of last downgoing communication parameter, what is otherwise received is fast Speed shakes hands instruction not comprising a kind of last downgoing communication parameter.
In the present embodiment, such as downlink scheme has a kinds, and transmission sequence is a, a-1.....2,1, then step S2 is specific For:Intelligent cipher key equipment judges whether downgoing communication parameter number is 1, is to then follow the steps S4, otherwise waits for receiving data, hold Row step S3;
Step S3:Whether the time of the data to be received such as intelligent cipher key equipment judgement is more than preset duration, is to execute step Rapid S4, otherwise return to step S1;
Step S4:Intelligent cipher key equipment according to preservation different upstream frequencies by second channel respectively will be corresponding on Row communications parameter and all downgoing communication parameters number got are sent to terminal device;
In the present embodiment, intelligent cipher key equipment by each uplink communication parameter respectively and all downgoing communications for getting Parameter number is sent to terminal device according to current corresponding upstream frequency successively, as there are five types of upstream frequencies, then intelligent key Equipment can send the instruction of five datas to terminal device;Include the corresponding uplink communication parameter of current upstream frequency in every instruction With all downgoing communication parameters number got;That is step S4 includes:
Step S41:Intelligent cipher key equipment is using a upstream frequency as current upstream frequency;
Step S42:Intelligent cipher key equipment is according to current upstream frequency by second channel by corresponding uplink communication parameter It is sent to terminal device with all downgoing communication parameters number got;
Specifically, in the present embodiment, the specific implementation process of step S42 is described in detail in example IV;
Step S43:Intelligent cipher key equipment judges whether the upstream frequency preserved handles completion, is set etc. terminal to be received The standby data returned, otherwise using next upstream frequency as current upstream frequency, return to step S42.
Step S5:When terminal device receives the corresponding uplink communication parameter and obtain that all intelligent cipher key equipments are sent When all downgoing communication parameter numbers got, a uplink communication parameter and all downgoing communication parameters got are numbered As current response;
In the present embodiment, further include before step S5:Step B:It is sent when terminal device receives intelligent cipher key equipment Data, judge in the data received whether to include uplink communication parameter, be to then follow the steps S5, otherwise report an error, wait waiting Receive data.
Include before step B:Terminal device judges the number of intelligent cipher key equipment return whether is received in preset time According to, it is to then follow the steps B, otherwise reports an error, end.
Step S6:Terminal device is parsed to currently responding, and judges whether parsing succeeds, and is to then follow the steps S8, It is no to then follow the steps S7;
Specifically, in the present embodiment, step S6 includes:
Step S61:Terminal device judges whether current response meets predetermined format, is to then follow the steps S62, otherwise executes Step S7;
Predetermined format in the present embodiment includes:The frame head data of four bytes, the backhaul frequency of two bytes, a word The protocol parameter of section, the data length of two bytes, the data content of N byte, the check code of byte, ten bytes it is upper The first parameter field of row and the check code (optional) of a byte, the second parameter field of uplink of 21 bytes and byte Check code (optional);
Step S62:Terminal device is parsed to currently responding, and according in analysis result verification and judge parsing knot Whether fruit is correct, is to then follow the steps S8, no to then follow the steps S7.
Step S7:Terminal device judges whether all downgoing communications for having handled all uplink communication parameters He having got Parameter is numbered, and is to report an error, and is terminated, and otherwise numbers another uplink communication parameter and all downgoing communication parameters got As current response, return to step S6;
Step S8:Terminal device analytically obtains uplink communication parameter and all downgoing communication parameters number in result simultaneously It preserves;
Step S9:Terminal device judges whether all downgoing communications for having handled all uplink communication parameters He having got Parameter is numbered, and is to then follow the steps S10, otherwise compiles another uplink communication parameter and all downgoing communication parameters got Number conduct currently responds, return to step S6;
Step S10:Terminal device obtains corresponding downgoing communication parameter according to all downgoing communication parameters of preservation number, Determine that the communications parameter of intelligent cipher key equipment is matched according to all uplink communication parameters of the downgoing communication parameter and acquisition that get It sets.
Further include after step S10:
Step C1:Terminal device is sent to intelligent cipher key equipment comprising the downgoing communication parameter got by the first channel Detection instruction, and the detection response for waiting intelligent cipher key equipment to be received to return;
Specifically, the detection instruction in the present embodiment is the data of 512 bytes;
Step C2:It is parsed when intelligent cipher key equipment receives detection instruction, such as successfully resolved, then intelligence is close Key equipment returns to terminal device using the analysis result of detection instruction as detection response by second channel, if parsing failure It reports an error, terminates;
Step C3:Terminal device parses it when receiving the detection response of intelligent cipher key equipment return, and judges Whether successfully resolved, be to then follow the steps C4, it is no to then follow the steps C5;
Step C4:Terminal device obtains downgoing communication parameter and is preserved from the analysis result of detection response, executes step C5;
Step C5:Terminal device judges whether all detection instructions are sent completely, and is the downgoing communication parameter then from preservation Middle acquisition downgoing communication parameter executes step C6, otherwise return to step C1;
Step C6:The downgoing communication parameter that one obtains is sent to intelligent cipher key equipment by terminal device by the first channel And start to carry out data communication with it.
In the method for the present embodiment, terminal device can preferably be set with the downgoing communication parameter of preservation with intelligent key It is standby to negotiate communication speed, then further include before terminal device sends instruction of quickly shaking hands:
Step D1:Terminal device judges whether there is intelligent cipher key equipment and is connected thereto, and is to then follow the steps D2, otherwise returns Step D1;
Step D2:Terminal device judges whether to connect with intelligent cipher key equipment for the first time, is, terminal device transmission is quickly held Finger enables, no to then follow the steps D3;
Step D3:Terminal device negotiates communication speed using the downgoing communication parameter preserved and intelligent cipher key equipment, and sentences It is disconnected whether to negotiate success, it is to then follow the steps D4, otherwise terminal device sends instruction of quickly shaking hands;
In the present embodiment, it is preferable to use best downgoing communication parameters and intelligent cipher key equipment to negotiate to communicate for terminal device Rate, for example, including two kinds of downgoing communication parameters, then transmission data 01, using the first downgoing communication parameter in analysis result 11ms is needed, 15ms is needed using second of downgoing communication parameter, then the first scheme is exactly best downgoing communication parameter.
Step D4:Terminal device carries out data communication using successful communication speed is negotiated with intelligent cipher key equipment.
Embodiment two
Second embodiment of the present invention provides a kind of method of quick identification equipment communications parameter configuration, terminal device is every time and intelligence Energy key devices can all preserve the communications parameter configuration of the intelligent cipher key equipment when being communicated, as shown in Fig. 2, the present embodiment Method includes:
Step 201:Terminal device judges whether there is intelligent cipher key equipment and is connected thereto, and is to then follow the steps 202, otherwise returns Return step 201;
Step 202:Terminal device judges whether to connect with intelligent cipher key equipment for the first time, is to then follow the steps 205, otherwise holds Row step 203;
Step 203:Terminal device negotiates communication speed using the corresponding downgoing communication parameter preserved with intelligent cipher key equipment, And judge whether to negotiate successfully, it is to then follow the steps 204, it is no to then follow the steps 205;
Step 204:Terminal device is communicated using successful communication speed is negotiated with intelligent cipher key equipment;
Step 205:Terminal device is sent to intelligent cipher key equipment according to different downstream frequencies by the first channel respectively Include the instruction of quickly shaking hands of downgoing communication parameter;
Step 206:Terminal device judges whether the instruction of quickly shaking hands comprising downgoing communication parameter is all sent completely, and is The data that then etc. intelligent cipher key equipment to be received returns;Otherwise return to step 205;
Step 207:Intelligent cipher key equipment judges protocol data instruction whether is received in preset time, is to execute step Rapid 208, it otherwise reports an error, terminates;
Specifically, intelligent cipher key equipment judges whether the first four byte data in the data command received is default Value is that the data command received instructs for protocol data, and the data command otherwise received is not that protocol data instructs;
Step 208:Intelligent cipher key equipment judges whether the type of protocol data instruction is instruction of quickly shaking hands, and is to execute Step 209, otherwise protocol data instruction is handled, waits data to be received, execute step 211;
Specifically, intelligent cipher key equipment judges whether the data in the 6th byte in protocol data instruction are quickly to hold Hand identifies, and is, the type of protocol data instruction is instruction of quickly shaking hands, and otherwise the type of protocol data instruction is not quickly to hold Finger enables;
Step 209:Intelligent cipher key equipment parses instruction of quickly shaking hands and judges whether parsing succeeds, and is then from solution Downgoing communication parameter is obtained in analysis result to number and preserve, executes step 210, is otherwise waited for receiving data, is executed step 211;
Specifically, the realization process of the step 209 in the present embodiment is described in detail in embodiment three;
Step 210:Intelligent cipher key equipment according to downgoing communication parameter number judge receive quickly shake hands instruction whether Including a kind of last downgoing communication parameter, is to then follow the steps 212, otherwise waits for receiving data, execute step 211;
Step 211:Whether the time of the data to be received such as intelligent cipher key equipment judgement is more than preset duration, is to execute step Rapid 212, otherwise return to step 207;
Step 212:Intelligent cipher key equipment is respectively led to corresponding uplink by second channel according to different upstream frequencies News parameter and all downgoing communication parameters number got are sent to terminal device;
Step 213:Terminal device judges the data of intelligent cipher key equipment return whether are received in preset time, is then Step 214 is executed, is otherwise reported an error, is terminated;
Step 214:Whether terminal device judges in the data received to include uplink communication parameter, is to include by one The data of uplink communication parameter execute step 215, otherwise report an error, wait data to be received, return to step 213 as current response;
Step 215:Terminal device is parsed to currently responding, and judges whether parsing succeeds, and is to then follow the steps 217, it is no to then follow the steps 216;
Step 216:Terminal device judges whether to have handled all data for including uplink communication parameter, is to report an error, Terminate, otherwise responds the data that another includes uplink communication parameter as current, return to step 215;
Step 217:Terminal device analytically extraction uplink communication parameter and all downgoing communication parameters number in result And it preserves;
Step 218:Terminal device judges whether to have handled all data for including uplink communication parameter, is to execute step Rapid 219, otherwise the data that another includes uplink communication parameter are responded as current, return to step 215;
Step 219:Terminal device obtains corresponding downgoing communication parameter according to all downgoing communication parameters of preservation number, Determine that the communications parameter of intelligent cipher key equipment is matched according to all uplink communication parameters of the downgoing communication parameter and extraction that get It sets;
Step 220:Terminal device is sent by the first channel to intelligent cipher key equipment joins comprising the downgoing communication got Several detection instructions, and the detection response for waiting intelligent cipher key equipment to be received to return;
Specifically, the detection instruction in the present embodiment is the data of 512 bytes;
Step 221:It is parsed after intelligent cipher key equipment receives detection instruction, such as successfully resolved, then intelligence Key devices return to terminal device using the analysis result of detection instruction as detection response by second channel, such as parsing failure It then reports an error, terminates;
Step 222:It is parsed when terminal device receives the detection response of intelligent cipher key equipment return, and is sentenced It is disconnected whether successfully resolved, be to then follow the steps 223, it is no to then follow the steps 224;
Step 223:Terminal device obtains downgoing communication parameter from the analysis result of detection response and is set with intelligent key Standby mark correspondence is preserved, and step 224 is executed;
Step 224:Terminal device judges whether detection instruction is sent completely, and is obtained from the downgoing communication parameter of preservation A downgoing communication parameter is taken, executes step 225, otherwise return to step 220;
Step 225:It is close that the downgoing communication parameter that one obtains by the first channel is sent to the intelligence by terminal device Key equipment simultaneously starts to carry out data communication with it.
The method of the embodiment of the present invention is by downgoing communication parameter poll one time, and intelligent cipher key equipment will after waiting end of polling(EOP)s The downgoing communication parameter of uplink communication parameter and energy successfully resolved disposably tells terminal device, can be rapidly completed shake hands in this way Operate and can determine intelligent cipher key equipment whether by terminal device support and can determine that out terminal device with intelligently it is close The configuration of the uplink and downlink communications parameter of key communication between devices.
Embodiment three
Instruction that the embodiment of the present invention three provided that a kind of intelligent cipher key equipment receiving terminal apparatus issues quickly shake hands is simultaneously right It is parsed, judge parsing whether successful specific implementation process, as shown in figure 3, the present embodiment method includes:
Step 301:The first character joint number evidence that intelligent cipher key equipment waits for and receiving terminal apparatus issues;
Step 302:Intelligent cipher key equipment judges that the first character joint number received is then according to whether being the first frame head data By the first character joint number received according in sequential storage to buffer area, step 303 is executed, otherwise return to step S3;
Preferably, the first frame head data in the present embodiment is 0xca;
Step 303:Intelligent cipher key equipment waits for second byte data that receiving terminal apparatus issues;
Step 304:When intelligent cipher key equipment receives second byte data, judge whether it is the second frame head number According to, it is, by receive second byte data sequential storage to buffer area, to execute step 305, otherwise empty the cache area, Return to step S3;
Preferably, the second frame head data in the present embodiment is 0xde;
Step 305:Intelligent cipher key equipment waits for the third byte data that receiving terminal apparatus issues;
Step 306:Judge whether it is third frame head number when the third byte data that intelligent cipher key equipment receives According to, it is, by the third byte data sequential storage to buffer area received, to execute step 307, otherwise empty the cache area, Return to step S3;
Preferably, the third frame head data in the present embodiment is 0x52;
Step 307:Intelligent cipher key equipment waits for the 4th byte data that receiving terminal apparatus issues;
Step 308:Judge whether it is the 4th frame head data when intelligent cipher key equipment receives the 4th byte data, It is, by the receive the 4th byte data sequential storage to buffer area, to execute step 309, otherwise empty the cache area, returns Return step S3;
Preferably, the 4th frame head data in the present embodiment is 0xb1;
In the present embodiment, the first four data that terminal device that intelligent cipher key equipment receives issues are possible to be correct Frame head data, i.e. step S3- steps 308 may be summarized to be:It is sent when the intelligent cipher key equipment receives the terminal device Four byte datas when, determine whether correct frame head data, be then by four byte data sequential storages to slow It deposits in area, executes step 309, otherwise wait for receiving data, execute step S3;
Step 309:Intelligent cipher key equipment waits for the backhaul frequency of two bytes that receiving terminal apparatus issues, when receiving It will be in its sequential storage to buffer area when backhaul frequency;
Step 310:Intelligent cipher key equipment waits for the protocol parameter of a byte that receiving terminal apparatus issues, when receiving It will be in its sequential storage to buffer area when protocol parameter;
Step 311:Intelligent cipher key equipment waits for the data length of two bytes that receiving terminal apparatus issues, when receiving It will be in its sequential storage to buffer area when data length;
Step 312:Intelligent cipher key equipment waits for the data that receiving terminal apparatus issues according to the data length received, when It will be in its sequential storage to buffer area when receiving the data of corresponding length;
Step 313:The check code for the byte that intelligent cipher key equipment waiting receiving terminal apparatus issues;
Step 314:When intelligent cipher key equipment receives check code, whether the data in buffer area are judged according to check code Correctly, it is to then follow the steps 315, otherwise reports an error, empties the cache area, return to step S3;
Specifically, step 314 includes:Intelligent cipher key equipment calculate the data in buffer area verification and, and judge to calculate Obtained verification and whether consistent with the check code received, is that the data then in buffer area are correct, otherwise the number in buffer area According to incorrect;
Step 315:Intelligent cipher key equipment judges whether to receive the first parameter field of uplink according to protocol parameter, is to execute step Rapid 316, it is no to then follow the steps 320;
Specifically, in the present embodiment, intelligent cipher key equipment judges whether protocol parameter is preset data, it is then to receive Otherwise the first parameter field of row does not receive the first parameter field of uplink;
Step 316:Intelligent cipher key equipment receives the first parameter field of uplink and will be in its sequential storage to buffer area;
Step 317:Intelligent cipher key equipment judges whether to receive preset data, is then by preset data sequential storage to slow It deposits in area, executes step 318, it is no to then follow the steps 320;
Preset data in the present embodiment is 0xa5, illustrates that intelligent cipher key equipment needs to continue to the second parameter of uplink Domain;
Step 318:Intelligent cipher key equipment receives the second parameter field of uplink and will be in its sequential storage to buffer area;
Step 319:Intelligent cipher key equipment judges whether the second parameter field of uplink is correct, is to then follow the steps 320, otherwise reports Mistake, empty the cache area, return to step S3;
In the present embodiment, step 319 includes:Intelligent cipher key equipment in the second parameter field of uplink remove check code other Data carry out calculate verification and, and judge be calculated verification and it is whether consistent with the check code in the second parameter field of uplink, It is that then the second parameter field of uplink is correct, otherwise the second parameter field of uplink is incorrect;
Step 320:Intelligent cipher key equipment is properly received information to terminal device return.
Preferably, in the present embodiment, the time of a byte to be received such as intelligent cipher key equipment is no more than 120 milliseconds, It reports an error, terminates as more than if.
In the present embodiment, empty the cache area while can also report an error.
Example IV
The embodiment of the present invention four provides a kind of intelligent cipher key equipment and sends uplink communication parameter to terminal device and get All downgoing communication parameters number implementation method, as shown in figure 4, including:
Step 401:Intelligent cipher key equipment sends preset N number of bit head redundancies by second channel to terminal device Data;
Step 402:Intelligent cipher key equipment sends the first default frame head by second channel to terminal device;
Preferably, the first default frame head in the present embodiment is 0xFF;
Step 403:Intelligent cipher key equipment sends the second default frame head by second channel to terminal device;
Preferably, the second default frame head in the present embodiment is 0x00;
Step 404:Intelligent cipher key equipment is compiled according to current uplink communication parameter and all downgoing communication parameters got Number calculate data length, and by second channel to terminal device send two bytes data length;
Step 405:Intelligent cipher key equipment is sent to terminal device on current according to current upstream frequency by second channel Row communications parameter and all downgoing communication parameters number;
Step 406:Intelligent cipher key equipment by second channel to terminal device send verification and;
Step 407:Intelligent cipher key equipment sends N number of bit of tail redundant data by second channel to terminal device.
Embodiment five
The embodiment of the present invention five provides a kind of method of quick identification communications parameter configuration, as shown in figure 5, including:
Step P1:When the intelligent cipher key equipment receive that the terminal device sends quickly shake hands instruction when to its into Row parsing, and judge whether successfully resolved, it is that downgoing communication parameter is analytically obtained in result numbers and preserve, and executes step P2 otherwise waits for receiving data, executes step P3;
In the present embodiment, before step P1, further include:Step M:When intelligent cipher key equipment receives terminal device hair When the protocol data instruction sent, judge whether the type of protocol data instruction is instruction of quickly shaking hands, and is to then follow the steps P1, it is no Then protocol data instruction is handled.
Include before step M:Intelligent cipher key equipment judges protocol data instruction whether is received in preset time, is then Step M is executed, is otherwise reported an error, is terminated.
In the present embodiment, intelligent cipher key equipment is identical as embodiment three to the process that instruction is parsed of quickly shaking hands, Details are not described herein;
Step P2:The intelligent cipher key equipment judges whether the quick instruction of shaking hands received is logical comprising a kind of last downlink Parameter is interrogated, is to then follow the steps P4, otherwise waits for receiving data, executes step P3;
In the present embodiment, step P2 is specially:Intelligent cipher key equipment judges that the downgoing communication parameter got number is No is preset data, is that quick shake hands received instructs comprising a kind of last instruction of downgoing communication parameter, otherwise to connect The instruction of quickly shaking hands received is not comprising a kind of last instruction of downgoing communication parameter.
Step P3:Whether the time of the data to be received such as the intelligent cipher key equipment judgement is more than preset duration, is to hold Row step P4, otherwise return to step P1;
Step P4:The intelligent cipher key equipment will be corresponded to according to the different upstream frequencies of preservation by second channel respectively Uplink communication parameter and get all downgoing communication parameters number be sent to the terminal device.
The specific implementation process of step P4 is identical as example IV in the present embodiment, and details are not described herein;
In the present embodiment, further include after step P4:
Step L:It is parsed when intelligent cipher key equipment receives the detection instruction of terminal device transmission, is such as parsed Successful, then intelligent cipher key equipment will detect the analysis result instructed and return to terminal device as detection response, fail as parsed It then reports an error, terminates.
Embodiment six
The embodiment of the present invention six provides a kind of system of quick identification communications parameter configuration, as shown in fig. 6, being set including terminal Standby 62 and intelligent cipher key equipment 61,
Intelligent cipher key equipment 61 includes:
First receiving module 611, the instruction of quickly shaking hands sent for receiving terminal apparatus 62;
First parsing module 612, for being parsed to the instruction of quickly shaking hands that the first receiving module 611 receives, and Judge whether successfully resolved, be, analytically obtaining downgoing communication parameter in result numbers and preserve, and triggers the first judgment module 613, it otherwise waits for receiving data, triggering third judgment module 614;
Specifically, in the present embodiment, the first parsing module 612 includes:
First judging submodule, four words sent for judging the terminal device 62 that the first receiving module 611 receives Whether joint number is then by four byte data sequential storages to buffer area, triggering stores submodule according to being correct frame head data Otherwise block triggers third judgment module 614;
In the present embodiment, the first judging submodule includes:
First judging unit, for judging whether the first character joint number evidence that the first receiving module 611 receives is first Frame head data is that will be first character joint number according in storage to buffer area, otherwise waiting for receiving data, and triggering third judges mould Block 614;
Second judgment unit, for judging whether second byte data that the first receiving module 611 receives is second Frame head data is then by second byte data sequential storage to buffer area, and otherwise empty the cache area, waits data to be received, Trigger third judgment module 614;
Third judging unit, for judging whether the third byte data that the first receiving module 611 receives is third Frame head data is then by third byte data sequential storage to buffer area, and otherwise empty the cache area, waits data to be received, Trigger third judgment module 614;
4th judging unit, for judging whether the 4th byte data that the first receiving module 611 receives is the 4th Frame head data is then by the 4th byte data sequential storage to buffer area, and otherwise empty the cache area, waits data to be received, Trigger third judgment module 614.
Sub-module stored, backhaul frequency that the terminal device for receiving the first receiving module 611 issues, agreement ginseng In number, data length, data content sequential storage to buffer area;
Second judgment submodule, for when the first receiving module 611 receives check code, judging to cache according to check code Whether the data in area are correct, are to trigger third judging submodule, and otherwise empty the cache area, wait data to be received, triggering the Three judgment modules 614;
In the present embodiment, second judgment submodule be specifically used for calculating the verification of the data in buffer area and, and judge The verification that is calculated and whether consistent with check code is that the data then in buffer area are correct, and otherwise the data in buffer area are not Correctly.
Third judging submodule receives the first parameter field of uplink for judging whether according to protocol parameter, is that triggering is deposited Submodule is stored up, acquisition submodule is otherwise triggered;
Sub-module stored is additionally operable to uplink the first parameter field sequential storage for receiving the first receiving module 611 to slow It deposits in area;
4th judging submodule receives preset data for judging whether, is then by preset data sequential storage to slow It deposits in area, triggers sub-module stored, otherwise trigger acquisition submodule;
Sub-module stored, uplink the second parameter field sequential storage for receiving the first receiving module 611 to caching Qu Zhong;
5th judging submodule is to trigger acquisition submodule, otherwise for judging whether the second parameter field of uplink is correct Empty the cache area, waits data to be received, triggering third judgment module 614;
Specifically, in the present embodiment, the 5th judging submodule is specifically used for removing check code in the second parameter field of uplink Other data carry out calculate verification and, and judge be calculated verification and whether with the check code in the second parameter field of uplink Unanimously, it is that then the second parameter field of uplink is correct, otherwise the second parameter field of uplink is incorrect.
Acquisition submodule is numbered and is preserved for obtaining downgoing communication parameter from data content;
First sending module 615 is additionally operable to be properly received information to terminal device return by second channel.
Whether the first judgment module 613 is logical comprising a kind of last downlink in the instruction of quickly shaking hands for judging to receive Parameter is interrogated, is to trigger the first sending module 615, otherwise waits for receiving data, triggering third judgment module 614;
In the present embodiment, whether the first judgment module 613 is specifically used for the downgoing communication parameter for judging to get number For preset data, it is that the instruction of quickly shaking hands received includes a kind of last downgoing communication parameter, what is otherwise received is quick Instruction of shaking hands does not include a kind of last downgoing communication parameter.
Whether third judgment module 614, the time for the data to be received such as judging are to trigger the more than preset duration Otherwise one sending module 615 triggers the first receiving module 611;
First sending module 615, being used for respectively will be corresponding by second channel according to the different upstream frequencies of preservation Uplink communication parameter and all downgoing communication parameters number got are sent to terminal device 62;
Specifically, in the present embodiment, the first sending module 615 includes:
First is used as submodule:For using a upstream frequency as current upstream frequency;
First sending submodule, for according to current upstream frequency by second channel by corresponding uplink communication parameter and All downgoing communication parameters number got is sent to terminal device 62;
Specifically, in the present embodiment, the first sending submodule includes:
First transmission unit sends preset head redundant data for passing through second channel to terminal device 62;
Second transmission unit, for sending the first default frame head to terminal device 62 by second channel;
Third transmission unit, for sending the second default frame head to terminal device 62 by second channel;
4th transmission unit, based on according to current uplink communication parameter and all downgoing communication parameters got number Data length is calculated, and by second channel to 62 transmission data length of terminal device;
5th transmission unit, it is corresponding for being sent to terminal device 62 by second channel according to current upstream frequency Row communications parameter and all downgoing communication parameters number;
6th transmission unit, for by second channel to terminal device 62 send verification and;
7th transmission unit sends preset tail redundant data for passing through second channel to terminal device 62.
6th judging submodule is that then triggering first receives mould for judging whether the upstream frequency preserved handles completion Block 611 triggers the first sending submodule otherwise using next upstream frequency as current upstream frequency.
Terminal device 62 includes:
Second sending module 621, for giving the intelligence of connection close respectively by the first channel according to different downstream frequencies Key equipment 61 sends the corresponding instruction of quickly shaking hands comprising downgoing communication parameter;
Second receiving module 622, the corresponding uplink communication parameter sent for receiving all intelligent cipher key equipments 62 With all downgoing communication parameters number got;
As module 623, for using a uplink communication parameter and all downgoing communication parameter numbers got as Current response;
Second parsing module 624 for being parsed to currently responding, and judges whether parsing succeeds, and is to trigger the Otherwise one acquisition module 626 triggers the second judgment module 625;
Specifically, in the present embodiment, the second parsing module 624 includes:
7th judging submodule is to trigger analysis judgment submodule for judging currently respond whether meet predetermined format Otherwise block triggers the 4th judgment module 627;
Analysis judgment submodule, for being parsed to currently responding, and according in analysis result verification and judge solve It whether correct analyses result, is to trigger the second acquisition module 628, otherwise trigger the 4th judgment module 627.
Second judgment module 625, for judging whether to have handled all uplinks when the second parsing module parses failure Communications parameter and all downgoing communication parameters number got, are to report an error, terminate, otherwise by another uplink communication parameter It is responded as current with all downgoing communication parameters number got, triggers the second parsing module 624;
First acquisition module 626, for obtaining uplink communication parameter and institute from the analysis result of the second parsing module 624 Some downgoing communication parameters are numbered and are preserved;
4th judgment module 627, for judge whether to have handled all uplink communication parameters and get it is all under Row communications parameter is numbered, and is to trigger the second acquisition module 628, otherwise owns another uplink communication parameter with what is got Downgoing communication parameter number triggers the second parsing module 624 as current response;
Second acquisition module 628, for obtaining corresponding downgoing communication according to all downgoing communication parameters of preservation number Parameter determines that the communication of intelligent cipher key equipment is joined according to all uplink communication parameters of the downgoing communication parameter and acquisition that get Number configuration.
In the present embodiment, terminal device 62 further includes:6th judgment module, for judging comprising downgoing communication parameter Whether instruction of quickly shaking hands all is sent completely, and is the data for waiting for intelligent cipher key equipment to return, and otherwise continues to send quick It shakes hands instruction.
In the present embodiment, intelligent cipher key equipment 61 further includes the 5th judgment module;
First receiving module 611 is additionally operable to the protocol data instruction of receiving terminal apparatus transmission;
5th judgment module is to trigger for judging whether the type of protocol data instruction is instruction of quickly shaking hands Otherwise one parsing module 612 is handled protocol data instruction.
In the present embodiment, intelligent cipher key equipment 61 further includes:
7th judgment module refers to for judging whether the first receiving module 611 receives protocol data in preset time It enables, is then to trigger the 5th judgment module, otherwise reports an error, terminate.
In the present embodiment, terminal device 62 further includes the 8th judgment module;
Second receiving module 622 is additionally operable to receive the data of the transmission of intelligent cipher key equipment 61;
Whether the 8th judgment module judges in the data received for the second receiving module 622 comprising uplink communication ginseng Number, is to trigger as module, otherwise reports an error, wait data to be received.
Terminal device 62 further includes:
Tenth judgment module is set for judging whether the second receiving module 622 receives intelligent key in preset time The standby data returned are then to trigger the 8th judgment module, otherwise report an error, terminate.
Terminal device 62 further includes the 12nd judgment module;
Second sending module 621 is additionally operable to send comprising the downlink got to intelligent cipher key equipment 61 by the first channel The detection of communications parameter instructs;
First receiving module 611 is additionally operable to receive detection instruction;
First parsing module 612 is additionally operable to parse detection instruction, such as successfully resolved, then triggers first and send mould Block 615 reports an error if parsing failure, terminates;
First sending module 615 is additionally operable to return by second channel using the analysis result of detection instruction as detection response Back to terminal device 62;
Second receiving module 622 is additionally operable to receive the detection response that intelligent cipher key equipment 61 returns;
Second parsing module 624 is additionally operable to parse detection response, and judges whether successfully resolved, is to trigger Otherwise second acquisition module 628 triggers the 12nd judgment module;
Second acquisition module 628 is additionally operable to obtain downgoing communication parameter from the analysis result of detection response and preserve, touches Send out the 12nd judgment module;
12nd judgment module is the downgoing communication then from preservation for judging whether all detection instructions are sent completely Downgoing communication parameter is obtained in parameter;
Second sending module 621 is additionally operable to that the downgoing communication parameter that one obtains is sent to intelligence by the first channel Key devices 61 simultaneously start to carry out data communication with it.
Terminal device 62 further includes:
14th judgment module is connected thereto for judging whether there is intelligent cipher key equipment 61;
16th judgment module, for judging whether to set with intelligent key for the first time when the 14th judgment module is judged as YES Standby 61 connection;
Negotiate judgment module, for the downgoing communication parameter and intelligence when the 14th judgment module is judged as NO using preservation Energy key devices 61 negotiate communication speed, and judge whether to negotiate successfully;
Communication module, for using the successful communication speed of negotiation and intelligent key when negotiating judgment module and being judged as YES Equipment carries out data communication.
Embodiment seven
The embodiment of the present invention seven provides a kind of device of quick identification communications parameter configuration, as shown in fig. 7, comprises:
First receiving module 71, the instruction of quickly shaking hands sent for receiving terminal apparatus;
First parsing module 72 for being parsed to the instruction of quickly shaking hands that the first receiving module 71 receives, and is sentenced It is disconnected whether successfully resolved, be that downgoing communication parameter is analytically obtained in result number and preserve, the first judgment module 73 of triggering, It otherwise waits for receiving data, triggering third judgment module 74;
Specifically, in the present embodiment, the first parsing module 72 includes:
First judging submodule, four byte numbers sent for judging the terminal device that the first receiving module 71 receives It is that then sub-module stored in four byte data sequential storages to buffer area, will be triggered according to whether being correct frame head data, it is no Then trigger third judgment module 74;
Specifically, in the present embodiment, the first judging submodule includes:
First judging unit, for judging whether the first character joint number evidence that the first receiving module 71 receives is first frame Head data are to trigger third judgment module then by first character joint number according to reception data in storage to buffer area, are otherwise waited for 74;
Second judgment unit, for judging whether second byte data that the first receiving module receives is the second frame head Data are then by second byte data sequential storage to buffer area, and otherwise empty the cache area, waits data to be received, triggering Third judgment module 74;
Third judging unit, for judging whether the third byte data that the first receiving module receives is third frame head Data are then by third byte data sequential storage to buffer area, and otherwise empty the cache area, waits data to be received, triggering Third judgment module 74;
4th judging unit, for judging whether the 4th byte data that the first receiving module receives is the 4th frame head Data are then by the 4th byte data sequential storage to buffer area, and otherwise empty the cache area, waits data to be received, triggering Third judgment module 74.
Sub-module stored, backhaul frequency that the terminal device for receiving the first receiving module 71 issues, agreement ginseng In number, data length, data content sequential storage to buffer area;
Second judgment submodule, for when the first receiving module 71 receives check code, judging to cache according to check code Whether the data in area are correct, are to trigger third judging submodule 74, and otherwise empty the cache area, trigger third judgment module 74;
In the present embodiment, second judgment submodule be specifically used for calculating the verification of the data in buffer area and, and judge The verification that is calculated and whether consistent with check code is that the data then in buffer area are correct, and otherwise the data in buffer area are not Correctly.
Third judging submodule receives the first parameter field of uplink for judging whether according to protocol parameter, is that triggering is deposited Submodule is stored up, acquisition submodule is otherwise triggered;
Sub-module stored is additionally operable to uplink the first parameter field sequential storage for receiving the first receiving module 71 to caching Qu Zhong;
4th judging submodule receives preset data for judging whether, is then by preset data sequential storage to slow It deposits in area, triggers sub-module stored, otherwise trigger acquisition submodule;
Sub-module stored, uplink the second parameter field sequential storage for receiving the first receiving module 71 to buffer area In;
5th judging submodule is to trigger acquisition submodule, otherwise for judging whether the second parameter field of uplink is correct Empty the cache area, triggering third judgment module 74;
Specifically, in the present embodiment, the 5th judging submodule is specifically used for removing check code in the second parameter field of uplink Other data carry out calculate verification and, and judge be calculated verification and whether with the check code in the second parameter field of uplink Unanimously, it is that then the second parameter field of uplink is correct, otherwise the second parameter field of uplink is incorrect.
Acquisition submodule is numbered and is preserved for obtaining downgoing communication parameter from data content;
First judgment module 73, whether the instruction of quickly shaking hands for judging to receive is comprising a kind of last downgoing communication ginseng Number, is to trigger the first sending module 75, otherwise waits for receiving data, triggering third judgment module 74;
Specifically, in the present embodiment, the first judgment module 73 is specifically used for the downgoing communication parameter for judging to get and compiles Number whether it is preset data, is that the instruction of quickly shaking hands received includes a kind of last downgoing communication parameter, otherwise receives Instruction of quickly shaking hands do not include a kind of last downgoing communication parameter.
Whether third judgment module 74, the time for the data to be received such as judging are to trigger the more than preset duration Otherwise one sending module 75 triggers the first receiving module 71;
First sending module 75, being used for respectively will be corresponding by second channel according to the different upstream frequencies of preservation Row communications parameter and all downgoing communication parameters number got are sent to terminal device;It is additionally operable to through second channel to eventually End equipment return is properly received information.
Device in the present embodiment further includes the 5th judgment module;
First receiving module 71 is additionally operable to the protocol data instruction of receiving terminal apparatus transmission;
5th judgment module is to trigger for judging whether the type of protocol data instruction is instruction of quickly shaking hands Otherwise one parsing module 72 is handled protocol data instruction.
Device in the present embodiment further includes:
7th judgment module is then to trigger the 5th for judging whether receive protocol data instruction in preset time Otherwise judgment module reports an error, terminate.
In the present embodiment, the first parsing module 72 is additionally operable to parse the detection instruction that terminal device is sent, such as Successfully resolved then triggers the first sending module 75, reports an error if parsing failure, terminates;
First sending module 75, the analysis result for being additionally operable to detect instruction are returned as detection response by second channel To terminal device.
Specifically, in the present embodiment, the first sending module 75 includes:
First is used as submodule:For using a upstream frequency as current upstream frequency;
First sending submodule, for according to current upstream frequency by second channel by corresponding uplink communication parameter and All downgoing communication parameters number got is sent to terminal device;
Wherein, the first sending submodule in the present embodiment includes:
First transmission unit, for sending preset head redundant data to terminal device by second channel;
Second transmission unit, for sending the first default frame head to terminal device by second channel;
Third transmission unit, for sending the second default frame head to terminal device by second channel;
4th transmission unit, based on according to current uplink communication parameter and all downgoing communication parameters got number Data length is calculated, and by second channel to terminal device transmission data length;
5th transmission unit, for sending corresponding uplink to terminal device by second channel according to current upstream frequency Communications parameter and all downgoing communication parameters number;
6th transmission unit, for by second channel to terminal device send verification and;
7th transmission unit, for sending preset tail redundant data to terminal device by second channel.
6th judging submodule is that then triggering first receives mould for judging whether the upstream frequency preserved handles completion Block 71 triggers the first sending submodule otherwise using next upstream frequency as current upstream frequency.
The embodiment of the present invention can accelerate the negotiations process of communication speed;And it can quickly identify whether main equipment is that intelligence is close The equipment that key equipment is supported improves communication speed.
The foregoing is only a preferred embodiment of the present invention, but scope of protection of the present invention is not limited thereto, Any one skilled in the art is in technical scope disclosed by the invention, the change or replacement that can be readily occurred in, It should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with scope of the claims Subject to.

Claims (32)

1. a kind of method of quick identification communications parameter configuration, which is characterized in that including:
Terminal device gives the intelligent cipher key equipment transmission of connection corresponding respectively according to different downstream frequencies by the first channel Include the instruction of quickly shaking hands of downgoing communication parameter, the data for waiting the intelligent cipher key equipment to be received to return;
Step S1:When the intelligent cipher key equipment receives being solved to it when quickly shaking hands and instructing for the terminal device transmission Analysis, and judge whether successfully resolved, it is that downgoing communication parameter is analytically obtained in result numbers and preserve, and executes step S2, It otherwise waits for receiving data, executes step S3;
Step S2:Whether the intelligent cipher key equipment judges in the quick instruction of shaking hands received comprising a kind of last downgoing communication Parameter is to then follow the steps S4, otherwise waits for receiving data, executes step S3;
Step S3:Whether the time of the data to be received such as the intelligent cipher key equipment judgement is more than preset duration, is to execute step Rapid S4, otherwise return to step S1;
Step S4:The intelligent cipher key equipment according to preservation different upstream frequencies by second channel respectively will be corresponding on Row communications parameter and all downgoing communication parameters number got are sent to the terminal device;
Step S5:When the terminal device receives the corresponding uplink communication parameter that all intelligent cipher key equipments are sent With get all downgoing communication parameter numbers when, by a uplink communication parameter and all downgoing communication parameters for getting Number is as current response;
Step S6:The terminal device is parsed to currently responding, and judges whether parsing succeeds, and is to then follow the steps S8, It is no to then follow the steps S7;
Step S7:The terminal device judges whether all downgoing communications for having handled all uplink communication parameters He having got Parameter is numbered, and is to report an error, and is terminated, and otherwise numbers another uplink communication parameter and all downgoing communication parameters got As current response, return to step S6;
Step S8:The terminal device analytically obtains uplink communication parameter and all downgoing communication parameters number in result simultaneously It preserves;
Step S9:The terminal device judges whether all downgoing communications for having handled all uplink communication parameters He having got Parameter is numbered, and is to then follow the steps S10, otherwise compiles another uplink communication parameter and all downgoing communication parameters got Number conduct currently responds, return to step S6;
Step S10:The terminal device obtains corresponding downgoing communication parameter according to all downgoing communication parameters of preservation number, The communication ginseng of the intelligent cipher key equipment is determined according to all uplink communication parameters of the downgoing communication parameter and acquisition that get Number configuration.
2. the method as described in claim 1, which is characterized in that before the step S1, further include:The terminal device judges Including whether the instruction of quickly shaking hands of downgoing communication parameter is all sent completely, it is that the intelligent cipher key equipment is waited for return Otherwise data continue to send instruction of quickly shaking hands.
3. the method as described in claim 1, which is characterized in that before the step S1, further include:
Step A:When the intelligent cipher key equipment receives the protocol data instruction that the terminal device is sent, the association is judged Whether the type for discussing data command is the instruction of quickly shaking hands, and is to then follow the steps S1, is otherwise instructed to the protocol data It is handled.
4. method as claimed in claim 3, which is characterized in that include before the step A:The intelligent cipher key equipment judges The protocol data instruction whether is received in preset time, is to then follow the steps A, is otherwise reported an error, terminates.
5. the method as described in claim 1, which is characterized in that the step S2 is specially:The intelligent cipher key equipment judges Whether the downgoing communication parameter number got is preset data, is that the instruction of quickly shaking hands received includes last Kind downgoing communication parameter, the instruction of quickly shaking hands otherwise received do not include a kind of last downgoing communication parameter.
6. the method as described in claim 1, which is characterized in that further include before the step S5:
Step B:When the terminal device receives the data that the intelligent cipher key equipment is sent, the data received described in judgement In whether include uplink communication parameter, be to then follow the steps S5, otherwise report an error, wait data to be received.
7. method as claimed in claim 6, which is characterized in that include before the step B:The terminal device judges pre- If whether receiving the data that the intelligent cipher key equipment returns in the time, it is to then follow the steps B, otherwise reports an error, terminates.
8. the method as described in claim 1, which is characterized in that further include after the step S10:
Step C1:The terminal device is sent to the intelligent cipher key equipment comprising the downlink got by first channel The detection of communications parameter instructs, and the detection response for waiting the intelligent cipher key equipment to be received to return;
Step C2:It is parsed when the intelligent cipher key equipment receives the detection instruction, such as successfully resolved, then institute It states described in intelligent cipher key equipment returned to using the analysis result of the detection instruction as detection response by the second channel Terminal device reports an error if parsing failure, terminates;
Step C3:The terminal device parses it when receiving the detection response that the intelligent cipher key equipment returns, and Judge whether successfully resolved, is to then follow the steps C4, it is no to then follow the steps C5;
Step C4:The terminal device obtains downgoing communication parameter and is preserved from the analysis result of detection response, executes step C5;
Step C5:The terminal device judges whether all detection instructions are sent completely, and is the downgoing communication then from preservation Downgoing communication parameter is obtained in parameter, executes step C6, otherwise return to step C1;
Step C6:The downgoing communication parameter that one obtains is sent to the intelligence by the terminal device by first channel Key devices simultaneously start to carry out data communication with it.
9. method as claimed in claim 8, which is characterized in that the terminal device also wraps before sending instruction of quickly shaking hands It includes:
Step D1:The terminal device judges whether there is intelligent cipher key equipment and is connected thereto, and is to then follow the steps D2, otherwise returns Step D1;
Step D2:The terminal device judges whether to connect with the intelligent cipher key equipment for the first time, is that then the terminal device is sent out Instruction of quickly shaking hands is sent, it is no to then follow the steps D3;
Step D3:The terminal device negotiates communication speed using the downgoing communication parameter preserved and the intelligent cipher key equipment, And judge whether to negotiate successfully, it is to then follow the steps D4, otherwise the terminal device sends instruction of quickly shaking hands;
Step D4:The terminal device carries out data communication using successful communication speed is negotiated with the intelligent cipher key equipment.
10. the method as described in claim 1, which is characterized in that the step S1 includes:
Step S1-1:When the intelligent cipher key equipment receives four byte datas that the terminal device is sent, judgement is No is correct frame head data, is then to execute step S1-2, otherwise by four byte data sequential storages to buffer area Etc. data to be received, step S3 is executed;
Step S1-2:The intelligent cipher key equipment waits for and receives the backhaul frequency that the terminal device issues, protocol parameter, number According to length, data content, by the backhaul frequency, protocol parameter, data length, data content sequential storage to the buffer area In;
Step S1-3:When the intelligent cipher key equipment receives check code, judged in the buffer area according to the check code Data it is whether correct, be to then follow the steps S1-4, otherwise empty the buffer area, wait data to be received, execute step S3;
Step S1-4:The intelligent cipher key equipment judges whether to receive the first parameter field of uplink according to the protocol parameter, is then Step S1-5 is executed, it is no to then follow the steps S1-9;
Step S1-5:When the intelligent cipher key equipment receives the first parameter field of uplink by its sequential storage to the buffer area In;
Step S1-6:The intelligent cipher key equipment judges whether to receive preset data, is to deposit preset data sequence It stores up in the buffer area, executes step S1-7, it is no to then follow the steps S1-9;
Step S1-7:The intelligent cipher key equipment receives the second parameter field of uplink and will be in its sequential storage to the buffer area;
Step S1-8:The intelligent cipher key equipment judges whether the second parameter field of the uplink is correct, is to then follow the steps S1-9, Otherwise the buffer area is emptied, data to be received are waited, executes step S3;
Step S1-9:The intelligent cipher key equipment is properly received information by the second channel to terminal device return, Downgoing communication parameter is obtained from the data content to number and preserve, and executes step S2.
11. method as claimed in claim 10, which is characterized in that the step S1-1 includes:
Step S1-11:The data to be received such as the intelligent cipher key equipment, when receive first character joint number according to when, judge that it is No is the first frame head data, be then by the first character joint number according to storage in the buffer area, executing step S1-12, it is no The data to be received such as then execute step S3;
Step S1-12:When the intelligent cipher key equipment receives second byte data, judge whether it is the second frame head number According to being then to execute step S1-13 by second byte data sequential storage to the buffer area, otherwise empty described Buffer area waits data to be received, executes step S3;
Step S1-13:Judge whether it is third frame head number when the intelligent cipher key equipment receives third byte data According to being then to execute step S1-14 by the third byte data sequential storage to the buffer area, otherwise empty described Buffer area waits data to be received, executes step S3;
Step S1-14:Judge whether it is the 4th frame head number when the intelligent cipher key equipment receives the 4th byte data According to being then to execute step S1-2 by the 4th byte data sequential storage to the buffer area, otherwise empty described slow Area is deposited, data to be received are waited, executes step S3.
12. method as claimed in claim 10, which is characterized in that the step S1-3 includes:
The intelligent cipher key equipment calculate the data in the buffer area verification and, and judge the verification that is calculated and whether It is consistent with the check code, it is that the data then in the buffer area are correct, the data otherwise in the buffer area are incorrect.
13. method as claimed in claim 10, which is characterized in that the step S1-8 includes:
The intelligent cipher key equipment in the second parameter field of the uplink remove check code other data carry out calculate verification and, and Judge be calculated verification and it is whether consistent with the check code in the second parameter field of the uplink, be then the uplink second join Number field is correct, and otherwise the second parameter field of the uplink is incorrect.
14. the method as described in claim 1, which is characterized in that the step S4 includes:
Step S41:The intelligent cipher key equipment is using a upstream frequency as current upstream frequency;
Step S42:The intelligent cipher key equipment is according to current upstream frequency by second channel by corresponding uplink communication parameter It is sent to the terminal device with all downgoing communication parameters number got;
Step S43:The intelligent cipher key equipment judges whether the upstream frequency preserved handles completion, is the end to be received such as then The data that end equipment returns, otherwise using next upstream frequency as current upstream frequency, return to step S42.
15. method as claimed in claim 14, which is characterized in that the step S42 includes:
Step S42-1:The intelligent cipher key equipment sends preset head redundancy by the second channel to the terminal device Data;
Step S42-2:The intelligent cipher key equipment sends the first default frame head by the second channel to the terminal device;
Step S42-3:The intelligent cipher key equipment sends the second default frame head by the second channel to the terminal device;
Step S42-4:The intelligent cipher key equipment is according to current uplink communication parameter and all downgoing communication parameters got Number calculates data length, and sends the data length to the terminal device by the second channel;
Step S42-5:The intelligent cipher key equipment is according to current upstream frequency by the second channel to the terminal device Send the corresponding uplink communication parameter and all downgoing communication parameters number;
Step S42-6:The intelligent cipher key equipment by the second channel to the terminal device send verification and;
Step S42-7:The intelligent cipher key equipment sends preset tail redundancy by the second channel to the terminal device Data.
16. method as claimed in claim 15, which is characterized in that the step S6 includes:
Step S61:The terminal device judges whether current response meets predetermined format, is to then follow the steps S62, otherwise executes Step S7;
Step S62:The terminal device is parsed to currently responding, and according in analysis result verification and judge parsing knot Whether fruit is correct, is to then follow the steps S8, no to then follow the steps S7.
17. a kind of system of quick identification communications parameter configuration, which is characterized in that including terminal device and intelligent cipher key equipment,
The intelligent cipher key equipment includes:
First receiving module, the instruction of quickly shaking hands sent for receiving the terminal device;
First parsing module, for being parsed to the instruction of quickly shaking hands that first receiving module receives, and judgement is No successfully resolved is that downgoing communication parameter is analytically obtained in result numbers and preserve, and triggers the first judgment module, otherwise etc. Data to be received trigger third judgment module;
Whether first judgment module includes a kind of last downgoing communication ginseng in the instruction of quickly shaking hands for judging to receive Number, is to trigger the first sending module, otherwise waits for receiving data, triggers the third judgment module;
The third judgment module, for judging etc. whether the time of data to be received is more than preset duration, be then trigger described in Otherwise first sending module triggers the first receiving module;
First sending module, for the different upstream frequencies according to preservation by second channel respectively by corresponding uplink Communications parameter and all downgoing communication parameters number got are sent to the terminal device;
The terminal device includes:
Second sending module, for giving the intelligent cipher key equipment of connection to send out respectively by the first channel according to different downstream frequencies Send the corresponding instruction of quickly shaking hands comprising downgoing communication parameter;
Second receiving module, for receiving the corresponding uplink communication parameter and acquisition that all intelligent cipher key equipments are sent All downgoing communication parameters number arrived;
As module, for a uplink communication parameter and all downgoing communication parameters got number to be rung as current It answers;
Second parsing module for being parsed to currently responding, and judges whether parsing succeeds, and is that then triggering first obtains mould Otherwise block triggers the second judgment module;
Second judgment module, for judging whether to have handled all uplinks when second parsing module parses failure Communications parameter and all downgoing communication parameters number got, are to report an error, terminate, otherwise by another uplink communication parameter It is responded as current with all downgoing communication parameters number got, triggers second parsing module;
First acquisition module, for obtaining uplink communication parameter from the analysis result of second parsing module and owning Downgoing communication parameter number and preserve;
4th judgment module, all downgoing communications ginseng for judging whether to have handled all uplink communication parameters and got Number number, is to trigger the second acquisition module, otherwise joins another uplink communication parameter and all downgoing communications got Number number triggers second parsing module as current response;
Second acquisition module, for obtaining corresponding downgoing communication parameter, root according to all downgoing communication parameters of preservation number The communications parameter of the intelligent cipher key equipment is determined according to all uplink communication parameters of the downgoing communication parameter and acquisition that get Configuration.
18. system as claimed in claim 17, which is characterized in that the terminal device further includes:6th judgment module, is used for Judge whether the instruction of quickly shaking hands comprising downgoing communication parameter is all sent completely, is that the intelligent cipher key equipment is waited for return Otherwise the data returned continue to send instruction of quickly shaking hands.
19. system as claimed in claim 17, which is characterized in that the intelligent cipher key equipment further includes the 5th judgment module;
First receiving module is additionally operable to receive the protocol data instruction that the terminal device is sent;
5th judgment module, for judging whether the type of the protocol data instruction is the instruction of quickly shaking hands, and is First parsing module is then triggered, otherwise protocol data instruction is handled.
20. system as claimed in claim 19, which is characterized in that the intelligent cipher key equipment further includes:
7th judgment module refers to for judging whether first receiving module receives the protocol data in preset time It enables, is to trigger the 5th judgment module, otherwise reports an error, terminate.
21. system as claimed in claim 17, which is characterized in that first judgment module is specifically used for judging the acquisition To downgoing communication parameter number whether be preset data, be that the instruction of quickly shaking hands that receives is logical comprising a kind of last downlink Parameter is interrogated, the instruction of quickly shaking hands otherwise received does not include a kind of last downgoing communication parameter.
22. system as claimed in claim 17, which is characterized in that the terminal device further includes the 8th judgment module;
Second receiving module is additionally operable to receive the data that the intelligent cipher key equipment is sent;
8th judgment module, for judging in data that second receiving module receives whether to join comprising uplink communication Number, is to trigger as module, otherwise reports an error, wait data to be received.
23. the system as claimed in claim 22, which is characterized in that the terminal device further includes:
Tenth judgment module is set for judging whether second receiving module receives the intelligent key in preset time The standby data returned, are to trigger the 8th judgment module, otherwise report an error, and are terminated.
24. system as claimed in claim 17, which is characterized in that the terminal device further includes the 12nd judgment module;
Second sending module, it includes to get down to be additionally operable to send to the intelligent cipher key equipment by first channel The detection of row communications parameter instructs;
First receiving module is additionally operable to receive the detection instruction;
First parsing module is additionally operable to parse detection instruction, such as successfully resolved, then triggers first and send mould Block reports an error if parsing failure, terminates;
First sending module is additionally operable to believe by described second using the analysis result of the detection instruction as detection response Road returns to the terminal device;
Second receiving module is additionally operable to receive the detection response that the intelligent cipher key equipment returns;
Second parsing module is additionally operable to parse detection response, and judges whether successfully resolved, is to trigger Otherwise second acquisition module triggers the 12nd judgment module;
Second acquisition module is additionally operable to obtain downgoing communication parameter from the analysis result of detection response and preserve, triggers 12nd judgment module;
12nd judgment module is the downlink then from preservation for judging whether all detection instructions are sent completely Downgoing communication parameter is obtained in communications parameter;
Second sending module is additionally operable to be sent to the downgoing communication parameter that one obtains by first channel described Intelligent cipher key equipment simultaneously starts to carry out data communication with it.
25. system as claimed in claim 24, which is characterized in that the terminal device further includes:
14th judgment module is connected thereto for judging whether there is intelligent cipher key equipment;
16th judgment module, it is close with the intelligence for the first time for judging whether when the 14th judgment module is judged as YES Key equipment connects;
Negotiate judgment module, for when the 14th judgment module is judged as NO using preservation downgoing communication parameter and institute It states intelligent cipher key equipment and negotiates communication speed, and judge whether to negotiate successfully;
Communication module, for using the successful communication speed of negotiation and the intelligence when the negotiation judgment module is judged as YES Key devices carry out data communication.
26. system as claimed in claim 17, which is characterized in that first parsing module includes:
First judging submodule, four bytes sent for judging the terminal device that first receiving module receives Whether data are correct frame head data, are then by four byte data sequential storages to buffer area, triggering storage is sub Otherwise module triggers the third judgment module;
The sub-module stored, backhaul frequency that the terminal device for receiving first receiving module issues, In protocol parameter, data length, data content sequential storage to the buffer area;
Second judgment submodule, for when first receiving module receives check code, judging institute according to the check code Whether the data stated in buffer area are correct, are to trigger third judging submodule, otherwise empty the buffer area, wait number to be received According to triggering the third judgment module;
The third judging submodule receives the first parameter field of uplink for judging whether according to the protocol parameter, is then tactile It sends out sub-module stored described, otherwise triggers acquisition submodule;
The sub-module stored is additionally operable to uplink the first parameter field sequential storage for receiving first receiving module to institute It states in buffer area;
4th judging submodule receives preset data for judging whether, is then by the preset data sequential storage to institute It states in buffer area, triggers the sub-module stored, otherwise trigger acquisition submodule;
The sub-module stored, uplink the second parameter field sequential storage for receiving first receiving module is described in In buffer area;
5th judging submodule is to trigger acquisition submodule, otherwise for judging whether the second parameter field of the uplink is correct The buffer area is emptied, data to be received are waited, triggers the third judgment module;
The acquisition submodule is numbered and is preserved for obtaining downgoing communication parameter from the data content;
First sending module is additionally operable to be properly received information to terminal device return by second channel.
27. system as claimed in claim 26, which is characterized in that first judging submodule includes:
First judging unit, for judging whether the first character joint number evidence that first receiving module receives is the first frame head Data are that will be the first character joint number according in storage to the buffer area, otherwise waiting for receiving data, triggering described the Three judgment modules;
Second judgment unit, for judging whether second byte data that first receiving module receives is the second frame head Data are then otherwise to empty the buffer area by second byte data sequential storage to the buffer area, wait waiting Data are received, the third judgment module is triggered;
Third judging unit, for judging whether the third byte data that first receiving module receives is third frame head Data are then otherwise to empty the buffer area by the third byte data sequential storage to the buffer area, wait waiting Data are received, the third judgment module is triggered;
4th judging unit, for judging whether the 4th byte data that first receiving module receives is the 4th frame head Data are then otherwise to empty the buffer area by the 4th byte data sequential storage to the buffer area, wait waiting Data are received, the third judgment module is triggered.
28. system as claimed in claim 26, which is characterized in that the second judgment submodule is specifically used for calculating described slow Deposit the data in area verification and, and judge the verification that is calculated and whether consistent with the check code, be the then caching Data in area are correct, and otherwise the data in the buffer area are incorrect.
29. system as claimed in claim 26, which is characterized in that the 5th judging submodule is specifically used for the uplink In second parameter field except other data of check code calculate verification and, and judge the verification that is calculated and whether with it is described Check code in the second parameter field of uplink is consistent, is that then the second parameter field of the uplink is correct, otherwise the second parameter of the uplink Domain is incorrect.
30. system as claimed in claim 17, which is characterized in that first sending module includes:
First is used as submodule:For using a upstream frequency as current upstream frequency;
First sending submodule, for according to current upstream frequency by second channel by corresponding uplink communication parameter and acquisition To all downgoing communication parameters number be sent to the terminal device;
6th judging submodule is to trigger described first to receive mould for judging whether the upstream frequency preserved handles completion Block triggers first sending submodule otherwise using next upstream frequency as current upstream frequency.
31. system as claimed in claim 30, which is characterized in that first sending submodule includes:
First transmission unit, for sending preset head redundant data to the terminal device by second channel;
Second transmission unit, for sending the first default frame head to the terminal device by second channel;
Third transmission unit, for sending the second default frame head to the terminal device by second channel;
4th transmission unit, for calculating number according to current uplink communication parameter and all downgoing communication parameters got number According to length, and by second channel the data length is sent to the terminal device;
5th transmission unit, it is described corresponding for being sent to the terminal device by second channel according to current upstream frequency Uplink communication parameter and all downgoing communication parameters number;
6th transmission unit, for by second channel to the terminal device send verification and;
7th transmission unit, for sending preset tail redundant data to the terminal device by second channel.
32. system as claimed in claim 31, which is characterized in that second parsing module includes:
7th judging submodule is to trigger analysis judgment submodule for judging currently respond whether meet predetermined format, no Then trigger the 4th judgment module;
The analysis judgment submodule, for being parsed to currently responding, and according in analysis result verification and judge solve It whether correct analyses result, is to trigger second acquisition module, otherwise triggers the 4th judgment module.
CN201510846932.2A 2015-11-27 2015-11-27 A kind of method, system and device of quick identification communications parameter configuration Active CN105407001B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510846932.2A CN105407001B (en) 2015-11-27 2015-11-27 A kind of method, system and device of quick identification communications parameter configuration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510846932.2A CN105407001B (en) 2015-11-27 2015-11-27 A kind of method, system and device of quick identification communications parameter configuration

Publications (2)

Publication Number Publication Date
CN105407001A CN105407001A (en) 2016-03-16
CN105407001B true CN105407001B (en) 2018-10-12

Family

ID=55472264

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510846932.2A Active CN105407001B (en) 2015-11-27 2015-11-27 A kind of method, system and device of quick identification communications parameter configuration

Country Status (1)

Country Link
CN (1) CN105407001B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106375277B (en) * 2016-08-21 2020-04-10 上海林果实业股份有限公司 Automatic generation method, system and terminal of communication configuration list
CN113378150A (en) * 2021-06-22 2021-09-10 疯壳(深圳)科技有限公司 Autonomous identification and connection method and system for serial port terminal equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011064998A1 (en) * 2009-11-27 2011-06-03 パナソニック株式会社 Master device, slave device and communication system
CN103490894A (en) * 2013-09-09 2014-01-01 飞天诚信科技股份有限公司 Implementation method and device for determining lifecycle of intelligent key device
CN104639561A (en) * 2015-02-27 2015-05-20 飞天诚信科技股份有限公司 Method for safely obtaining secret key
CN105099709A (en) * 2015-08-28 2015-11-25 北京坚石诚信科技有限公司 Intelligent key device as well as working method and working device of intelligent key device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011064998A1 (en) * 2009-11-27 2011-06-03 パナソニック株式会社 Master device, slave device and communication system
CN103490894A (en) * 2013-09-09 2014-01-01 飞天诚信科技股份有限公司 Implementation method and device for determining lifecycle of intelligent key device
CN104639561A (en) * 2015-02-27 2015-05-20 飞天诚信科技股份有限公司 Method for safely obtaining secret key
CN105099709A (en) * 2015-08-28 2015-11-25 北京坚石诚信科技有限公司 Intelligent key device as well as working method and working device of intelligent key device

Also Published As

Publication number Publication date
CN105407001A (en) 2016-03-16

Similar Documents

Publication Publication Date Title
CN106991065A (en) Method by USB host computers with being communicated with CAN and/or LIN bus apparatus
CN105407001B (en) A kind of method, system and device of quick identification communications parameter configuration
CN102075389B (en) Debugging method and equipment
CN204759403U (en) System based on data pass realization equipment internal module thoroughly and upgrade
CN104915616B (en) A kind of method and card reader for accessing smart card
CN103957204B (en) The General adaptive method communicated with security device interfaces
CN106528053B (en) A kind of terminal device high efficiency data processing method and its terminal device
CN106941501A (en) A kind of data communications method and device
CN103152199A (en) Method and system for remote batch configuration of network devices
CN112379660B (en) UART for automobile automatic driving domain controller and debugging system and method
CN109116832A (en) Vehicle diagnostic data wireless communication method
CN107290988A (en) Robot and its teaching machine communication system and method
CN106448128A (en) Processing method and system of infrared remote control data
CN106625674A (en) Command processing method for robot and robot
CN108469834A (en) Unmanned aerial vehicle (UAV) control method, apparatus and computer readable storage medium
CN101529807A (en) A method and system for realizing universal interfaces in the network management system
CN102231667A (en) Method and device for registering serial device
CN107046647A (en) A kind of control method of multispectral remote sensing image real-time decompression device
CN106330397A (en) Method and device for implementing data interaction on ZigBee and Modbus RTU protocols
CN101399852B (en) Method for realizing wireless access kit upgrading through network interface
CN107547265B (en) Port configuration method and device
CN216210993U (en) Data communication bidirectional ferry isolating device
CN105353671B (en) The pressure of nuclear power plant instrument control system variable and release device and method
CN104717109A (en) Simulation testing method and system for wide area network links
CN111930645B (en) TCPIP-based universal USB equipment network transparent transmission system and method

Legal Events

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