CN105407001A - Method, system and device for rapidly identifying communication parameter configuration - Google Patents

Method, system and device for rapidly identifying communication parameter configuration Download PDF

Info

Publication number
CN105407001A
CN105407001A CN201510846932.2A CN201510846932A CN105407001A CN 105407001 A CN105407001 A CN 105407001A CN 201510846932 A CN201510846932 A CN 201510846932A CN 105407001 A CN105407001 A CN 105407001A
Authority
CN
China
Prior art keywords
data
cipher key
intelligent cipher
terminal equipment
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.)
Granted
Application number
CN201510846932.2A
Other languages
Chinese (zh)
Other versions
CN105407001B (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

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a method, a system and a device for rapidly identifying communication parameter configuration. The method comprises the following steps that: when fast handshake instructions sent by terminal equipment are received, smart key equipment analyzesthe fast handshake instructions, acquires downlink communication parameter numbers from an analysisresult, saves the acquired downlink communication parameter numbers, and transmits corresponding uplink communication parameters and all the acquired downlink communication parameter numbers to the terminal equipment respectively through a second channel according to saved different uplink frequencies when the fast handshake instructions comprise a last downlink communication parameter or a data reception waiting time exceeds a preset duration; the terminal equipment analyzesthe received data, acquires the uplink communication parameters and all the downlink communication parameter numbers from the analysisresult, and saves the acquired uplink communication parameters and all the acquired downlink communication parameter numbers; and the terminal equipment acquires corresponding downlink communication parameters according to all the saved downlink communication parameter numbers, and determines the communication parameter configuration of the smart key equipment according to the acquired downlink communication parameters and all the acquired uplink communication parameters.

Description

A kind of method, system and device of quick identification communications parameter configuration
Technical field
The present invention relates to information security field, particularly relate to a kind of method, system and device of quick identification communications parameter configuration.
Background technology
In the prior art, intelligent cipher key equipment and app (application program) are in communication process, intelligent cipher key equipment is from equipment, the host equipment of app is main equipment, before carrying out communication, main equipment is initiatively shaken hands to from equipment, and shaking hands, it is descending and up to be divided into, if descending existing app has m kind scheme, up have n kind parameter configuration, then m*n kind of having shaken hands scheme.Want to confirm whether this main equipment is the equipment (namely how identifying the communications parameter configuration of this main equipment) that intelligent cipher key equipment is supported, need to go trial to carry out communication by often kind of scheme in turn, but find that this implementation has a fatal weakness in actual applications, if first storehouse of calling is the storehouse of the equipment that intelligent cipher key equipment is supported, if so connect other a equipment, could determine after just needing to have tried m*n kind scheme whether the equipment connected is the equipment that intelligent cipher key equipment is supported, and complete this process need about 50 seconds, cause communication speed low.How identifying the communications parameter configuration of main equipment fast, is prior art problem demanding prompt solution.
Summary of the invention
The object of the invention is to overcome the deficiencies in the prior art, a kind of method, system and device of quick identification communications parameter configuration are provided.
The embodiment of the present invention provides a kind of method of quick identification communications parameter configuration, comprising:
Terminal equipment sends the corresponding instruction of shaking hands fast comprising downgoing communication parameter, the data that intelligent cipher key equipment described in wait-receiving mode returns to respectively the intelligent cipher key equipment connected according to different downstream frequencys by the first channel;
Step S1: when described intelligent cipher key equipment receive described terminal equipment send shake hands fast instruction time it is resolved, and judge whether successfully resolved, be analytically obtain downgoing communication parameter in result and number and preserve, perform step S2, otherwise wait-receiving mode data, perform step S3;
Step S2: described intelligent cipher key equipment judges whether comprise last a kind of downgoing communication parameter in the instruction of shaking hands fast received, and is perform step S4, otherwise wait-receiving mode data, perform step S3;
Step S3: described intelligent cipher key equipment judges whether the time of wait-receiving mode data exceedes preset duration, is perform step S4, otherwise returns step S1;
Step S4: the uplink communication parameter of correspondence and all downgoing communication parameters numberings got are sent to described terminal equipment according to the different upstream frequency of preserving by second channel by described intelligent cipher key equipment respectively;
Step S5: when the uplink communication parameter that described terminal equipment receives the correspondence that all described intelligent cipher key equipments send and get all downgoing communication parameter numberings time, a uplink communication parameter and all downgoing communication parameters of getting are numbered as current response;
Step S6: described terminal equipment is resolved current response, and judge that whether parsing is successful, be perform step S8, otherwise perform step S7;
Step S7: described terminal equipment judges whether all downgoing communication parameter numberings processing all uplink communication parameters and get, report an error, terminate, otherwise another uplink communication parameter and all downgoing communication parameters got are numbered as current response, return step S6;
Step S8: described terminal equipment analytically obtains uplink communication parameter in result and all downgoing communication parameters are numbered and preserve;
Step S9: described terminal equipment judges whether all downgoing communication parameter numberings processing all uplink communication parameters and get, perform step S10, otherwise another uplink communication parameter and all downgoing communication parameters got are numbered as current response, returns step S6;
Step S10: described terminal equipment obtains corresponding downgoing communication parameter according to all downgoing communication parameter numberings of preserving, all uplink communication parameters according to the downgoing communication parameter got and acquisition determine that the communications parameter of described intelligent cipher key equipment configures.
Further, before described step S1, also comprise: described terminal equipment judges whether the instruction of shaking hands fast comprising downgoing communication parameter is all sent completely, and is wait for the data that described intelligent cipher key equipment returns, otherwise continue to send instruction of shaking hands fast.
Further, before described step S1, also comprise:
Steps A: when described intelligent cipher key equipment receives the protocol data instruction of described terminal equipment transmission, whether the type judging described protocol data instruction is described instruction of shaking hands fast, be perform step S1, otherwise described protocol data instruction is processed.
Further, comprise before described steps A: described intelligent cipher key equipment judges in Preset Time, whether to receive described protocol data instruction, be perform steps A, otherwise report an error, terminate.
Further, described step S2 is specially: whether the downgoing communication parameter numbering got described in described intelligent cipher key equipment judges is preset data, be that the instruction of shaking hands fast received comprises last a kind of downgoing communication parameter, otherwise the instruction of shaking hands fast received does not comprise last a kind of downgoing communication parameter.
Further, also comprise before described step S5:
Step B: when described terminal equipment receives the data of described intelligent cipher key equipment transmission, whether comprise uplink communication parameter in the data received described in judgement, be, perform step S5, otherwise report an error, wait-receiving mode data.
Further, comprise before described step B: described terminal equipment judges whether to receive in Preset Time the data that described intelligent cipher key equipment returns, and is perform step B, otherwise reports an error, terminate.
Further, also comprise after described step S10:
Step C1: described terminal equipment sends the detection instruction comprising the downgoing communication parameter got to described intelligent cipher key equipment by described first channel, and the detection response that intelligent cipher key equipment described in wait-receiving mode returns;
Step C2: it is resolved when described intelligent cipher key equipment receives described detection instruction, as successfully resolved, then the analysis result of described detection instruction is returned to described terminal equipment as detection response by described second channel by described intelligent cipher key equipment, then reporting an error as resolved failure, terminating;
Step C3: when described terminal equipment receives the detection response that described intelligent cipher key equipment returns, it is resolved, and judge whether successfully resolved, be perform step C4, otherwise perform step C5;
Step C4: described terminal equipment obtains downgoing communication parameter and preserves from the analysis result detecting response, performs step C5;
Step C5: described terminal equipment judges whether all detection instructions are sent completely, and are, obtains downgoing communication parameter from the described downgoing communication parameter of preserving, and performs step C6, otherwise returns step C1;
Step C6: a downgoing communication parameter obtained is sent to described intelligent cipher key equipment by described first channel and starts to carry out data communication with it by described terminal equipment.
Further, described terminal equipment also comprises before sending instruction of shaking hands fast:
Step D1: described terminal equipment has judged whether that intelligent cipher key equipment is connected with it, is, performs step D2, otherwise returns step D1;
Step D2: described terminal equipment judges whether to be connected with described intelligent cipher key equipment first, is, described terminal equipment sends instruction of shaking hands fast, otherwise performs step D3;
Step D3: described terminal equipment uses the downgoing communication parameter of preservation and described intelligent cipher key equipment to consult communication speed, and judges whether that consulting successfully, is perform step D4, otherwise described terminal equipment sends instruction of shaking hands fast;
Step D4: described terminal equipment uses the successful communication speed of negotiation and described intelligent cipher key equipment to carry out data communication.
Further, described step S1 comprises:
Step S1-1: when described intelligent cipher key equipment receives four byte datas of described terminal equipment transmission, determine whether correct frame head data, be then by described four byte data sequential storage in buffer area, perform step S1-2, otherwise wait-receiving mode data, perform step S3;
Step S1-2: described intelligent cipher key equipment is waited for and received backhaul frequency, protocol parameter, data length, the data content that described terminal equipment issues, by described backhaul frequency, protocol parameter, data length, data content sequential storage in described buffer area;
Step S1-3: when described intelligent cipher key equipment receives check code, whether correct according to the data that described check code judges in described buffer area, be perform step S1-4, otherwise empty described buffer area, wait-receiving mode data, perform step S3;
Step S1-4: described intelligent cipher key equipment judges whether to receive up first parameter field according to described protocol parameter, is perform step S1-5, otherwise performs step S1-9;
Step S1-5: when described intelligent cipher key equipment receives up first parameter field by its sequential storage in described buffer area;
Step S1-6: described intelligent cipher key equipment judges whether to receive preset data, be then by described preset data sequential storage in described buffer area, perform step S1-7, otherwise perform step S1-9;
Step S1-7: described intelligent cipher key equipment receives up second parameter field and by its sequential storage in described buffer area;
Step S1-8: described intelligent cipher key equipment judges that whether described up second parameter field is correct, is perform step S1-9, otherwise empties described buffer area, wait-receiving mode data, perform step S3;
Step S1-9: described intelligent cipher key equipment returns correct reception information to described terminal equipment by described second channel, obtains downgoing communication parameter and number and preserve from described data content, performs step S2.
Further, described step S1-1 comprises:
Step S1-11: described intelligent cipher key equipment wait-receiving mode data, when receive first character joint number according to time, judge whether it is the first frame head data, be, by described first character joint number according to being stored in described buffer area, perform step S1-12, otherwise wait-receiving mode data, perform step S3;
Step S1-12: when described intelligent cipher key equipment receives second byte data, judge whether it is the second frame head data, be then by described second byte data sequential storage in described buffer area, perform step S1-13, otherwise empty described buffer area, wait-receiving mode data, perform step S3;
Step S1-13: judge when described intelligent cipher key equipment receives the 3rd byte data whether it is the 3rd frame head data, be then by described 3rd byte data sequential storage in described buffer area, perform step S1-14, otherwise empty described buffer area, wait-receiving mode data, perform step S3;
Step S1-14: judge when described intelligent cipher key equipment receives the 4th byte data whether it is the 4th frame head data, be then by described 4th byte data sequential storage in described buffer area, perform step S1-2, otherwise empty described buffer area, wait-receiving mode data, perform step S3.
Further, described step S1-3 comprises:
Described intelligent cipher key equipment calculates the School Affairs of the data in described buffer area, and judges that whether the School Affairs that calculates consistent with described check code, be data then in described buffer area correctly, otherwise data in described buffer area are incorrect.
Further, described step S1-8 comprises:
Described intelligent cipher key equipment in described up second parameter field except other data of check code carry out calculation check and, and judge that whether the School Affairs calculated is consistent with the check code in described up second parameter field, be that then described up second parameter field is correct, otherwise described up second parameter field is incorrect.
Further, described step S4 comprises:
Step S41: described intelligent cipher key equipment using a upstream frequency as current upstream frequency;
Step S42: the uplink communication parameter of correspondence and all downgoing communication parameters numberings got are sent to described terminal equipment according to current upstream frequency by second channel by described intelligent cipher key equipment;
Step S43: described intelligent cipher key equipment judges whether the upstream frequency of preserving has processed, and is, the data that terminal equipment described in wait-receiving mode returns, otherwise using next upstream frequency as current upstream frequency, returns step S42.
Further, described step S42 comprises:
Step S42-1: described intelligent cipher key equipment sends the head redundant data preset to described terminal equipment by described second channel;
Step S42-2: described intelligent cipher key equipment sends first by described second channel to described terminal equipment and presets frame head;
Step S42-3: described intelligent cipher key equipment sends second by described second channel to described terminal equipment and presets frame head;
Step S42-4: described intelligent cipher key equipment according to current uplink communication parameter and all downgoing communication parameter numbering calculated data length got, and sends described data length by described second channel to described terminal equipment;
Step S42-5: described intelligent cipher key equipment sends uplink communication parameter and all downgoing communication parameters numbering of described correspondence to described terminal equipment by described second channel according to current upstream frequency;
Step S42-6: described intelligent cipher key equipment sends School Affairs by described second channel to described terminal equipment;
Step S42-7: described intelligent cipher key equipment sends the tail redundant data preset to described terminal equipment by described second channel.
Further, described step S6 comprises:
Step S61: described terminal equipment judges whether current response meets predetermined format, is, performs step S62, otherwise perform step S7;
Step S62: described terminal equipment is resolved current response, and judge that whether analysis result is correct according to the School Affairs in analysis result, be perform step S8, otherwise perform step S7.
The embodiment of the present invention provides again a kind of method of quick identification communications parameter configuration, comprising:
Step P1: when described intelligent cipher key equipment receive described terminal equipment send shake hands fast instruction time it is resolved, and judge whether successfully resolved, be analytically obtain downgoing communication parameter in result and number and preserve, perform step P2, otherwise wait-receiving mode data, perform step P3;
Step P2: described intelligent cipher key equipment judges whether the instruction of shaking hands fast received comprises last a kind of downgoing communication parameter, is perform step P4, otherwise wait-receiving mode data, perform step P3;
Step P3: described intelligent cipher key equipment judges whether the time of wait-receiving mode data exceedes preset duration, is perform step P4, otherwise returns step P1;
Step P4: the uplink communication parameter of correspondence and all downgoing communication parameters numberings got are sent to described terminal equipment according to the different upstream frequency of preserving by second channel by described intelligent cipher key equipment respectively.
Further, before described step P1, also comprise:
Step M: when described intelligent cipher key equipment receives the protocol data instruction of described terminal equipment transmission, whether the type judging described protocol data instruction is described instruction of shaking hands fast, be perform step P1, otherwise described protocol data instruction is processed.
Further, comprise before described step M: described intelligent cipher key equipment judges in Preset Time, whether to receive described protocol data instruction, be perform step M, otherwise report an error, terminate.
Further, described step P2 is specially: whether the downgoing communication parameter numbering got described in described intelligent cipher key equipment judges is preset data, be that the instruction of shaking hands fast received comprises last a kind of downgoing communication parameter, otherwise the instruction of shaking hands fast received does not comprise last a kind of downgoing communication parameter.
Further, also comprise after described step P4:
Step L: it is resolved when described intelligent cipher key equipment receives the detection instruction of described terminal equipment transmission, as successfully resolved, then the analysis result of described detection instruction responds by described second by returning to described terminal equipment as detection by described intelligent cipher key equipment, then reporting an error as resolved failure, terminating.
Further, described step P1 comprises:
Step T1: when described intelligent cipher key equipment receives four byte datas of described terminal equipment transmission, determine whether correct frame head data, be then by described four byte data sequential storage in buffer area, perform step T2, otherwise wait-receiving mode data, perform step P3;
Step T2: described intelligent cipher key equipment is waited for and received backhaul frequency, protocol parameter, data length, the data content that described terminal equipment issues, by described backhaul frequency, protocol parameter, data length, data content sequential storage in described buffer area;
Step T3: when described intelligent cipher key equipment receives check code, whether correct according to the data that described check code judges in described buffer area, be perform step T4, otherwise empty described buffer area, wait-receiving mode data, perform step P3;
Step T4: described intelligent cipher key equipment judges whether to receive up first parameter field according to described protocol parameter, is perform step T5, otherwise performs step T9;
Step T5: when described intelligent cipher key equipment receives up first parameter field by its sequential storage in described buffer area;
Step T6: described intelligent cipher key equipment judges whether to receive preset data, be then by described preset data sequential storage in described buffer area, perform step T7, otherwise perform step T9;
Step T7: described intelligent cipher key equipment receives up second parameter field and by its sequential storage in described buffer area;
Step T8: described intelligent cipher key equipment judges that whether described up second parameter field is correct, is perform step T9, otherwise empties described buffer area, wait-receiving mode data, perform step P3;
Step T9: described intelligent cipher key equipment returns correct reception information to described terminal equipment by described second channel, obtains downgoing communication parameter and number and preserve from described data content, performs step P2.
Further, described step T1 comprises:
Step T11: described intelligent cipher key equipment wait-receiving mode data, when receive first character joint number according to time, judge whether it is the first frame head data, be, by described first character joint number according to being stored in described buffer area, perform step T12, otherwise wait-receiving mode data, perform step P3;
Step T12: when described intelligent cipher key equipment receives second byte data, judges whether it is the second frame head data, be then by described second byte data sequential storage in described buffer area, perform step T13, otherwise empty described buffer area, wait-receiving mode data, perform step P3;
Step T13: judge when described intelligent cipher key equipment receives the 3rd byte data whether it is the 3rd frame head data, be then by described 3rd byte data sequential storage in described buffer area, perform step T14, otherwise empty described buffer area, wait-receiving mode data, perform step P3;
Step T14: judge when described intelligent cipher key equipment receives the 4th byte data whether it is the 4th frame head data, be then by described 4th byte data sequential storage in described buffer area, perform step T2, otherwise empty described buffer area, wait-receiving mode data, perform step P3.
Further, described step T3 comprises:
Described intelligent cipher key equipment calculates the School Affairs of the data in described buffer area, and judges that whether the School Affairs that calculates consistent with described check code, be data then in described buffer area correctly, otherwise data in described buffer area are incorrect.
Further, described step T8 comprises:
Described intelligent cipher key equipment in described up second parameter field except other data of check code carry out calculation check and, and judge that whether the School Affairs calculated is consistent with the check code in described up second parameter field, be that then described up second parameter field is correct, otherwise described up second parameter field is incorrect.
Further, described step P4 comprises:
Step P41: described intelligent cipher key equipment using a upstream frequency as current upstream frequency;
Step P42: the uplink communication parameter of correspondence and all downgoing communication parameters numberings got are sent to described terminal equipment according to current upstream frequency by second channel by described intelligent cipher key equipment;
Step P43: described intelligent cipher key equipment judges whether the upstream frequency of preserving has processed, and is, the data that terminal equipment described in wait-receiving mode returns, otherwise using next upstream frequency as current upstream frequency, returns step P42.
Further, described step P42 comprises:
Step P42-1: described intelligent cipher key equipment sends the head redundant data preset to described terminal equipment by second channel;
Step P42-2: described intelligent cipher key equipment sends first by second channel to described terminal equipment and presets frame head;
Step P42-3: described intelligent cipher key equipment sends second by second channel to described terminal equipment and presets frame head;
Step P42-4: described intelligent cipher key equipment according to current uplink communication parameter and all downgoing communication parameter numbering calculated data length got, and sends described data length by second channel to described terminal equipment;
Step P42-5: described intelligent cipher key equipment sends uplink communication parameter and all downgoing communication parameters numbering of described correspondence to described terminal equipment by second channel according to current upstream frequency;
Step P42-6: described intelligent cipher key equipment sends School Affairs by second channel to described terminal equipment;
Step P42-7: described intelligent cipher key equipment sends the tail redundant data preset to described terminal equipment by second channel.
The embodiment of the present invention provides a kind of system of quick identification communications parameter configuration, comprises terminal equipment and intelligent cipher key equipment,
Described intelligent cipher key equipment comprises:
First receiver module, for receiving the instruction of shaking hands fast that described terminal equipment sends;
First parsing module, resolves for the instruction of shaking hands fast received described first receiver module, and judges whether successfully resolved, analytically obtain downgoing communication parameter in result and number and preserve, trigger the first judge module, otherwise wait-receiving mode data, trigger the 3rd judge module;
Described first judge module, for judging whether comprise last a kind of downgoing communication parameter in the instruction of shaking hands fast that receives, is trigger the first sending module, otherwise wait-receiving mode data, trigger described 3rd judge module;
Described 3rd judge module, for judging whether the time of wait-receiving mode data exceedes preset duration, is, triggers described first sending module, otherwise triggers the first receiver module;
Described first sending module, for sending to described terminal equipment by the uplink communication parameter of correspondence and all downgoing communication parameters numberings got according to the different upstream frequency of preserving respectively by second channel;
Described terminal equipment comprises:
Second sending module, for sending the corresponding instruction of shaking hands fast comprising downgoing communication parameter to respectively the intelligent cipher key equipment connected according to different downstream frequencys by the first channel;
Second receiver module, for the uplink communication parameter receiving the correspondence that all described intelligent cipher key equipments send and all downgoing communication parameters numberings got;
As module, for a uplink communication parameter and all downgoing communication parameters got are numbered as current response;
Second parsing module, for resolving current response, and judging that whether parsing is successful, being trigger the first acquisition module, otherwise triggering the second judge module;
Described second judge module, for judging whether all downgoing communication parameter numberings processing all uplink communication parameters and get when described second parsing module is resolved unsuccessfully, report an error, terminate, otherwise another uplink communication parameter and all downgoing communication parameters got are numbered as current response, triggers described second parsing module;
Described first acquisition module, for obtaining uplink communication parameter in the analysis result from described second parsing module and all downgoing communication parameters are numbered and preserve;
4th judge module, for judging whether all downgoing communication parameter numberings processing all uplink communication parameters and get, trigger the second acquisition module, otherwise another uplink communication parameter and all downgoing communication parameters got are numbered as current response, triggers described second parsing module;
Second acquisition module, for obtaining corresponding downgoing communication parameter according to all downgoing communication parameter numberings of preserving, all uplink communication parameters according to the downgoing communication parameter got and acquisition determine that the communications parameter of described intelligent cipher key equipment configures.
Further, described terminal equipment also comprises: the 6th judge module, for judging whether the instruction of shaking hands fast comprising downgoing communication parameter is all sent completely, and is, waits for the data that described intelligent cipher key equipment returns, otherwise continues to send instruction of shaking hands fast.
Further, described intelligent cipher key equipment also comprises the 5th judge module;
Described first receiver module, also for receiving the protocol data instruction that described terminal equipment sends;
Described 5th judge module, for judging whether the type of described protocol data instruction is described instruction of shaking hands fast, is trigger described first parsing module, otherwise processes described protocol data instruction.
Further, described intelligent cipher key equipment also comprises:
7th judge module, for judging whether described first receiver module receives described protocol data instruction in Preset Time, is, triggering described 5th judge module, otherwise reporting an error, and terminates.
Further, whether described first judge module is preset data specifically for the downgoing communication parameter numbering got described in judging, be that the instruction of shaking hands fast received comprises last a kind of downgoing communication parameter, otherwise the instruction of shaking hands fast received does not comprise last a kind of downgoing communication parameter.
Further, described terminal equipment also comprises the 8th judge module;
Described second receiver module, also for receiving the data that described intelligent cipher key equipment sends;
Described 8th judge module, for judging whether comprise uplink communication parameter in the data that described second receiver module receives, being trigger as module, otherwise reporting an error, wait-receiving mode data.
Further, described terminal equipment also comprises:
Tenth judge module, for judging the data whether described second receiver module receives described intelligent cipher key equipment and return in Preset Time, being trigger described 8th judge module, otherwise report an error, terminating.
Further, described terminal equipment also comprises the 12 judge module;
Described second sending module, also for being sent the detection instruction comprising the downgoing communication parameter got to described intelligent cipher key equipment by described first channel;
Described first receiver module, also for receiving described detection instruction;
Described first parsing module, also for resolving described detection instruction, as successfully resolved, then triggers the first sending module, then reports an error as resolved failure, terminates;
Described first sending module, also for the analysis result of described detection instruction is returned to described terminal equipment as detection response by described second channel;
Described second receiver module, also for receiving the detection response that described intelligent cipher key equipment returns;
Described second parsing module, also for resolving described detection response, and judging whether successfully resolved, being, trigger described second acquisition module, otherwise trigger described 12 judge module;
Described second acquisition module, also for obtaining downgoing communication parameter in the analysis result from detection response and preserving, triggers described 12 judge module;
Described 12 judge module, for judging whether all detection instructions are sent completely, and are, obtains downgoing communication parameter from the described downgoing communication parameter of preserving;
Described second sending module, also for the downgoing communication parameter that obtains being sent to described intelligent cipher key equipment and starts to carry out data communication with it by described first channel.
Further, described terminal equipment also comprises:
14 judge module, for having judged whether that intelligent cipher key equipment is connected with it;
16 judge module, for judging whether to be connected with described intelligent cipher key equipment first when described 14 judge module is judged as YES;
Consulting judge module, for using when described 14 judge module is judged as NO the downgoing communication parameter of preservation and described intelligent cipher key equipment to consult communication speed, and judging whether to consult successfully;
Communication module, carries out data communication for using the successful communication speed of negotiation and described intelligent cipher key equipment when described negotiation judge module is judged as YES.
Further, described first parsing module comprises:
First judges submodule, for judging whether four byte datas that the described terminal equipment that described first receiver module receives sends are correct frame head data, be then by described four byte data sequential storage in buffer area, trigger sub module stored, otherwise trigger described 3rd judge module;
Described sub module stored, the backhaul frequency that the described terminal equipment for being received by described first receiver module issues, protocol parameter, data length, data content sequential storage are in described buffer area;
Whether second judges submodule, for when described first receiver module receives check code, correct according to the data that described check code judges in described buffer area, trigger the 3rd and judge submodule, otherwise empty described buffer area, wait-receiving mode data, trigger described 3rd judge module;
Described 3rd judges submodule, and receiving up first parameter field for judging whether according to described protocol parameter, is trigger described sub module stored, otherwise triggers acquisition submodule;
Described sub module stored, also for up first parameter field sequential storage that described first receiver module is received in described buffer area;
4th judges submodule, receives preset data for judging whether, be then by described preset data sequential storage in described buffer area, trigger described sub module stored, otherwise trigger obtain submodule;
Described sub module stored, for the up second parameter field sequential storage that received by described first receiver module in described buffer area;
5th judges submodule, for judging that whether described up second parameter field is correct, being trigger acquisition submodule, otherwise emptying described buffer area, wait-receiving mode data, triggering described 3rd judge module;
Described acquisition submodule, numbers for obtaining downgoing communication parameter from described data content and preserves;
Described first sending module, also for returning correct reception information to described terminal equipment by second channel.
Further, described first judges that submodule comprises:
First judging unit, for judging whether the first character joint number certificate that described first receiver module receives is the first frame head data, will be that described first character joint number certificate is stored in described buffer area, otherwise wait-receiving mode data, trigger described 3rd judge module;
Second judging unit, for judging whether second byte data that described first receiver module receives is the second frame head data, be then by described second byte data sequential storage in described buffer area, otherwise empty described buffer area, wait-receiving mode data, trigger described 3rd judge module;
3rd judging unit, for judging whether the 3rd byte data that described first receiver module receives is the 3rd frame head data, be then by described 3rd byte data sequential storage in described buffer area, otherwise empty described buffer area, wait-receiving mode data, trigger described 3rd judge module;
4th judging unit, for judging whether the 4th byte data that described first receiver module receives is the 4th frame head data, be then by described 4th byte data sequential storage in described buffer area, otherwise empty described buffer area, wait-receiving mode data, trigger described 3rd judge module.
Further, described second judges that submodule is specifically for calculating the School Affairs of the data in described buffer area, and judge that whether the School Affairs that calculates consistent with described check code, be data then in described buffer area correctly, otherwise data in described buffer area are incorrect.
Further, described 5th judge submodule specifically in described up second parameter field except other data of check code carry out calculation check and, and judge that whether the School Affairs calculated is consistent with the check code in described up second parameter field, be that then described up second parameter field is correct, otherwise described up second parameter field is incorrect.
Further, described first sending module comprises:
First as submodule: for using a upstream frequency as current upstream frequency;
First sends submodule, for the uplink communication parameter of correspondence and all downgoing communication parameters numberings got being sent to described terminal equipment according to current upstream frequency by second channel;
6th judges submodule, for judging whether the upstream frequency of preserving has processed, and is trigger described first receiver module, otherwise using next upstream frequency as current upstream frequency, triggering described first and sending submodule.
Further, described first transmission submodule comprises:
First transmitting element, for sending the head redundant data preset to described terminal equipment by second channel;
Second transmitting element, presets frame head for sending first by second channel to described terminal equipment;
3rd transmitting element, presets frame head for sending second by second channel to described terminal equipment;
4th transmitting element, for according to current uplink communication parameter and all downgoing communication parameter numbering calculated data length of getting, and sends described data length by second channel to described terminal equipment;
5th transmitting element, for sending uplink communication parameter and all downgoing communication parameters numbering of described correspondence to described terminal equipment by second channel according to current upstream frequency;
6th transmitting element, for sending School Affairs by second channel to described terminal equipment;
7th transmitting element, for sending the tail redundant data preset to described terminal equipment by second channel.
Further, described second parsing module comprises:
7th judges submodule, for judging whether current response meets predetermined format, is, triggers analysis judgment submodule, otherwise triggers described 4th judge module;
According to the School Affairs in analysis result, described analysis judgment submodule, for resolving current response, and judging that whether analysis result is correct, being trigger described second acquisition module, otherwise triggering described 4th judge module.
The embodiment of the present invention provides a kind of device of quick identification communications parameter configuration, comprising:
First receiver module, for receiving the instruction of shaking hands fast that described terminal equipment sends;
First parsing module, resolves for the instruction of shaking hands fast received described first receiver module, and judges whether successfully resolved, analytically obtain downgoing communication parameter in result and number and preserve, trigger the first judge module, otherwise wait-receiving mode data, trigger the 3rd judge module;
Described first judge module, for judging whether the instruction of shaking hands fast received comprises last a kind of downgoing communication parameter, is trigger the first sending module, otherwise wait-receiving mode data, trigger described 3rd judge module;
Described 3rd judge module, for judging whether the time of wait-receiving mode data exceedes preset duration, is, triggers described first sending module, otherwise triggers the first receiver module;
Described first sending module, for sending to described terminal equipment by the uplink communication parameter of correspondence and all downgoing communication parameters numberings got according to the different upstream frequency of preserving respectively by second channel.
Further, the present embodiment device also comprises the 5th judge module;
Described first receiver module, also for receiving the protocol data instruction that described terminal equipment sends;
Described 5th judge module, for judging whether the type of described protocol data instruction is described instruction of shaking hands fast, is trigger described first parsing module, otherwise processes described protocol data instruction.
Further, the present embodiment device also comprises:
7th judge module, for judging whether described first receiver module receives described protocol data instruction in Preset Time, is, triggering described 5th judge module, otherwise reporting an error, and terminates.
Further, whether described first judge module is preset data specifically for the downgoing communication parameter numbering got described in judging, be that the instruction of shaking hands fast received comprises last a kind of downgoing communication parameter, otherwise the instruction of shaking hands fast received does not comprise last a kind of downgoing communication parameter.
Further, described first parsing module, the detection instruction also for sending described terminal equipment is resolved, and as successfully resolved, then triggers the first sending module, then reports an error as resolved failure, terminates;
Described first sending module, also for the analysis result of described detection instruction is returned to described terminal equipment as detection response by described second channel.
Further, described first parsing module comprises:
First judges submodule, for judging whether four byte datas that the described terminal equipment that described first receiver module receives sends are correct frame head data, be then by described four byte data sequential storage in buffer area, trigger sub module stored, wait-receiving mode data, otherwise trigger described 3rd judge module;
Described sub module stored, the backhaul frequency that the described terminal equipment for being received by described first receiver module issues, protocol parameter, data length, data content sequential storage are in described buffer area;
Whether second judges submodule, for when described first receiver module receives check code, correct according to the data that described check code judges in described buffer area, trigger the 3rd and judge submodule, otherwise empty described buffer area, wait-receiving mode data, trigger described 3rd judge module;
Described 3rd judges submodule, and receiving up first parameter field for judging whether according to described protocol parameter, is trigger described sub module stored, otherwise triggers acquisition submodule;
Described sub module stored, also for up first parameter field sequential storage that described first receiver module is received in described buffer area;
4th judges submodule, receives preset data for judging whether, be then by described preset data sequential storage in described buffer area, trigger described sub module stored, otherwise trigger obtain submodule;
Described sub module stored, for the up second parameter field sequential storage that received by described first receiver module in described buffer area;
5th judges submodule, for judging that whether described up second parameter field is correct, being trigger acquisition submodule, otherwise emptying described buffer area, wait-receiving mode data, triggering described 3rd judge module;
Described acquisition submodule, numbers for obtaining downgoing communication parameter from described data content and preserves;
Described first sending module, also for returning correct reception information to described terminal equipment by second channel.
Further, described first judges that submodule comprises:
First judging unit, for judging whether the first character joint number certificate that described first receiver module receives is the first frame head data, will be that described first character joint number certificate is stored in described buffer area, otherwise wait-receiving mode data, trigger described 3rd judge module;
Second judging unit, for judging whether second byte data that described first receiver module receives is the second frame head data, be then by described second byte data sequential storage in described buffer area, otherwise empty described buffer area, wait-receiving mode data, trigger described 3rd judge module;
3rd judging unit, for judging whether the 3rd byte data that described first receiver module receives is the 3rd frame head data, be then by described 3rd byte data sequential storage in described buffer area, otherwise empty described buffer area, wait-receiving mode data, trigger described 3rd judge module;
4th judging unit, for judging whether the 4th byte data that described first receiver module receives is the 4th frame head data, be then by described 4th byte data sequential storage in described buffer area, otherwise empty described buffer area, wait-receiving mode data, trigger described 3rd judge module.
Further, described second judges that submodule is specifically for calculating the School Affairs of the data in described buffer area, and judge that whether the School Affairs that calculates consistent with described check code, be data then in described buffer area correctly, otherwise data in described buffer area are incorrect.
Further, described 5th judge submodule specifically in described up second parameter field except other data of check code carry out calculation check and, and judge that whether the School Affairs calculated is consistent with the check code in described up second parameter field, be that then described up second parameter field is correct, otherwise described up second parameter field is incorrect.
Further, described first sending module comprises:
First as submodule: for using a upstream frequency as current upstream frequency;
First sends submodule, for the uplink communication parameter of correspondence and all downgoing communication parameters numberings got being sent to described terminal equipment according to current upstream frequency by second channel;
6th judges submodule, for judging whether the upstream frequency of preserving has processed, and is trigger described first receiver module, otherwise using next upstream frequency as current upstream frequency, triggering described first and sending submodule.
Further, described first transmission submodule comprises:
First transmitting element, for sending the head redundant data preset to described terminal equipment by second channel;
Second transmitting element, presets frame head for sending first by second channel to described terminal equipment;
3rd transmitting element, presets frame head for sending second by second channel to described terminal equipment;
4th transmitting element, for according to current uplink communication parameter and all downgoing communication parameter numbering calculated data length of getting, and sends described data length by second channel to described terminal equipment;
5th transmitting element, for sending uplink communication parameter and all downgoing communication parameters numbering of described correspondence to described terminal equipment by second channel according to current upstream frequency;
6th transmitting element, for sending School Affairs by second channel to described terminal equipment;
7th transmitting element, for sending the tail redundant data preset to described terminal equipment by second channel.
The present invention compared with prior art, has the following advantages:
Technical solution of the present invention can accelerate the negotiations process of communication speed; And can identify whether main equipment is the equipment that intelligent cipher key equipment is supported, improves communication speed fast.
Accompanying drawing explanation
The method flow diagram of a kind of quick identification communications parameter configuration that Fig. 1 provides for the embodiment of the present invention one;
The method flow diagram of a kind of quick identification communications parameter configuration that Fig. 2 provides for the embodiment of the present invention two;
Whether successfully instruction that what a kind of intelligent cipher key equipment receiving terminal apparatus that Fig. 3 provides for the embodiment of the present invention three issued shake hands fast is also resolved it, judge to resolve specific implementation process flow diagram;
The implementation method flow chart that Fig. 4 numbers with all downgoing communication parameters got to terminal equipment transmission uplink communication parameter for a kind of intelligent cipher key equipment that the embodiment of the present invention four provides;
The method flow diagram of a kind of quick identification communications parameter configuration that Fig. 5 provides for the embodiment of the present invention five;
The system block diagram of a kind of quick identification communications parameter configuration that Fig. 6 provides for the embodiment of the present invention six;
The device block diagram of a kind of quick identification communications parameter configuration that Fig. 7 provides for the embodiment of the present invention seven.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those skilled in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
In the present embodiment, terminal equipment and intelligent cipher key equipment send data each other by two different channels, and terminal equipment sends data by the first channel to intelligent cipher key equipment, and intelligent cipher key equipment sends data by second channel to terminal equipment.
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, comprising:
Step S0: terminal equipment sends the corresponding instruction of shaking hands fast comprising downgoing communication parameter, the data that wait-receiving mode intelligent cipher key equipment returns to respectively the intelligent cipher key equipment connected according to different downstream frequencys by the first channel;
Such as, in the present embodiment, terminal equipment according to a kind downstream frequency preset respectively to intelligent cipher key equipment according to a, a-1.....2,1 order send and comprise the instruction of shaking hands fast of downgoing communication parameter;
In the present embodiment, also comprise after step S0 with before step S1: terminal equipment judges whether the instruction of shaking hands fast comprising downgoing communication parameter is all sent completely, and is, the data that wait-receiving mode intelligent cipher key equipment returns; Otherwise return step S0;
Step S1: when intelligent cipher key equipment receive terminal equipment send shake hands fast instruction time it is resolved, and judge whether successfully resolved, be analytically obtain downgoing communication parameter in result and number and preserve, perform step S2, otherwise wait-receiving mode data, perform step S3;
Concrete, in the present embodiment, before step S1, also comprise: steps A: when intelligent cipher key equipment receives the protocol data instruction of terminal equipment transmission, whether the type judging protocol data instruction is instruction of shaking hands fast, is perform step S1, otherwise processes protocol data instruction.
Concrete, intelligent cipher key equipment judges whether the data in the 6th byte in protocol data instruction are mark of shaking hands fast, are, the type of protocol data instruction is instruction of shaking hands fast, otherwise the type of protocol data instruction is not instruction of shaking hands fast;
Comprise before steps A: intelligent cipher key equipment judges whether receive protocol data instruction in Preset Time, is perform steps A, otherwise reports an error, terminate.
Concrete, intelligent cipher key equipment judges whether front four byte datas in the data command received are preset value, are that the data command received is protocol data instruction, otherwise the data command received is not protocol data instruction;
The specific implementation process of the step S1 in the present embodiment describes in detail in embodiment three;
Step S2: intelligent cipher key equipment judges whether comprise last a kind of downgoing communication parameter in the instruction of shaking hands fast received, and is perform step S4, otherwise wait-receiving mode data, perform step S3;
In the present embodiment, step S2 is specially: intelligent cipher key equipment judges whether the downgoing communication parameter numbering got is preset data, be that the instruction of shaking hands fast received comprises last a kind of downgoing communication parameter, otherwise the instruction of shaking hands fast received does not comprise last a kind of downgoing communication parameter.
In the present embodiment, such as downlink scheme has a kind, and sending order is a, a-1.....2,1, then step S2 is specially: intelligent cipher key equipment judges whether downgoing communication parameter numbering is 1, is perform step S4, otherwise wait-receiving mode data, perform step S3;
Step S3: intelligent cipher key equipment judges whether the time of wait-receiving mode data exceedes preset duration, is perform step S4, otherwise returns step S1;
Step S4: the uplink communication parameter of correspondence and all downgoing communication parameters numberings got are sent to terminal equipment according to the different upstream frequency of preserving by second channel by intelligent cipher key equipment respectively;
In the present embodiment, each uplink communication parameter is sent to terminal equipment according to the upstream frequency of current correspondence with all downgoing communication parameters numberings got by intelligent cipher key equipment respectively successively, as upstream frequency has five kinds, then intelligent cipher key equipment can send five data commands to terminal equipment; The all downgoing communication parameter numberings comprising uplink communication parameter corresponding to current upstream frequency in every bar instruction and get; Namely step S4 comprises:
Step S41: intelligent cipher key equipment using a upstream frequency as current upstream frequency;
Step S42: the uplink communication parameter of correspondence and all downgoing communication parameters numberings got are sent to terminal equipment according to current upstream frequency by second channel by intelligent cipher key equipment;
Concrete, in the present embodiment, the specific implementation process of step S42 describes in detail in embodiment four;
Step S43: intelligent cipher key equipment judges whether the upstream frequency of preserving has processed, and is, the data that wait-receiving mode terminal equipment returns, otherwise using next upstream frequency as current upstream frequency, returns step S42.
Step S5: when the uplink communication parameter that terminal equipment receives the correspondence that all intelligent cipher key equipments send and all downgoing communication parameter numberings got, a uplink communication parameter and all downgoing communication parameters got are numbered as current response;
In the present embodiment, also comprise before step S5: step B: when terminal equipment receives the data of intelligent cipher key equipment transmission, judge whether comprise uplink communication parameter in the data received, be perform step S5, otherwise report an error, wait-receiving mode data.
Comprise before step B: terminal equipment judges whether to receive in Preset Time the data that intelligent cipher key equipment returns, and is perform step B, otherwise reports an error, terminate.
Step S6: terminal equipment is resolved current response, and judge that whether parsing is successful, be perform step S8, otherwise perform step S7;
Concrete, in the present embodiment, step S6 comprises:
Step S61: terminal equipment judges whether current response meets predetermined format, is, performs step S62, otherwise perform step S7;
Predetermined format in the present embodiment comprises: the data length of the frame head data of four bytes, the backhaul frequency of two bytes, the protocol parameter of a byte, two bytes, the data content of N byte, the check code of a byte, up first parameter field of ten bytes and the check code (optional) of a byte, up second parameter field of 21 bytes and the check code (optional) of a byte;
Step S62: terminal equipment is resolved current response, and judge that whether analysis result is correct according to the School Affairs in analysis result, be perform step S8, otherwise perform step S7.
Step S7: terminal equipment judges whether all downgoing communication parameter numberings processing all uplink communication parameters and get, report an error, terminate, otherwise another uplink communication parameter and all downgoing communication parameters got are numbered as current response, return step S6;
Step S8: terminal equipment analytically obtains uplink communication parameter in result and all downgoing communication parameters are numbered and preserve;
Step S9: terminal equipment judges whether all downgoing communication parameter numberings processing all uplink communication parameters and get, perform step S10, otherwise another uplink communication parameter and all downgoing communication parameters got are numbered as current response, returns step S6;
Step S10: terminal equipment obtains corresponding downgoing communication parameter according to all downgoing communication parameters numbering of preserving, according to the communications parameter configuration of all uplink communication parameter determination intelligent cipher key equipments of the downgoing communication parameter got and acquisition.
Also comprise after step S10:
Step C1: terminal equipment sends the detection instruction comprising the downgoing communication parameter got to intelligent cipher key equipment by the first channel, and the detection response that wait-receiving mode intelligent cipher key equipment returns;
Concrete, the detection instruction in the present embodiment is the data of 512 bytes;
Step C2: it is resolved when intelligent cipher key equipment receives and detects instruction, as successfully resolved, then the analysis result detecting instruction is returned to terminal equipment as detection response by second channel by intelligent cipher key equipment, then reporting an error, terminating as resolved failure;
Step C3: when terminal equipment receives the detection response that intelligent cipher key equipment returns, it is resolved, and judge whether successfully resolved, be perform step C4, otherwise perform step C5;
Step C4: terminal equipment obtains downgoing communication parameter and preserves from the analysis result detecting response, performs step C5;
Step C5: terminal equipment judges whether all detection instructions are sent completely, and are, obtains downgoing communication parameter from the downgoing communication parameter of preserving, and performs step C6, otherwise returns step C1;
Step C6: a downgoing communication parameter obtained is sent to intelligent cipher key equipment by the first channel and starts to carry out data communication with it by terminal equipment.
In the method for the present embodiment, terminal equipment preferably can consult communication speed with the downgoing communication parameter of preserving and intelligent cipher key equipment, then terminal equipment also comprises before sending instruction of shaking hands fast:
Step D1: terminal equipment has judged whether that intelligent cipher key equipment is connected with it, is, performs step D2, otherwise returns step D1;
Step D2: terminal equipment judges whether to be connected with intelligent cipher key equipment first, is, terminal equipment sends instruction of shaking hands fast, otherwise performs step D3;
Step D3: terminal equipment uses the downgoing communication parameter of preservation and intelligent cipher key equipment to consult communication speed, and judges whether that consulting successfully, is perform step D4, otherwise terminal equipment sends instruction of shaking hands fast;
In the present embodiment, terminal equipment preferably uses best downgoing communication parameter and intelligent cipher key equipment to consult communication speed, such as, two kinds of downgoing communication parameters are comprised in analysis result, then send data 01, adopt the first downgoing communication parameter to need 11ms, adopt the second downgoing communication parameter to need 15ms, then the first scheme is exactly best downgoing communication parameter.
Step D4: terminal equipment uses the successful communication speed of negotiation and intelligent cipher key equipment to carry out data communication.
Embodiment two
The embodiment of the present invention two provides a kind of method of quick identification equipment communications parameter configuration, and the communications parameter all preserving this intelligent cipher key equipment when terminal equipment is each and intelligent cipher key equipment carries out communication configures, and as shown in Figure 2, the method for the present embodiment comprises:
Step 201: terminal equipment has judged whether that intelligent cipher key equipment is connected with it, is, performs step 202, otherwise returns step 201;
Step 202: terminal equipment judges whether to be connected with intelligent cipher key equipment first, is perform step 205, otherwise perform step 203;
Step 203: terminal equipment uses the downgoing communication parameter of corresponding preservation and intelligent cipher key equipment to consult communication speed, and judges whether that consulting successfully, is perform step 204, otherwise performs step 205;
Step 204: terminal equipment uses the successful communication speed of negotiation and intelligent cipher key equipment to carry out communication;
Step 205: terminal equipment sends the instruction of shaking hands fast comprising downgoing communication parameter respectively to intelligent cipher key equipment by the first channel according to different downstream frequencys;
Step 206: terminal equipment judges whether the instruction of shaking hands fast comprising downgoing communication parameter is all sent completely, and is, the data that wait-receiving mode intelligent cipher key equipment returns; Otherwise return step 205;
Step 207: intelligent cipher key equipment judges whether receive protocol data instruction in Preset Time, is perform step 208, otherwise reports an error, terminates;
Concrete, intelligent cipher key equipment judges whether front four byte datas in the data command received are preset value, are that the data command received is protocol data instruction, otherwise the data command received is not protocol data instruction;
Step 208: intelligent cipher key equipment judges whether the type of protocol data instruction is instruction of shaking hands fast, is perform step 209, otherwise processes protocol data instruction, wait-receiving mode data, performs step 211;
Concrete, intelligent cipher key equipment judges whether the data in the 6th byte in protocol data instruction are mark of shaking hands fast, are, the type of protocol data instruction is instruction of shaking hands fast, otherwise the type of protocol data instruction is not instruction of shaking hands fast;
Step 209: intelligent cipher key equipment is resolved instruction of shaking hands fast and judged that whether parsing is successful, is analytically obtain downgoing communication parameter in result and number and preserve, performs step 210, otherwise wait-receiving mode data, perform step 211;
Concrete, the implementation procedure of the step 209 in the present embodiment describes in detail in embodiment three;
Step 210: according to downgoing communication parameter numbering, intelligent cipher key equipment judges whether the instruction of shaking hands fast received comprises last a kind of downgoing communication parameter, is perform step 212, otherwise wait-receiving mode data, perform step 211;
Step 211: intelligent cipher key equipment judges whether the time of wait-receiving mode data exceedes preset duration, is perform step 212, otherwise returns step 207;
Step 212: the uplink communication parameter of correspondence and all downgoing communication parameters numberings got are sent to terminal equipment according to different upstream frequencys by second channel by intelligent cipher key equipment respectively;
Step 213: terminal equipment judges whether to receive in Preset Time the data that intelligent cipher key equipment returns, and is perform step 214, otherwise reports an error, terminates;
Step 214: terminal equipment judges whether comprise uplink communication parameter in the data received, and is, comprises the data of uplink communication parameter as current response using one, perform step 215, otherwise report an error, wait-receiving mode data, return step 213;
Step 215: terminal equipment is resolved current response, and judge that whether parsing is successful, be perform step 217, otherwise perform step 216;
Step 216: terminal equipment judges whether to process all data comprising uplink communication parameter, is report an error, terminates, otherwise the data another being comprised uplink communication parameter are as current response, return step 215;
Step 217: terminal equipment analytically extracts uplink communication parameter in result and all downgoing communication parameters are numbered and preserve;
Step 218: terminal equipment judges whether to process all data comprising uplink communication parameter, is perform step 219, otherwise the data another being comprised uplink communication parameter are as current response, return step 215;
Step 219: terminal equipment obtains corresponding downgoing communication parameter according to all downgoing communication parameters numbering of preserving, according to the communications parameter configuration of all uplink communication parameter determination intelligent cipher key equipments of the downgoing communication parameter got and extraction;
Step 220: terminal equipment sends the detection instruction comprising the downgoing communication parameter got to intelligent cipher key equipment by the first channel, and the detection response that wait-receiving mode intelligent cipher key equipment returns;
Concrete, the detection instruction in the present embodiment is the data of 512 bytes;
Step 221: after intelligent cipher key equipment receives detection instruction, it is resolved, as successfully resolved, then the analysis result detecting instruction is returned to terminal equipment as detection response by second channel by intelligent cipher key equipment, then reporting an error, terminating as resolved failure;
Step 222: when terminal equipment receives the detection response that intelligent cipher key equipment returns, it is resolved, and judge whether successfully resolved, be perform step 223, otherwise perform step 224;
Step 223: terminal equipment obtains downgoing communication parameter and identifies corresponding preservation with intelligent cipher key equipment from the analysis result detecting response, performs step 224;
Step 224: terminal equipment judges whether be sent completely, be then to obtain a downgoing communication parameter from the downgoing communication parameter of preserving if detecting instruction, perform step 225, otherwise return step 220;
Step 225: a downgoing communication parameter obtained is sent to described intelligent cipher key equipment by the first channel and starts to carry out data communication with it by terminal equipment.
The method of the embodiment of the present invention is by downgoing communication parameter poll one time, Deng intelligent cipher key equipment after end of polling(EOP) by uplink communication parameter and can the disposable terminal equipment of telling of downgoing communication parameter of successfully resolved, handshake operation can be completed fast like this and can determine that whether intelligent cipher key equipment is supported by terminal equipment and can determine the configuration of the up-downgoing communications parameter communicated between terminal equipment with intelligent cipher key equipment.
Embodiment three
Instruction that what the embodiment of the present invention three provided a kind of intelligent cipher key equipment receiving terminal apparatus to issue shake hands fast is also resolved it, and whether successfully judge to resolve specific implementation process, as shown in Figure 3, the present embodiment method comprises:
Step 301: intelligent cipher key equipment is waited for and the first character joint number certificate that issues of receiving terminal apparatus;
Step 302: intelligent cipher key equipment judges that whether the first character joint number that receives according to being the first frame head data, is, by the first character joint number that receives according to sequential storage in buffer area, perform step 303, otherwise return step S3;
Preferably, the first frame head data in the present embodiment is 0xca;
Step 303: second byte data that intelligent cipher key equipment wait-receiving mode terminal equipment issues;
Step 304: when intelligent cipher key equipment receives second byte data, judges whether it is the second frame head data, is, by second byte data sequential storage receiving in buffer area, performs step 305, otherwise empties buffer area, return step S3;
Preferably, the second frame head data in the present embodiment is 0xde;
Step 305: the 3rd byte data that intelligent cipher key equipment wait-receiving mode terminal equipment issues;
Step 306: judge whether it is the 3rd frame head data, is when the 3rd byte data that intelligent cipher key equipment receives, by the 3rd byte data sequential storage receiving in buffer area, performs step 307, otherwise empties buffer area, return step S3;
Preferably, the 3rd frame head data in the present embodiment is 0x52;
Step 307: the 4th byte data that intelligent cipher key equipment wait-receiving mode terminal equipment issues;
Step 308: judge when intelligent cipher key equipment receives the 4th byte data whether it is the 4th frame head data, is, by the 4th byte data sequential storage receiving in buffer area, performs step 309, otherwise empties buffer area, return step S3;
Preferably, the 4th frame head data in the present embodiment is 0xb1;
In the present embodiment, front four data that the terminal equipment that intelligent cipher key equipment receives issues are likely correct frame head data, namely step S3-step 308 may be summarized to be: when described intelligent cipher key equipment receives four byte datas of described terminal equipment transmission, determine whether correct frame head data, be then by described four byte data sequential storage in buffer area, perform step 309, otherwise wait-receiving mode data, perform step S3;
Step 309: the backhaul frequency of two bytes that intelligent cipher key equipment wait-receiving mode terminal equipment issues, when receiving backhaul frequency by its sequential storage in buffer area;
Step 310: the protocol parameter of the byte that intelligent cipher key equipment wait-receiving mode terminal equipment issues, when receiving protocol parameter by its sequential storage in buffer area;
Step 311: the data length of two bytes that intelligent cipher key equipment wait-receiving mode terminal equipment issues, when receiving data length by its sequential storage in buffer area;
Step 312: the data that intelligent cipher key equipment issues according to the data length wait-receiving mode terminal equipment received, when receiving the data of corresponding length by its sequential storage in buffer area;
Step 313: the check code of the byte that intelligent cipher key equipment wait-receiving mode terminal equipment issues;
Step 314: when intelligent cipher key equipment receives check code, whether correct according to the data that check code judges in buffer area, be perform step 315, otherwise report an error, empty buffer area, return step S3;
Concrete, step 314 comprises: intelligent cipher key equipment calculates the School Affairs of the data in buffer area, and judges that whether the School Affairs calculated consistent with the check code received, be data then in buffer area correctly, otherwise data in buffer area are incorrect;
Step 315: intelligent cipher key equipment judges whether to receive up first parameter field according to protocol parameter, is perform step 316, otherwise performs step 320;
Concrete, in the present embodiment, intelligent cipher key equipment judges whether protocol parameter is preset data, is, receives up first parameter field, otherwise does not receive up first parameter field;
Step 316: intelligent cipher key equipment receives up first parameter field by its sequential storage in buffer area;
Step 317: intelligent cipher key equipment judges whether to receive preset data, be then by preset data sequential storage in buffer area, perform step 318, otherwise perform step 320;
Preset data in the present embodiment is 0xa5, illustrates that intelligent cipher key equipment needs to continue to receive up second parameter field;
Step 318: intelligent cipher key equipment receives up second parameter field by its sequential storage in buffer area;
Step 319: intelligent cipher key equipment judges that whether up second parameter field is correct, is perform step 320, otherwise reports an error, empty buffer area, return step S3;
In the present embodiment, step 319 comprises: intelligent cipher key equipment in up second parameter field except other data of check code carry out calculation check and, and judge that whether the School Affairs calculated is consistent with the check code in up second parameter field, be that then up second parameter field is correct, otherwise up second parameter field is incorrect;
Step 320: intelligent cipher key equipment returns correct reception information to terminal equipment.
Preferably, in the present embodiment, the time of an intelligent cipher key equipment wait-receiving mode byte is no more than 120 milliseconds, as exceeded, reports an error, and terminates.
In the present embodiment, can also report an error while emptying buffer area.
Embodiment four
The embodiment of the present invention four provides a kind of intelligent cipher key equipment to send uplink communication parameter and the implementation method of all downgoing communication parameters numberings got to terminal equipment, as shown in Figure 4, comprising:
Step 401: intelligent cipher key equipment sends the head redundant data of N number of bit position of presetting to terminal equipment by second channel;
Step 402: intelligent cipher key equipment sends first by second channel to terminal equipment and presets frame head;
Preferably, first in the present embodiment presets frame head is 0xFF;
Step 403: intelligent cipher key equipment sends second by second channel to terminal equipment and presets frame head;
Preferably, second in the present embodiment presets frame head is 0x00;
Step 404: intelligent cipher key equipment according to current uplink communication parameter and all downgoing communication parameter numbering calculated data length got, and sends the data length of two bytes to terminal equipment by second channel;
Step 405: intelligent cipher key equipment sends current uplink communication parameter and all downgoing communication parameter numbering by second channel to terminal equipment according to current upstream frequency;
Step 406: intelligent cipher key equipment sends School Affairs by second channel to terminal equipment;
Step 407: intelligent cipher key equipment sends the tail redundant data of N number of bit position to terminal equipment by second channel.
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, comprising:
Step P1: when described intelligent cipher key equipment receive described terminal equipment send shake hands fast instruction time it is resolved, and judge whether successfully resolved, be analytically obtain downgoing communication parameter in result and number and preserve, perform step P2, otherwise wait-receiving mode data, perform step P3;
In the present embodiment, before step P1, also comprise: step M: when intelligent cipher key equipment receives the protocol data instruction of terminal equipment transmission, judge whether the type of protocol data instruction is instruction of shaking hands fast, be perform step P1, otherwise protocol data instruction is processed.
Comprise before step M: intelligent cipher key equipment judges whether receive protocol data instruction in Preset Time, is perform step M, otherwise reports an error, terminate.
In the present embodiment, the process that intelligent cipher key equipment is resolved instruction of shaking hands fast is identical with embodiment three, does not repeat them here;
Step P2: described intelligent cipher key equipment judges whether the instruction of shaking hands fast received comprises last a kind of downgoing communication parameter, is perform step P4, otherwise wait-receiving mode data, perform step P3;
In the present embodiment, step P2 is specially: intelligent cipher key equipment judges whether the downgoing communication parameter numbering got is preset data, that the instruction of shaking hands fast received is the instruction comprising last a kind of downgoing communication parameter, otherwise receive shake hands instruction fast not for comprising the instruction of last a kind of downgoing communication parameter.
Step P3: described intelligent cipher key equipment judges whether the time of wait-receiving mode data exceedes preset duration, is perform step P4, otherwise returns step P1;
Step P4: the uplink communication parameter of correspondence and all downgoing communication parameters numberings got are sent to described terminal equipment according to the different upstream frequency of preserving by second channel by described intelligent cipher key equipment respectively.
In the present embodiment, the specific implementation process of step P4 is identical with embodiment four, does not repeat them here;
In the present embodiment, also comprise after step P4:
Step L: resolve it when intelligent cipher key equipment receives the detection instruction of terminal equipment transmission, as successfully resolved, then the analysis result detecting instruction is returned to terminal equipment as detection response by intelligent cipher key equipment, then reporting an error, terminating as resolved failure.
Embodiment six
The embodiment of the present invention six provides a kind of system of quick identification communications parameter configuration, as shown in Figure 6, comprises terminal equipment 62 and intelligent cipher key equipment 61,
Intelligent cipher key equipment 61 comprises:
First receiver module 611, for the instruction of shaking hands fast that receiving terminal apparatus 62 sends;
First parsing module 612, instruction of shaking hands fast for receiving the first receiver module 611 is resolved, and judge whether successfully resolved, analytically obtain downgoing communication parameter in result and number and preserve, trigger the first judge module 613, otherwise wait-receiving mode data, trigger the 3rd judge module 614;
Concrete, in the present embodiment, the first parsing module 612 comprises:
First judges submodule, for judging whether four byte datas that the terminal equipment 62 that the first receiver module 611 receives sends are correct frame head data, be then by four byte data sequential storage in buffer area, trigger sub module stored, otherwise trigger the 3rd judge module 614;
In the present embodiment, first judges that submodule comprises:
First judging unit, for judging whether the first character joint number certificate that the first receiver module 611 receives is the first frame head data, is, will be that first character joint number certificate is stored in buffer area, otherwise wait-receiving mode data, trigger the 3rd judge module 614;
Second judging unit, for judging whether second byte data that the first receiver module 611 receives is the second frame head data, be then by second byte data sequential storage in buffer area, otherwise empty buffer area, wait-receiving mode data, trigger the 3rd judge module 614;
3rd judging unit, for judging whether the 3rd byte data that the first receiver module 611 receives is the 3rd frame head data, be then by the 3rd byte data sequential storage in buffer area, otherwise empty buffer area, wait-receiving mode data, trigger the 3rd judge module 614;
4th judging unit, for judging whether the 4th byte data that the first receiver module 611 receives is the 4th frame head data, be then by the 4th byte data sequential storage in buffer area, otherwise empty buffer area, wait-receiving mode data, trigger the 3rd judge module 614.
Sub module stored, the backhaul frequency that the terminal equipment for being received by the first receiver module 611 issues, protocol parameter, data length, data content sequential storage are in buffer area;
Whether second judges submodule, for when the first receiver module 611 receives check code, correct according to the data that check code judges in buffer area, trigger the 3rd and judge submodule, otherwise empty buffer area, wait-receiving mode data, trigger the 3rd judge module 614;
In the present embodiment, second judges that submodule is specifically for calculating the School Affairs of the data in buffer area, and judges that whether the School Affairs calculated consistent with check code, be data then in buffer area correctly, otherwise data in buffer area are incorrect.
3rd judges submodule, and receiving up first parameter field for judging whether according to protocol parameter, is trigger sub module stored, otherwise triggers acquisition submodule;
Sub module stored, also for up first parameter field sequential storage that the first receiver module 611 is received in buffer area;
4th judges submodule, receives preset data for judging whether, be then by preset data sequential storage in buffer area, trigger sub module stored, otherwise trigger obtain submodule;
Sub module stored, for the up second parameter field sequential storage that received by the first receiver module 611 in buffer area;
5th judges submodule, and for judging that whether up second parameter field is correct, be trigger acquisition submodule, otherwise empty buffer area, wait-receiving mode data, trigger the 3rd judge module 614;
Concrete, in the present embodiment, 5th judge submodule specifically in up second parameter field except other data of check code carry out calculation check and, and judge that whether the School Affairs calculated is consistent with the check code in up second parameter field, be that then up second parameter field is correct, otherwise up second parameter field is incorrect.
Obtain submodule, number for obtaining downgoing communication parameter from data content and preserve;
First sending module 615, also for returning correct reception information by second channel to terminal equipment.
First judge module 613, for judging whether comprise last a kind of downgoing communication parameter in the instruction of shaking hands fast that receives, is trigger the first sending module 615, otherwise wait-receiving mode data, trigger the 3rd judge module 614;
In the present embodiment, first judge module 613 is specifically for judging whether the downgoing communication parameter numbering got is preset data, be that the instruction of shaking hands fast received comprises last a kind of downgoing communication parameter, otherwise the instruction of shaking hands fast received does not comprise last a kind of downgoing communication parameter.
3rd judge module 614, for judging whether the time of wait-receiving mode data exceedes preset duration, is, triggers the first sending module 615, otherwise triggers the first receiver module 611;
First sending module 615, for sending to terminal equipment 62 by the uplink communication parameter of correspondence and all downgoing communication parameters numberings got according to the different upstream frequency of preserving respectively by second channel;
Concrete, in the present embodiment, the first sending module 615 comprises:
First as submodule: for using a upstream frequency as current upstream frequency;
First sends submodule, for the uplink communication parameter of correspondence and all downgoing communication parameters numberings got being sent to terminal equipment 62 according to current upstream frequency by second channel;
Concrete, in the present embodiment, first sends submodule comprises:
First transmitting element, for sending the head redundant data preset to terminal equipment 62 by second channel;
Second transmitting element, presets frame head for sending first by second channel to terminal equipment 62;
3rd transmitting element, presets frame head for sending second by second channel to terminal equipment 62;
4th transmitting element, for according to current uplink communication parameter and all downgoing communication parameter numbering calculated data length of getting, and sends data length by second channel to terminal equipment 62;
5th transmitting element, for sending corresponding uplink communication parameter and all downgoing communication parameter numbering by second channel to terminal equipment 62 according to current upstream frequency;
6th transmitting element, for sending School Affairs by second channel to terminal equipment 62;
7th transmitting element, for sending the tail redundant data preset to terminal equipment 62 by second channel.
6th judges submodule, for judging whether the upstream frequency of preserving has processed, and is trigger the first receiver module 611, otherwise using next upstream frequency as current upstream frequency, triggering first and sending submodule.
Terminal equipment 62 comprises:
Second sending module 621, for sending the corresponding instruction of shaking hands fast comprising downgoing communication parameter to respectively the intelligent cipher key equipment 61 connected according to different downstream frequencys by the first channel;
Second receiver module 622, for the uplink communication parameter receiving the correspondence that all intelligent cipher key equipments 62 send and all downgoing communication parameters numberings got;
As module 623, for a uplink communication parameter and all downgoing communication parameters got are numbered as current response;
Second parsing module 624, for resolving current response, and judging that whether parsing is successful, being trigger the first acquisition module 626, otherwise triggering the second judge module 625;
Concrete, in the present embodiment, the second parsing module 624 comprises:
7th judges submodule, for judging whether current response meets predetermined format, is, triggers analysis judgment submodule, otherwise triggers the 4th judge module 627;
According to the School Affairs in analysis result, analysis judgment submodule, for resolving current response, and judging that whether analysis result is correct, being trigger the second acquisition module 628, otherwise triggering the 4th judge module 627.
Second judge module 625, for judging whether all downgoing communication parameter numberings processing all uplink communication parameters and get when the second parsing module is resolved unsuccessfully, report an error, terminate, otherwise another uplink communication parameter and all downgoing communication parameters got are numbered as current response, triggers the second parsing module 624;
First acquisition module 626, for obtaining uplink communication parameter in the analysis result from the second parsing module 624 and all downgoing communication parameters are numbered and preserve;
4th judge module 627, for judging whether all downgoing communication parameter numberings processing all uplink communication parameters and get, trigger the second acquisition module 628, otherwise another uplink communication parameter and all downgoing communication parameters got are numbered as current response, triggers the second parsing module 624;
Second acquisition module 628, for obtaining corresponding downgoing communication parameter according to all downgoing communication parameters numbering of preserving, according to the communications parameter configuration of all uplink communication parameter determination intelligent cipher key equipments of the downgoing communication parameter got and acquisition.
In the present embodiment, terminal equipment 62 also comprises: the 6th judge module, for judging whether the instruction of shaking hands fast comprising downgoing communication parameter is all sent completely, and is, waits for the data that intelligent cipher key equipment returns, otherwise continues to send instruction of shaking hands fast.
In the present embodiment, intelligent cipher key equipment 61 also comprises the 5th judge module;
First receiver module 611, also for the protocol data instruction of receiving terminal apparatus transmission;
5th judge module, for judging whether the type of protocol data instruction is instruction of shaking hands fast, is, triggers the first parsing module 612, otherwise processes protocol data instruction.
In the present embodiment, intelligent cipher key equipment 61 also comprises:
7th judge module, for judging whether the first receiver module 611 receives protocol data instruction in Preset Time, is, triggering the 5th judge module, otherwise reporting an error, and terminates.
In the present embodiment, terminal equipment 62 also comprises the 8th judge module;
Second receiver module 622, also for receiving the data that intelligent cipher key equipment 61 sends;
8th judge module, judges whether comprise uplink communication parameter in the data received, is trigger as module, otherwise reports an error, wait-receiving mode data for the second receiver module 622.
Terminal equipment 62 also comprises:
Tenth judge module, for judging the data whether the second receiver module 622 receives intelligent cipher key equipment and return in Preset Time, being trigger the 8th judge module, otherwise report an error, terminating.
Terminal equipment 62 also comprises the 12 judge module;
Second sending module 621, also for being sent the detection instruction comprising the downgoing communication parameter got to intelligent cipher key equipment 61 by the first channel;
First receiver module 611, also for receiving detection instruction;
First parsing module 612, also for resolving detection instruction, as successfully resolved, then triggering the first sending module 615, then reporting an error as resolved failure, terminate;
First sending module 615, also for the analysis result detecting instruction is returned to terminal equipment 62 as detection response by second channel;
Second receiver module 622, also for receiving the detection response that intelligent cipher key equipment 61 returns;
Second parsing module 624, also for resolving detection response, and judging whether successfully resolved, being trigger the second acquisition module 628, otherwise triggering the 12 judge module;
Second acquisition module 628, also for obtaining downgoing communication parameter in the analysis result from detection response and preserving, triggers the 12 judge module;
12 judge module, for judging whether all detection instructions are sent completely, and are, obtains downgoing communication parameter from the downgoing communication parameter of preserving;
Second sending module 621, also for the downgoing communication parameter that obtains being sent to intelligent cipher key equipment 61 and starts to carry out data communication with it by the first channel.
Terminal equipment 62 also comprises:
14 judge module, for having judged whether that intelligent cipher key equipment 61 is connected with it;
16 judge module, is connected with intelligent cipher key equipment 61 first for judging whether when the 14 judge module is judged as YES;
Consulting judge module, for using when the 14 judge module is judged as NO the downgoing communication parameter of preservation and intelligent cipher key equipment 61 to consult communication speed, and judging whether to consult successfully;
Communication module, for using the successful communication speed of negotiation and intelligent cipher key equipment to carry out data communication when consulting judge module and being judged as YES.
Embodiment seven
The embodiment of the present invention seven provides a kind of device of quick identification communications parameter configuration, as shown in Figure 7, comprising:
First receiver module 71, for the instruction of shaking hands fast that receiving terminal apparatus sends;
First parsing module 72, instruction of shaking hands fast for receiving the first receiver module 71 is resolved, and judge whether successfully resolved, analytically obtain downgoing communication parameter in result and number and preserve, trigger the first judge module 73, otherwise wait-receiving mode data, trigger the 3rd judge module 74;
Concrete, in the present embodiment, the first parsing module 72 comprises:
First judges submodule, for judging whether four byte datas that the terminal equipment that the first receiver module 71 receives sends are correct frame head data, be then by four byte data sequential storage in buffer area, trigger sub module stored, otherwise trigger the 3rd judge module 74;
Concrete, in the present embodiment, first judges that submodule comprises:
First judging unit, for judging whether the first character joint number certificate that the first receiver module 71 receives is the first frame head data, is, by first character joint number according to being stored in buffer area, otherwise wait-receiving mode data, trigger the 3rd judge module 74;
Second judging unit, for judging whether second byte data that the first receiver module receives is the second frame head data, be then by second byte data sequential storage in buffer area, otherwise empty buffer area, wait-receiving mode data, trigger the 3rd judge module 74;
3rd judging unit, for judging whether the 3rd byte data that the first receiver module receives is the 3rd frame head data, be then by the 3rd byte data sequential storage in buffer area, otherwise empty buffer area, wait-receiving mode data, trigger the 3rd judge module 74;
4th judging unit, for judging whether the 4th byte data that the first receiver module receives is the 4th frame head data, be then by the 4th byte data sequential storage in buffer area, otherwise empty buffer area, wait-receiving mode data, trigger the 3rd judge module 74.
Sub module stored, the backhaul frequency that the terminal equipment for being received by the first receiver module 71 issues, protocol parameter, data length, data content sequential storage are in buffer area;
Whether second judges submodule, for when the first receiver module 71 receives check code, correct according to the data that check code judges in buffer area, is trigger the 3rd and judge submodule 74, otherwise empty buffer area, triggers the 3rd judge module 74;
In the present embodiment, second judges that submodule is specifically for calculating the School Affairs of the data in buffer area, and judges that whether the School Affairs calculated consistent with check code, be data then in buffer area correctly, otherwise data in buffer area are incorrect.
3rd judges submodule, and receiving up first parameter field for judging whether according to protocol parameter, is trigger sub module stored, otherwise triggers acquisition submodule;
Sub module stored, also for up first parameter field sequential storage that the first receiver module 71 is received in buffer area;
4th judges submodule, receives preset data for judging whether, be then by preset data sequential storage in buffer area, trigger sub module stored, otherwise trigger obtain submodule;
Sub module stored, for the up second parameter field sequential storage that received by the first receiver module 71 in buffer area;
5th judges submodule, for judging that whether up second parameter field is correct, being trigger acquisition submodule, otherwise empty buffer area, triggering the 3rd judge module 74;
Concrete, in the present embodiment, 5th judge submodule specifically in up second parameter field except other data of check code carry out calculation check and, and judge that whether the School Affairs calculated is consistent with the check code in up second parameter field, be that then up second parameter field is correct, otherwise up second parameter field is incorrect.
Obtain submodule, number for obtaining downgoing communication parameter from data content and preserve;
First judge module 73, for judging whether the instruction of shaking hands fast received comprises last a kind of downgoing communication parameter, is, triggers the first sending module 75, otherwise wait-receiving mode data, trigger the 3rd judge module 74;
Concrete, in the present embodiment, first judge module 73 is specifically for judging whether the downgoing communication parameter numbering got is preset data, be that the instruction of shaking hands fast received comprises last a kind of downgoing communication parameter, otherwise the instruction of shaking hands fast received does not comprise last a kind of downgoing communication parameter.
3rd judge module 74, for judging whether the time of wait-receiving mode data exceedes preset duration, is, triggers the first sending module 75, otherwise triggers the first receiver module 71;
First sending module 75, for sending to terminal equipment by the uplink communication parameter of correspondence and all downgoing communication parameters numberings got according to the different upstream frequency of preserving respectively by second channel; Also for returning correct reception information by second channel to terminal equipment.
Device in the present embodiment also comprises the 5th judge module;
First receiver module 71, also for the protocol data instruction of receiving terminal apparatus transmission;
5th judge module, for judging whether the type of protocol data instruction is instruction of shaking hands fast, is, triggers the first parsing module 72, otherwise processes protocol data instruction.
Device in the present embodiment also comprises:
7th judge module, for judging whether receive protocol data instruction in Preset Time, is, triggers the 5th judge module, otherwise reports an error, and terminates.
In the present embodiment, the first parsing module 72, the detection instruction also for sending terminal equipment is resolved, and as successfully resolved, then triggering the first sending module 75, then reporting an error as resolved failure, terminates;
First sending module 75, also for the analysis result detecting instruction is returned to terminal equipment as detection response by second channel.
Concrete, in the present embodiment, the first sending module 75 comprises:
First as submodule: for using a upstream frequency as current upstream frequency;
First sends submodule, for the uplink communication parameter of correspondence and all downgoing communication parameters numberings got being sent to terminal equipment according to current upstream frequency by second channel;
Wherein, first in the present embodiment sends submodule and comprises:
First transmitting element, for sending the head redundant data preset to terminal equipment by second channel;
Second transmitting element, presets frame head for sending first by second channel to terminal equipment;
3rd transmitting element, presets frame head for sending second by second channel to terminal equipment;
4th transmitting element, for according to current uplink communication parameter and all downgoing communication parameter numbering calculated data length of getting, and sends data length by second channel to terminal equipment;
5th transmitting element, for sending corresponding uplink communication parameter and all downgoing communication parameter numbering by second channel to terminal equipment according to current upstream frequency;
6th transmitting element, for sending School Affairs by second channel to terminal equipment;
7th transmitting element, for sending the tail redundant data preset to terminal equipment by second channel.
6th judges submodule, for judging whether the upstream frequency of preserving has processed, and is trigger the first receiver module 71, otherwise using next upstream frequency as current upstream frequency, triggering first and sending submodule.
The embodiment of the present invention can accelerate the negotiations process of communication speed; And can identify whether main equipment is the equipment that intelligent cipher key equipment is supported, improves communication speed fast.
The above; be only the present invention's preferably embodiment, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in technical scope disclosed by the invention; the change that can expect easily or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.

Claims (54)

1. identify a method for communications parameter configuration fast, it is characterized in that, comprising:
Terminal equipment sends the corresponding instruction of shaking hands fast comprising downgoing communication parameter, the data that intelligent cipher key equipment described in wait-receiving mode returns to respectively the intelligent cipher key equipment connected according to different downstream frequencys by the first channel;
Step S1: when described intelligent cipher key equipment receive described terminal equipment send shake hands fast instruction time it is resolved, and judge whether successfully resolved, be analytically obtain downgoing communication parameter in result and number and preserve, perform step S2, otherwise wait-receiving mode data, perform step S3;
Step S2: described intelligent cipher key equipment judges whether comprise last a kind of downgoing communication parameter in the instruction of shaking hands fast received, and is perform step S4, otherwise wait-receiving mode data, perform step S3;
Step S3: described intelligent cipher key equipment judges whether the time of wait-receiving mode data exceedes preset duration, is perform step S4, otherwise returns step S1;
Step S4: the uplink communication parameter of correspondence and all downgoing communication parameters numberings got are sent to described terminal equipment according to the different upstream frequency of preserving by second channel by described intelligent cipher key equipment respectively;
Step S5: when the uplink communication parameter that described terminal equipment receives the correspondence that all described intelligent cipher key equipments send and get all downgoing communication parameter numberings time, a uplink communication parameter and all downgoing communication parameters of getting are numbered as current response;
Step S6: described terminal equipment is resolved current response, and judge that whether parsing is successful, be perform step S8, otherwise perform step S7;
Step S7: described terminal equipment judges whether all downgoing communication parameter numberings processing all uplink communication parameters and get, report an error, terminate, otherwise another uplink communication parameter and all downgoing communication parameters got are numbered as current response, return step S6;
Step S8: described terminal equipment analytically obtains uplink communication parameter in result and all downgoing communication parameters are numbered and preserve;
Step S9: described terminal equipment judges whether all downgoing communication parameter numberings processing all uplink communication parameters and get, perform step S10, otherwise another uplink communication parameter and all downgoing communication parameters got are numbered as current response, returns step S6;
Step S10: described terminal equipment obtains corresponding downgoing communication parameter according to all downgoing communication parameter numberings of preserving, all uplink communication parameters according to the downgoing communication parameter got and acquisition determine that the communications parameter of described intelligent cipher key equipment configures.
2. the method for claim 1, it is characterized in that, before described step S1, also comprise: described terminal equipment judges whether the instruction of shaking hands fast comprising downgoing communication parameter is all sent completely, be wait for the data that described intelligent cipher key equipment returns, otherwise continue to send instruction of shaking hands fast.
3. the method for claim 1, is characterized in that, before described step S1, also comprises:
Steps A: when described intelligent cipher key equipment receives the protocol data instruction of described terminal equipment transmission, whether the type judging described protocol data instruction is described instruction of shaking hands fast, be perform step S1, otherwise described protocol data instruction is processed.
4. method as claimed in claim 3, is characterized in that, comprise before described steps A: described intelligent cipher key equipment judges in Preset Time, whether to receive described protocol data instruction, be perform steps A, otherwise report an error, and terminates.
5. the method for claim 1, it is characterized in that, described step S2 is specially: whether the downgoing communication parameter numbering got described in described intelligent cipher key equipment judges is preset data, be that the instruction of shaking hands fast received comprises last a kind of downgoing communication parameter, otherwise the instruction of shaking hands fast received does not comprise last a kind of downgoing communication parameter.
6. the method for claim 1, is characterized in that, also comprises before described step S5:
Step B: when described terminal equipment receives the data of described intelligent cipher key equipment transmission, whether comprise uplink communication parameter in the data received described in judgement, be, perform step S5, otherwise report an error, wait-receiving mode data.
7. method as claimed in claim 6, is characterized in that, comprise before described step B: described terminal equipment judges whether to receive in Preset Time the data that described intelligent cipher key equipment returns, and is perform step B, otherwise reports an error, end.
8. the method for claim 1, is characterized in that, also comprises after described step S10:
Step C1: described terminal equipment sends the detection instruction comprising the downgoing communication parameter got to described intelligent cipher key equipment by described first channel, and the detection response that intelligent cipher key equipment described in wait-receiving mode returns;
Step C2: it is resolved when described intelligent cipher key equipment receives described detection instruction, as successfully resolved, then the analysis result of described detection instruction is returned to described terminal equipment as detection response by described second channel by described intelligent cipher key equipment, then reporting an error as resolved failure, terminating;
Step C3: when described terminal equipment receives the detection response that described intelligent cipher key equipment returns, it is resolved, and judge whether successfully resolved, be perform step C4, otherwise perform step C5;
Step C4: described terminal equipment obtains downgoing communication parameter and preserves from the analysis result detecting response, performs step C5;
Step C5: described terminal equipment judges whether all detection instructions are sent completely, and are, obtains downgoing communication parameter from the described downgoing communication parameter of preserving, and performs step C6, otherwise returns step C1;
Step C6: a downgoing communication parameter obtained is sent to described intelligent cipher key equipment by described first channel and starts to carry out data communication with it by described terminal equipment.
9. method as claimed in claim 8, is characterized in that, described terminal equipment also comprises before sending instruction of shaking hands fast:
Step D1: described terminal equipment has judged whether that intelligent cipher key equipment is connected with it, is, performs step D2, otherwise returns step D1;
Step D2: described terminal equipment judges whether to be connected with described intelligent cipher key equipment first, is, described terminal equipment sends instruction of shaking hands fast, otherwise performs step D3;
Step D3: described terminal equipment uses the downgoing communication parameter of preservation and described intelligent cipher key equipment to consult communication speed, and judges whether that consulting successfully, is perform step D4, otherwise described terminal equipment sends instruction of shaking hands fast;
Step D4: described terminal equipment uses the successful communication speed of negotiation and described intelligent cipher key equipment to carry out data communication.
10. the method for claim 1, is characterized in that, described step S1 comprises:
Step S1-1: when described intelligent cipher key equipment receives four byte datas of described terminal equipment transmission, determine whether correct frame head data, be then by described four byte data sequential storage in buffer area, perform step S1-2, otherwise wait-receiving mode data, perform step S3;
Step S1-2: described intelligent cipher key equipment is waited for and received backhaul frequency, protocol parameter, data length, the data content that described terminal equipment issues, by described backhaul frequency, protocol parameter, data length, data content sequential storage in described buffer area;
Step S1-3: when described intelligent cipher key equipment receives check code, whether correct according to the data that described check code judges in described buffer area, be perform step S1-4, otherwise empty described buffer area, wait-receiving mode data, perform step S3;
Step S1-4: described intelligent cipher key equipment judges whether to receive up first parameter field according to described protocol parameter, is perform step S1-5, otherwise performs step S1-9;
Step S1-5: when described intelligent cipher key equipment receives up first parameter field by its sequential storage in described buffer area;
Step S1-6: described intelligent cipher key equipment judges whether to receive preset data, be then by described preset data sequential storage in described buffer area, perform step S1-7, otherwise perform step S1-9;
Step S1-7: described intelligent cipher key equipment receives up second parameter field and by its sequential storage in described buffer area;
Step S1-8: described intelligent cipher key equipment judges that whether described up second parameter field is correct, is perform step S1-9, otherwise empties described buffer area, wait-receiving mode data, perform step S3;
Step S1-9: described intelligent cipher key equipment returns correct reception information to described terminal equipment by described second channel, obtains downgoing communication parameter and number and preserve from described data content, performs step S2.
11. methods as claimed in claim 10, it is characterized in that, described step S1-1 comprises:
Step S1-11: described intelligent cipher key equipment wait-receiving mode data, when receive first character joint number according to time, judge whether it is the first frame head data, be, by described first character joint number according to being stored in described buffer area, perform step S1-12, otherwise wait-receiving mode data, perform step S3;
Step S1-12: when described intelligent cipher key equipment receives second byte data, judge whether it is the second frame head data, be then by described second byte data sequential storage in described buffer area, perform step S1-13, otherwise empty described buffer area, wait-receiving mode data, perform step S3;
Step S1-13: judge when described intelligent cipher key equipment receives the 3rd byte data whether it is the 3rd frame head data, be then by described 3rd byte data sequential storage in described buffer area, perform step S1-14, otherwise empty described buffer area, wait-receiving mode data, perform step S3;
Step S1-14: judge when described intelligent cipher key equipment receives the 4th byte data whether it is the 4th frame head data, be then by described 4th byte data sequential storage in described buffer area, perform step S1-2, otherwise empty described buffer area, wait-receiving mode data, perform step S3.
12. methods as claimed in claim 10, it is characterized in that, described step S1-3 comprises:
Described intelligent cipher key equipment calculates the School Affairs of the data in described buffer area, and judges that whether the School Affairs that calculates consistent with described check code, be data then in described buffer area correctly, otherwise data in described buffer area are incorrect.
13. methods as claimed in claim 10, it is characterized in that, described step S1-8 comprises:
Described intelligent cipher key equipment in described up second parameter field except other data of check code carry out calculation check and, and judge that whether the School Affairs calculated is consistent with the check code in described up second parameter field, be that then described up second parameter field is correct, otherwise described up second parameter field is incorrect.
14. the method for claim 1, is characterized in that, described step S4 comprises:
Step S41: described intelligent cipher key equipment using a upstream frequency as current upstream frequency;
Step S42: the uplink communication parameter of correspondence and all downgoing communication parameters numberings got are sent to described terminal equipment according to current upstream frequency by second channel by described intelligent cipher key equipment;
Step S43: described intelligent cipher key equipment judges whether the upstream frequency of preserving has processed, and is, the data that terminal equipment described in wait-receiving mode returns, otherwise using next upstream frequency as current upstream frequency, returns step S42.
15. methods as claimed in claim 14, it is characterized in that, described step S42 comprises:
Step S42-1: described intelligent cipher key equipment sends the head redundant data preset to described terminal equipment by described second channel;
Step S42-2: described intelligent cipher key equipment sends first by described second channel to described terminal equipment and presets frame head;
Step S42-3: described intelligent cipher key equipment sends second by described second channel to described terminal equipment and presets frame head;
Step S42-4: described intelligent cipher key equipment according to current uplink communication parameter and all downgoing communication parameter numbering calculated data length got, and sends described data length by described second channel to described terminal equipment;
Step S42-5: described intelligent cipher key equipment sends uplink communication parameter and all downgoing communication parameters numbering of described correspondence to described terminal equipment by described second channel according to current upstream frequency;
Step S42-6: described intelligent cipher key equipment sends School Affairs by described second channel to described terminal equipment;
Step S42-7: described intelligent cipher key equipment sends the tail redundant data preset to described terminal equipment by described second channel.
16. methods as claimed in claim 15, it is characterized in that, described step S6 comprises:
Step S61: described terminal equipment judges whether current response meets predetermined format, is, performs step S62, otherwise perform step S7;
Step S62: described terminal equipment is resolved current response, and judge that whether analysis result is correct according to the School Affairs in analysis result, be perform step S8, otherwise perform step S7.
17. 1 kinds identify the method that communications parameter configures fast, it is characterized in that, comprising:
Step P1: when described intelligent cipher key equipment receive described terminal equipment send shake hands fast instruction time it is resolved, and judge whether successfully resolved, be analytically obtain downgoing communication parameter in result and number and preserve, perform step P2, otherwise wait-receiving mode data, perform step P3;
Step P2: described intelligent cipher key equipment judges whether the instruction of shaking hands fast received comprises last a kind of downgoing communication parameter, is perform step P4, otherwise wait-receiving mode data, perform step P3;
Step P3: described intelligent cipher key equipment judges whether the time of wait-receiving mode data exceedes preset duration, is perform step P4, otherwise returns step P1;
Step P4: the uplink communication parameter of correspondence and all downgoing communication parameters numberings got are sent to described terminal equipment according to the different upstream frequency of preserving by second channel by described intelligent cipher key equipment respectively.
18. methods as claimed in claim 17, is characterized in that, before described step P1, also comprise:
Step M: when described intelligent cipher key equipment receives the protocol data instruction of described terminal equipment transmission, whether the type judging described protocol data instruction is described instruction of shaking hands fast, be perform step P1, otherwise described protocol data instruction is processed.
19. methods as claimed in claim 18, is characterized in that, comprise before described step M: described intelligent cipher key equipment judges in Preset Time, whether to receive described protocol data instruction, be perform step M, otherwise report an error, and terminate.
20. methods as claimed in claim 19, it is characterized in that, described step P2 is specially: whether the downgoing communication parameter numbering got described in described intelligent cipher key equipment judges is preset data, be that the instruction of shaking hands fast received comprises last a kind of downgoing communication parameter, otherwise the instruction of shaking hands fast received does not comprise last a kind of downgoing communication parameter.
21. methods as claimed in claim 17, is characterized in that, also comprise after described step P4:
Step L: it is resolved when described intelligent cipher key equipment receives the detection instruction of described terminal equipment transmission, as successfully resolved, then the analysis result of described detection instruction responds by described second by returning to described terminal equipment as detection by described intelligent cipher key equipment, then reporting an error as resolved failure, terminating.
22. methods as claimed in claim 17, it is characterized in that, described step P1 comprises:
Step T1: when described intelligent cipher key equipment receives four byte datas of described terminal equipment transmission, determine whether correct frame head data, be then by described four byte data sequential storage in buffer area, perform step T2, otherwise wait-receiving mode data, perform step P3;
Step T2: described intelligent cipher key equipment is waited for and received backhaul frequency, protocol parameter, data length, the data content that described terminal equipment issues, by described backhaul frequency, protocol parameter, data length, data content sequential storage in described buffer area;
Step T3: when described intelligent cipher key equipment receives check code, whether correct according to the data that described check code judges in described buffer area, be perform step T4, otherwise empty described buffer area, wait-receiving mode data, perform step P3;
Step T4: described intelligent cipher key equipment judges whether to receive up first parameter field according to described protocol parameter, is perform step T5, otherwise performs step T9;
Step T5: when described intelligent cipher key equipment receives up first parameter field by its sequential storage in described buffer area;
Step T6: described intelligent cipher key equipment judges whether to receive preset data, be then by described preset data sequential storage in described buffer area, perform step T7, otherwise perform step T9;
Step T7: described intelligent cipher key equipment receives up second parameter field and by its sequential storage in described buffer area;
Step T8: described intelligent cipher key equipment judges that whether described up second parameter field is correct, is perform step T9, otherwise empties described buffer area, wait-receiving mode data, perform step P3;
Step T9: described intelligent cipher key equipment returns correct reception information to described terminal equipment by described second channel, obtains downgoing communication parameter and number and preserve from described data content, performs step P2.
23. methods as claimed in claim 22, it is characterized in that, described step T1 comprises:
Step T11: described intelligent cipher key equipment wait-receiving mode data, when receive first character joint number according to time, judge whether it is the first frame head data, be, by described first character joint number according to being stored in described buffer area, perform step T12, otherwise wait-receiving mode data, perform step P3;
Step T12: when described intelligent cipher key equipment receives second byte data, judges whether it is the second frame head data, be then by described second byte data sequential storage in described buffer area, perform step T13, otherwise empty described buffer area, wait-receiving mode data, perform step P3;
Step T13: judge when described intelligent cipher key equipment receives the 3rd byte data whether it is the 3rd frame head data, be then by described 3rd byte data sequential storage in described buffer area, perform step T14, otherwise empty described buffer area, wait-receiving mode data, perform step P3;
Step T14: judge when described intelligent cipher key equipment receives the 4th byte data whether it is the 4th frame head data, be then by described 4th byte data sequential storage in described buffer area, perform step T2, otherwise empty described buffer area, wait-receiving mode data, perform step P3.
24. methods as claimed in claim 22, it is characterized in that, described step T3 comprises:
Described intelligent cipher key equipment calculates the School Affairs of the data in described buffer area, and judges that whether the School Affairs that calculates consistent with described check code, be data then in described buffer area correctly, otherwise data in described buffer area are incorrect.
25. methods as claimed in claim 22, it is characterized in that, described step T8 comprises:
Described intelligent cipher key equipment in described up second parameter field except other data of check code carry out calculation check and, and judge that whether the School Affairs calculated is consistent with the check code in described up second parameter field, be that then described up second parameter field is correct, otherwise described up second parameter field is incorrect.
26. methods as claimed in claim 17, it is characterized in that, described step P4 comprises:
Step P41: described intelligent cipher key equipment using a upstream frequency as current upstream frequency;
Step P42: the uplink communication parameter of correspondence and all downgoing communication parameters numberings got are sent to described terminal equipment according to current upstream frequency by second channel by described intelligent cipher key equipment;
Step P43: described intelligent cipher key equipment judges whether the upstream frequency of preserving has processed, and is, the data that terminal equipment described in wait-receiving mode returns, otherwise using next upstream frequency as current upstream frequency, returns step P42.
27. methods as claimed in claim 26, it is characterized in that, described step P42 comprises:
Step P42-1: described intelligent cipher key equipment sends the head redundant data preset to described terminal equipment by second channel;
Step P42-2: described intelligent cipher key equipment sends first by second channel to described terminal equipment and presets frame head;
Step P42-3: described intelligent cipher key equipment sends second by second channel to described terminal equipment and presets frame head;
Step P42-4: described intelligent cipher key equipment according to current uplink communication parameter and all downgoing communication parameter numbering calculated data length got, and sends described data length by second channel to described terminal equipment;
Step P42-5: described intelligent cipher key equipment sends uplink communication parameter and all downgoing communication parameters numbering of described correspondence to described terminal equipment by second channel according to current upstream frequency;
Step P42-6: described intelligent cipher key equipment sends School Affairs by second channel to described terminal equipment;
Step P42-7: described intelligent cipher key equipment sends the tail redundant data preset to described terminal equipment by second channel.
28. 1 kinds identify the system that communications parameter configures fast, it is characterized in that, comprise terminal equipment and intelligent cipher key equipment,
Described intelligent cipher key equipment comprises:
First receiver module, for receiving the instruction of shaking hands fast that described terminal equipment sends;
First parsing module, resolves for the instruction of shaking hands fast received described first receiver module, and judges whether successfully resolved, analytically obtain downgoing communication parameter in result and number and preserve, trigger the first judge module, otherwise wait-receiving mode data, trigger the 3rd judge module;
Described first judge module, for judging whether comprise last a kind of downgoing communication parameter in the instruction of shaking hands fast that receives, is trigger the first sending module, otherwise wait-receiving mode data, trigger described 3rd judge module;
Described 3rd judge module, for judging whether the time of wait-receiving mode data exceedes preset duration, is, triggers described first sending module, otherwise triggers the first receiver module;
Described first sending module, for sending to described terminal equipment by the uplink communication parameter of correspondence and all downgoing communication parameters numberings got according to the different upstream frequency of preserving respectively by second channel;
Described terminal equipment comprises:
Second sending module, for sending the corresponding instruction of shaking hands fast comprising downgoing communication parameter to respectively the intelligent cipher key equipment connected according to different downstream frequencys by the first channel;
Second receiver module, for the uplink communication parameter receiving the correspondence that all described intelligent cipher key equipments send and all downgoing communication parameters numberings got;
As module, for a uplink communication parameter and all downgoing communication parameters got are numbered as current response;
Second parsing module, for resolving current response, and judging that whether parsing is successful, being trigger the first acquisition module, otherwise triggering the second judge module;
Described second judge module, for judging whether all downgoing communication parameter numberings processing all uplink communication parameters and get when described second parsing module is resolved unsuccessfully, report an error, terminate, otherwise another uplink communication parameter and all downgoing communication parameters got are numbered as current response, triggers described second parsing module;
Described first acquisition module, for obtaining uplink communication parameter in the analysis result from described second parsing module and all downgoing communication parameters are numbered and preserve;
4th judge module, for judging whether all downgoing communication parameter numberings processing all uplink communication parameters and get, trigger the second acquisition module, otherwise another uplink communication parameter and all downgoing communication parameters got are numbered as current response, triggers described second parsing module;
Second acquisition module, for obtaining corresponding downgoing communication parameter according to all downgoing communication parameter numberings of preserving, all uplink communication parameters according to the downgoing communication parameter got and acquisition determine that the communications parameter of described intelligent cipher key equipment configures.
29. systems as claimed in claim 28, it is characterized in that, described terminal equipment also comprises: the 6th judge module, for judging whether the instruction of shaking hands fast comprising downgoing communication parameter is all sent completely, be wait for the data that described intelligent cipher key equipment returns, otherwise continue to send instruction of shaking hands fast.
30. systems as claimed in claim 28, it is characterized in that, described intelligent cipher key equipment also comprises the 5th judge module;
Described first receiver module, also for receiving the protocol data instruction that described terminal equipment sends;
Described 5th judge module, for judging whether the type of described protocol data instruction is described instruction of shaking hands fast, is trigger described first parsing module, otherwise processes described protocol data instruction.
31. systems as claimed in claim 30, it is characterized in that, described intelligent cipher key equipment also comprises:
7th judge module, for judging whether described first receiver module receives described protocol data instruction in Preset Time, is, triggering described 5th judge module, otherwise reporting an error, and terminates.
32. systems as claimed in claim 28, it is characterized in that, whether described first judge module is preset data specifically for the downgoing communication parameter numbering got described in judging, be that the instruction of shaking hands fast received comprises last a kind of downgoing communication parameter, otherwise the instruction of shaking hands fast received does not comprise last a kind of downgoing communication parameter.
33. systems as claimed in claim 28, it is characterized in that, described terminal equipment also comprises the 8th judge module;
Described second receiver module, also for receiving the data that described intelligent cipher key equipment sends;
Described 8th judge module, for judging whether comprise uplink communication parameter in the data that described second receiver module receives, being trigger as module, otherwise reporting an error, wait-receiving mode data.
34. systems as claimed in claim 33, it is characterized in that, described terminal equipment also comprises:
Tenth judge module, for judging the data whether described second receiver module receives described intelligent cipher key equipment and return in Preset Time, being trigger described 8th judge module, otherwise report an error, terminating.
35. systems as claimed in claim 28, it is characterized in that, described terminal equipment also comprises the 12 judge module;
Described second sending module, also for being sent the detection instruction comprising the downgoing communication parameter got to described intelligent cipher key equipment by described first channel;
Described first receiver module, also for receiving described detection instruction;
Described first parsing module, also for resolving described detection instruction, as successfully resolved, then triggers the first sending module, then reports an error as resolved failure, terminates;
Described first sending module, also for the analysis result of described detection instruction is returned to described terminal equipment as detection response by described second channel;
Described second receiver module, also for receiving the detection response that described intelligent cipher key equipment returns;
Described second parsing module, also for resolving described detection response, and judging whether successfully resolved, being, trigger described second acquisition module, otherwise trigger described 12 judge module;
Described second acquisition module, also for obtaining downgoing communication parameter in the analysis result from detection response and preserving, triggers described 12 judge module;
Described 12 judge module, for judging whether all detection instructions are sent completely, and are, obtains downgoing communication parameter from the described downgoing communication parameter of preserving;
Described second sending module, also for the downgoing communication parameter that obtains being sent to described intelligent cipher key equipment and starts to carry out data communication with it by described first channel.
36. systems as claimed in claim 35, it is characterized in that, described terminal equipment also comprises:
14 judge module, for having judged whether that intelligent cipher key equipment is connected with it;
16 judge module, for judging whether to be connected with described intelligent cipher key equipment first when described 14 judge module is judged as YES;
Consulting judge module, for using when described 14 judge module is judged as NO the downgoing communication parameter of preservation and described intelligent cipher key equipment to consult communication speed, and judging whether to consult successfully;
Communication module, carries out data communication for using the successful communication speed of negotiation and described intelligent cipher key equipment when described negotiation judge module is judged as YES.
37. systems as claimed in claim 28, it is characterized in that, described first parsing module comprises:
First judges submodule, for judging whether four byte datas that the described terminal equipment that described first receiver module receives sends are correct frame head data, be then by described four byte data sequential storage in buffer area, trigger sub module stored, otherwise trigger described 3rd judge module;
Described sub module stored, the backhaul frequency that the described terminal equipment for being received by described first receiver module issues, protocol parameter, data length, data content sequential storage are in described buffer area;
Whether second judges submodule, for when described first receiver module receives check code, correct according to the data that described check code judges in described buffer area, trigger the 3rd and judge submodule, otherwise empty described buffer area, wait-receiving mode data, trigger described 3rd judge module;
Described 3rd judges submodule, and receiving up first parameter field for judging whether according to described protocol parameter, is trigger described sub module stored, otherwise triggers acquisition submodule;
Described sub module stored, also for up first parameter field sequential storage that described first receiver module is received in described buffer area;
4th judges submodule, receives preset data for judging whether, be then by described preset data sequential storage in described buffer area, trigger described sub module stored, otherwise trigger obtain submodule;
Described sub module stored, for the up second parameter field sequential storage that received by described first receiver module in described buffer area;
5th judges submodule, for judging that whether described up second parameter field is correct, being trigger acquisition submodule, otherwise emptying described buffer area, wait-receiving mode data, triggering described 3rd judge module;
Described acquisition submodule, numbers for obtaining downgoing communication parameter from described data content and preserves;
Described first sending module, also for returning correct reception information to described terminal equipment by second channel.
38. systems as claimed in claim 37, it is characterized in that, described first judges that submodule comprises:
First judging unit, for judging whether the first character joint number certificate that described first receiver module receives is the first frame head data, will be that described first character joint number certificate is stored in described buffer area, otherwise wait-receiving mode data, trigger described 3rd judge module;
Second judging unit, for judging whether second byte data that described first receiver module receives is the second frame head data, be then by described second byte data sequential storage in described buffer area, otherwise empty described buffer area, wait-receiving mode data, trigger described 3rd judge module;
3rd judging unit, for judging whether the 3rd byte data that described first receiver module receives is the 3rd frame head data, be then by described 3rd byte data sequential storage in described buffer area, otherwise empty described buffer area, wait-receiving mode data, trigger described 3rd judge module;
4th judging unit, for judging whether the 4th byte data that described first receiver module receives is the 4th frame head data, be then by described 4th byte data sequential storage in described buffer area, otherwise empty described buffer area, wait-receiving mode data, trigger described 3rd judge module.
39. systems as claimed in claim 37, it is characterized in that, described second judges that submodule is specifically for calculating the School Affairs of the data in described buffer area, and judge that whether the School Affairs calculated is consistent with described check code, be that data then in described buffer area are correct, otherwise data in described buffer area are incorrect.
40. systems as claimed in claim 37, it is characterized in that, described 5th judge submodule specifically in described up second parameter field except other data of check code carry out calculation check and, and judge that whether the School Affairs calculated is consistent with the check code in described up second parameter field, be that then described up second parameter field is correct, otherwise described up second parameter field is incorrect.
41. systems as claimed in claim 28, it is characterized in that, described first sending module comprises:
First as submodule: for using a upstream frequency as current upstream frequency;
First sends submodule, for the uplink communication parameter of correspondence and all downgoing communication parameters numberings got being sent to described terminal equipment according to current upstream frequency by second channel;
6th judges submodule, for judging whether the upstream frequency of preserving has processed, and is trigger described first receiver module, otherwise using next upstream frequency as current upstream frequency, triggering described first and sending submodule.
42. systems as claimed in claim 41, is characterized in that, described first sends submodule comprises:
First transmitting element, for sending the head redundant data preset to described terminal equipment by second channel;
Second transmitting element, presets frame head for sending first by second channel to described terminal equipment;
3rd transmitting element, presets frame head for sending second by second channel to described terminal equipment;
4th transmitting element, for according to current uplink communication parameter and all downgoing communication parameter numbering calculated data length of getting, and sends described data length by second channel to described terminal equipment;
5th transmitting element, for sending uplink communication parameter and all downgoing communication parameters numbering of described correspondence to described terminal equipment by second channel according to current upstream frequency;
6th transmitting element, for sending School Affairs by second channel to described terminal equipment;
7th transmitting element, for sending the tail redundant data preset to described terminal equipment by second channel.
43. systems as claimed in claim 42, it is characterized in that, described second parsing module comprises:
7th judges submodule, for judging whether current response meets predetermined format, is, triggers analysis judgment submodule, otherwise triggers described 4th judge module;
According to the School Affairs in analysis result, described analysis judgment submodule, for resolving current response, and judging that whether analysis result is correct, being trigger described second acquisition module, otherwise triggering described 4th judge module.
44. 1 kinds identify the device that communications parameter configures fast, it is characterized in that, comprising:
First receiver module, for receiving the instruction of shaking hands fast that described terminal equipment sends;
First parsing module, resolves for the instruction of shaking hands fast received described first receiver module, and judges whether successfully resolved, analytically obtain downgoing communication parameter in result and number and preserve, trigger the first judge module, otherwise wait-receiving mode data, trigger the 3rd judge module;
Described first judge module, for judging whether the instruction of shaking hands fast received comprises last a kind of downgoing communication parameter, is trigger the first sending module, otherwise wait-receiving mode data, trigger described 3rd judge module;
Described 3rd judge module, for judging whether the time of wait-receiving mode data exceedes preset duration, is, triggers described first sending module, otherwise triggers the first receiver module;
Described first sending module, for sending to described terminal equipment by the uplink communication parameter of correspondence and all downgoing communication parameters numberings got according to the different upstream frequency of preserving respectively by second channel.
45. devices as claimed in claim 44, is characterized in that, also comprise the 5th judge module;
Described first receiver module, also for receiving the protocol data instruction that described terminal equipment sends;
Described 5th judge module, for judging whether the type of described protocol data instruction is described instruction of shaking hands fast, is trigger described first parsing module, otherwise processes described protocol data instruction.
46. devices as claimed in claim 45, is characterized in that, also comprise:
7th judge module, for judging whether described first receiver module receives described protocol data instruction in Preset Time, is, triggering described 5th judge module, otherwise reporting an error, and terminates.
47. devices as claimed in claim 46, it is characterized in that, whether described first judge module is preset data specifically for the downgoing communication parameter numbering got described in judging, be that the instruction of shaking hands fast received comprises last a kind of downgoing communication parameter, otherwise the instruction of shaking hands fast received does not comprise last a kind of downgoing communication parameter.
48. devices as claimed in claim 44, is characterized in that,
Described first parsing module, the detection instruction also for sending described terminal equipment is resolved, and as successfully resolved, then triggers the first sending module, then reports an error as resolved failure, terminates;
Described first sending module, also for the analysis result of described detection instruction is returned to described terminal equipment as detection response by described second channel.
49. devices as claimed in claim 44, it is characterized in that, described first parsing module comprises:
First judges submodule, for judging whether four byte datas that the described terminal equipment that described first receiver module receives sends are correct frame head data, be then by described four byte data sequential storage in buffer area, trigger sub module stored, wait-receiving mode data, otherwise trigger described 3rd judge module;
Described sub module stored, the backhaul frequency that the described terminal equipment for being received by described first receiver module issues, protocol parameter, data length, data content sequential storage are in described buffer area;
Whether second judges submodule, for when described first receiver module receives check code, correct according to the data that described check code judges in described buffer area, trigger the 3rd and judge submodule, otherwise empty described buffer area, wait-receiving mode data, trigger described 3rd judge module;
Described 3rd judges submodule, and receiving up first parameter field for judging whether according to described protocol parameter, is trigger described sub module stored, otherwise triggers acquisition submodule;
Described sub module stored, also for up first parameter field sequential storage that described first receiver module is received in described buffer area;
4th judges submodule, receives preset data for judging whether, be then by described preset data sequential storage in described buffer area, trigger described sub module stored, otherwise trigger obtain submodule;
Described sub module stored, for the up second parameter field sequential storage that received by described first receiver module in described buffer area;
5th judges submodule, for judging that whether described up second parameter field is correct, being trigger acquisition submodule, otherwise emptying described buffer area, wait-receiving mode data, triggering described 3rd judge module;
Described acquisition submodule, numbers for obtaining downgoing communication parameter from described data content and preserves;
Described first sending module, also for returning correct reception information to described terminal equipment by second channel.
50. devices as claimed in claim 49, it is characterized in that, described first judges that submodule comprises:
First judging unit, for judging whether the first character joint number certificate that described first receiver module receives is the first frame head data, will be that described first character joint number certificate is stored in described buffer area, otherwise wait-receiving mode data, trigger described 3rd judge module;
Second judging unit, for judging whether second byte data that described first receiver module receives is the second frame head data, be then by described second byte data sequential storage in described buffer area, otherwise empty described buffer area, wait-receiving mode data, trigger described 3rd judge module;
3rd judging unit, for judging whether the 3rd byte data that described first receiver module receives is the 3rd frame head data, be then by described 3rd byte data sequential storage in described buffer area, otherwise empty described buffer area, wait-receiving mode data, trigger described 3rd judge module;
4th judging unit, for judging whether the 4th byte data that described first receiver module receives is the 4th frame head data, be then by described 4th byte data sequential storage in described buffer area, otherwise empty described buffer area, wait-receiving mode data, trigger described 3rd judge module.
51. devices as claimed in claim 49, it is characterized in that, described second judges that submodule is specifically for calculating the School Affairs of the data in described buffer area, and judge that whether the School Affairs calculated is consistent with described check code, be that data then in described buffer area are correct, otherwise data in described buffer area are incorrect.
52. devices as claimed in claim 49, it is characterized in that, described 5th judge submodule specifically in described up second parameter field except other data of check code carry out calculation check and, and judge that whether the School Affairs calculated is consistent with the check code in described up second parameter field, be that then described up second parameter field is correct, otherwise described up second parameter field is incorrect.
53. devices as claimed in claim 44, it is characterized in that, described first sending module comprises:
First as submodule: for using a upstream frequency as current upstream frequency;
First sends submodule, for the uplink communication parameter of correspondence and all downgoing communication parameters numberings got being sent to described terminal equipment according to current upstream frequency by second channel;
6th judges submodule, for judging whether the upstream frequency of preserving has processed, and is trigger described first receiver module, otherwise using next upstream frequency as current upstream frequency, triggering described first and sending submodule.
54. devices as claimed in claim 53, is characterized in that, described first sends submodule comprises:
First transmitting element, for sending the head redundant data preset to described terminal equipment by second channel;
Second transmitting element, presets frame head for sending first by second channel to described terminal equipment;
3rd transmitting element, presets frame head for sending second by second channel to described terminal equipment;
4th transmitting element, for according to current uplink communication parameter and all downgoing communication parameter numbering calculated data length of getting, and sends described data length by second channel to described terminal equipment;
5th transmitting element, for sending uplink communication parameter and all downgoing communication parameters numbering of described correspondence to described terminal equipment by second channel according to current upstream frequency;
6th transmitting element, for sending School Affairs by second channel to described terminal equipment;
7th transmitting element, for sending the tail redundant data preset to described terminal equipment by second channel.
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 true CN105407001A (en) 2016-03-16
CN105407001B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106375277A (en) * 2016-08-21 2017-02-01 上海林果实业股份有限公司 Automatic generation method and system for communication configuration list and terminal
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

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106375277A (en) * 2016-08-21 2017-02-01 上海林果实业股份有限公司 Automatic generation method and system for communication configuration list and terminal
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

Also Published As

Publication number Publication date
CN105407001B (en) 2018-10-12

Similar Documents

Publication Publication Date Title
CN107592250B (en) Multi-rate self-adaptive test equipment based on aviation FC bus
CN112988495B (en) Multifunctional test method, device and system for SOC chip multiplex pin
CN104639370A (en) Method for obtaining PCI-E equipment information of system by out-of-band management
CN101335570B (en) Data communication system and method
CN103957198A (en) Sensor data receiving and converting method and system
CN105407001A (en) Method, system and device for rapidly identifying communication parameter configuration
CN103812695A (en) Software debugging method and device for SFP (small form pluggable) ONU (optical network unit)
CN110996011A (en) Multi-camera synchronous triggering system
US20160080184A1 (en) Configuration of a near-field communication router according to the modulation type
US9369319B1 (en) Wireless communication device and method for identifying the type of modulation among a plurality of modulation types in a near filed communication device
CN105573952A (en) Multi-channel data transmission system
CN106254040B (en) Command response processing method and device
CN104271412A (en) Apparatus and method for receiving signals in a vehicle
EP3104338B1 (en) On-board device for a vehicle
KR100927092B1 (en) Method for setting parameter in plc network
CN107750046B (en) Automatic short message notification device for satellite on-orbit monitoring information and use method thereof
CN106982199B (en) Manchester code communication protocol self-adaption method based on FPGA and CPLD
CN104219227A (en) Monitored information receiving and distributing equipment
KR20110049161A (en) Apparatus and method for encoding signal radio frequency identification
CN106341295B (en) Communication method and device of intelligent platform management interface equipment and communication equipment
EP2916523A1 (en) Data stream and data packet transmission method and device
US9537507B2 (en) Monitoring method and device of two-channel bus data in network system
CN105681094A (en) WiFi configuration method
CN202889362U (en) Multilink data transmitting device, multilink data receiving device and multilink data transmitting and receiving system comprising multilink data transmitting device and multilink data receiving device
CN107844815B (en) Identity recognition system and method of self-service terminal equipment

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