Python Forum
Raspberry + RS485 shield | pySerial
Thread Rating:
  • 3 Vote(s) - 2.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Raspberry + RS485 shield | pySerial
#2
Some things come to mind.
Check the protocol on your serial port, you are mainly interested in number of databits
This only matters if the command that triggers the relay uses bit 7 (numbered 0-7)
for any purpose. It is possible to set databits to 7 or 8, with or without parity.

This is only important if the 7th bit is used, in whichcase, set data bits to 8, no parity.

Also, for your edification, hex is just the representstion used.

0101 0101 binary
is the same as 0x55 hex
is the same as 85 decimal.
is the same as 125 octal
...
Reply


Messages In This Thread
Raspberry + RS485 shield | pySerial - by Coada - Feb-24-2017, 12:04 PM
RE: Raspberry + RS485 shield | pySerial - by Larz60+ - Feb-24-2017, 12:32 PM
RE: Raspberry + RS485 shield | pySerial - by Coada - Mar-01-2017, 07:54 AM
RE: Raspberry + RS485 shield | pySerial - by Coada - Apr-13-2017, 01:55 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  help with code for USB-RS485 korenron 3 3,684 Nov-17-2022, 09:04 AM
Last Post: wiseweezer
  Help reading data from serial RS485 korenron 8 14,048 Nov-14-2021, 06:49 AM
Last Post: korenron
Photo Raspberry PI writing to RS485 driver, DIR pin not holding state zazas321 2 2,138 Oct-30-2020, 06:23 AM
Last Post: zazas321

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020