CN113868063B - Verification method and verification system for multi-board multi-channel serial port card - Google Patents

Verification method and verification system for multi-board multi-channel serial port card Download PDF

Info

Publication number
CN113868063B
CN113868063B CN202111160650.9A CN202111160650A CN113868063B CN 113868063 B CN113868063 B CN 113868063B CN 202111160650 A CN202111160650 A CN 202111160650A CN 113868063 B CN113868063 B CN 113868063B
Authority
CN
China
Prior art keywords
serial port
channel
card
port card
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111160650.9A
Other languages
Chinese (zh)
Other versions
CN113868063A (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.)
CETC 58 Research Institute
Original Assignee
CETC 58 Research Institute
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 CETC 58 Research Institute filed Critical CETC 58 Research Institute
Priority to CN202111160650.9A priority Critical patent/CN113868063B/en
Publication of CN113868063A publication Critical patent/CN113868063A/en
Application granted granted Critical
Publication of CN113868063B publication Critical patent/CN113868063B/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/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test buses, lines or interfaces, e.g. stuck-at or open line faults
    • 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/2294Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by remote test

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)
  • Information Transfer Systems (AREA)

Abstract

The invention relates to a verification method of a multi-channel serial port card, in particular to a verification method and a verification system of a multi-board multi-channel serial port card. The verification method of the multi-board multi-channel serial port card comprises the following steps: setting virtual serial ports, and virtualizing corresponding virtual serial ports according to the number of serial port cards and the number of channels of each serial port card; the virtual serial port receives data sent by an operating system through a POSIX function; the virtual serial port forwards the received data to the server through TCP CLIENT; the server forwards the received data through the drive function of the serial port card. According to the verification method, the channel of the serial port card is virtualized into a corresponding virtual serial port, and the virtual serial port is used for opening, reading and writing of the actual serial port card, so that additional hardware is not needed, a user does not need to know an API function of the serial port board, and the use of the user is facilitated; meanwhile, the phenomena of packet loss and the like caused by electromagnetic crosstalk of external hardware are avoided, and the accuracy of board card verification is improved.

Description

Verification method and verification system for multi-board multi-channel serial port card
Technical Field
The invention relates to a verification method of a multi-channel serial port card, in particular to a verification method and a verification system of a multi-board multi-channel serial port card.
Background
The current multi-channel serial port card verification mostly depends on the cooperation of hardware, and RX and TX wires of each channel are required to be connected with external serial ports; meanwhile, the user can communicate with each other by writing the API function based on the serial port card into the upper computer for communication.
1. The verification effect of the existing scheme depends on the performance of external serial port hardware, the shielding effect of a connecting wire and the like, and if the external serial port performance is poor, the shielding effect of the connecting wire is not ideal in a high-speed state, the verification of the multichannel serial port card cannot achieve an accurate effect;
2. an end user uses a serial port card, needs to read an SDK (software development kit) development document based on an API function provided by a board card driver, and needs a certain learning cost;
3. In the prior art, data verification needs to pass through peripheral test equipment such as an oscilloscope, and the peripheral test equipment cannot perform long-time and large-scale data accumulation verification and cannot perform long-time lasting verification on the serial port card;
4. In the prior art, the testing machine of the user and the machine of the plugboard card are required to be in the same computer, so that remote testing cannot be performed, and the superior performance of a remote server cannot be fully utilized.
Disclosure of Invention
In order to solve the problems, the invention provides a verification method of a multi-board multi-channel serial port card, which has the advantages of accurate verification, simple use, no need of hardware, long-time verification and multiple computers, and the specific technical scheme is as follows:
the verification method of the multi-board multi-channel serial port card comprises the following steps:
Setting virtual serial ports, and virtualizing corresponding virtual serial ports according to the number of serial port cards and the number of channels of each serial port card;
the virtual serial port receives data sent by an operating system through a POSIX function;
the virtual serial port forwards the received data to the server through TCP CLIENT;
The server forwards the received data through the drive function of the serial port card.
The multi-board multi-channel serial port card virtual system comprises a plurality of channel setting units, wherein the channel setting units are used for independently configuring each channel of each board card and can store the configuration.
Further, the configuration includes a communication baud rate, a data length, whether there is a check bit, a check bit length, and whether there is a flow control.
Compared with the prior art, the invention has the following beneficial effects:
The verification method of the multi-board multi-channel serial port card provided by the invention uses the network technology and the virtual serial port technology to virtualize the channels of the serial port card into corresponding virtual serial ports, and a tester and an end user realize the opening, reading and writing of the actual serial port card by opening, reading and writing operations of the virtual serial ports, so that no additional hardware configuration is required, no user is required to know the API function of the serial port board, and the use of the user is facilitated; meanwhile, the phenomena of packet loss and the like caused by electromagnetic crosstalk of external hardware are avoided, and the accuracy of board card verification is improved.
Drawings
FIG. 1 is a flow chart of a method of authenticating a multi-board multi-channel serial card;
fig. 2 is an interface diagram of a verification system for a multi-board multi-channel serial card.
Detailed Description
The invention will now be further described with reference to the accompanying drawings.
Example 1
As shown in fig. 1, the verification method of the multi-board multi-channel serial port card comprises the following steps:
Setting virtual serial ports, and virtualizing corresponding virtual serial ports according to the number of serial port cards and the number of channels of each serial port card;
the virtual serial port receives data sent by an operating system through a POSIX function;
the virtual serial port forwards the received data to the server through TCP CLIENT;
The server forwards the received data through the drive function of the serial port card.
Specifically, if there are N serial cards, each serial card has M channels, x=mxn serial ports need to be virtually obtained, and the number of virtual serial ports dynamically changes with the number of inserted cards.
When a user sends data to a channel M of a serial port card N through a channel 1 of the serial port card 1, the data is sent to a virtual serial port 1 through a standard POSIX (portable operating system interface) function provided by an operating system, the virtual serial port 1 receives the data and then forwards the data to TCP CLIENT and TCP CLIENT1, and then the data is sent to TCP SERVER (server), and TCP SERVER forwards the received data through a driving function calling the channel 1 of the serial port card 1; channel 1 of serial port card 1 is physically connected with channel M of serial port card N through common DuPont line, channel M of serial port card N receives the data forwarded, data is forwarded to TCP ClientX through central server, TCP ClientX sends the received data to virtual serial port x, and upper computer software receives the data.
The verification method of the multi-board multi-channel serial port card has the following advantages:
1. In the embodiment, the virtual serial port and the network technology are used, the actual multi-channel serial port card is virtualized into a plurality of virtual serial ports, and the user opens, reads and writes the virtual serial ports like operating the actual serial port hardware;
2. in the embodiment, a silent operation mode is adopted for conversion software, and the software operation is operated at the right lower corner of the desktop in the form of a small icon, so that the daily use of a computer by a user is not influenced;
3. the embodiment provides that the user interface carries out independent configuration on each channel, configuration items of the user are saved through configuration files, and the configuration of the user is automatically loaded after the next starting;
4. The virtual serial port mapping scheme of the embodiment adopts a mode of starting up automatically, so that repeated mechanical labor of users is reduced;
Example two
As shown in fig. 2, the verification system of the multi-board multi-channel serial port card comprises a plurality of channel setting units, wherein the channel setting units are used for independently configuring each channel of each board card and can save the configuration.
The configuration content comprises a communication baud rate, a data length, whether check bits exist, a check bit length, whether flow control exists or not, and the like.
The technical principle of the present invention is described above in connection with the specific embodiments. The description is made for the purpose of illustrating the general principles of the invention and should not be taken in any way as limiting the scope of the invention. Other embodiments of the invention will occur to those skilled in the art from consideration of the specification and practice of the invention without the need for inventive faculty, and are within the scope of the claims.

Claims (1)

1. The verification method of the multi-board multi-channel serial port card is characterized by comprising the following steps of:
Setting virtual serial ports, and virtualizing corresponding virtual serial ports according to the number of serial port cards and the number of channels of each serial port card;
the virtual serial port receives data sent by an operating system through a POSIX function;
the virtual serial port forwards the received data to the server through TCP CLIENT;
The server forwards the received data through a drive function of the serial port card;
If there are N serial port cards, each serial port card has M channels, x=m×n serial ports need to be virtually obtained, and the number of virtual serial ports dynamically changes with the number of inserted cards;
When a user sends data to a channel M of a serial port card N through a channel 1 of the serial port card 1, the data is sent to a virtual serial port 1 through a standard POSIX function provided by an operating system, the virtual serial port 1 receives the data and then forwards the data to TCP CLIENT and TCP CLIENT1, and then the data is sent to TCP SERVER, TCP SERVER and forwards the received data through a driving function of the channel 1 of the serial port card 1; channel 1 of serial port card 1 is physically connected with channel M of serial port card N through common DuPont line, channel M of serial port card N receives the data forwarded, data is forwarded to TCP ClientX through central server, TCP ClientX sends the received data to virtual serial port x, and upper computer software receives the data.
CN202111160650.9A 2021-09-30 2021-09-30 Verification method and verification system for multi-board multi-channel serial port card Active CN113868063B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111160650.9A CN113868063B (en) 2021-09-30 2021-09-30 Verification method and verification system for multi-board multi-channel serial port card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111160650.9A CN113868063B (en) 2021-09-30 2021-09-30 Verification method and verification system for multi-board multi-channel serial port card

Publications (2)

Publication Number Publication Date
CN113868063A CN113868063A (en) 2021-12-31
CN113868063B true CN113868063B (en) 2024-05-14

Family

ID=79001115

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111160650.9A Active CN113868063B (en) 2021-09-30 2021-09-30 Verification method and verification system for multi-board multi-channel serial port card

Country Status (1)

Country Link
CN (1) CN113868063B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101789889A (en) * 2010-01-14 2010-07-28 瑞斯康达科技发展股份有限公司 Method and system for automatic testing communication equipment
CN101894041A (en) * 2010-07-15 2010-11-24 中兴通讯股份有限公司 Multivirtual serial port system and communication method thereof
CN102567071A (en) * 2010-12-15 2012-07-11 中兴通讯股份有限公司 Virtual serial port system and communication method for same
CN104156295A (en) * 2014-08-18 2014-11-19 中国矿业大学(北京) Multi-channel serial port testing system and establishing method
CN107656844A (en) * 2017-09-14 2018-02-02 深圳市华云中盛科技有限公司 The method and its system of virtual machine internal monitoring are realized based on virtualization serial ports passage
CN111158865A (en) * 2020-01-10 2020-05-15 山东超越数控电子股份有限公司 Method for realizing multiplexing virtual serial port
CN111404739A (en) * 2020-03-11 2020-07-10 山东超越数控电子股份有限公司 Serial port networking attribute configuration system
CN112181743A (en) * 2020-09-24 2021-01-05 中车青岛四方车辆研究所有限公司 Accompanying and measuring device of serial port equipment
CN112380096A (en) * 2020-11-16 2021-02-19 南通先进通信技术研究院有限公司 Serial port communication monitoring system method based on virtual serial port
CN112463614A (en) * 2020-12-01 2021-03-09 北京计算机技术及应用研究所 Software virtualization test environment construction method based on hardware board card access

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7042842B2 (en) * 2001-06-13 2006-05-09 Computer Network Technology Corporation Fiber channel switch

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101789889A (en) * 2010-01-14 2010-07-28 瑞斯康达科技发展股份有限公司 Method and system for automatic testing communication equipment
CN101894041A (en) * 2010-07-15 2010-11-24 中兴通讯股份有限公司 Multivirtual serial port system and communication method thereof
CN102567071A (en) * 2010-12-15 2012-07-11 中兴通讯股份有限公司 Virtual serial port system and communication method for same
CN104156295A (en) * 2014-08-18 2014-11-19 中国矿业大学(北京) Multi-channel serial port testing system and establishing method
CN107656844A (en) * 2017-09-14 2018-02-02 深圳市华云中盛科技有限公司 The method and its system of virtual machine internal monitoring are realized based on virtualization serial ports passage
CN111158865A (en) * 2020-01-10 2020-05-15 山东超越数控电子股份有限公司 Method for realizing multiplexing virtual serial port
CN111404739A (en) * 2020-03-11 2020-07-10 山东超越数控电子股份有限公司 Serial port networking attribute configuration system
CN112181743A (en) * 2020-09-24 2021-01-05 中车青岛四方车辆研究所有限公司 Accompanying and measuring device of serial port equipment
CN112380096A (en) * 2020-11-16 2021-02-19 南通先进通信技术研究院有限公司 Serial port communication monitoring system method based on virtual serial port
CN112463614A (en) * 2020-12-01 2021-03-09 北京计算机技术及应用研究所 Software virtualization test environment construction method based on hardware board card access

Also Published As

Publication number Publication date
CN113868063A (en) 2021-12-31

Similar Documents

Publication Publication Date Title
JP7141902B2 (en) Bridge device, storage adjacency calculation method using bridge device
CN101946242B (en) Method and system for providing indirect data addressing
US6965956B1 (en) Disk array controller and system with automated detection and control of both ATA and SCSI disk drives
US7502865B2 (en) Addresses assignment for adaptor interfaces
US10095652B2 (en) Host configured multi serial interface device
US20040162926A1 (en) Serial advanced technology attachment interface
CN1573723A (en) Method and apparatus for communication via serial multi-port
CN106776387A (en) Hard disk access expanding unit
US6185521B1 (en) System and method for emulating mainframe channel programs by open systems computer systems
CN113868063B (en) Verification method and verification system for multi-board multi-channel serial port card
CN110851318A (en) Serial port log collection method, system and equipment under server management system
CN108667706B (en) Ethernet serial server with dynamically adjustable serial number and data transmission method thereof
CN109213717A (en) The twinbridge piece framework of domestic Feiteng processor
CN112380151A (en) NVMe-oF heterogeneous storage system and access method
CN217739894U (en) Novel support USB 4's Type-C interface test device
CN109672482A (en) Radio frequency module testing method, device, equipment and storage medium
CN202120214U (en) KVM for implementing remote control
CN102455969B (en) Method for recording Linux serial communication log
CN110780189B (en) SDIO interface test equipment and method based on FPGA
CN115061958A (en) Hard disk identification method, identification system, storage medium and computer equipment
CN204189089U (en) A kind of server
US20070018668A1 (en) Testing system and testing method for a link control card
CN114721900B (en) Connection relation establishing method, mainboard, device, equipment and storage medium
EP3751762A1 (en) Data transmission method, apparatus, computer device and storage medium
CN218004058U (en) Computer mainboard compatible with various serial port output interfaces

Legal Events

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