CN111294256A - On-line detection method for performance of communication module - Google Patents

On-line detection method for performance of communication module Download PDF

Info

Publication number
CN111294256A
CN111294256A CN202010107081.0A CN202010107081A CN111294256A CN 111294256 A CN111294256 A CN 111294256A CN 202010107081 A CN202010107081 A CN 202010107081A CN 111294256 A CN111294256 A CN 111294256A
Authority
CN
China
Prior art keywords
connection
server
detection
module
detected
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
CN202010107081.0A
Other languages
Chinese (zh)
Other versions
CN111294256B (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.)
Ningbo Haida Iot Technology Co Ltd
Original Assignee
Ningbo Haida Iot 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 Ningbo Haida Iot Technology Co Ltd filed Critical Ningbo Haida Iot Technology Co Ltd
Priority to CN202010107081.0A priority Critical patent/CN111294256B/en
Publication of CN111294256A publication Critical patent/CN111294256A/en
Application granted granted Critical
Publication of CN111294256B publication Critical patent/CN111294256B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters

Abstract

The invention discloses an online detection method of communication module performance, which is characterized in that an upper detection module, a connection detection module and a code translation module are arranged at first, then the upper detection module sends a connection state detection command to the connection detection module through a communication module to be detected, the connection function of the communication module to be detected is preliminarily detected, if the connection is normal, the upper detection module sends a general server connection detection command in a general format to the connection detection module through the communication module to be detected, the connection detection module sends the general server connection detection command to the code translation module, the specific server connection detection command is translated into a data format of the communication module to be detected, the specific server connection detection command is sent to the communication module to be detected, and the connection function and the connection time of the communication module to be detected to a specific server are detected; the method has the advantages that the communication performance of the communication modules of different types can be detected, the detection result is accurate and reliable, and the overall cost is low.

Description

On-line detection method for performance of communication module
Technical Field
The invention relates to a method for detecting product performance, in particular to an online detection method for communication module performance.
Background
At present, most communication module manufacturers generally adopt a traditional manual detection mode to detect the connection function of a communication module, judge that the communication module to be detected is qualified by manually observing the connection indicator lamp to be turned on, and cannot quantitatively detect various communication quality indexes of the communication module in the use process, such as the rate of serial port communication, the packet loss rate of the serial port communication, the time length of the communication module connected to a network and the like; some manufacturers adopt a customized detection tool to detect various performances of the communication module during communication, the functions are single, only a plurality of types of products of specific types are supported, and the reuse rate is low; communication performance detection tools of different types of communication modules need to be repeatedly developed, increasing the overall cost of an enterprise.
Disclosure of Invention
The technical problem to be solved by the invention is to provide an on-line detection method for the communication module performance, which can detect the communication performance of different types of communication modules, and has the advantages of accurate and reliable detection result and lower overall cost.
The technical scheme adopted by the invention for solving the technical problems is as follows: an online detection method for performance of a communication module comprises the following steps:
Figure 132340DEST_PATH_IMAGE001
setting an upper detection module, a connection detection module and a code translation module for translating general format data sent by the upper detection module into specific format data of a data format of a communication module to be detected, wherein the upper detection module is preset with connection state detection time and server connection detection time;
Figure 107249DEST_PATH_IMAGE002
the upper detection module sends a connection state detection command to the connection detection module through the communication module to be detected, the connection detection module sends a feedback signal to the upper detection module through the communication module to be detected after receiving the connection state detection command, when the upper detection module receives the feedback signal within the set connection state detection time, the connection function of the communication module to be detected is judged to be normal, and the step is continuously executed
Figure 57888DEST_PATH_IMAGE003
(ii) a When the upper detection module is in the set connection stateIf the feedback signal is not received within the testing time, judging that the connection function of the communication module to be tested is abnormal;
Figure 674814DEST_PATH_IMAGE003
the upper detection module sends a universal server connection detection command containing designated server data in a universal format to the connection detection module through the communication module to be detected, the connection detection module sends the universal server connection detection command to the code translation module, the code translation module translates the received universal server connection detection command into a specific server connection detection command in the data format of the communication module to be detected and sends the specific server connection detection command to the communication module to be detected, and the communication module to be detected connects a server corresponding to the designated server data according to the received specific server connection detection command;
Figure 260254DEST_PATH_IMAGE004
when the communication module to be tested is normally connected with the server corresponding to the data of the appointed server, the server sends a normal connection signal and the normal connection time of the server to the upper detection module, and the steps are executed
Figure 937223DEST_PATH_IMAGE005
(ii) a When the connection between the communication module to be tested and a server corresponding to the data of the designated server is abnormal, the server sends an abnormal connection signal to the upper detection module, and the upper detection module obtains and stores a detection result of the abnormal connection;
Figure 109578DEST_PATH_IMAGE005
the upper detection module compares the received normal connection time of the server with the preset server connection detection time, when the normal connection time of the server is less than or equal to the preset server connection detection time, the upper detection module obtains and stores the detection result of the qualified connection time of the server, and when the normal connection time of the server is greater than the preset server connection detection time, the upper detection module detects the connection time of the serverAnd the module obtains and stores the detection result that the server connection time is not qualified.
The steps are
Figure 264616DEST_PATH_IMAGE001
The general format data is in a JSON format. The JSON format is a lightweight data exchange format, adopts a text format completely independent of a programming language to store and express data, and has a simple and clear hierarchical structure, so that the JSON format becomes an ideal data exchange language, is easy to read and write by people, is easy to analyze and generate by a machine, effectively improves the network transmission efficiency, and facilitates a client to write and set a code translation module matched with a communication module to be tested by himself.
Compared with the prior art, the invention has the advantages that firstly, an upper detection module, a connection detection module and a code translation module for translating the general format data sent by the upper detection module into the specific format data of the data format of the communication module to be detected are arranged, then the upper detection module sends a connection state detection command to the connection detection module through the communication module to be detected to preliminarily detect the connection function of the communication module to be detected, if the connection is normal, the upper detection module sends a general server connection detection command containing specified server data in the general format to the connection detection module through the communication module to be detected, the connection detection module sends the received general server connection detection command to the code translation module, the code translation module translates the received general server connection detection command into the specific server connection detection command of the data format of the communication module to be detected and sends the specific server connection detection command to the communication module to be detected, the communication module to be detected is connected with the server corresponding to the data of the designated server according to the received specific server connection detection command, so that the connection function and the connection time of the communication module to be detected, which is connected with the designated server, are detected, meanwhile, the expansion detection can be performed on the conventional communication quality indexes such as the rate of serial communication, the packet loss rate of the serial communication and the like, and the reliability of the detection result is improved; the method can be used for detecting the performance of different types of communication modules, is very convenient for batch detection of the different types of communication modules, has higher detection efficiency, lower cost and wider application range, can be used for detecting the communication modules adopting common communication technologies such as 4G, WIFI and GPRS, and can also be used for downloading the upgrade package from the server for upgrading by the connection detection module when the version of the connection detection module is detected to be lower, thereby further improving the detection performance.
Drawings
FIG. 1 is a flow diagram of the present invention.
Detailed Description
The invention is described in further detail below with reference to the accompanying examples.
An online detection method for performance of a communication module comprises the following steps:
Figure 206027DEST_PATH_IMAGE001
the method comprises the steps of setting an upper detection module 1, a connection detection module 2 and a code translation module 4 for translating general format data sent by the upper detection module 1 into specific format data of a data format of a communication module 3 to be detected, and presetting connection state detection time and server connection detection time in the upper detection module 1, wherein the general format data is in a JSON format.
Figure 788318DEST_PATH_IMAGE002
The upper detection module 1 sends a connection state detection command to the connection detection module 2 through the communication module 3 to be detected, the connection detection module 2 sends a feedback signal to the upper detection module 1 through the communication module 3 to be detected after receiving the connection state detection command, when the upper detection module 1 receives the feedback signal within the set connection state detection time, the connection function of the communication module 3 to be detected is judged to be normal, and the step is continuously executed
Figure 447969DEST_PATH_IMAGE003
(ii) a When the upper detection module 1 does not receive the feedback signal within the set connection state detection time, the connection function of the communication module to be detected 3 is judged to be abnormal。
Figure 406698DEST_PATH_IMAGE003
The upper detection module 1 sends a general server connection detection command containing designated server data in a general format to the connection detection module 2 through the communication module to be detected 3, the connection detection module 2 sends a general server connection detection command to the code translation module 4, the code translation module 4 translates the received general server connection detection command into a specific server connection detection command in the data format of the communication module to be detected 3 and sends the specific server connection detection command to the communication module to be detected 3, and the communication module to be detected 3 connects a server corresponding to the designated server data according to the received specific server connection detection command; the general server connection detection command with the general format and containing the specified server data adopts a JSON format.
Figure 468195DEST_PATH_IMAGE004
When the communication module 3 to be tested is normally connected with the server corresponding to the data of the appointed server, the server sends a normal connection signal and the normal connection time of the server to the upper detection module 1, and the steps are executed
Figure 486967DEST_PATH_IMAGE005
(ii) a When the communication module to be tested 3 is abnormally connected with the server corresponding to the designated server data, the server sends an abnormal connection signal to the upper detection module 1, and the upper detection module 1 obtains and stores the detection result of the abnormal connection.
Figure 633914DEST_PATH_IMAGE005
The upper detection module 1 compares the received normal connection time of the server with the preset server connection detection time, when the normal connection time of the server is less than or equal to the preset server connection detection time, the upper detection module 1 obtains and stores the detection result that the server connection time is qualified, and when the normal connection time of the server is greater than the preset server connection detection timeAnd when the connection detection time is up, the upper detection module 1 obtains and stores the detection result that the connection time of the server is not qualified.

Claims (2)

1. An online detection method for performance of a communication module is characterized by comprising the following steps:
Figure DEST_PATH_IMAGE001
setting an upper detection module, a connection detection module and a code translation module for translating general format data sent by the upper detection module into specific format data of a data format of a communication module to be detected, wherein the upper detection module is preset with connection state detection time and server connection detection time;
Figure 2195DEST_PATH_IMAGE002
the upper detection module sends a connection state detection command to the connection detection module through the communication module to be detected, the connection detection module sends a feedback signal to the upper detection module through the communication module to be detected after receiving the connection state detection command, when the upper detection module receives the feedback signal within the set connection state detection time, the connection function of the communication module to be detected is judged to be normal, and the step is continuously executed
Figure DEST_PATH_IMAGE003
(ii) a When the upper detection module does not receive the feedback signal within the set connection state detection time, judging that the connection function of the communication module to be detected is abnormal;
Figure 757662DEST_PATH_IMAGE003
the upper detection module sends a universal server connection detection command containing designated server data in a universal format to the connection detection module through the communication module to be detected, the connection detection module sends the universal server connection detection command to the code translation module, and the code translation module receives the universal server connection detection commandEnabling the specific server translated into the data format of the communication module to be detected to be connected with the detection command and sending the detection command to the communication module to be detected, and enabling the communication module to be detected to be connected with a server corresponding to the data of the specified server according to the received specific server connection detection command;
Figure 84738DEST_PATH_IMAGE004
when the communication module to be tested is normally connected with the server corresponding to the data of the appointed server, the server sends a normal connection signal and the normal connection time of the server to the upper detection module, and the steps are executed
Figure DEST_PATH_IMAGE005
(ii) a When the connection between the communication module to be tested and a server corresponding to the data of the designated server is abnormal, the server sends an abnormal connection signal to the upper detection module, and the upper detection module obtains and stores a detection result of the abnormal connection;
Figure 900247DEST_PATH_IMAGE005
the upper detection module compares the received normal connection time of the server with the preset connection detection time of the server, when the normal connection time of the server is less than or equal to the preset connection detection time of the server, the upper detection module obtains and stores the detection result of the qualified connection time of the server, and when the normal connection time of the server is greater than the preset connection detection time of the server, the upper detection module obtains and stores the detection result of the unqualified connection time of the server.
2. A method for on-line testing of the performance of a communication module as claimed in claim 1, characterized by the steps of
Figure 578353DEST_PATH_IMAGE001
The general format data is in a JSON format.
CN202010107081.0A 2020-02-21 2020-02-21 On-line detection method for performance of communication module Active CN111294256B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010107081.0A CN111294256B (en) 2020-02-21 2020-02-21 On-line detection method for performance of communication module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010107081.0A CN111294256B (en) 2020-02-21 2020-02-21 On-line detection method for performance of communication module

Publications (2)

Publication Number Publication Date
CN111294256A true CN111294256A (en) 2020-06-16
CN111294256B CN111294256B (en) 2022-05-20

Family

ID=71021974

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010107081.0A Active CN111294256B (en) 2020-02-21 2020-02-21 On-line detection method for performance of communication module

Country Status (1)

Country Link
CN (1) CN111294256B (en)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6333931B1 (en) * 1998-12-28 2001-12-25 Cisco Technology, Inc. Method and apparatus for interconnecting a circuit-switched telephony network and a packet-switched data network, and applications thereof
WO2002071733A1 (en) * 2001-03-07 2002-09-12 Casio Computer Co., Ltd. Connection unit, radio communication system, connection unit control method, and radio communication method
US6636808B1 (en) * 2000-04-28 2003-10-21 International Business Machines Corporation Managing an environment via a universally accessible server system
CN101930370A (en) * 2010-09-09 2010-12-29 上海普元信息技术股份有限公司 System structure for realizing data conversion in service integration of SOA (Service Oriented Architecture) application system and method thereof
CN102457437A (en) * 2010-10-21 2012-05-16 巴比禄股份有限公司 Connecting apparatus and method for transmitting packets
CN103746873A (en) * 2013-12-30 2014-04-23 深圳市广和通实业发展有限公司 System and method for testing communication module
US20150149651A1 (en) * 2012-05-10 2015-05-28 Telefonaktiebolaget L M Ericsson (Publ) System, method and computer program product for protocol adaptation
CN105610625A (en) * 2016-01-04 2016-05-25 杭州亚美利嘉科技有限公司 Robot terminal network abnormity self-recovery method and device
CN105744542A (en) * 2014-12-12 2016-07-06 中国移动通信集团设计院有限公司 Method and apparatus for detecting wireless communication device
CN105897860A (en) * 2016-03-28 2016-08-24 联想(北京)有限公司 Network device and information processing method
CN106534288A (en) * 2016-11-02 2017-03-22 广东欧珀移动通信有限公司 Data transmission method and mobile terminal
WO2017107389A1 (en) * 2015-12-22 2017-06-29 深圳Tcl数字技术有限公司 Data transmission method, device and system
JP6161141B1 (en) * 2016-11-17 2017-07-12 株式会社Z−Works Detection system, server, detection method, and detection program
CN107317731A (en) * 2017-08-21 2017-11-03 厦门天锐科技股份有限公司 A kind of detection method of client and server connection state
CN109361562A (en) * 2018-10-31 2019-02-19 广东电网有限责任公司信息中心 A kind of automated testing method based on the access of related network equipment
CN110177023A (en) * 2019-04-08 2019-08-27 视联动力信息技术股份有限公司 A kind of communication connection detection method and device based on view networking

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6333931B1 (en) * 1998-12-28 2001-12-25 Cisco Technology, Inc. Method and apparatus for interconnecting a circuit-switched telephony network and a packet-switched data network, and applications thereof
US6636808B1 (en) * 2000-04-28 2003-10-21 International Business Machines Corporation Managing an environment via a universally accessible server system
WO2002071733A1 (en) * 2001-03-07 2002-09-12 Casio Computer Co., Ltd. Connection unit, radio communication system, connection unit control method, and radio communication method
CN101930370A (en) * 2010-09-09 2010-12-29 上海普元信息技术股份有限公司 System structure for realizing data conversion in service integration of SOA (Service Oriented Architecture) application system and method thereof
CN102457437A (en) * 2010-10-21 2012-05-16 巴比禄股份有限公司 Connecting apparatus and method for transmitting packets
US20150149651A1 (en) * 2012-05-10 2015-05-28 Telefonaktiebolaget L M Ericsson (Publ) System, method and computer program product for protocol adaptation
CN103746873A (en) * 2013-12-30 2014-04-23 深圳市广和通实业发展有限公司 System and method for testing communication module
CN105744542A (en) * 2014-12-12 2016-07-06 中国移动通信集团设计院有限公司 Method and apparatus for detecting wireless communication device
WO2017107389A1 (en) * 2015-12-22 2017-06-29 深圳Tcl数字技术有限公司 Data transmission method, device and system
CN105610625A (en) * 2016-01-04 2016-05-25 杭州亚美利嘉科技有限公司 Robot terminal network abnormity self-recovery method and device
CN105897860A (en) * 2016-03-28 2016-08-24 联想(北京)有限公司 Network device and information processing method
CN106534288A (en) * 2016-11-02 2017-03-22 广东欧珀移动通信有限公司 Data transmission method and mobile terminal
JP6161141B1 (en) * 2016-11-17 2017-07-12 株式会社Z−Works Detection system, server, detection method, and detection program
CN107317731A (en) * 2017-08-21 2017-11-03 厦门天锐科技股份有限公司 A kind of detection method of client and server connection state
CN109361562A (en) * 2018-10-31 2019-02-19 广东电网有限责任公司信息中心 A kind of automated testing method based on the access of related network equipment
CN110177023A (en) * 2019-04-08 2019-08-27 视联动力信息技术股份有限公司 A kind of communication connection detection method and device based on view networking

Also Published As

Publication number Publication date
CN111294256B (en) 2022-05-20

Similar Documents

Publication Publication Date Title
CN109361562B (en) Automatic testing method based on associated network equipment access
US20060058982A1 (en) Data relay device and data management system using the same
WO2012177672A1 (en) Method and apparatus to manage information between a scan tool and networked devices
US7346814B2 (en) System and method for controlling power sources of motherboards under test through networks
CN107508727B (en) Automatic network card information checking method and device
CN113821018A (en) Carrier rocket test system
CN111210864A (en) DDR chip testing method, device, equipment and computer readable storage medium
CN112995657B (en) Camera module testing method, device and system
US11500573B2 (en) Multiple interface data exchange application for use in process control
CN110321531A (en) Laboratory Instruments information management system
CN111294256B (en) On-line detection method for performance of communication module
CN104330685B (en) A kind of line inspection method and line inspection device
CN116742432B (en) Interface universality adapting method and system for realizing cable assembly based on negative feedback
CN112671770A (en) Outdoor unit serial port protocol analysis method and device, computer equipment and storage medium
CN115086384B (en) Remote control test method, device, equipment and storage medium
CN110262454B (en) Test system, method and device for fan control system
CN113238940B (en) Interface test result comparison method, device, equipment and storage medium
WO2019128333A1 (en) Method, apparatus and system for acquiring fully automatic impact test result
CN114386634A (en) Fault information feedback processing system for electronic product sale
CN107729016B (en) Rpm packet compiling method and system based on docker
CN112084076A (en) Test method, electronic device, and storage medium
CN105137008A (en) Soy online turbidity detection and control apparatus and method thereof
CN111143262A (en) Switching device, instrument control system and instrument control method
CN105306302A (en) Method and system for automatically testing Qinq function
CN115508686A (en) Steamship engine drive plate testing method and related equipment

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