All Projects → dukelec → cdbus_bridge

dukelec / cdbus_bridge

Licence: MIT license
UART to RS485 adapter for CDBUS, or pass-through raw data of UART port

Programming Languages

c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to cdbus bridge

cdnet
CDNET Protocol and CDBUS / CDNET C Library (The library is MCU-oriented.)
Stars: ✭ 67 (+272.22%)
Mutual labels:  rs485, rs-485, cdbus, cdnet
cdbus gui
Serial / CDBUS / CDNET GUI Tool
Stars: ✭ 41 (+127.78%)
Mutual labels:  rs-485, cdbus, cdnet
stepper motor controller
CD-MDRV-STEP Stepper motor controller
Stars: ✭ 29 (+61.11%)
Mutual labels:  cdbus, cdnet
Home Assistant EDP Box
Integração das EDP Box com Home Assistant Core
Stars: ✭ 91 (+405.56%)
Mutual labels:  rs485
part5
IEC 60870-5 — transmission protocols
Stars: ✭ 37 (+105.56%)
Mutual labels:  rs485
pi485
An open-source TTL UART <-> RS485 converter, intended for a Raspberry Pi or Arduino
Stars: ✭ 29 (+61.11%)
Mutual labels:  rs485
GoodWeLogger
ESP8266 based logger for GoodWe inverters. Can upload to pvoutput and publishes MQTT topics
Stars: ✭ 79 (+338.89%)
Mutual labels:  rs485
tinnymodbus
RS485 ModBus tiny multi-sensor module
Stars: ✭ 75 (+316.67%)
Mutual labels:  rs485
ABB Aurora Solar Inverter Library
Arduino, esp32 and esp8266 library for ABB (ex PowerOne) Aurora Inverter, implement a full methods to retrieve data from the Inverter via RS-485
Stars: ✭ 22 (+22.22%)
Mutual labels:  rs485
rs485-moist-sensor
Digital (RS485 - based) soil moisture and temperature sensor
Stars: ✭ 51 (+183.33%)
Mutual labels:  rs485
chpc
CHPC: Cheap Heat Pump Controller
Stars: ✭ 27 (+50%)
Mutual labels:  rs-485
lwpkt
Lightweight packet protocol structure for multi-device communication focused on RS-485
Stars: ✭ 71 (+294.44%)
Mutual labels:  rs-485
Tinyusb
An open source cross-platform USB stack for embedded system
Stars: ✭ 2,257 (+12438.89%)
Mutual labels:  usb-cdc
FPGA-USB-Device
FPGA-based USB-device controller to implement USB-CDC, USB-HID, etc.
Stars: ✭ 29 (+61.11%)
Mutual labels:  usb-cdc
usbip
A Rust library to run a USB/IP server
Stars: ✭ 91 (+405.56%)
Mutual labels:  usb-cdc

CDBUS Bridge

cdbus_bridge

The CDBUS Bridge is a USB virtual serial port to RS485 converter by default, and the RS485 packets are in CDBUS format.

  • The USB serial communication rate is not affected by the selected baud rate, and the specified baud rate is ignored when the USB serial port is opened.
  • RS485 baud rate needs to be configured using the CDBUS GUI tool, since the hardware supports dual baud rate mode, the baud rate specified when opening the USB serial port is not used.
  • RS485 baud rate can be temporarily set to 115200 single-rate mode via S2 of the left switch to facilitate quick connection to devices with default baud rate.
  • S1 of the left switch switches bootloader and app mode and off to app mode.
  • 2 RS485 ports internal straight-through, for easy wiring.
  • The right switch S1 is the pull-up enable on the A wire of RS485, S2 is the termination resistor enable between AB, S3 is the pull-down enable on the B wire, and S4 is the USB to external power enable switch.

bridge_mode

GUI Configuration

CDBUS GUI Tool: https://github.com/dukelec/cdbus_gui

When configuring the Bridge as the target, do not select the CDBUS Bridge selection box, set the local MAC to 0xaa and the target address to 80:00:55.



After modifying the configuration, write 1 to save_conf to save the configuration to flash.

If you need to restore the default configuration, change magic_code to another value and save it to flash. Then reapply power.

Download Source Code

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

Test

Prepare

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

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

cd sw/cdbus_tools/
./cdbus_terminal.py --help
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].