CN107102924A - A kind of method of automatic test server serial communication stability under Linux - Google Patents

A kind of method of automatic test server serial communication stability under Linux Download PDF

Info

Publication number
CN107102924A
CN107102924A CN201710294049.6A CN201710294049A CN107102924A CN 107102924 A CN107102924 A CN 107102924A CN 201710294049 A CN201710294049 A CN 201710294049A CN 107102924 A CN107102924 A CN 107102924A
Authority
CN
China
Prior art keywords
server
test
txt
linux
serial 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.)
Pending
Application number
CN201710294049.6A
Other languages
Chinese (zh)
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710294049.6A priority Critical patent/CN107102924A/en
Publication of CN107102924A publication Critical patent/CN107102924A/en
Pending legal-status Critical Current

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/2273Test methods

Abstract

The method that the present invention discloses automatic test server serial communication stability under a kind of Linux, it is related to server test field, pass through test script, test to carrying out long-time serial ports stability under Linux, two-server A, B are subjected to automaticdata transmission by the way that serial ports is direct-connected, contrasts and automatic printing goes out test result.The present invention carries out automaticdata transmission by the direct-connected machine of serial ports to two, the test of long-time serial ports stability is carried out under linux by simple test script, contrasts and automatic printing goes out test result;Stability of the automatic detection server serial ports in communication process is realized, the testing cost of server serial communication stability is reduced, improves server test quality and efficiency.

Description

A kind of method of automatic test server serial communication stability under Linux
Technical field
The present invention relates to server hardware testing field, automatic test server serial ports under specifically a kind of Linux The method of communication stability.
Background technology
Serial line interface abbreviation serial ports, is often referred to com interface, is the expansion interface using serial communication mode.It is characterized in Communication line is simple, as long as a pair of transmission lines can just realize two-way communication, so as to greatly reduce cost, is particularly suitable for use in remote Distance communication.In communication process, the stability of serial port function is very important.Therefore, the stability of serial communication function Need stress test., it is necessary to be passed to carrying out long-time communication, data between serial ports and serial ports in server Basic function testing Defeated stability test, and check in communication process whether there is whether the file for interrupting and transmitting has damage.
The content of the invention
There is provided automatic test server under a kind of Linux for the demand and weak point that the present invention develops for current technology The method of serial communication stability.
The method of automatic test server serial communication stability under a kind of Linux of the present invention, solves above-mentioned technology The technical scheme that problem is used is as follows:The method of automatic test server serial communication stability under the Linux, passes through test Script, the test to carrying out long-time serial ports stability under Linux carries out two-server A, B automatically by the way that serial ports is direct-connected Data transfer, is contrasted and automatic printing goes out test result.
It is preferred that, the server A, B are direct-connected by Serial Port Line and netting twine, it is ensured that two servers pass through serial ports and netting twine Proper communication
It is preferred that, the server A obtains present system time in real time, and remains A.txt
It is preferred that, A.txt is transferred to server B by server A by serial communication, and is named as A1.txt;Server A passes through A.txt is transferred to server B by network service, and is named as A2.txt.
It is preferred that, automatically continuously for a period of time, the server B is contrasted to A1.txt and A2.txt for test;
If contrast transmission file is without exception, server B output PASS;If contrast transmission file is abnormal, server B output FAIL, and export last transmission information.
The method of automatic test server serial communication stability under a kind of Linux of the present invention, with prior art phase Than having an advantageous effect in that:The present invention is carried out automatic by simple test script to two by the direct-connected machine of serial ports Data transfer, carries out the test of long-time serial ports stability under linux, contrasts and automatic printing goes out test result;Realize Stability of the automatic detection server serial ports in communication process, reduces the testing cost of server serial communication stability, Improve server test quality and efficiency.
Brief description of the drawings
Accompanying drawing 1 is the schematic flow sheet of automatic test server serial communication stability under the Linux.
Embodiment
For the object, technical solutions and advantages of the present invention are more clearly understood, below in conjunction with specific embodiment, to this hair The method of automatic test server serial communication stability is further described under a kind of bright Linux.
Embodiment:
The method of automatic test server serial communication stability under Linux described in the present embodiment, by simple test script, Test to carrying out long-time serial ports stability under Linux, automaticdata biography is carried out by two-server A, B by the way that serial ports is direct-connected It is defeated, contrast and automatic printing goes out test result.
The method of automatic test server serial communication stability under the Linux, its tool comprises the following steps:
1)Server A, B are direct-connected by Serial Port Line and netting twine, it is ensured that two servers pass through serial ports and netting twine proper communication;
2)Server A obtains present system time in real time, and remains A.txt;
3)A.txt is transferred to server B by server A respectively by serial communication and network service, and be named as A1.txt and A2.txt;
4)The file of server B real-time reception server A transmission, A1.txt and A2.txt are compared afterwards;
5)Automatically continuously test a period of time(Such as 24h)If contrast is without exception, server B system interface shows green PASS;
6)If data outage during Serial Port Transmission, server B system interface shows red FAIL, and by the information finally transmitted Show.
The method of automatic test server serial communication stability under the Linux, the specific implementation process such as institute of accompanying drawing 1 Show:
First, service area A, B are direct-connected by Serial Port Line and netting twine;
Second, server A testing results script obtains present system time and saves as A.txt in real time;
3rd, A.txt is transferred to by server B by Serial Port Line, and be named as A1.txt;A.txt is transferred to by netting twine Server B, and it is named as A2.txt;
4th, server B is contrasted to A1.txt and A2.txt;
5th, if contrast transmission file is without exception, server B output PASS;If contrast transmission file is abnormal, server B FAIL is exported, and exports last transmission information.
Embodiment is only the specific case of the present invention, and scope of patent protection of the invention is including but not limited to above-mentioned Embodiment, any person of an ordinary skill in the technical field that meet claims of the present invention and any is to it The appropriate change or replacement done, should all fall into the scope of patent protection of the present invention.

Claims (5)

1. a kind of method of automatic test server serial communication stability under Linux, it is characterised in that by test script, Test to carrying out long-time serial ports stability under Linux, automaticdata biography is carried out by two-server A, B by the way that serial ports is direct-connected It is defeated, contrast and automatic printing goes out test result.
2. according to claim 1 under a kind of Linux automatic test server serial communication stability method, its feature exists In the server A, B are direct-connected by Serial Port Line and netting twine, it is ensured that two servers pass through serial ports and netting twine proper communication.
3. according to claim 2 under a kind of Linux automatic test server serial communication stability method, its feature exists In the server A obtains present system time in real time, and remains A.txt.
4. according to claim 2 under a kind of Linux automatic test server serial communication stability method, its feature exists In A.txt is transferred to server B by server A by serial communication, and is named as A1.txt;Server A is logical by network A.txt is transferred to server B by letter, and is named as A2.txt.
5. according to claim 2 under a kind of Linux automatic test server serial communication stability method, its feature exists In automatically continuously for a period of time, the server B is contrasted to A1.txt and A2.txt for test;
If contrast transmission file is without exception, server B output PASS;If contrast transmission file is abnormal, server B output FAIL, and export last transmission information.
CN201710294049.6A 2017-04-28 2017-04-28 A kind of method of automatic test server serial communication stability under Linux Pending CN107102924A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710294049.6A CN107102924A (en) 2017-04-28 2017-04-28 A kind of method of automatic test server serial communication stability under Linux

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710294049.6A CN107102924A (en) 2017-04-28 2017-04-28 A kind of method of automatic test server serial communication stability under Linux

Publications (1)

Publication Number Publication Date
CN107102924A true CN107102924A (en) 2017-08-29

Family

ID=59657793

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710294049.6A Pending CN107102924A (en) 2017-04-28 2017-04-28 A kind of method of automatic test server serial communication stability under Linux

Country Status (1)

Country Link
CN (1) CN107102924A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140114866A1 (en) * 2006-11-22 2014-04-24 Raj V. Abhyanker Automobile sharing by users of a neighborhood social network using a radial algorithm
CN105630646A (en) * 2015-12-23 2016-06-01 浪潮电子信息产业股份有限公司 Method for quickly judging connectivity and stability of serial port
CN106227663A (en) * 2016-07-22 2016-12-14 浪潮电子信息产业股份有限公司 A kind of automated testing method refreshing IO firmware
CN106598793A (en) * 2016-12-13 2017-04-26 郑州云海信息技术有限公司 Test system and method based on BIOS serial port log data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140114866A1 (en) * 2006-11-22 2014-04-24 Raj V. Abhyanker Automobile sharing by users of a neighborhood social network using a radial algorithm
CN105630646A (en) * 2015-12-23 2016-06-01 浪潮电子信息产业股份有限公司 Method for quickly judging connectivity and stability of serial port
CN106227663A (en) * 2016-07-22 2016-12-14 浪潮电子信息产业股份有限公司 A kind of automated testing method refreshing IO firmware
CN106598793A (en) * 2016-12-13 2017-04-26 郑州云海信息技术有限公司 Test system and method based on BIOS serial port log data

Similar Documents

Publication Publication Date Title
CN103138988B (en) Positioning treatment method and positioning treatment device of network faults
CN106937136A (en) Data delay method and system based on statistical information between network direct broadcasting
CN106936683B (en) A kind of method and device for realizing tunnel configuration
CN109167762B (en) IEC104 message checking method and device
CN105827613A (en) Test method and system for information security of transformer substation industrial control equipment
CN107153629A (en) Display data channel snooping scheme for retimer
CN106685968A (en) Automatic vulnerability defense system and method for industrial control equipment
CN106568168A (en) Debugging method, debugger and system
CN106357726A (en) Load balancing method and device
CN103391226B (en) A kind of ppp link detects maintaining method and system
CN106656575B (en) A kind of method for diagnosing faults suitable for pilot protection multiplex channel
CN109495530A (en) A kind of real time traffic data transmission method, transmitting device and Transmission system
CN105632385B (en) A kind of LED display blind-spot detection method and its detection device
CN107102924A (en) A kind of method of automatic test server serial communication stability under Linux
CN103067222B (en) High performance network over coax (HINOC) based HIMAC frame loopback test method
CN103001808A (en) Switch for detecting port faults and achieving method
CN105703967A (en) Method and apparatus for detecting label switching path connectivity
CN106937319B (en) Antenna fault self-checking method of wireless equipment
CN115549843A (en) Optical service unit OSU signal nondestructive protection method and device
CN205427007U (en) Steal electric report system
CN105049300A (en) Method and device for detecting NAT network type
CN105577671B (en) The transmission method and Transmission system of audio signal and vision signal
CN109379133A (en) The processing method and system of PON network packet loss
CN205880631U (en) Workshop appliance daily test system based on thing networking
CN203166907U (en) Test maintenance apparatus for ADSL user access device in household network

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170829