Cache type four-channel RS485 bus concentrator
By designing a cache-type four-channel RS485 bus hub, using multi-channel input RS485 data transmission circuits and independent FIFO buffer areas, combined with microcontroller control and power isolation circuits, the problems of high price and low accuracy of multi-channel data collectors are solved, and the Efficient long-distance data transmission.
Patent Information
- Application Number
- CN202323632003.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-29
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2033-12-29
AI Technical Summary
Existing multi-channel data collectors are expensive, have low accuracy, and the data quality is difficult to guarantee. Moreover, the parallel port interface of the ADC device occupies many processor interfaces, affecting data transmission efficiency.
A cache-type four-channel RS485 bus hub is designed, which uses a multi-channel input RS485 data transmission circuit and an independent FIFO buffer area to realize data collection and transmission through a single-chip microcomputer control circuit, and uses a power isolation circuit and an RS-485 transceiver to improve immunity. Interference ability, supports long-distance signal transmission.
It achieves the correct transmission of data in each channel, improves the anti-interference ability, and the signal can be transmitted over thousands of meters, ensuring the long-distance transmission quality of data.
Smart Images

Figure CN221668282U
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of hubs, in particular to a buffer type four-channel RS485 bus hub. Background Art
[0002] The current multi-channel data acquisition device is usually implemented by a more mature data acquisition card, but it is expensive. The current data acquisition device has low accuracy and the data quality cannot be guaranteed. The parallel port interface of the ADC device in the data acquisition card requires more processor interfaces. Utility Model Content
[0003] The technical problem to be solved by the utility model is to provide a buffer type four-channel RS485 bus hub with good anti-interference ability and realize long-distance data transmission.
[0004] The technical solution adopted by the utility model to solve the above technical problems is: a buffered four-channel RS485 bus hub, comprising:
[0005] RS485 data transmission circuit for multiple inputs, each input RS485 data transmission circuit collects data and transmits the data to the single-chip control circuit, and each input RS485 data transmission circuit is equipped with an independent FIFO buffer area;
[0006] The single-chip microcomputer control circuit receives a start command to make the input RS485 data transmission circuit work to collect and transmit data; the single-chip microcomputer control circuit receives a stop command to make the input RS485 data transmission circuit stop collecting and transmitting data;
[0007] A power supply circuit is used to convert an external power supply into a voltage required by a hub; the power supply circuit is connected to an output RS485 data transmission circuit and a power isolation circuit, and an external power supply is connected to the power supply circuit so that the external power supply supplies power to the output RS485 data transmission circuit and the power isolation circuit;
[0008] Power isolation circuit, used to supply power to the single-chip microcomputer control circuit and the input RS485 data transmission circuit;
[0009] The output uses RS485 data transmission circuit to receive data from the microcontroller control circuit and output it to external devices.
[0010] Preferably, the single chip control circuit adds the channel number to the data collected from each input RS485 data transmission circuit and transmits it to the external device through the output RS485 data transmission circuit, and the number of the input RS485 data transmission circuits is four.
[0011] Preferably, the input RS485 data transmission circuit and the output RS485 data transmission circuit have RS485 chips, the RS485 chips use RS-485 transceivers with integrated electrical isolation, and the RS-485 transceivers use balanced transmission mode and differential reception mode.
[0012] Preferably, each input uses an RS485 data transmission circuit to independently set the communication baud rate.
[0013] Preferably, the maximum acquisition frequency of the RS485 data transmission circuit for each input is 80HZ.
[0014] Preferably, the external device sends commands to the single-chip microcomputer control circuit by outputting an RS485 data transmission circuit.
[0015] Preferably, the cache-type four-channel RS485 bus hub includes an indicator light circuit, which includes LED light 1 and LED light 2. LED light 1 is connected to the power supply circuit to indicate whether the external power supply is connected, and LED light 2 is connected to the single-chip microcomputer control circuit to indicate that the single-chip microcomputer control circuit is in a data transmission state or a non-communication state. The flashing frequency of LED light 2 matches the data transmission rate of the single-chip microcomputer control circuit.
[0016] The beneficial effects of the utility model are as follows: each input RS485 data transmission circuit collects data and transmits the data to the single-chip control circuit, and each input RS485 data transmission circuit is equipped with an independent FIFO buffer area to ensure that the data of each channel is correctly transmitted without interference. Data is transmitted with external equipment through the single-chip control circuit and the output RS485 data transmission circuit.
[0017] The power isolation circuit is used to realize the power isolation of the multi-channel input RS485 data transmission circuit, the single-chip control circuit and other circuits. The input RS485 data transmission circuit and the output RS485 data transmission circuit make the hub have better anti-interference ability, and the signal can be transmitted for thousands of meters, realizing the long-distance transmission of data. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 The utility model is a structural principle diagram of a buffer type four-channel RS485 bus hub. DETAILED DESCRIPTION
[0019] Now the utility model is further described in detail in conjunction with the accompanying drawings and preferred embodiments. These drawings are simplified schematic diagrams, which only illustrate the basic structure of the utility model in a schematic manner, and therefore only show the components related to the utility model.
[0020] like Figure 1As shown, a buffered four-channel RS485 bus hub comprises:
[0021] Multiple input RS485 data transmission circuit, each input RS485 data transmission circuit collects data and transmits the data to the single-chip control circuit, each input RS485 data transmission circuit is equipped with an independent FIFO buffer area to ensure that the data of each channel is correctly transmitted without interference. Specifically, in an optional implementation, each input RS485 data transmission circuit independently sets the communication baud rate. Specifically, in an optional implementation, the maximum acquisition frequency of each input RS485 data transmission circuit is 80HZ. The multiple input RS485 data transmission circuit can simultaneously transmit 80HZ collected data, and transmit data with external devices through the single-chip control circuit and the output RS485 data transmission circuit.
[0022] The single-chip microcomputer control circuit receives a start command to make the input RS485 data transmission circuit work to collect and transmit data; the single-chip microcomputer control circuit receives a stop command to stop the input RS485 data transmission circuit from collecting and transmitting data. Specifically, in an optional implementation, the single-chip microcomputer control circuit adds the channel number to the data collected from each input RS485 data transmission circuit and transmits it to an external device through the output RS485 data transmission circuit. Specifically, in an optional implementation, the number of input RS485 data transmission circuits is four.
[0023] The power supply circuit is used to convert the external power supply into the voltage required by the hub; the power supply circuit is connected to the output RS485 data transmission circuit and the power isolation circuit, and the external power supply is connected to the power supply circuit so that the external power supply supplies power to the output RS485 data transmission circuit and the power isolation circuit.
[0024] The external power supply has an input voltage of 4.5V to 24V; the power supply circuit converts the input voltage of 4.5V to 24V into the 5V voltage required by the hub. The power supply circuit uses a DC-DC power supply chip that can achieve a continuous output current of 3A within a wide voltage input range and adopts a synchronous working mode within the output current load range.
[0025] The power isolation circuit is used to power the single-chip microcomputer control circuit and the input RS485 data transmission circuit. The power isolation circuit is used to isolate another 5V voltage to mainly power the multi-channel input RS485 data transmission circuit and the single-chip microcomputer control circuit. The power isolation circuit uses 4.5~5.5V input and 5V output to achieve power isolation of the multi-channel input RS485 data transmission circuit, the single-chip microcomputer control circuit and other circuits. The power isolation circuit powers the input RS485 data transmission circuit. Figure 1Not shown in the figure, the power isolation circuit can directly supply power to the input RS485 data transmission circuit or supply power to the input RS485 data transmission circuit through the single-chip microcomputer control circuit.
[0026] The output uses RS485 data transmission circuit to receive data from the microcontroller control circuit and output it to external devices.
[0027] The input RS485 data transmission circuit and the output RS485 data transmission circuit have RS485 chips. The RS485 chip uses an RS-485 transceiver with integrated electrical isolation. The RS-485 transceiver adopts a balanced transmission mode and a differential reception mode. The data acquisition environment varies greatly, and it is necessary to find a communication method that has both long-distance transmission and high anti-interference ability. The input RS485 data transmission circuit and the output RS485 data transmission circuit enable the hub to have good anti-interference ability, and the signal can be transmitted for thousands of meters, realizing long-distance data transmission. The interface signal level of the input RS485 data transmission circuit and the output RS485 data transmission circuit is lower than that of RS232, and it is not easy to damage the interface circuit. The input RS485 data transmission circuit is powered by the 5V voltage output after isolation by the power isolation circuit, and the output RS485 data transmission circuit is powered by the 5V voltage directly output by the power supply circuit.
[0028] Specifically, in an optional implementation, the external host computer sends a command to the single-chip control circuit through the output RS485 data transmission circuit. Command processing: The host computer sends a command through the output RS485 data transmission circuit, and the single-chip control circuit receives the start command and sends it to each input RS485 data transmission circuit so that each input RS485 data transmission circuit works to collect and transmit data. When some input RS485 data transmission circuits fail to start normally, the preset number of retries, such as 5 retries, is retried, and the single-chip control circuit returns the information that all are not fully started to the host computer. The single-chip control circuit receives a stop command and sends it to each input RS485 data transmission circuit so that each input RS485 data transmission circuit stops working. When some input RS485 data transmission circuits fail to stop normally, the single-chip control circuit resends the stop command, and waits for all to stop successfully, and the single-chip control circuit returns the information that the stop is successful.
[0029] Specifically, in an optional embodiment, the cached four-channel RS485 bus hub includes an indicator light circuit, which includes LED light 1 and LED light 2. LED light 1 is connected to the power supply circuit to indicate whether the external power supply is connected, and LED light 2 is connected to the microcontroller control circuit to indicate that the microcontroller control circuit is in a data transmission state or a non-communication state. The flashing frequency of LED light 2 matches the data transmission rate of the microcontroller control circuit.
[0030] The above description only describes the specific implementation methods of the utility model. Various examples do not limit the essential content of the utility model. Ordinary technicians in the relevant technical field can modify or deform the specific implementation methods described above after reading the description without departing from the essence and scope of the utility model.
Claims
1. A buffered four-channel RS485 bus hub, characterized in that: include: RS485 data transmission circuit for multiple inputs, each input RS485 data transmission circuit collects data and transmits the data to the single-chip control circuit, and each input RS485 data transmission circuit is equipped with an independent FIFO buffer area; The single-chip microcomputer control circuit receives a start command to make the input RS485 data transmission circuit work to collect and transmit data; the single-chip microcomputer control circuit receives a stop command to make the input RS485 data transmission circuit stop collecting and transmitting data; A power supply circuit is used to convert an external power supply into a voltage required by a hub; the power supply circuit is connected to an output RS485 data transmission circuit and a power isolation circuit, and an external power supply is connected to the power supply circuit so that the external power supply supplies power to the output RS485 data transmission circuit and the power isolation circuit; Power isolation circuit, used to supply power to the single-chip microcomputer control circuit and the input RS485 data transmission circuit; The output uses RS485 data transmission circuit to receive data from the microcontroller control circuit and output it to external devices.
2. The buffered four-channel RS485 bus hub according to claim 1, characterized in that: The single chip control circuit adds the channel number to the data collected from each input RS485 data transmission circuit and transmits it to the external device through the output RS485 data transmission circuit. The number of input RS485 data transmission circuits is four.
3. The buffered four-channel RS485 bus hub according to claim 1, characterized in that: The input RS485 data transmission circuit and the output RS485 data transmission circuit both have RS485 chips. The RS485 chip uses an RS-485 transceiver with integrated electrical isolation. The RS-485 transceiver adopts a balanced transmission mode and a differential reception mode.
4. The buffered four-channel RS485 bus hub according to claim 1, characterized in that: Each input uses RS485 data transmission circuit to independently set the communication baud rate.
5. The buffered four-channel RS485 bus hub according to claim 1, characterized in that: The maximum acquisition frequency of the RS485 data transmission circuit for each input is 80HZ.
6. The buffered four-channel RS485 bus hub according to claim 1, characterized in that: The external device sends commands to the microcontroller control circuit via the output RS485 data transmission circuit.
7. The buffered four-channel RS485 bus hub according to claim 1, characterized in that: It includes an indicator light circuit, which includes LED light 1 and LED light 2. LED light 1 is connected to the power supply circuit to indicate whether the external power supply is connected, and LED light 2 is connected to the single-chip computer control circuit to indicate that the single-chip computer control circuit is in a data transmission state or a non-communication state. The flashing frequency of LED light 2 matches the data transmission rate of the single-chip computer control circuit.
