Serial port three-state switching value output board

By designing a serial port three-state switching output board, using the MCU to drive the relay group and communicating with the host computer through the level conversion chip, the problems of high cost and short-circuit risk in the existing technology have been solved, and a low-cost, high-reliability three-state switch has been achieved. Switching output.

CN221746459UActive Publication Date: 2024-09-20XIAN HECAI INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202420108474.7
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-01-17
Publication Date
2024-09-20
Estimated Expiration
2034-01-17

AI Technical Summary

Technical Problem

Among the existing three-state switching output solutions, the PCI/PXI e hardware cost is high and the scalability is poor. The traditional serial port relay solution can easily lead to short circuits and complicate user operations.

Method used

A serial port three-state switching output board is designed, using MCU (STM32F407) to drive the relay group, and communicates with the host computer through the level conversion chip, using the bus + address encoding method to avoid the risk of short circuit.

Benefits of technology

It realizes a low-cost, high-reliability and easy-to-upgrade and expand three-state switching output, which improves the safety of the system and the convenience of user operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN221746459U
    Figure CN221746459U
Patent Text Reader

Abstract

The utility model discloses a serial port three-state switching value output board, comprising an MCU, a relay group and a level conversion chip, the MCU is connected with the relay group through a driving chip, the MCU is connected with the level conversion chip, and the MCU is also connected with an address setting button; the number of the level conversion chips is two, and the level conversion chips correspond to an RS232 serial port and an RS485 serial port respectively. The beneficial effects are that compared with traditional PC I, PX I and PXI e, the board card employs the MCU with high cost performance, and the cost advantage is obvious; a working mode of bus and address coding is adopted, so that a user can carry out seamless upgrading and expansion on the system conveniently; compared with a mode of controlling a traditional relay through an upper computer, the scheme avoids the possibility of short circuit caused by mistakenly controlling the relay by a user in design, and the reliability is higher.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the technical field of automatic control, in particular to a serial port three-state switch quantity output board. Background Art

[0002] At present, there are two main mature technical solutions for three-state switch output in the industry: 1. Using a three-state switch output card based on the PCI / PX I / PXI e bus; 2. Using a traditional serial port relay card to provide three-state switch output by connecting cables outside the board and cooperating with the host computer software to control the relevant relay actions.

[0003] The above two output methods have the following shortcomings in actual use: 1. PCI, PXI, and PXI e hardware are expensive, and the number of PCI slots on the motherboard and the slots on the PXI chassis are limited. For budget-sensitive applications or scenarios that require system scalability, this solution is difficult to implement; 2. The related relays of the board are connected through external cables, and the timing of the relay's closure needs to be controlled by the host computer software. Users need additional preparation work when using it, and it is easy to cause a short circuit due to improper software control timing. Utility Model Content

[0004] The purpose of the present invention is to provide a serial port three-state switch output board in order to solve the above problems. The preferred technical solution among the many technical solutions provided by the present invention has the following technical effects: low cost, convenient upgrade, high reliability, etc., as described below for details.

[0005] In order to achieve the above purpose, the utility model provides the following technical solutions:

[0006] The utility model provides a serial port three-state switch quantity output board, comprising an MCU, a relay group and a level conversion chip, wherein the MCU is connected to the relay group through a driving chip, the MCU is connected to the level conversion chip, and the MCU is also connected to an address setting button;

[0007] The level conversion chips are provided with two, corresponding to the RS232 and RS485 serial ports respectively.

[0008] Preferably, the MCU is STM32F407.

[0009] In summary, the beneficial effects of the utility model are: 1. Compared with traditional PCI, PXI and PXI e, this board adopts a cost-effective MCU, which has obvious cost advantages;

[0010] 2. The bus + address coding working mode is adopted to facilitate users to seamlessly upgrade and expand the system;

[0011] 3. Compared with the method of controlling traditional relays through a host computer, this solution avoids the possibility of short circuit caused by users' mistaken control of relays in design, and is more reliable. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] In order to more clearly illustrate the embodiments of the utility model or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the utility model. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0013] Figure 1 It is the control principle diagram of the utility model;

[0014] Figure 2 It is the principle diagram of the output control circuit of the utility model.

[0015] The following are the descriptions of the reference numerals:

[0016] 1. Relay group; 2. Driver chip; 3. MCU; 4. Level conversion chip; 5. Address setting button. DETAILED DESCRIPTION

[0017] In order to make the purpose, technical solution and advantages of the utility model clearer, the technical solution of the utility model will be described in detail below. Obviously, the described embodiments are only part of the embodiments of the utility model, not all of the embodiments. Based on the embodiments of the utility model, all other implementation methods obtained by ordinary technicians in this field without creative work belong to the scope of protection of the utility model.

[0018] See also Figure 1-Figure 2 As shown, the utility model provides a serial port three-state switch quantity output board, including an MCU, a relay group and a level conversion chip. The MCU is STM32F407. This controller is equipped with a rich set of on-chip peripherals. This product uses the chip's GPIO and USART. Among them, USART communicates with the host computer through RS232 / RS485 after the level conversion chip, controls the output state of each GPIO according to the serial port instruction of the host computer, and then controls the action of each relay to output the corresponding signal level. The MCU is connected to the relay group through a driver chip, and the MCU is connected to the level conversion chip. The MCU is also connected to an address setting button;

[0019] The level conversion chip is equipped with two, corresponding to RS232 and RS485 serial ports respectively, and adopts a dual serial port design, in which the RS232 interface is suitable for point-to-point communication, while the RS485 is suitable for bus communication; the serial port reception adopts the "interrupt + DMA" method, which can adapt to the reception scenario of large data volume messages. After the product completes the relevant operations according to the host computer instructions, the execution results are fed back to the host computer through the serial port through the DMA method.

[0020] like Figure 2 As shown in the figure, when high or low level output is required, first operate the U7A relay to control the level state of the signal (high or low), and then control the U5A relay to output the level signal. Through the U7A relay, the external power supply can be prevented from short-circuiting when the relay is switched. When the high impedance state is required, just reset the U5A relay.

[0021] When working in multi-board cascade mode through RS485 interface, the communication address of the board is set through the address dial on the board. The host computer specifies the address of the board to be operated in the serial communication message, and then a "1 master and multiple slaves" working mode can be established.

[0022] With the above structure, compared with traditional PCI, PXI and PXI e, this board adopts a cost-effective MCU with obvious cost advantages; the bus + address coding working mode is adopted, which is convenient for users to seamlessly upgrade and expand the system; compared with the method of controlling traditional relays through the host computer, this solution avoids the possibility of short circuit caused by user's mistaken control of relays in design, and has higher reliability.

[0023] The above is only a specific implementation of the utility model, but the protection scope of the utility model is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the utility model, which should be included in the protection scope of the utility model. Therefore, the protection scope of the utility model should be based on the protection scope of the claims.

Claims

1. A serial port three-state switch output board, characterized in that: It includes an MCU, a relay group and a level conversion chip, wherein the MCU is connected to the relay group via a driving chip, the MCU is connected to the level conversion chip, and the MCU is also connected to an address setting button; The level conversion chips are provided with two, corresponding to the RS232 and RS485 serial ports respectively.

2. A serial port three-state switch output board according to claim 1, characterized in that: The MCU is STM32F407.