A code generator for an automatic test bench
By designing a code generator for an automatic test bench and using STC15FW104 and CH340G chips to convert between USB interface and serial communication interface, the stability problem of set-top box signal testing was solved, and the reliability and sensitivity of the test were improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- BEIHAI BROADCASTING TECHNOLOGY CO LTD
- Filing Date
- 2025-08-12
- Publication Date
- 2026-06-09
AI Technical Summary
The lack of stable and reliable encoders in existing technologies for set-top box signal testing leads to unstable and unreliable testing.
An automatic test bench code transmitter was designed, comprising a main control unit, a driver unit, and a USB-to-serial port unit. It adopts an STC15FW104 main control chip and a CH340G chip to realize the conversion between USB interface and serial communication interface, and transmit signals through infrared carrier.
It has achieved stable and reliable testing of set-top box signals, simplified the testing process, and improved the product's receiving sensitivity.
Smart Images

Figure CN224343271U_ABST
Abstract
Description
Technical Field
[0001] This utility model relates to the field of code generator technology, specifically to a code generator for an automatic testing station. Background Technology
[0002] In the set-top box manufacturing process, in order to ensure that the product's functions, performance and compatibility meet the standards, an automatic test bench is required for testing. In order to simulate various signal sources and send signals such as infrared remote control signals and radio frequency signals to the set-top box, in order to test the set-top box's ability to receive and process different signals and to detect whether the set-top box's response is correct, it is necessary to develop a stable and reliable code transmitter that meets the signal testing requirements of set-top boxes. Utility Model Content
[0003] The purpose of this invention is to address the above-mentioned problems by providing a code transmitter for an automatic test bench that is a stable and reliable code transmitter that meets the signal testing requirements of set-top boxes.
[0004] To achieve the above objectives, the technical solution adopted by this utility model is as follows: A code generator for an automatic test bench includes a main control unit, a drive unit, a USB-to-serial port unit J1 interface, and a J2 interface. The main control unit comprises a main control chip U1, a main control chip U2, and an LED indicator circuit. The LED indicator circuit consists of a light-emitting diode LED1 and a resistor R3, used to indicate the serial port data transmission of the main control unit. The main control chips U1 and U2 are both STC15FW104. The VCC pin of the main control chip U1 is grounded through a capacitor C1. The P3.5 pin of the main control chip U1 is connected to the P3.5 pin of the main control chip U1 and then connected to a 5-pin connector J5. One end of the resistor R3 is connected to the VCC pin of the main control chip U1, and the other end... One end is connected in series with LED1 and then connected to the P3.2 pins of the main control chip U1 and the main control chip U2 respectively. The P3.1 pins of the main control chip U1 and the main control chip U2 are connected to the TXD and RXD pins of the USB to serial port unit respectively. The USB to serial port unit is used to realize the conversion between USB interface and serial communication interface. The driving unit includes a transistor Q1 and a resistor R2. One end of the resistor R2 is connected to the P3.3 pins of the main control chip U1 and the main control chip U2 respectively. The other end of the resistor R2 is connected to the base of the transistor Q1. The emitter of the transistor Q1 is grounded. The collector of the transistor is connected to the positive terminal of the J2 interface. The positive terminal of the J1 interface and the negative terminal of the J2 interface are connected to the VCC power supply terminal. The negative terminal of the J1 interface is grounded.
[0005] Furthermore, the USB-to-serial unit includes a CH340G chip, a decoupling circuit, a crystal oscillator circuit, and a USB interface J5. The decoupling circuit consists of capacitors C16 and C17, used to remove power supply noise. The crystal oscillator circuit consists of capacitors C7 and C8, resistor R9, and crystal oscillator Y2, providing a clock signal to the CH340G chip. The UD+ and UD- terminals of the CH340G chip are connected to the P and N terminals of the USB interface J5, respectively. The XI terminal of the CH340G chip is connected via... The crystal oscillator Y2 and resistor R9 are connected in parallel and then connected to its X0 terminal. The X1 and X0 terminals of the CH340G chip are grounded through capacitors C8 and C7, respectively. The V3 terminal of the CH340G chip is grounded through capacitor C9. The VCC terminal of the CH340G chip is grounded through capacitor C56. The VCC terminal of the CH340G chip is grounded through capacitors C16 and C17, respectively. The GND terminal of the CH340G chip is grounded. Pins 4, 5, and 6 of the USB interface J5 are all grounded.
[0006] By adopting the above technical solution, this utility model has the following beneficial effects:
[0007] This invention can receive and encode code information sent by a host computer through a main control unit, and then modulate the encoded information onto an infrared carrier wave, amplify it, and transmit it. It can also realize USB communication function, simplify the testing process, and test the receiving sensitivity of the product. Attached Figure Description
[0008] Figure 1 This is a circuit diagram of a code generator for an automatic testing station according to the present invention.
[0009] In the diagram: 1-Main control unit, 2-Driver unit, 3-USB to serial port unit, 4-J1 interface, 5-J2 interface. Detailed Implementation
[0010] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which the present invention pertains. The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the present invention. The terms "first," "second," etc., in the specification, claims, and accompanying drawings of the present invention are used to distinguish different objects and not to describe a particular order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or devices.
[0011] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the present invention. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0012] like Figure 1As shown in the figure, an automatic test bench's code generator includes a main control unit 1, a driver unit 2, a USB-to-serial port unit 3, a J1 interface 4, and a J2 interface 5. The main control unit 1 comprises a main control chip U1, a main control chip U2, and an LED indicator circuit. The LED indicator circuit consists of a light-emitting diode LED1 and a resistor R3, used to indicate the serial data transmission of the main control unit 1. Both the main control chip U1 and the main control chip U2 are model STC15FW104. The VCC pin of the main control chip U1 is grounded through a capacitor C1. The P3.5 pin of the main control chip U1 is connected to pin 4 of a 5-pin connector J5, and pin 5 of the 5-pin connector J5 is grounded. One end of the resistor R3 is connected to the VCC pin of the main control chip U1, and the other end is connected in series with the LED1. D1 is connected to the P3.2 pins of the main control chip U1 and the main control chip U2 respectively. The P3.1 pins of the main control chip U1 and the main control chip U2 are connected to the TXD and RXD pins of the USB to serial port unit 3 respectively. The USB to serial port unit 3 is used to convert between the USB interface and the serial communication interface. The driving unit 2 includes a transistor Q1 and a resistor R2. One end of the resistor R2 is connected to the P3.3 pins of the main control chip U1 and the main control chip U2 respectively. The other end of the resistor R2 is connected to the base of the transistor Q1. The emitter of the transistor Q1 is grounded. The collector of the transistor is connected to the positive terminal of the J2 interface 5. The positive terminal of the J1 interface 4 and the negative terminal of the J2 interface 5 are connected to the VCC power supply terminal. The negative terminal of the J1 interface 4 is grounded.
[0013] The USB-to-serial unit 3 includes a CH340G chip, a decoupling circuit, a crystal oscillator circuit, and a USB interface J5. The decoupling circuit consists of capacitors C16 and C17, used to remove power supply noise. The crystal oscillator circuit consists of capacitors C7 and C8, resistor R9, and crystal oscillator Y2, providing a clock for the CH340G chip. The UD+ and UD- terminals of the CH340G chip are connected to the P and N terminals of the USB interface J5, respectively. The XI terminal of the CH340G chip is connected to its X0 terminal through the parallel connection of crystal oscillator Y2 and resistor R9. The XI and X0 terminals of the CH340G chip are grounded through capacitors C8 and C7, respectively. The V3 terminal of the CH340G chip is grounded through capacitor C9. The VCC terminal of the CH340G chip is grounded through capacitor C56. The VCC terminal of the CH340G chip is grounded through capacitors C16 and C17, respectively. The GND terminal of the CH340G chip is grounded. Pins 4, 5, and 6 of the USB interface J5 are all grounded. USB to serial port unit 3 is used for communication between external PC debugging software and the driver.
[0014] The working principle of this utility model is as follows:
[0015] The serial port receives data sent by the host computer. The main control unit 1 receives the configuration command sent by the serial port. The configuration command can configure any key value, any transmission interval time, and can adjust the transmission power. The main control unit 1 configures the encoding according to the configuration command, and the output signal triggers the transistor Q1 to conduct. Then, it is modulated onto the infrared transmission carrier according to the time interval in the configuration command, amplified, and sent out. The light-emitting diode LED1 lights up to indicate that the serial port data is being sent.
[0016] The present invention has been described in detail above. However, modifications or improvements can be made to it, which will be obvious to those skilled in the art. Therefore, any modifications or improvements that do not depart from the spirit of the present invention are within the protection scope of the present invention.
Claims
1. A code generator for an automatic testing station, characterized in that, The system includes a main control unit, a driver unit, a USB-to-serial port unit (J1 and J2 interfaces), and a main control unit consisting of a main control chip U1, a main control chip U2, and an LED indicator circuit. The LED indicator circuit, composed of a light-emitting diode LED1 and a resistor R3, indicates the serial data transmission of the main control unit. Both main control chips U1 and U2 are STC15FW104. The VCC pin of main control chip U1 is grounded through capacitor C1. Pin P3.5 of main control chip U1 is connected to pin P3.5 and then to a 5-pin connector J5. One end of resistor R3 is connected to the VCC pin of main control chip U1, and the other end is connected in series with LED1 and then to the main control chip. The P3.2 pin of chip U1 and the main control chip U2 are connected to each other. The P3.1 pin of the main control chip U1 and the main control chip U2 are connected to the TXD and RXD pins of the USB to serial port unit, respectively. The USB to serial port unit is used to convert between the USB interface and the serial communication interface. The driving unit includes a transistor Q1 and a resistor R2. One end of the resistor R2 is connected to the P3.3 pin of the main control chip U1 and the main control chip U2, respectively. The other end of the resistor R2 is connected to the base of the transistor Q1. The emitter of the transistor Q1 is grounded. The collector of the transistor is connected to the positive terminal of the J2 interface. The positive terminal of the J1 interface and the negative terminal of the J2 interface are connected to the VCC power supply terminal. The negative terminal of the J1 interface is grounded.
2. The code generator for an automatic testing station according to claim 1, characterized in that, The USB-to-serial unit includes a CH340G chip, a decoupling circuit, a crystal oscillator circuit, and a USB interface J5. The decoupling circuit consists of capacitors C16 and C17, used to remove power supply noise. The crystal oscillator circuit consists of capacitors C7 and C8, resistor R9, and crystal oscillator Y2, providing a clock signal to the CH340G chip. The UD+ and UD- terminals of the CH340G chip are connected to the P and N terminals of the USB interface J5, respectively. The XI terminal of the CH340G chip is connected in parallel... The crystal oscillator Y2 and resistor R9 are connected to its X0 terminal. The X1 and X0 terminals of the CH340G chip are grounded through capacitors C8 and C7, respectively. The V3 terminal of the CH340G chip is grounded through capacitor C9. The VCC terminal of the CH340G chip is grounded through capacitor C56. The VCC terminal of the CH340G chip is grounded through capacitors C16 and C17, respectively. The GND terminal of the CH340G chip is grounded. Pins 4, 5, and 6 of the USB interface J5 are all grounded.