CN110795083A - Automatic repair method for communication of driving peripheral - Google Patents

Automatic repair method for communication of driving peripheral Download PDF

Info

Publication number
CN110795083A
CN110795083A CN201911055535.8A CN201911055535A CN110795083A CN 110795083 A CN110795083 A CN 110795083A CN 201911055535 A CN201911055535 A CN 201911055535A CN 110795083 A CN110795083 A CN 110795083A
Authority
CN
China
Prior art keywords
repair
module
shared port
base class
communication
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
CN201911055535.8A
Other languages
Chinese (zh)
Other versions
CN110795083B (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.)
Jinan Langchao Jindi Information Technology Co ltd
Inspur Financial Information Technology Co Ltd
Original Assignee
Inspur Financial Information Technology 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 Inspur Financial Information Technology Co Ltd filed Critical Inspur Financial Information Technology Co Ltd
Priority to CN201911055535.8A priority Critical patent/CN110795083B/en
Publication of CN110795083A publication Critical patent/CN110795083A/en
Application granted granted Critical
Publication of CN110795083B publication Critical patent/CN110795083B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method for automatically repairing communication of a drive peripheral, which comprises the following steps that firstly, all modules are driven to use a common equipment base class, different modules of a shared port can be intelligently identified, and the sharing management and the rapid synchronization of handles are realized; secondly, the inheritance characteristics of object-oriented development are used based on the driving architecture, the general functions are realized by using a base class through an STL standard template library, and subclasses are directly used; thirdly, setting communication abnormal identifiers of the shared port module and the shared port module after communication is abnormal; fourthly, trying to repair, and only once repairing the composite module of the shared device base class, the composite module and the shared port; if the repair is successful, setting a connection success identifier, then setting a connection success identifier of the shared port module, feeding back through the base class and repairing the shared port module; if the repair fails, the repair is directly finished, and the repair is tried after the redetection; the invention improves the repair efficiency, improves the code reuse rate and is convenient for management and control.

Description

Automatic repair method for communication of driving peripheral
Technical Field
The invention relates to a method for automatically repairing communication of a drive peripheral, and belongs to the technical field of self-service equipment.
Background
The self-service equipment generally accesses hardware modules of various types and models, communication abnormal conditions inevitably occur in the use process, but a flexible and quick recovery mechanism for disconnection and reconnection is needed for ensuring the subsequent continuous use of the equipment, so that the operation efficiency of the equipment is improved, and the manual operation cost is reduced.
The general method adopts the single module to reset or close and open when the equipment is abnormal, and tries to reestablish the connection, and each module maintains and repairs itself, but has many disadvantages: for example, the same function needs to be realized by each module independently at the bottom of code reuse rate; for the composite device, such as two-in-one, three-in-one, and the like, the device ports are shared, and the efficiency is low when the device is repeatedly repaired during operation.
Disclosure of Invention
In view of the above technical problems, the present invention aims to: the method for automatically repairing the communication of the driving peripheral realizes a universal shared communication repairing method, reduces repeated development, and is convenient for standardization and unified management and maintenance of platforms and projects.
The technical solution of the invention is realized as follows: a method for automatically repairing communication of a drive peripheral comprises the following steps that firstly, all modules are driven to use a common equipment base class, different modules of a shared port can be intelligently identified, and sharing management and rapid synchronization of handles are realized; secondly, the inheritance characteristics of object-oriented development are used based on the driving architecture, the general functions are realized by using a base class through an STL standard template library, and subclasses are directly used; thirdly, setting communication abnormal identifiers of the shared port module and the shared port module after communication is abnormal; fourthly, trying to repair, and only once repairing the composite module of the shared device base class, the composite module and the shared port; if the repair is successful, setting a connection success identifier, then setting a connection success identifier of the shared port module, feeding back through the base class and repairing the shared port module; and if the repair fails, directly finishing the repair, and trying to repair after re-detection.
Preferably, all modules use the same device base class, a unique object is created when any module is opened, and the platform layer performs unified control by recording each object instance.
Due to the application of the technical scheme, compared with the prior art, the invention has the following advantages:
according to the automatic repair method for the peripheral communication, all module drivers use a common equipment base class, a unique object can be created when any module is opened, the platform layer performs unified control by recording each object instance, different modules of a shared port are intelligently identified, sharing management and quick synchronization of handles are realized, repair efficiency is improved, and only one-time repair is needed for a composite module of the shared port; code reuse rate is improved, and BUG and failure rate are reduced; the interface is unified, the platform standardization is improved, and the management and control are convenient.
Drawings
The technical scheme of the invention is further explained by combining the accompanying drawings as follows:
fig. 1 is a flowchart of an automatic repair method for driving peripheral communication according to the present invention.
Detailed Description
The invention is described below with reference to the accompanying drawings.
As shown in fig. 1, the method for automatically repairing communication of a driver peripheral according to the present invention includes steps of, firstly, driving all modules to use a common device base class, all modules to use the same device base class, creating a unique object when any module is opened, and performing unified control by recording each object instance by a platform layer, so that different modules of a shared port can be intelligently identified, and sharing management and quick synchronization of handles are realized; secondly, the inheritance characteristics of object-oriented development are used based on the driving architecture, the general functions are realized by using a base class through an STL standard template library, and subclasses are directly used; thirdly, setting communication abnormal identifiers of the shared port module and the shared port module after communication is abnormal; fourthly, trying to repair, and only once repairing the composite module of the shared device base class, the composite module and the shared port; if the repair is successful, setting a connection success identifier, then setting a connection success identifier of the shared port module, feeding back through the base class and repairing the shared port module; and if the repair fails, directly finishing the repair, and trying to repair after re-detection.
According to the automatic repair method for the peripheral communication, all module drivers use a common equipment base class, a unique object can be created when any module is opened, the platform layer performs unified control by recording each object instance, different modules of a shared port are intelligently identified, sharing management and quick synchronization of handles are realized, repair efficiency is improved, and only one-time repair is needed for a composite module of the shared port; code reuse rate is improved, and BUG and failure rate are reduced; the interface is unified, the platform standardization is improved, and the management and control are convenient.
The above-mentioned embodiments are merely illustrative of the technical idea and features of the present invention, and the purpose thereof is to enable those skilled in the art to understand the contents of the present invention and implement the present invention, and not to limit the scope of the present invention, and all equivalent changes or modifications made according to the spirit of the present invention should be covered in the scope of the present invention.

Claims (2)

1. A method for automatically repairing communication of a drive peripheral is characterized by comprising the following steps: the method comprises the following steps that firstly, all module drivers use a common equipment base class, different modules of a shared port can be intelligently identified, and sharing management and rapid synchronization of handles are realized; secondly, the inheritance characteristics of object-oriented development are used based on the driving architecture, the general functions are realized by using a base class through an STL standard template library, and subclasses are directly used; thirdly, setting communication abnormal identifiers of the shared port module and the shared port module after communication is abnormal; fourthly, trying to repair, and only once repairing the composite module of the shared device base class, the composite module and the shared port; if the repair is successful, setting a connection success identifier, then setting a connection success identifier of the shared port module, feeding back through the base class and repairing the shared port module; and if the repair fails, directly finishing the repair, and trying to repair after re-detection.
2. The method for automatically repairing communication of a driver peripheral according to claim 1, wherein: all modules use the same equipment base class, when any module is opened, a unique object is created, and the platform layer performs unified control by recording each object instance.
CN201911055535.8A 2019-10-31 2019-10-31 Automatic repair method for communication of driving peripheral Active CN110795083B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911055535.8A CN110795083B (en) 2019-10-31 2019-10-31 Automatic repair method for communication of driving peripheral

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911055535.8A CN110795083B (en) 2019-10-31 2019-10-31 Automatic repair method for communication of driving peripheral

Publications (2)

Publication Number Publication Date
CN110795083A true CN110795083A (en) 2020-02-14
CN110795083B CN110795083B (en) 2022-08-09

Family

ID=69442415

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911055535.8A Active CN110795083B (en) 2019-10-31 2019-10-31 Automatic repair method for communication of driving peripheral

Country Status (1)

Country Link
CN (1) CN110795083B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101799764A (en) * 2009-12-31 2010-08-11 芯通科技(成都)有限公司 Realization method of instrument module common port
CN109254761A (en) * 2018-09-30 2019-01-22 苏州浪潮智能软件有限公司 New Hardware method of interface under a kind of CEN-XFS framework
CN110191125A (en) * 2019-05-30 2019-08-30 浪潮金融信息技术有限公司 Based on the unrelated communication means of detection cabinet equipment module port type

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101799764A (en) * 2009-12-31 2010-08-11 芯通科技(成都)有限公司 Realization method of instrument module common port
CN109254761A (en) * 2018-09-30 2019-01-22 苏州浪潮智能软件有限公司 New Hardware method of interface under a kind of CEN-XFS framework
CN110191125A (en) * 2019-05-30 2019-08-30 浪潮金融信息技术有限公司 Based on the unrelated communication means of detection cabinet equipment module port type

Also Published As

Publication number Publication date
CN110795083B (en) 2022-08-09

Similar Documents

Publication Publication Date Title
CN104661207B (en) Setting method, setting device and the terminal of network protocol type
CN107092501B (en) The implementation method and device of advertisement general-purpose interface in a kind of android system
CN1832610A (en) Method of updating remote subsystem in mobile communication system
CN103955382A (en) Remote writing equipment of OBD (On-Board Device)
CN110795083B (en) Automatic repair method for communication of driving peripheral
CN105740031A (en) Card activating method based on card activating external member and card activating external member
CN102437869B (en) Power Line Carrier Communication Module concurrent software upgrade method
CN104281095A (en) Conveying control system for multi-cavity wafer machining equipment
CN106341393A (en) Method and system for making modules of wisdom platform compatible
CN110170420A (en) A kind of automatic production line and assembly control method of controller
CN111930546A (en) Automatic recovery method for driving disconnection reconnection of equipment under new architecture
CN110427208A (en) A kind of software development methodology and software development system
CN107562056A (en) A kind of automatic driving of motor vehicle method and system based on cloud computing
CN106293853A (en) A kind of battery management system wireless remote upgrade method
CN106155786A (en) A kind of cloud platform task management method and system
CN111107157B (en) Cloud-based unmanned equipment cooperative work control system, method and storage medium
CN104898463B (en) The multi-part program processing method and system of air-conditioning system
CN110162416A (en) A kind of control method of industrial control equipment, system, adapter and readable storage medium storing program for executing
CN205325159U (en) Double -end blade lock orthoscopic assembling line
CN100474852C (en) Method for communicating between telecommunication equipment service terminal and customer terminal
CN106354495B (en) Method and equipment for realizing IETM integrated interactive interface of informatization electronic equipment
CN105467872A (en) Graphical configuration sequentialization control system
CN111443955A (en) Network equipment training platform supporting heterogeneous network equipment
CN108833526A (en) A kind of intelligent gateway upgrade method
CN112140937B (en) Double-gun combined charging method and system for charging pile

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220624

Address after: 215000 building 3, Fumin phase III plant, No. 818, Songjia Road, Guoxiang street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province

Applicant after: INSPUR FINANCIAL INFORMATION TECHNOLOGY Co.,Ltd.

Applicant after: Jinan Langchao Jindi Information Technology Co.,Ltd.

Address before: 215100 818 Wusong Road, Wusong River Industrial Park, Wuzhong development area, Suzhou, Jiangsu

Applicant before: INSPUR FINANCIAL INFORMATION TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant