/rs485-communicator

An arduino library to synchronize serial communication over RS485 Bus

Primary LanguageC++GNU General Public License v3.0GPL-3.0

NOTE: repository & library under development (19-01-2019)

Code not ready for usage

RS485-communicator

RS485-comminicatoris a serial synchronization library for master to multi-slave communication designed to work on a RS485 bus. The main purposes of this library are:

  • Organize serial data transfer in order to avoid collisions when multiple devices uses the same shared medium (like a RS485 bus). This is done by a token-driven logic.
  • Message integrity in order to detect when errors occurs during transmission. This is done by crc8 checks

Wiki

More informations can be found in the wiki pages:

Wiki home

Synchronization protocol & frame structure

Classes methods

Tuning the token return timeout value

RS485 transceivers

Circuit sample & cables

Samples

See Samples folder in the source code directory for a quick review on both Master and slave implementations.

License

This library is distribuited under GPLv3. See GPLv3 disclaimer.