This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Example code for driving the Sainsmart 16-Channel 9-36V USB Relay Module (Product 101-70-208) | |
Documents for this module were found at: | |
https://s3.amazonaws.com/s3.image.smart/download/101-70-208/101-70-208.zip | |
The protocol appears to be MODBUS ASCII: | |
https://en.wikipedia.org/wiki/Modbus#Protocol_versions |