Skip to content

UART to RS485 adapter for CDBUS, or pass-through raw data of UART port

Notifications You must be signed in to change notification settings

NikolaDi/cdbus_bridge

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CDBUS Bridge

cdbus_bridge

cdbus_bridge_pcb

CDBUS Bridge has two types of communication ports, which are 3 serial ports and 2 RS485 ports:

  • Only one of the three serial ports will be in use at the same time. Inserting USB will switch over to the configuration-free USB serial port (the communication rate will not be affected by the selected baud rate);
  • The two RS485 ports are internally connected for easy wiring (or pull up, pull down, and termination resistors).

The CDBUS Bridge has two modes, which are selected by the switch:

Bridge Mode (Serial to RS485)

bridge_mode

Raw Mode (Serial passthrough)

raw_mode

Download

git clone --recurse-submodules https://github.com/dukelec/cdbus_bridge.git

Prepare

  • Linux: pip3 install pycrc pyserial
  • Mac: pip3 install readline pycrc pyserial
  • Windows: pip3 install pyreadline pycrc pyserial

Test

Please refer scripts' --help message and the Readme.md under sw/ folder, e.g.:

cd sw/cdbus_tools/
./cdbus_terminal.py --help

Note: The default is 3 seconds for bootloader mode on power-on. The status light will flash when it jumps to the main program. Please use the relevant script tool (except IAP) after this.

About

UART to RS485 adapter for CDBUS, or pass-through raw data of UART port

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • C 96.6%
  • C++ 2.8%
  • Other 0.6%