Skip to content

TechTOnions/RS485-master-liberary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RS485-master-liberary

Making RS485 simpler.

This Library makes everything very simple for establishing an Industrial Standard RS485 Modbus Communication with our ESP32-RS485 Modbus Gateway or any other Arduino compatible board in which you can use TTL to RS485 modules available.

Development Status

Basic Requirement is already set for an Industrial RS485 standards with the Library so that you can directly use the library for your Arduino + RS485 projects.

UART Support

  • Library supports Hardware UART ✅
  • Software Serial Library is also supported ✅
  • Can set different baud rates ✅
  • Data Bit ❌
  • Parity ❌
  • Stop Bit ❌

Direction Control for RS485 Transceivers

  • Any digital pin can be used as the Direction control pin ✅

RS485 Function Code(FC) Supported By Library

  • Read Holding Registers (FC=03)✅
    • read single register✅
    • read multiple register❌
  • Read Input Registers (FC=04)✅
    • read single register✅
    • read multiple register❌
  • Write Single Coil (FC=05)✅
  • Write Single Register (FC=06)✅
  • Read Coil Status (FC=01)❌
  • Read Input Status (FC=02)❌
  • Write Multiple Coils (FC=15)❌
  • Write Multiple Registers (FC=16)❌

Additional Library Features

  • Can generate CRC ✅
  • Validate CRC in receiving packet (Note: if CRC fail you will get -88.88) ✅
  • You can set Timeout from .h file default 1 Sec (Note: if Timeout occurs you will get -99.99) ✅

Repository Contents

  • /examples - Example sketches for the library (.ino). Run these from the Arduino IDE.
  • /src - Source files for the library (.cpp, .h).
  • library.properties - General library properties for the Arduino package manager.
  • LICENSE.md - Library has open source license gpl-3.0
  • keywords.txt - Library Keywords file
  • CODE_OF_CONDUCT.md - Our code of conduct
  • CONTRIBUTING.md - contribution info
  • README.MD

License Information

This Library is open source!

Please review the LICENSE.md file for license information.

If you have any questions or concerns on licensing, please contact techtonions@gmail.com

Distributed as-is. no warranty is given.

About

making RS485 simpler

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages