CN106407065A - Password keyboard USB communication abnormality recovery method and system - Google Patents

Password keyboard USB communication abnormality recovery method and system Download PDF

Info

Publication number
CN106407065A
CN106407065A CN201610783600.9A CN201610783600A CN106407065A CN 106407065 A CN106407065 A CN 106407065A CN 201610783600 A CN201610783600 A CN 201610783600A CN 106407065 A CN106407065 A CN 106407065A
Authority
CN
China
Prior art keywords
communication
code keypad
data
equipment
usb
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
CN201610783600.9A
Other languages
Chinese (zh)
Other versions
CN106407065B (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.)
Yinjie Nico Fujian Technology Co ltd
Original Assignee
Fujian Landi Commercial Equipment 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 Fujian Landi Commercial Equipment Co Ltd filed Critical Fujian Landi Commercial Equipment Co Ltd
Priority to CN201610783600.9A priority Critical patent/CN106407065B/en
Publication of CN106407065A publication Critical patent/CN106407065A/en
Priority to PCT/CN2017/096821 priority patent/WO2018040877A1/en
Application granted granted Critical
Publication of CN106407065B publication Critical patent/CN106407065B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/263Generation of test inputs, e.g. test vectors, patterns or sequences ; with adaptation of the tested hardware for testability with external testers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/12Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor
    • G06F13/122Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor where hardware performs an I/O function other than control of data transfer

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Communication Control (AREA)
  • Information Transfer Systems (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides a password keyboard USB communication abnormality recovery method and system. The recovery method comprises the steps of inserting a frame number into data sent by a password keyboard and connecting equipment; in a data receiving process, enabling the password keyboard and the connecting equipment to return response message of each frame of data; detecting whether USB communication of the password keyboard and the connecting equipment is abnormal or not; if so, re-establishing communication connection through a communication re-connecting mechanism; after re-establishment of the communication connection, enabling the password keyboard and the connecting equipment to determine whether the data is repeatedly received or not according to the received response message and the data frame number, abandoning the repeated data, and performing data retransmission. According to the technical scheme, by inserting the frame number in the transmitted data, and by establishing the data response mechanism and the communication re-connection mechanism, the communication service connection can be re-built after communication outage, so that the problems of out-of-sync of communication between two parties or repeated operation caused by repeated receiving and transmission of the same data in the communication abnormality condition are effectively solved.

Description

A kind of code keypad usb communication abnormal restoring method and system
Technical field
The present invention relates to usb communication technical field, more particularly to a kind of code keypad usb communication abnormal restoring method and System.
Background technology
Code keypad is one of requisite computer peripheral of financial POS, is widely used in communication, political affairs The service occupatioies such as mansion, traffic, government, industry and commerce, the tax, supermarket, cooperation banking system, POS and management system use, mainly in leading to It is used to input password.In existing code keypad, except Password Input module, it is also integrated with signature plate module, sound wave mould Block and scan module etc..In communication process, the connection of terminal and external code keypad is normal, but the interference due to hardware or The impact of person's surrounding enviroment, so that of short duration disconnection in terminal and external code keypad, then recovers normal feelings at once again Condition, although now terminal and external code keypad connect normally, communication service disconnects.
In the prior art, POS main frame mainly connects external code keypad by USB port, carries out communication service by USB Data transfer, POS main frame and code keypad, during communication strike-machine, because be interfered leading to USB to disconnect, lead to lead to Each bottom layer driving module occurs during letter and cannot receive response data, return time-out error so that application program because Non-artificial interference, leads to service disconnection, thus have impact on application program normally running.
Content of the invention
For this reason, it may be necessary to provide a kind of usb communication restoration methods and system, for solving existing USB device because being interfered, And separated in short-term, lead to communication abnormality and the problem interrupted.
For achieving the above object, inventor provide a kind of code keypad usb communication abnormal restoring method, walk including following Suddenly:
By the sequencing of data is activation, insert frame number in code keypad with being connected in the data that equipment is sent;
In DRP data reception process, code keypad returns the response message of every frame data, response packet with being connected equipment Include data receiver success, data receiver failure data receives time-out;
Whether detection code keypad is abnormal with the usb communication being connected equipment, if so, then reconnects mechanism by communication and builds again Vertical code keypad and the communication connection being connected equipment;
Communication connection again set up after, code keypad be connected equipment by received response message and data Frame number, judge whether data repeats to receive, and communication counterpart data receiver situation, and abandon repeated data, and carrying out Data re-transmitting.
Further, described communication reconnects mechanism and includes:
Judge code keypad and be connected whether equipment disconnects, if so, then detect code keypad and whether be connected equipment Connect, if it is not, then exiting the mechanism of reconnecting;
Whether if code keypad is detected and being connected equipment and connect, code keypad is shaken hands again with being connected equipment;
Shake hands after success, judge code keypad and whether to be successfully connected equipment two-way authentication, if so, then recover communication, if No, then refusal communication.
Further, reconnect mechanism again set up communication connection after with being connected equipment by communication in code keypad, password Keyboard passes through broadcast mode and sends current usb communication connection status, wherein, described each bottom to each bottom layer driving module being comprised Layer drive module includes key-press input bottom layer driving module, sign board bottom layer driving module and scanner bottom layer driving module.
Further, when usb communication exception is detected, code keypad, after actively cutting out usb communication, reopens Usb communication, sets up code keypad and the communication connection being connected equipment again.
For achieving the above object, inventor additionally provides a kind of code keypad usb communication abnormal restoring system, including insertion Unit, response unit, communication reconnect unit and processing unit;
Described insertion unit be used for by data is activation sequencing, code keypad be connected the data that equipment is sent Middle insertion frame number;
Described response unit is used in DRP data reception process, and code keypad returns the response of every frame data with being connected equipment Information, response message includes data receiver success, data receiver failure data receives time-out;
Described communication reconnects unit for detecting code keypad and the usb communication being connected equipment whether exception, if so, then leads to Cross communication and reconnect the communication connection that mechanism is set up code keypad again and is connected equipment;
Described processing unit is used for after communication connection is set up again, code keypad be connected equipment by received Response message and the frame number of data, judge whether data repeats to receive, and communication counterpart data receiver situation, and abandon weight Complex data, and carry out data re-transmitting.
Further, described communication reconnects unit and includes connection judgment subelement, shake hands subelement and certification subelement;
Whether described connection judgment subelement is used for judging code keypad and is connected equipment and disconnects, and if so, then detects Code keypad be connected whether equipment connects, if it is not, then exiting the mechanism of reconnecting;
Described subelement of shaking hands is for when code keypad is detected with being connected equipment and connecting, code keypad sets with being connected Standby again shake hands;
Described certification subelement is used for, after success of shaking hands, judging code keypad and being connected whether equipment two-way authentication becomes Work(, if so, then recovers communication, if it is not, then refusal communication.
Further, also include radio unit, described radio unit is used for passing through communication in code keypad with being connected equipment After the mechanism that reconnects sets up communication connection again, code keypad passes through broadcast mode and works as to each bottom layer driving module transmission being comprised Front usb communication connection status, wherein, described each bottom layer driving module includes key-press input bottom layer driving module, sign board bottom Drive module and scanner bottom layer driving module.
Further, described communication reconnects unit and is additionally operable to when usb communication exception is detected, and code keypad passes through actively After closing usb communication, reopen usb communication, set up code keypad again and the communication connection being connected equipment.
It is different from prior art, technique scheme is passed through to insert frame number in the data sending, and sets up data and answer Answer mechanism and communication reconnects mechanism, can have no progeny in the communications, re-establish communication service and connect, and efficiently solve cryptographic key Disk usb communication is had no progeny because being disturbed in the short time, and identical data repeats to receive and sends, and causes communicating pair asynchronous or weight Multiple operational issue.
Brief description
Fig. 1 is the flow chart of code keypad usb communication abnormal restoring method described in specific embodiment;
Fig. 2 is the schematic diagram of data is activation described in specific embodiment and response;
Fig. 3 is the flow chart reconnecting mechanism that communicates described in specific embodiment;
Fig. 4 is the flow chart connecting equipment sending data described in specific embodiment;
Fig. 5 is to connect device data described in specific embodiment to receive response handling process;
Fig. 6 is code keypad usb communication abnormal restoring system module block diagram described in specific embodiment.
Description of reference numerals:
10th, insert unit;
20th, response unit;
30th, communication reconnects unit;
40th, processing unit.
Specific embodiment
By the technology contents of detailed description technical scheme, structural features, realized purpose and effect, below in conjunction with concrete reality Apply example and coordinate accompanying drawing to be explained in detail.
Refer to Fig. 1, a kind of the present embodiment code keypad usb communication abnormal restoring method, this code keypad usb communication is different Often restoration methods, comprise the following steps:
S101, by data is activation sequencing, code keypad be connected in the data that equipment is sent insert frame number. Wherein, described connection equipment is the equipment that code keypad is connected, and in the present embodiment, described connection equipment is preferably POS Machine.In the present embodiment, described code keypad is provided with keyboard input module, and in other embodiments, described code keypad also wraps Include signature plate module and scanner module, each module includes hardware circuit and corresponding bottom layer driving module respectively, wherein, Keyboard input module is used for obtaining the password digital information of input, and described signature plate module is used for obtaining the letter such as signature of user Breath, described scanner is used for scanning one-dimension code or Quick Response Code treats bar code information.Described keyboard input module, signature plate module and sweeping Retouch rifle module and share a USB communication interface, each module carries out data transmit-receive by this USB communication interface.Each bottom layer driving mould Block, when with being connected equipment (i.e. host side) proper communication, inserts frame number in each data of described transmission, wherein, in order to It is easy to distinguish different pieces of information, the frame number of different pieces of information is different.The data of such as transmission can be incremented by by the sequencing sending Frame number.
S102, in DRP data reception process, code keypad and be connected equipment return every frame data response message, response believe Breath includes data receiver success, data receiver failure data receives time-out.Described response message is to be carried out by USB communication protocol Send, wherein, the schematic diagram of data is activation and response as shown in Fig. 2 wherein, connects equipment for specially POS.Code keypad With connection equipment every send or receive response data after, all determined whether by response message ACK other side have been received by count According to, based on above communication process, when usb communication disconnects, foundation ACK reception condition carries out various usb communication error situations and sentences Disconnected, and processed accordingly.
Whether S103, detection code keypad are abnormal with the usb communication being connected equipment, if so, then reconnect mechanism by communication The communication connection set up code keypad again and be connected equipment.In order that the communication service being disturbed and disconnecting can be timely extensive Multiple, the technical program is passed through communication and is reconnected the communication connection that mechanism is set up code keypad again and is connected equipment.Refer to Fig. 3, When communication service detects transmission data or receiving data is abnormal, Auto-reconnect detection is supported in communication service, when connection equipment When having reconnected with code keypad, connection equipment is re-started with code keypad shakes hands, and after success of shaking hands, is led to Letter both sides carry out two-way authentication, and certification is passed through to detain communication service recovery communication function, and when two-way authentication failure, then refuses extensive Multiple communication service.
S104, after communication connection is set up again, code keypad be connected equipment by received response message with And the frame number of data, judge whether data repeats to receive, and communication counterpart data receiver situation, and abandon repeated data, with And carry out data re-transmitting.When the frame number of received data is repeated, then illustrate that this data repeats to receive, needs will repeat Data abandons;And when the response message receiving is to receive time-out or reception failure etc., then need to resend this data.
In the above-described embodiments, code keypad and connection equipment insert frame number in the data sending, and set up data Acknowledgement mechanism and communication reconnect mechanism, can have no progeny in the communications, re-establish communication service and connect, by described response message May know that the reception condition of the data sending, can determine whether to repeat receiving data by described frame number, therefore in communication In have no progeny, can timely set up connection and communication service, and can effectively solve the problem that identical data repeat receive and send, cause Communicating pair is asynchronous or repetitive operation problem.
In the present embodiment, frame number is to be inserted by USB communication interface agreement, is inserted without each bottom layer driving module Frame number operates.In the case that multiple modules share USB communication interface, frame number insertion, each bottom are carried out by USB communication interface agreement Layer drive module need not carry out the program upgrading of upgrade communication aspect.
In the above-described embodiments, described code keypad be connected equipment except re-establishing code keypad and being connected equipment Communication connection when, carry out data repeating transmission and abandon repeated data, under the non-disconnection of communication service, simply response letter Breath video data reception failure or response time-out when, be also carried out data weight and.Refer to Fig. 4, in an embodiment, connect equipment The flow chart sending data.Connect equipment sending data and include step:
S401, connection equipment according to the response message receiving, judge the whether reception failure of the data that sends, if it is not, then Communication is normal, if so, then goes to step S402;
S402, judge whether support data re-transmitting, if it is not, then going to step S405;If support data re-transmitting, go to step S403;
S403, judge whether data re-transmitting number of times is full, if so, goes to step S405, if it is not, then going to step S404;
S404, frame number keep constant, retransmit this data;Step S401 is transferred back to after data re-transmitting;
S405, renewal frame number then send next data, and communication overtime exits.
Refer to Fig. 5, receive response handling process for connecting device data.This connection device data receives response processing stream Journey includes:
S501, judge whether support data re-transmitting mechanism, if so, then go to step S502, if it is not, then going to step S505;Place Reason response data, updates frame number, and that is, frame number adds 1;
S502, the frame number of extraction data, then go to step S503;
S503, judge whether frame number has repetition, that is, whether consistent, if so, then go to step S504, if it is not, then going to step S505;
S504, Data duplication receive, and abandon the data repeating to receive;
S505, process response data, update frame number, that is, frame number adds 1.
In order to support each bottom layer driving to understand the connection status of current USB in real time, in the above-described embodiments, in cryptographic key Disk is set up after communication connection again with being connected equipment and reconnecting mechanism by communication, and code keypad also can be by broadcast mode to being wrapped The each bottom layer driving module containing sends current usb communication connection status, so that it is guaranteed that bottom layer driving module grasps currently in real time Communications status.
In usb communication, code keypad end detects work(as a side of usb communication it is also desirable to communication abnormality can be carried out Can, and carry out reconnecting process.Code keypad communication reconnects mechanism and flow process and the communication of connection equipment, and to reconnect mechanism consistent, simply Because directly coming into contacts with USB hardware in code keypad end, code keypad end does not have communication service Auto-reconnect thread.Therefore password Keyboard to reconnect mechanism as follows:Actively disconnect USB, then reopen USB.When code keypad actively disconnects USB and connects, connect Equipment can detect exception quickly, and automatically into Auto-reconnect detection and recovers;So so that both sides can be synchronous as early as possible Communications status;Whether by the frame number of communication protocol, to distinguish is repeated data.
Refer to Fig. 6, a kind of embodiment code keypad usb communication abnormal restoring system, this code keypad usb communication is abnormal Recovery system, reconnects unit 30 and processing unit 40 including insertion unit 10, response unit 20, communication;
Described insertion unit 10 be used for by data is activation sequencing, code keypad be connected the number that equipment is sent According to middle insertion frame number;
Described response unit 20 is used in DRP data reception process, and code keypad returns answering of every frame data with being connected equipment Answer information, response message includes data receiver success, data receiver failure data receives time-out;
Whether described communication reconnects unit 30 abnormal with the usb communication being connected equipment for detecting code keypad, if so, then The communication connection that mechanism is set up code keypad again and is connected equipment is reconnected by communication;
Described processing unit 40 is used for after communication connection is set up again, code keypad be connected equipment by received Response message and data frame number, judge whether data repeats to receive, and communication counterpart data receiver situation, and abandoning Repeated data, and carry out data re-transmitting.
In embodiment, code keypad and connection equipment insert frame number in the data sending, and set up data answering machine System and communication reconnect mechanism, can have no progeny in the communications, re-establish communication service and connect, be may know that by described response message The reception condition of the data sending, can determine whether to repeat receiving data by described frame number, therefore has no progeny in the communications, Connection and communication service can timely be set up, and can effectively solve the problem that identical data repeats to receive and sends, cause communication double The asynchronous or repetitive operation problem in side.
In the present embodiment, frame number is to be inserted by USB communication interface agreement, is inserted without each bottom layer driving module Frame number operates.In the case that multiple modules share USB communication interface, frame number insertion, each bottom are carried out by USB communication interface agreement Layer drive module need not carry out the program upgrading of upgrade communication aspect.
In one embodiment, described communication reconnect unit include connection judgment subelement, shake hands subelement and certification single Unit;
Whether described connection judgment subelement is used for judging code keypad and is connected equipment and disconnects, and if so, then detects Code keypad be connected whether equipment connects, if it is not, then exiting the mechanism of reconnecting;
Described subelement of shaking hands is for when code keypad is detected with being connected equipment and connecting, code keypad sets with being connected Standby again shake hands;
Described certification subelement is used for, after success of shaking hands, judging code keypad and being connected whether equipment two-way authentication becomes Work(, if so, then recovers communication, if it is not, then refusal communication.
In order to support each bottom layer driving to understand the connection status of current USB in real time, described code keypad usb communication is different Often recovery system also includes radio unit, and described radio unit is used for reconnecting mechanism with being connected equipment by communication in code keypad After setting up communication connection again, code keypad passes through broadcast mode and leads to each bottom layer driving module current USB of transmission being comprised Letter connection status, wherein, described each bottom layer driving module includes key-press input bottom layer driving module, sign board bottom layer driving module With scanner bottom layer driving module.
Described communication reconnects unit and is additionally operable to when usb communication exception is detected, and code keypad leads to by actively cutting out USB After letter, reopen usb communication, set up code keypad again and the communication connection being connected equipment.In usb communication, cryptographic key Disk end as usb communication a side it is also desirable to communication abnormality detection function can be carried out, and carry out reconnecting process.Code keypad Communication reconnects mechanism and flow process and to reconnect mechanism consistent for the communication connecting equipment, only because code keypad end is direct and USB is hard Part is come into contacts with, and code keypad end does not have communication service Auto-reconnect thread.Therefore code keypad to reconnect mechanism as follows:Actively disconnected Open USB, then reopen USB.When code keypad actively disconnects USB and connects, connection equipment can detect exception quickly, and from The dynamic Auto-reconnect that enters detects and recovers;So so that both sides can synchronous communication state as early as possible;By the frame of communication protocol Number, whether to distinguish is repeated data.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality Body or operation are made a distinction with another entity or operation, and not necessarily require or imply these entities or deposit between operating In any this actual relation or order.And, term " inclusion ", "comprising" or its any other variant are intended to The comprising of nonexcludability, so that include a series of process of key elements, method, article or terminal unit not only include those Key element, but also include other key elements being not expressly set out, or also include for this process, method, article or end The intrinsic key element of end equipment.In the absence of more restrictions, limited by sentence " including ... " or " comprising ... " It is not excluded that also there is other key element in process, method, article or the terminal unit including described key element in key element.This Outward, herein, " more than ", " less than ", " exceeding " etc. be interpreted as not including this number;" more than ", " below ", " within " etc. understand It is including this number.
Those skilled in the art are it should be appreciated that the various embodiments described above can be provided as method, device or computer program product Product.These embodiments can be using complete hardware embodiment, complete software embodiment or the embodiment combining software and hardware aspect Form.All or part of step in the method that the various embodiments described above are related to can be instructed by program correlation hardware Lai Complete, described program can be stored in the storage medium that computer equipment can read, for executing the various embodiments described above side All or part of step described in method.Described computer equipment, including but not limited to:Personal computer, server, general-purpose computations Machine, special-purpose computer, the network equipment, embedded device, programmable device, intelligent mobile terminal, intelligent home device, Wearable Smart machine, vehicle intelligent equipment etc.;Described storage medium, including but not limited to:RAM, ROM, magnetic disc, tape, CD, sudden strain of a muscle Deposit, USB flash disk, portable hard drive, storage card, memory stick, webserver storage, network cloud storage etc..
The various embodiments described above are with reference to the method according to embodiment, equipment (system) and computer program Flow chart and/or block diagram are describing.It should be understood that can be by every in computer program instructions flowchart and/or block diagram Flow process in one flow process and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computers can be provided Programmed instruction to computer equipment processor to produce a machine so that by the finger of the computing device of computer equipment Order produces and is used for what realization was specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame The device of function.
These computer program instructions may be alternatively stored in and the computer that computer equipment works in a specific way can be guided to set So that the instruction being stored in this computer equipment readable memory produces the manufacture including command device in standby readable memory Product, this command device is realized in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame middle finger Fixed function.
These computer program instructions also can be loaded on computer equipment so that executing a series of on a computing device Operating procedure is to produce computer implemented process, thus the instruction executing on a computing device is provided for realizing in flow process The step of the function of specifying in one flow process of figure or multiple flow process and/or one square frame of block diagram or multiple square frame.
Although being described to the various embodiments described above, those skilled in the art once know basic wound The property made concept, then can make other change and modification to these embodiments, so the foregoing is only embodiments of the invention, Not thereby the equivalent structure that the scope of patent protection of the restriction present invention, every utilization description of the invention and accompanying drawing content are made Or equivalent flow conversion, or directly or indirectly it is used in other related technical fields, all include the patent in the present invention in the same manner Within protection domain.

Claims (8)

1. a kind of code keypad usb communication abnormal restoring method is it is characterised in that comprise the following steps:
By the sequencing of data is activation, insert frame number in code keypad with being connected in the data that equipment is sent;
In DRP data reception process, code keypad returns the response message of every frame data with being connected equipment, and response message includes counting According to receive successfully, data receiver failure data receive time-out;
Detection code keypad and the usb communication being connected equipment whether exception, if so, then by communication reconnect mechanism set up again close Code key disk and the communication connection being connected equipment;
Communication connection again set up after, code keypad be connected the frame by received response message and data for the equipment Number, judge whether data repeats to receive, and communication counterpart data receiver situation, and abandon repeated data, and carry out data Retransmit.
2. code keypad usb communication abnormal restoring method according to claim 1 is it is characterised in that described communication reconnects Mechanism includes:
Judge code keypad and be connected whether equipment disconnects, if so, then detect code keypad and be connected whether equipment connects Connect, if it is not, then exiting the mechanism of reconnecting;
Whether if code keypad is detected and being connected equipment and connect, code keypad is shaken hands again with being connected equipment;
Shake hands after success, judge code keypad and whether to be successfully connected equipment two-way authentication, if so, then recover communication, if it is not, then Refusal communication.
3. code keypad usb communication abnormal restoring method according to claim 1 it is characterised in that code keypad with Connection equipment reconnects after mechanism sets up communication connection again by communication, and code keypad passes through broadcast mode to each bottom being comprised Layer drive module sends current usb communication connection status, and wherein, described each bottom layer driving module includes key-press input bottom layer driving Module, sign board bottom layer driving module and scanner bottom layer driving module.
4. code keypad usb communication abnormal restoring method according to claim 1 is it is characterised in that lead to USB is detected When letter is abnormal, code keypad, after actively cutting out usb communication, reopens usb communication, sets up code keypad again and is connected The communication connection of equipment.
5. a kind of code keypad usb communication abnormal restoring system is it is characterised in that include insertion unit, response unit, communication weight Even unit and processing unit;
Described insertion unit is used for the sequencing by data is activation, inserts with being connected in the data that equipment is sent in code keypad Enter frame number;
Described response unit is used in DRP data reception process, and code keypad returns the response letter of every frame data with being connected equipment Breath, response message includes data receiver success, data receiver failure data receives time-out;
Whether described communication reconnects unit abnormal with the usb communication being connected equipment for detecting code keypad, if so, then by logical Letter reconnects the communication connection that mechanism is set up code keypad again and is connected equipment;
Described processing unit be used for communication connection again set up after, code keypad be connected equipment by received response Information and the frame number of data, judge whether data repeats to receive, and communication counterpart data receiver situation, and abandon repeat number According to, and carry out data re-transmitting.
6. code keypad usb communication abnormal restoring system according to claim 5 is it is characterised in that described communication reconnects Unit includes connection judgment subelement, shake hands subelement and certification subelement;
Whether described connection judgment subelement is used for judging code keypad and is connected equipment and disconnects, and if so, then detects password Keyboard be connected whether equipment connects, if it is not, then exiting the mechanism of reconnecting;
Described subelement of shaking hands for when code keypad is detected with being connected equipment and connecting, code keypad be connected equipment weight Newly shake hands;
Described certification subelement is used for, after success of shaking hands, judging code keypad and whether being successfully connected equipment two-way authentication, if It is then to recover communication, if it is not, then refusal communication.
7. code keypad usb communication abnormal restoring system according to claim 5 is it is characterised in that also include broadcast list Unit, described radio unit is used for reconnecting mechanism again set up communication connection after with being connected equipment by communication in code keypad, close Code key disk passes through broadcast mode and sends current usb communication connection status to each bottom layer driving module being comprised, wherein, described each Bottom layer driving module includes key-press input bottom layer driving module, sign board bottom layer driving module and scanner bottom layer driving module.
8. code keypad usb communication abnormal restoring system according to claim 5 is it is characterised in that described communication reconnects Unit is additionally operable to when usb communication exception is detected, and code keypad, after actively cutting out usb communication, reopens USB and leads to Letter, sets up code keypad and the communication connection being connected equipment again.
CN201610783600.9A 2016-08-31 2016-08-31 A kind of code keyboard usb communication abnormal restoring method and system Active CN106407065B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610783600.9A CN106407065B (en) 2016-08-31 2016-08-31 A kind of code keyboard usb communication abnormal restoring method and system
PCT/CN2017/096821 WO2018040877A1 (en) 2016-08-31 2017-08-10 Recovery method and system for password keyboard usb communication abnormality

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610783600.9A CN106407065B (en) 2016-08-31 2016-08-31 A kind of code keyboard usb communication abnormal restoring method and system

Publications (2)

Publication Number Publication Date
CN106407065A true CN106407065A (en) 2017-02-15
CN106407065B CN106407065B (en) 2019-02-12

Family

ID=58001979

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610783600.9A Active CN106407065B (en) 2016-08-31 2016-08-31 A kind of code keyboard usb communication abnormal restoring method and system

Country Status (2)

Country Link
CN (1) CN106407065B (en)
WO (1) WO2018040877A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018040879A1 (en) * 2016-08-31 2018-03-08 福建联迪商用设备有限公司 Password keyboard usb communication anomaly recovery method and system
WO2018040877A1 (en) * 2016-08-31 2018-03-08 福建联迪商用设备有限公司 Recovery method and system for password keyboard usb communication abnormality
CN109426637A (en) * 2017-08-23 2019-03-05 北京展讯高科通信技术有限公司 Detect the method, apparatus and electronic equipment that USB device disconnects
CN110555323A (en) * 2019-07-31 2019-12-10 深圳震有科技股份有限公司 Serial port control method and device, computer equipment and readable storage medium
CN110569132A (en) * 2019-08-29 2019-12-13 高新兴科技集团股份有限公司 Electronic signature printing method, device and computer readable storage medium
CN111767242A (en) * 2020-05-28 2020-10-13 西安广和通无线软件有限公司 PCIE equipment control method and device, computer equipment and storage medium
CN114330396A (en) * 2021-12-31 2022-04-12 福建新大陆支付技术有限公司 External password keyboard and identity card information interaction method based on Android platform

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070174634A1 (en) * 2005-09-09 2007-07-26 Serge Plotkin System and/or method for encrypting data
CN101989248A (en) * 2009-07-31 2011-03-23 比亚迪股份有限公司 Universal serial bus (USB) equipment and method for restarting USB equipment
CN102421117A (en) * 2011-12-15 2012-04-18 广东步步高电子工业有限公司 Method for detecting subscriber identity module

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106375064B (en) * 2016-08-31 2019-08-02 福建联迪商用设备有限公司 A kind of code keyboard usb communication abnormal restoring method and system
CN106407065B (en) * 2016-08-31 2019-02-12 福建联迪商用设备有限公司 A kind of code keyboard usb communication abnormal restoring method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070174634A1 (en) * 2005-09-09 2007-07-26 Serge Plotkin System and/or method for encrypting data
CN101989248A (en) * 2009-07-31 2011-03-23 比亚迪股份有限公司 Universal serial bus (USB) equipment and method for restarting USB equipment
CN102421117A (en) * 2011-12-15 2012-04-18 广东步步高电子工业有限公司 Method for detecting subscriber identity module

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018040879A1 (en) * 2016-08-31 2018-03-08 福建联迪商用设备有限公司 Password keyboard usb communication anomaly recovery method and system
WO2018040877A1 (en) * 2016-08-31 2018-03-08 福建联迪商用设备有限公司 Recovery method and system for password keyboard usb communication abnormality
CN109426637A (en) * 2017-08-23 2019-03-05 北京展讯高科通信技术有限公司 Detect the method, apparatus and electronic equipment that USB device disconnects
CN110555323A (en) * 2019-07-31 2019-12-10 深圳震有科技股份有限公司 Serial port control method and device, computer equipment and readable storage medium
CN110555323B (en) * 2019-07-31 2023-06-30 深圳震有科技股份有限公司 Control method and device for serial port, computer equipment and readable storage medium
CN110569132A (en) * 2019-08-29 2019-12-13 高新兴科技集团股份有限公司 Electronic signature printing method, device and computer readable storage medium
CN111767242A (en) * 2020-05-28 2020-10-13 西安广和通无线软件有限公司 PCIE equipment control method and device, computer equipment and storage medium
CN114330396A (en) * 2021-12-31 2022-04-12 福建新大陆支付技术有限公司 External password keyboard and identity card information interaction method based on Android platform
CN114330396B (en) * 2021-12-31 2023-10-13 福建新大陆支付技术有限公司 External password keyboard and identity card information interaction method based on Android platform

Also Published As

Publication number Publication date
WO2018040877A1 (en) 2018-03-08
CN106407065B (en) 2019-02-12

Similar Documents

Publication Publication Date Title
CN106407065A (en) Password keyboard USB communication abnormality recovery method and system
EP0464014A2 (en) Communications systems using a fault tolerant protocol
CN103248452A (en) Data sending device, data receiving device, terminal and data transmission method
CN110868278B (en) Method for dual-computer redundancy of communication front-end processor of rail transit comprehensive monitoring system
USRE43151E1 (en) Acknowledging data transmissions in the presence of multiple shared-communications channels
US7254739B2 (en) Error recovery in a client/server application using two independent sockets for communication
CN106375064B (en) A kind of code keyboard usb communication abnormal restoring method and system
CN101453751A (en) Method for large file transmission under narrow-band network environment
CN103067895B (en) The repeating method of long SMS and communication terminal
CN101207617A (en) Method for data transmission of network storing system
CN110247959A (en) A kind of data transmission method and device
CN106941576A (en) A kind of information input method and its call terminal, cloud server
CN103517301A (en) Bluetooth communication processing method and device
CN106534331A (en) Data transmission method and system based on dynamic port switching
CN105933636B (en) Medical video and intercom system and method
CN115038115A (en) Data transmission method, device, electronic equipment, storage medium and product
CN107360605A (en) Data transmission system, method and apparatus
CN102769604A (en) Method and device for processing operational data
CN115412890B (en) Data transmission method and device and terminal equipment
CN104185204B (en) A kind of connection status inspection method and device
CN108712373A (en) One-way communication method, apparatus, user terminal and computer readable storage medium
CN110830308B (en) Method for switching communication link and receiving end
CN116074364A (en) Signaling transmission method, device and system
Choi Quality Assurance by the Error Cause Detecting Function in a Packet Switching System
CN114257630A (en) Classroom real-time interaction method and system, terminal equipment and readable storage medium

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
TR01 Transfer of patent right

Effective date of registration: 20221031

Address after: Floor 3-4, Building 3A, Area A, Fuzhou Software Park, No. 89, Software Avenue, Gulou District, Fuzhou City, Fujian Province 350003

Patentee after: Fujian Liandi Commercial Technology Co.,Ltd.

Address before: 350000 building 17, area a, Fuzhou Software Park, 89 software Avenue, Gulou District, Fuzhou City, Fujian Province

Patentee before: FUJIAN LANDI COMMERCIAL EQUIPMENT Co.,Ltd.

TR01 Transfer of patent right
CP01 Change in the name or title of a patent holder

Address after: Floor 3-4, Building 3A, Area A, Fuzhou Software Park, No. 89, Software Avenue, Gulou District, Fuzhou City, Fujian Province 350003

Patentee after: Yinjie Nico (Fujian) Technology Co.,Ltd.

Address before: Floor 3-4, Building 3A, Area A, Fuzhou Software Park, No. 89, Software Avenue, Gulou District, Fuzhou City, Fujian Province 350003

Patentee before: Fujian Liandi Commercial Technology Co.,Ltd.

CP01 Change in the name or title of a patent holder