CN101499892A - Communication interface detection method and electronic device - Google Patents

Communication interface detection method and electronic device Download PDF

Info

Publication number
CN101499892A
CN101499892A CNA2008100574161A CN200810057416A CN101499892A CN 101499892 A CN101499892 A CN 101499892A CN A2008100574161 A CNA2008100574161 A CN A2008100574161A CN 200810057416 A CN200810057416 A CN 200810057416A CN 101499892 A CN101499892 A CN 101499892A
Authority
CN
China
Prior art keywords
interface
data
communication interface
detection
detection 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.)
Pending
Application number
CNA2008100574161A
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.)
Qingdao Hisense Electronics Co Ltd
Original Assignee
Qingdao Hisense Electronics 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 Qingdao Hisense Electronics Co Ltd filed Critical Qingdao Hisense Electronics Co Ltd
Priority to CNA2008100574161A priority Critical patent/CN101499892A/en
Publication of CN101499892A publication Critical patent/CN101499892A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention discloses a communication interface detecting method and an electronic device, belongs to the technical field of hardware detection, and aims at solving the problems in the prior art that detection of device interfaces needs a computer, thus occupying resources and having high cost, furthermore, data transceiving needs to be implemented between the device and the computer, thus having complex process, long time and low efficiency. On the one hand, the invention provides the communication interface detecting method which comprises the following steps: a data sending end and a data receiving end of an interface are connected; the sending end sends detecting data; the receiving end receives the detecting data; consistence between the sent detecting data and the received detecting data is compared; on the other hand, the invention provides the electronic device which comprises the communication interface and a communication interface detecting device, and the communication interface detecting device comprises a sending unit, a receiving unit and a comparing unit. The communication interface detecting method and the electronic device are applicable to the communication interface detection of electronic devices.

Description

Communication interface detection method and electronic equipment
Technical field
The present invention relates to a kind of hardware detection method, particularly a kind of communication interface detection method and the electronic equipment that has the communication interface checkout gear.
Background technology
The serial ports of set-top box is a kind of common communication interface, generally can adopt the RS232 nine needles serial port of standard, is used in aspects such as debugging and local upgrade, uses extensive and convenient.Set-top box must detect this serial ports in process of production, to determine whether serial ports is normal.
Conventional detection is to use computer to detect, and concrete grammar is: serial ports is installed in the computer detects software, be connected with the serial ports of Serial Port Line with set-top box and computer; Embedded serial ports trace routine in the starter motor top box program, serial ports in the computer detects software and sends particular data by Serial Port Line to set-top box then, set-top box sends back computer with the feedback data that produces after receiving data, serial ports in the computer detects software feedback data is detected, thereby judges whether the set-top box serial ports is normal.
Existing set-top box serial ports detection method need use computer and serial ports to detect software, takies device resource cost height; Also need to carry out between computer and the set-top box data transmit-receive in the testing process, the process complexity, the time is long, and efficient is low.
Summary of the invention
On the one hand, it is simple and reliable to the invention provides a kind of method, and the efficient height takies the few communication interface detection method of resource.
For achieving the above object, the technical solution used in the present invention is:
A kind of communication interface detection method comprises the steps:
The data sending terminal and the data receiver of interface are electrically connected;
The data sending terminal of interface sends and detects data;
The data receiver of interface receives described detection data;
Relatively whether the detection data of the data sending terminal of interface transmission are consistent with the detection data that data receiver receives, if consistent, then interface is normal; If inconsistent, then interface is unusual.
Communication interface detection method provided by the invention is that the data sending terminal of interface and data receiver are electrically connected, data sending terminal sends and detects data then, data receiver receive to detect data, at last the data that receive and the data of transmission is compared, thereby judges whether interface is normal.This method can be realized that do not need to use computer, it is few to take resource by detected electronic equipment alone, and cost is low; And electronic equipment self carries out data transmit-receive, does not need to be connected with external equipment, and process is simple, and the time is short, the efficient height.
On the other hand, it is simple and reliable to the invention provides a kind of method, and the efficient height takies the few electronic equipment that has the communication interface checkout gear of resource.
For achieving the above object, the technical solution used in the present invention is:
A kind of electronic equipment comprises communication interface and communication interface checkout gear, and described communication interface checkout gear comprises:
Transmitting element: be used for sending the detection data by the data sending terminal of interface;
Receiving element: be used for receiving described detection data by the data receiver of interface;
Comparing unit: whether with detection data that data receiver receive consistent, if unanimity, then interface is normal if being used for the detection data that the data sending terminal of comparison interface sends; If inconsistent, then interface is unusual.
When electronic equipment provided by the invention need detect, data sending terminal and data receiver with interface is electrically connected earlier, transmitting element sends the detection data by the data sending terminal of interface then, receiving element receives described detection data by the data receiver of interface, at last, the detection data that detection data that the data sending terminal of comparing unit docking port sends and data receiver receive compare, thereby judge whether interface is normal.This electronic equipment is realized alone detecting, and does not need to use computer, and it is few to take resource, and cost is low; And electronic equipment self carries out data transmit-receive, does not need to be connected with external equipment, and process is simple, and the time is short, the efficient height.
Description of drawings
Fig. 1 is the flow chart of communication interface detection method embodiment of the present invention;
Fig. 2 is the interface connection diagram of electronic equipment embodiment of the present invention;
Fig. 3 is the structural representation of electronic equipment embodiment of the present invention.
Embodiment
Need use computer when the electronic equipment communication interface being detected for solving in the prior art, take resource, the cost height, and need to carry out data transmit-receive between electronic equipment and the computer, the testing process complexity, the time is long, inefficient problem, the invention provides a kind of communication interface detection method and electronic equipment, the present invention is elaborated below in conjunction with accompanying drawing.
On the one hand, the invention provides a kind of electronic equipment, is that example is introduced with the set-top box.It comprises communication interface and communication interface checkout gear, and this communication interface checkout gear comprises:
Transmitting element: be used for sending the detection data by the data sending terminal of interface;
Receiving element: be used for receiving described detection data by the data receiver of interface;
Judging unit: be used to judge whether the data receiver of interface receives the detection data, if do not receive the detection data, then interface is unusual; If receive the detection data, then start comparing unit;
Comparing unit: whether with detection data that data receiver receive consistent, if unanimity, then interface is normal if being used for the detection data that the data sending terminal of comparison interface sends; If inconsistent, then interface is unusual;
Output unit: be used for the judged result or the comparative result of described interface are exported.
The communication interface of set-top box is a serial ports, and the standard definition of this serial ports is: crus secunda (TX_PORT) is a data sending terminal, and tripod (RX_PORT) is a data receiver, and the 5th pin (GND) is the signal ground end.
When the serial ports of set-top box was detected, as shown in Figure 2, data sending terminal and the data receiver with set-top box was electrically connected earlier.For the antijamming capability of enhancing signal, increase the transmission accuracy of signal, with signal ground end ground connection.
As shown in Figure 1, transmitting element sends the detection data by the data sending terminal of serial ports earlier; Receiving element receives described detection data by the data receiver of serial ports.In order to learn whether serial ports can be communicated with, and the communication interface checkout gear is provided with judging unit, whether the data receiver of serial ports received detect data and judge that if do not receive the detection data, then serial ports is unusual; If receive the detection data, then serial ports can be communicated with, thereby starts comparing unit, carries out next step.More whether consistent with the detection data that data receiver receives to the detection data that the data sending terminal of serial ports sends by comparing unit, if unanimity, then serial ports is normal, can proper communication; If inconsistent, then serial ports is unusual, can not proper communication.
At last, output unit is exported the judged result or the comparative result of described interface, and the result that serial ports is detected shows (screen or light) or audible alarm etc.
In addition, only when needs detect, start, password unit can be set in set-top box, start described communication interface checkout gear, domestic consumer is limited with password by the input password in order to make this communication interface checkout gear.
Set-top box of the present invention can not used computer, realizes alone detecting, and it is few to take resource, and cost is low; And set-top box self is carried out data transmit-receive, does not need to be connected with external equipment, and process is simple, and the time is short, the efficient height.
Electronic equipment of the present invention can be other equipment, and as printer, projecting apparatus, and the communication interface of this equipment also can be the parallel port.
On the other hand, the invention provides a kind of communication interface detection method, when this method is applied to set-top box, can realize by writing a relevant detection program.This trace routine in set-top box software existing serial communication protocol and the parameter basis on design, be embedded in the set-top box program.The drive part of set-top box program is the serial port drive of standard.
In the production test procedure of factory, can use a testing software, be used for top-set hardware and functional test, to guarantee the quality of set-top box in the production.The testing process of set-top box serial ports can be placed in this test link, and need be connected set-top box this moment with computer, and partly add the set-top box upper layer application to the testing software interface.
As shown in Figure 1, behind the set-top box program start, at first carry out initialization.Put into the set-top box program because comprise the trace routine of set-top box serial ports detection method, so after the initialization that comprises hardware driving such as serial port drive is finished, the set-top box program brings into operation, select the menu option corresponding with trace routine by remote controller in the testing software interface then: serial ports detects, to start this trace routine.The testing process of testing process such as top set-top box is identical, repeats no more herein.
When communication interface detection method of the present invention is used, set-top box is connected with computer, purpose one is to merge the test link, raise the efficiency, and the 2nd, by the demonstration of computer, assist the start detection program, and show testing result.Concrete testing process is to be realized alone by set-top box.This testing result also can show on set-top box, such as indicating by light-emitting diode is set.
The testing process of communication interface detection method of the present invention is to be realized alone by set-top box, does not need to use computer, and it is few to take resource, and cost is low; And set-top box self is carried out data transmit-receive, does not need to be connected with external electronic device, and process is simple, and the time is short, the efficient height.
The present invention is applicable to that communication interfaces of electronic devices detects.
The above; be the specific embodiment of the present invention only, but protection scope of the present invention is not limited to this, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, all should be encompassed within protection scope of the present invention.

Claims (10)

1, a kind of communication interface detection method is characterized in that, comprises the steps:
The data sending terminal and the data receiver of interface are electrically connected;
The data sending terminal of interface sends and detects data;
The data receiver of interface receives described detection data;
Relatively whether the detection data of the data sending terminal of interface transmission are consistent with the detection data that data receiver receives, if consistent, then interface is normal; If inconsistent, then interface is unusual.
2, communication interface detection method according to claim 1 is characterized in that, before the described data sending terminal and data receiver electrical connection step with interface, also comprises step:
Signal ground end ground connection with interface.
3, communication interface detection method according to claim 1 is characterized in that, the data receiver of described interface receives described detection data step and also comprises step:
Whether the data receiver of judging interface receives the detection data, if do not receive the detection data, then interface is unusual; If receive the detection data, then carry out next step.
4, according to the described communication interface detection method of arbitrary claim in the claim 1 to 3, it is characterized in that, whether the detection data that detection data that the data sending terminal of described relatively interface sends and data receiver receive after the consistent step, also comprise step:
The judged result or the comparative result of described interface are exported.
According to the described communication interface detection method of arbitrary claim in the claim 1 to 3, it is characterized in that 5, described interface is a serial ports.
6, a kind of electronic equipment comprises communication interface, it is characterized in that, also comprises the communication interface checkout gear, and described communication interface checkout gear comprises:
Transmitting element: be used for sending the detection data by the data sending terminal of interface;
Receiving element: be used for receiving described detection data by the data receiver of interface;
Comparing unit: whether with detection data that data receiver receive consistent, if unanimity, then interface is normal if being used for the detection data that the data sending terminal of comparison interface sends; If inconsistent, then interface is unusual.
7, electronic equipment according to claim 6 is characterized in that, described communication interface checkout gear also comprises:
Judging unit: be used to judge whether the data receiver of interface receives the detection data, if do not receive the detection data, then interface is unusual; If receive the detection data, then start comparing unit.
8, according to claim 6 or 7 described electronic equipments, it is characterized in that described electronic equipment also comprises:
Output unit: be used for the judged result or the comparative result of described interface are exported.
According to claim 6 or 7 described electronic equipments, it is characterized in that 9, described interface is a serial ports.
10, electronic equipment according to claim 6 is characterized in that, described electronic equipment is a set-top box.
CNA2008100574161A 2008-02-01 2008-02-01 Communication interface detection method and electronic device Pending CN101499892A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008100574161A CN101499892A (en) 2008-02-01 2008-02-01 Communication interface detection method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008100574161A CN101499892A (en) 2008-02-01 2008-02-01 Communication interface detection method and electronic device

Publications (1)

Publication Number Publication Date
CN101499892A true CN101499892A (en) 2009-08-05

Family

ID=40946785

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008100574161A Pending CN101499892A (en) 2008-02-01 2008-02-01 Communication interface detection method and electronic device

Country Status (1)

Country Link
CN (1) CN101499892A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572509A (en) * 2011-12-16 2012-07-11 深圳创维数字技术股份有限公司 Set top box starting detection method and device
CN102841303A (en) * 2012-08-10 2012-12-26 广东威创视讯科技股份有限公司 Serial peripheral interface (SPI) anomaly detection method and SPI anomaly detection device
CN104469501A (en) * 2014-10-27 2015-03-25 福建新大陆通信科技股份有限公司 Set top box automatic set-up method based on serial communication protocol
CN105187915A (en) * 2015-09-21 2015-12-23 浪潮软件集团有限公司 Testing method for scrambling program playing of high-security set top box
CN106440197A (en) * 2016-09-23 2017-02-22 广东美的制冷设备有限公司 Control connecting box for air conditioner and air conditioner detection system
CN106712868A (en) * 2015-11-13 2017-05-24 航天信息股份有限公司 Bluetooth terminal equipment interface fault detection method, device and system
CN109586809A (en) * 2018-12-27 2019-04-05 湖南宸睿通信科技有限公司 A kind of outgoing detector and its detection method based on communication apparatus production
CN109655707A (en) * 2018-12-13 2019-04-19 联想(北京)有限公司 A kind of monitoring method of electrical interface, system and electronic equipment
CN111562490A (en) * 2019-02-14 2020-08-21 深圳市汇顶科技股份有限公司 Test method and system
CN112925684A (en) * 2021-03-22 2021-06-08 西安紫光国芯半导体有限公司 Testing method of link establishment logic and related equipment

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572509A (en) * 2011-12-16 2012-07-11 深圳创维数字技术股份有限公司 Set top box starting detection method and device
CN102841303A (en) * 2012-08-10 2012-12-26 广东威创视讯科技股份有限公司 Serial peripheral interface (SPI) anomaly detection method and SPI anomaly detection device
CN102841303B (en) * 2012-08-10 2015-01-21 广东威创视讯科技股份有限公司 Serial peripheral interface (SPI) anomaly detection method and SPI anomaly detection device
CN104469501A (en) * 2014-10-27 2015-03-25 福建新大陆通信科技股份有限公司 Set top box automatic set-up method based on serial communication protocol
CN105187915A (en) * 2015-09-21 2015-12-23 浪潮软件集团有限公司 Testing method for scrambling program playing of high-security set top box
CN105187915B (en) * 2015-09-21 2018-05-29 浪潮软件集团有限公司 Testing method for scrambling program playing of high-security set top box
CN106712868B (en) * 2015-11-13 2021-06-22 航天信息股份有限公司 Method, device and system for detecting interface fault of Bluetooth terminal equipment
CN106712868A (en) * 2015-11-13 2017-05-24 航天信息股份有限公司 Bluetooth terminal equipment interface fault detection method, device and system
CN106440197A (en) * 2016-09-23 2017-02-22 广东美的制冷设备有限公司 Control connecting box for air conditioner and air conditioner detection system
CN106440197B (en) * 2016-09-23 2019-06-21 广东美的制冷设备有限公司 A kind of control interconnecting device and air conditioner detection system for air conditioner
CN109655707A (en) * 2018-12-13 2019-04-19 联想(北京)有限公司 A kind of monitoring method of electrical interface, system and electronic equipment
CN109586809A (en) * 2018-12-27 2019-04-05 湖南宸睿通信科技有限公司 A kind of outgoing detector and its detection method based on communication apparatus production
CN111562490A (en) * 2019-02-14 2020-08-21 深圳市汇顶科技股份有限公司 Test method and system
CN111562490B (en) * 2019-02-14 2023-01-20 深圳市汇顶科技股份有限公司 Test method and system
CN112925684A (en) * 2021-03-22 2021-06-08 西安紫光国芯半导体有限公司 Testing method of link establishment logic and related equipment
CN112925684B (en) * 2021-03-22 2024-05-24 西安紫光国芯半导体有限公司 Testing method of link establishment logic and related equipment

Similar Documents

Publication Publication Date Title
CN101499892A (en) Communication interface detection method and electronic device
CN103344863B (en) The method of testing of mobile terminal and test system
CN104914845B (en) A kind of car body controller fault testing method and system based on industrial personal computer
CN107690759B (en) Optical module, optical module system and monitoring method of optical module
CN107592250B (en) Multi-rate self-adaptive test equipment based on aviation FC bus
CN103813196A (en) Intelligent remote controller for testing television functions
CN113285735A (en) Transponder transmission module capability test device
US20110252277A1 (en) Electronic device with debugging and software updating function
CN112327679A (en) Ground measurement and launch control system
CN115934608A (en) Terminal equipment and control method thereof
US8607101B2 (en) RS-485 port test apparatus
CN105163115A (en) Television movement board detection device and method
CN101902769B (en) Single board wireless debugging method and device
CN102355380A (en) Hardware testing device and method for synchronous asynchronous serial interface
CN103176877A (en) Method and system for debugging peripheral of embedded device
CN101692105A (en) Device for real-time detecting product of production line of remote control
CN103425123A (en) Automated testing method for CAN (controller area network) bus based on software script
CN103365735A (en) Transmission interface and method for determining transmission signal
CN215868152U (en) Infrared remote control device
CN204993697U (en) TV set core detection device
CN101222740A (en) Method, device and system for controlling and configuring equipment with multi-version under testing
CN102930709B (en) Far-infrared communication circuit with hardware transmitting/receiving self-control function
CN202334789U (en) Test device of set-top box device
CN105487948A (en) RS232 port test apparatus and test method
CN111782455A (en) Portable equipment for testing screen end product

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20090805