SoftwareSerial based RS485 tools for sending and receiving data packets, networking and more!
With 3 abstraction layers:
- Sending and receiving packets (half-duplex)
- Data integrity hash check (Pearson Hashing)
- All the basic features
- Networking features (addresses for sender and receiver) up to 254 devices in a single network
- Callbacks for incoming packets
- Set intervals for periodic actions or packet broadcasting
- All the networking and basic features
- Packet topics
- Master and Slave logic roles
- Advanced callbacks for topic data requests and responses handling
- Slave connectivity check functions
RS485 is a TIA/EIA hardware standard for wired communications over long distances and noisy industrial enviroments
- Arduino: UNO, Pro Mini, Nano
- Espressif: ESP8266 (not tested yet)
Is recommended to use PWM digital pins
- RO -> pinRO
- DI -> pinDI
- DE -> pinControl
- RE -> pinControl
// Layer 1 (basic)
RS485Soft rs485(RXpin, TXpin, controlPin);
// Layer 2 (network)
RSNetDevice device(RXpin, TXpin, controlPin);
// Layer 3 (master-slave)
RSMaster master(RXpin, TXpin, controlPin);
RSSlave slave(RXpin, TXpin, controlPin);
For more info about wiring and RS485 module usage, you can read this doc
See the examples folder for a detalied explaination and use cases
Gmail: rdalzotto@itba.edu.ar