A basic library for RS485 communication

Dependencies:   BufferedSerial

Dependents:   mbed_blinko

Embed: (wiki syntax)

« Back to documentation index

RS485.h File Reference

RS485.h File Reference

RS485 protocol - using half duplex method. More...

Go to the source code of this file.

Data Structures

class  RS485
 RS485 Library. More...

Detailed Description

RS485 protocol - using half duplex method.

Author:
Aaron Allar
Version:
1.0
See also:

based on this method https://www.gammon.com.au/forum/?id=11428

Can send from 1 to 255 bytes from one node to another with:

Packet start indicator (STX) Each data byte is doubled and inverted to check validity Packet end indicator (ETX) Packet CRC (checksum)

Definition in file RS485.h.