CN110825681A - LBE bus-based SMHK381 test method - Google Patents

LBE bus-based SMHK381 test method Download PDF

Info

Publication number
CN110825681A
CN110825681A CN201910988838.9A CN201910988838A CN110825681A CN 110825681 A CN110825681 A CN 110825681A CN 201910988838 A CN201910988838 A CN 201910988838A CN 110825681 A CN110825681 A CN 110825681A
Authority
CN
China
Prior art keywords
smhk381
test
signals
bus
lbe bus
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
CN201910988838.9A
Other languages
Chinese (zh)
Other versions
CN110825681B (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.)
State Run Wuhu Machinery Factory
Original Assignee
State Run Wuhu Machinery Factory
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 State Run Wuhu Machinery Factory filed Critical State Run Wuhu Machinery Factory
Priority to CN201910988838.9A priority Critical patent/CN110825681B/en
Publication of CN110825681A publication Critical patent/CN110825681A/en
Application granted granted Critical
Publication of CN110825681B publication Critical patent/CN110825681B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention relates to a test method of SMHK381 based on an LBE bus, which comprises the following steps: s1: communication; s2: initialization of SMHK 381; s3: testing a transceiving function; s4: an internal wrap test; s5: an external wrap test; the multipurpose RS485/RS422 on the LBE bus is used for serial port communication to realize internal wrap-around test, external wrap-around test and transceiver circuit test, so that the SMHK381 chip and the peripheral circuits thereof can be rapidly positioned, waste in the production process is greatly reduced, resources are saved, and the cost is reduced; and the structure is simple, the work is reliable, the applicability is strong, and the practicability and the specificity are good.

Description

LBE bus-based SMHK381 test method
Technical Field
The invention relates to a circuit component testing method, in particular to a testing method of SMHK381 based on an LBE bus.
Background
The SMHK381 dual channel universal asynchronous receiver transmitter is a data communication device that provides two fully independent full duplex asynchronous data communication channels on a single chip that can operate in a query or interrupt driven application environment.
The SMHK381 and the surrounding circuits thereof play an important role in the communication of airborne equipment, but most of the existing documents are directed to SMHK381 chip application of a microprocessor-based system and an automatic test implementation method for an LBE bus mainboard, and a test method for the SMHK381 chip applied to the LBE bus and the surrounding circuits thereof is lacked. Based on this, the invention proposes a test method of SMHK381 based on LBE bus, which can be separated from the whole airborne equipment for individual test.
Disclosure of Invention
In order to solve the problems, the invention provides a test method of SMHK381 based on an LBE bus.
A test method of SMHK381 based on LBE bus comprises the following steps:
s1: communication: enabling the upper computer to communicate with the LBE bus control core plug-in through the RS-232;
s2: initialization of SMHK 381;
s3: and (3) testing the transceiving function: setting a mode register, enabling the SMHK381 to work in an external test working mode, closing an analog switch, enabling the serial port input and output of the SMHK381 to be connected with a test control board interface, and verifying through signals;
s4: internal wrap-around testing:
a: setting a mode register to enable the SMHK381 to work in a local loopback working mode, wherein a sending end and a receiving end of the SMHK381 are internally connected;
b: the upper computer controls the LBE bus to write a command word into the SMHK381 to read the value of the receiving and holding register, and then the value is read through the data bus so as to verify the correctness of the receiving and sending processes;
s5: external wrap-around test:
a: when SMHK381 is initialized, the working mode of the SMHK381 is set to work in an external test mode, and an LBE bus control core plug-in board converts serial data sent by an upper computer into parallel data and sends the parallel data to the SMHK 381;
b: the host computer controls the LBE bus to write a command word into the SMHK381 to read the value of the receiving holding register, and then the command word is read through the data bus to verify the correctness of the transceiving process.
In step S2, under the control of the upper computer, the LBE bus control core plug-in controls the transmission and reception of the LBE bus signal to drive the LBE bus circuit, thereby writing a command word to the register of SMHK381, setting a communication baud rate, a protocol parameter, and an interrupt parameter class, and initializing SMHK 381.
The specific procedure of step S3 is as follows:
a: and (3) sending: after initialization, the LBE bus control core plug-in converts serial data sent by an upper computer into parallel data and sends the parallel data to the SMHK381, the SMHK381 converts the parallel data into RS-485/422 signals according to a communication protocol and sends the signals to a test control board, and the test control board processes the RS-485/422 signals and sends the signals to the upper computer for comparison and verification;
b: receiving: the test control board converts RS-232 signals sent by the upper computer into RS-485/422 signals and sends the signals to SMHK381, the SMHK381 converts the signals into parallel data and sends the parallel data back to the LBE bus control core plug-in unit through bus data, and finally the LBE bus control core plug-in unit processes the signals and sends the signals to the upper computer for verification.
Neither step S4 nor step S5 requires the use of a test control board.
In step S5, the analog switch needs to be switched to disconnect the test control board, which is an external circuit, and the receiving/transmitting terminals of all channels are looped.
The invention has the beneficial effects that: the multipurpose RS485/RS422 on the LBE bus is used for serial port communication to realize internal wrap-around test, external wrap-around test and transceiver circuit test, so that the SMHK381 chip and the peripheral circuits thereof can be rapidly positioned, waste in the production process is greatly reduced, resources are saved, and the cost is reduced; and the structure is simple, the work is reliable, the applicability is strong, and the practicability and the specificity are good.
Drawings
The invention is further illustrated with reference to the following figures and examples.
FIG. 1 is a schematic diagram of a test control board according to the present invention;
FIG. 2 is a schematic diagram of the electrical connection between the test control board and the LBE test platform according to the present invention.
Detailed Description
In order to make the technical means, the creation characteristics, the achievement purposes and the effects of the invention easy to understand, the invention is further explained below.
As shown in fig. 1 and 2, a method for testing the smek 381 based on the LBE bus includes the following steps:
s1: communication: enabling the upper computer to communicate with the LBE bus control core plug-in through the RS-232;
s2: initialization of SMHK 381;
s3: and (3) testing the transceiving function: setting a mode register, enabling the SMHK381 to work in an external test working mode, closing an analog switch, enabling the serial port input and output of the SMHK381 to be connected with a test control board interface, and verifying through signals;
s4: internal wrap-around testing:
a: setting a mode register to enable the SMHK381 to work in a local loopback working mode, wherein a sending end and a receiving end of the SMHK381 are internally connected;
b: the upper computer controls the LBE bus to write a command word into the SMHK381 to read the value of the receiving and holding register, and then the value is read through the data bus so as to verify the correctness of the receiving and sending processes;
s5: external wrap-around test:
a: when SMHK381 is initialized, the working mode of the SMHK381 is set to work in an external test mode, and an LBE bus control core plug-in board converts serial data sent by an upper computer into parallel data and sends the parallel data to the SMHK 381;
b: the host computer controls the LBE bus to write a command word into the SMHK381 to read the value of the receiving holding register, and then the command word is read through the data bus to verify the correctness of the transceiving process.
In step S2, under the control of the upper computer, the LBE bus control core plug-in controls the transmission and reception of the LBE bus signal to drive the LBE bus circuit, thereby writing a command word to the register of SMHK381, setting a communication baud rate, a protocol parameter, and an interrupt parameter class, and initializing SMHK 381.
The specific procedure of step S3 is as follows:
a: and (3) sending: after initialization, the LBE bus control core plug-in converts serial data sent by an upper computer into parallel data and sends the parallel data to the SMHK381, the SMHK381 converts the parallel data into RS-485/422 signals according to a communication protocol and sends the signals to a test control board, and the test control board processes the RS-485/422 signals and sends the signals to the upper computer for comparison and verification;
b: receiving: the test control board converts RS-232 signals sent by the upper computer into RS-485/422 signals and sends the signals to SMHK381, the SMHK381 converts the signals into parallel data and sends the parallel data back to the LBE bus control core plug-in unit through bus data, and finally the LBE bus control core plug-in unit processes the signals and sends the signals to the upper computer for verification.
As shown in fig. 2, the test control board can be used for multi-channel communication test, the upper computer performs channel selection through the FPGA, the signal transceiver is used for converting serial port signals into signals which can be processed by the FPGA, and signals of a plurality of groups of RS-485/422 signal transceivers connected with the FPGA are all transmitted to the RS-232 signal transceiver.
The internal wrap test, the external wrap test and the receiving and transmitting function test of the SMHK381 are realized through data transmission and signal verification, the method is suitable for fault location and performance detection of the SMHK381 chip based on the LBE bus and surrounding circuits of the SMHK381 chip, cost can be effectively reduced, and operation is simple.
As shown in fig. 1, after the analog switch is turned on, the control signal of the test control board connected via the serial port is transmitted to the upper computer, the decoding control inputs the control to the SMHK381, the LBE bus core control board matched with the serial port transmits the bus data to the SMHK381, and the LBE bus core control board controls the output via the bus data and the decoding control.
Neither step S4 nor step S5 requires the use of a test control board.
In step S5, the analog switch needs to be switched to disconnect the test control board, which is an external circuit, and the receiving/transmitting terminals of all channels are looped.
The multipurpose RS485/RS422 on the LBE bus is used for serial port communication to realize internal wrap-around test, external wrap-around test and transceiver circuit test, so that the SMHK381 chip and the peripheral circuits thereof can be rapidly positioned, waste in the production process is greatly reduced, resources are saved, and the cost is reduced; and the structure is simple, the work is reliable, the applicability is strong, and the practicability and the specificity are good.
The foregoing shows and describes the general principles, essential features, and advantages of the invention. It will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, which are merely illustrative of the principles of the invention, but that various changes and modifications may be made without departing from the spirit and scope of the invention, which fall within the scope of the invention as claimed. The scope of the invention is defined by the appended claims and equivalents thereof.

Claims (5)

1. A test method of SMHK381 based on LBE bus is characterized in that: the method comprises the following steps:
s1: communication: enabling the upper computer to communicate with the LBE bus control core plug-in through the RS-232;
s2: initialization of SMHK 381;
s3: and (3) testing the transceiving function: setting a mode register, enabling the SMHK381 to work in an external test working mode, closing an analog switch, enabling the serial port input and output of the SMHK381 to be connected with a test control board interface, and verifying through signals;
s4: internal wrap-around testing:
a: setting a mode register to enable the SMHK381 to work in a local loopback working mode, wherein a sending end and a receiving end of the SMHK381 are internally connected;
b: the upper computer controls the LBE bus to write a command word into the SMHK381 to read the value of the receiving and holding register, and then the value is read through the data bus so as to verify the correctness of the receiving and sending processes;
s5: external wrap-around test:
a: when SMHK381 is initialized, the working mode of the SMHK381 is set to work in an external test mode, and an LBE bus control core plug-in board converts serial data sent by an upper computer into parallel data and sends the parallel data to the SMHK 381;
b: the host computer controls the LBE bus to write a command word into the SMHK381 to read the value of the receiving holding register, and then the command word is read through the data bus to verify the correctness of the transceiving process.
2. The method for testing SMHK381 based on LBE bus as claimed in claim 1, wherein: in step S2, under the control of the upper computer, the LBE bus control core plug-in controls the transmission and reception of the LBE bus signal to drive the LBE bus circuit, thereby writing a command word to the register of SMHK381, setting a communication baud rate, a protocol parameter, and an interrupt parameter class, and initializing SMHK 381.
3. The method for testing SMHK381 based on LBE bus as claimed in claim 1, wherein: the specific procedure of step S3 is as follows:
a: and (3) sending: after initialization, the LBE bus control core plug-in converts serial data sent by an upper computer into parallel data and sends the parallel data to the SMHK381, the SMHK381 converts the parallel data into RS-485/422 signals according to a communication protocol and sends the signals to a test control board, and the test control board processes the RS-485/422 signals and sends the signals to the upper computer for comparison and verification;
b: receiving: the test control board converts RS-232 signals sent by the upper computer into RS-485/422 signals and sends the signals to SMHK381, the SMHK381 converts the signals into parallel data and sends the parallel data back to the LBE bus control core plug-in unit through bus data, and finally the LBE bus control core plug-in unit processes the signals and sends the signals to the upper computer for verification.
4. The method for testing SMHK381 based on LBE bus as claimed in claim 1, wherein: neither step S4 nor step S5 requires the use of a test control board.
5. The method for testing SMHK381 based on LBE bus as claimed in claim 1, wherein: in step S5, the analog switch needs to be switched to disconnect the test control board, which is an external circuit, and the receiving/transmitting terminals of all channels are looped.
CN201910988838.9A 2019-10-17 2019-10-17 LBE bus-based SMHK381 test method Active CN110825681B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910988838.9A CN110825681B (en) 2019-10-17 2019-10-17 LBE bus-based SMHK381 test method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910988838.9A CN110825681B (en) 2019-10-17 2019-10-17 LBE bus-based SMHK381 test method

Publications (2)

Publication Number Publication Date
CN110825681A true CN110825681A (en) 2020-02-21
CN110825681B CN110825681B (en) 2022-07-26

Family

ID=69549877

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910988838.9A Active CN110825681B (en) 2019-10-17 2019-10-17 LBE bus-based SMHK381 test method

Country Status (1)

Country Link
CN (1) CN110825681B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6055656A (en) * 1995-05-02 2000-04-25 Intel Corporation Control register bus access through a standardized test access port
CN104536851A (en) * 2014-12-11 2015-04-22 中国航空工业集团公司第六三一研究所 System and method for synchronizing redundant fault-tolerant computer system
CN105446847A (en) * 2014-09-26 2016-03-30 中国航空工业第六一八研究所 Automatic testing system and method for ARINC659 buses
CN108228513A (en) * 2016-12-14 2018-06-29 中国航空工业集团公司西安航空计算技术研究所 A kind of intelligent serial communication module and control method based on FPGA architecture
CN108287537A (en) * 2018-01-19 2018-07-17 航天科工防御技术研究试验中心 A kind of CAN bus protocol controller test method
CN110011878A (en) * 2019-04-28 2019-07-12 西安微电子技术研究所 Four CAN bus simulated timing diagrams communication test boards of one kind and its test method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6055656A (en) * 1995-05-02 2000-04-25 Intel Corporation Control register bus access through a standardized test access port
CN105446847A (en) * 2014-09-26 2016-03-30 中国航空工业第六一八研究所 Automatic testing system and method for ARINC659 buses
CN104536851A (en) * 2014-12-11 2015-04-22 中国航空工业集团公司第六三一研究所 System and method for synchronizing redundant fault-tolerant computer system
CN108228513A (en) * 2016-12-14 2018-06-29 中国航空工业集团公司西安航空计算技术研究所 A kind of intelligent serial communication module and control method based on FPGA architecture
CN108287537A (en) * 2018-01-19 2018-07-17 航天科工防御技术研究试验中心 A kind of CAN bus protocol controller test method
CN110011878A (en) * 2019-04-28 2019-07-12 西安微电子技术研究所 Four CAN bus simulated timing diagrams communication test boards of one kind and its test method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
周前柏: "一种提高RS422通信BIT可靠性的设计方法", 《计算机测量与控制》 *
杨菊平等: "基于RS-422通讯的BIT设计与实现", 《工业控制计算机》 *

Also Published As

Publication number Publication date
CN110825681B (en) 2022-07-26

Similar Documents

Publication Publication Date Title
US7353307B2 (en) Linking addressable shadow port and protocol for serial bus networks
CN104750588A (en) Serial port communication based pressure testing method
CN107592250B (en) Multi-rate self-adaptive test equipment based on aviation FC bus
CN108667706B (en) Ethernet serial server with dynamically adjustable serial number and data transmission method thereof
US5194758A (en) Automatic switching circuit
CN110825681B (en) LBE bus-based SMHK381 test method
JPS598849B2 (en) Arrangement for communication maintenance equipment
CN210804414U (en) Circuit with reusable communication interface
CN211124025U (en) Multi-protocol simulation simulator
CN113422756B (en) Verification data transmission method, rate conversion device and verification data transmission system
CN201820120U (en) Self-adapting multibus execution mechanism controller
CN204044808U (en) The device that a kind of RS232 of realization, RS485 and USB turn mutually
CN203965471U (en) Testing apparatus and communication device thereof
CN202856782U (en) Automatic receiving/transmitting and converting device for HART communication signals
CN108494889B (en) Communication circuit based on I2C bus and debugging method
CN114676087B (en) Extended TTL communication device based on parallel port controller
CN216437355U (en) Camera with mixed transmission function
CN218162477U (en) Data transmission board and system based on hardware simulation accelerator
CN216118755U (en) Face identification equipment tail line interface testing arrangement
US20210303496A1 (en) Actuation of data transmission lanes between states
CN116436489A (en) UART interaction system and method in half-duplex mode
CN217279557U (en) Automatic test system for switching test of USB2.0 interface and USB3.0 interface
CN110597753A (en) Circuit with reusable communication interface
CN212543816U (en) ARINC 429 bus communication board card of USB specification
CN214900831U (en) Hardware multiplexing circuit based on UART communication

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