Skip to content

dukelec/cdbus_doc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Preface

We create the CDBUS protocol and the world first controller for RS485 peer-to-peer communication, which is very simple, and solves the most common and most headache problem that RS485 has been facing for a long time. We open source it and hope that more people will benefit from it.

Open source, ultra-simple RS485 peer-to-peer communication - CDBUS (video-capable)

Simple:

  • The most simple protocol, it works at a glance;
  • Trivial tasks are taken over by hardware, save your time and CPU usage;
  • With the upper layer CDNET protocol stack, it can automatically handle flow control, integrity, data fragment and etc, and can also set up multiple networks (CDNET is a compact, real-time, efficient upper layer protocol for CDBUS).

Common:

  • CDBUS based on the most common Asynchronous Serial Communication, can be used for bus or ordinary serial communication;
  • Use standard RS485 interface chip and circuit (This is the most used scenario, other scenarios include single-wire serial bus);
  • Backward compatible with traditional RS485 hardware;
  • With CDNET-TUN tools, protocols such as IPv4/v6 can be supported to facilitate IoT applications and connect seamlessly to various wired and wireless networks.

Flexible:

  • Support multi-host, concurrent read and write, multicast, broadcast, free reporting and etc;
  • Hot-swappable, for example, arm end tools can be replaced automatically.

Efficient:

  • Basic stand-alone controller CDCTL-Bx supports 10Mbps rate (Exchange data between controller and CPU could through 20MHz SPI interface with DMA) (There is also a 40Mbps version available);
  • Simultaneous reading and writing: The host continuously issues commands to multiple devices, and then continuously receives responses, avoid that the delay of the command is amplified by N times the number of devices in traditional RS485;
  • Video transmission and motion control can use a single bus to avoid complicated wiring problems (Recommended for visual processing on the camera side, video transmission is only for preview so that more video can be transmitted);
  • High synchronization: Synchronizes the operation of each node by broadcasting at the speed of light (There is no forwarding delay like EtherCAT and it avoids the complicated synchronization problems).

Safe:

  • Use hardware controllers to avoid bus faults due to software bugs;
  • High real-time performance: Because of the guarantee of priority, you can even use the rest of your bandwidth to listen to music and watch videos while in industrial control;
  • Support multiple hosts: Host failure can be seamlessly switched to standby host, without delaying production or even avoiding accidents.

Open:

  • The IP core is open source, you can use it freely in FPGA;
  • Open source debugging tools, libraries, and sample projects are all available.

Applications

Petroleum Exploration, Coal Mining, Robotics, Robotic Arms, Autopilot, Medical Instruments, Industrial Automation, Smart Home ...

Demos

RS485 Prevent Fake Cat Invasion (Peer-to-peer network video surveillance)

cv_demo

Full video:

The Raspberry Pi can output preview video and control command at the same time. We can monitor the recognition process on the PC. When problems are encountered, it is convenient to know the reason and adjust the parameters, and disconnecting the PC will not affect the demo operation.

cv_demo

The human head shape board above the Raspberry Pi is a solderless socket board for CDCTL-Bx. It uses our CDBITE connection method: Bite the module with the probe.

The demo uses CDNET-TUN to set up a standard LAN, which allows video transmission without writing any code. And for controlling the slider, such as programming in Python via standard Socket communication, requires only 4 lines of code including the import statement, to control its movement and ensure that the command is delivered accurately. In addition, the Raspberry Pi can access the internet at any time through the PC, and it is easy to update software and for remote control.

However, for applications where high real-time performance is required, both the PC and the MCU can use the underlying CDNET protocol stack directly, which is very convenient to use.

Virtual Serial Port (Multiple devices on one bus)

The following methods can greatly simplify the connection of the equipments, support any protocol and do not need to modify the host software: virtual_serial_port

The demo is also based on the CDNET protocol, so controlling the motor and accessing the Internet is not a problem while the serial port is being transparently transmitted.

You can also transparently transmit serial data through pure hardware without additional software: transparent_transmission

Product List

  • CDCTL-Bx module (I2C/SPI basic type) (There are also blank modules available)
  • CDCTL-Bx-Socket (Solderless socket board)
  • CDBUS-Bridge
  • CDCTL-Hx (SPI high speed type)
  • Booking: CDCTL-Px (M-PCIe type)
  • Contact Us: http://dukelec.com/en/#contact

Data Link

About

Introduce to the CDBUS (Advertising, please ignore.)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published