Python Forum
Help reading data from serial RS485
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help reading data from serial RS485
#3
so what do I need to do?
what do I need to to make it work ?
change something in the send code?
the sender is using python2 and the receiver use python3

now I'm sending only this:
send.write(bytes('test\r\n'))
and I get this
b'\xbe\x1b\xff'
b'\xbb\x1b\xfe'
b'\xbb\x1b\xfe'
b'\xbb\x1b\xfe'
b'\xbb\x1e\xfe'
b'\xbb\x1b\xfe'
b';\x1b\xff'
b'\xbe\x1b\xff'
b';\x1a\xfe'
b'\xbb\x1b\xfe'
b'\xbb\x1b\xfe'
so I'm getting bytes - but how do I get from this the work 'test'? (which I have sent )?

I assume it's something very easy to do ?

Thanks,
Reply


Messages In This Thread
Help reading data from serial RS485 - by korenron - Nov-10-2021, 02:24 PM
RE: Help reading data from serial RS485 - by korenron - Nov-11-2021, 07:29 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  pyserial/serial "has no attribute 'Serial' " gowb0w 9 4,907 Aug-24-2023, 07:56 AM
Last Post: gowb0w
Star Pyserial not reading serial.readline fast enough while using AccelStepper on Arduino MartyTinker 4 4,251 Mar-13-2023, 04:02 PM
Last Post: deanhystad
  Reading All The RAW Data Inside a PDF NBAComputerMan 4 1,430 Nov-30-2022, 10:54 PM
Last Post: Larz60+
  help with code for USB-RS485 korenron 3 3,765 Nov-17-2022, 09:04 AM
Last Post: wiseweezer
  Reading Data from JSON tpolim008 2 1,143 Sep-27-2022, 06:34 PM
Last Post: Larz60+
  Help with WebSocket reading data from anoter function korenron 0 1,366 Sep-19-2021, 11:08 AM
Last Post: korenron
  Fastest Way of Writing/Reading Data JamesA 1 2,241 Jul-27-2021, 03:52 PM
Last Post: Larz60+
  Reading data to python: turn into list or dataframe hhchenfx 2 5,471 Jun-01-2021, 10:28 AM
Last Post: Larz60+
  Reading data from mysql. stsxbel 2 2,260 May-23-2021, 06:56 PM
Last Post: stsxbel
  reading canbus data as hex korenron 9 6,421 Dec-30-2020, 01:52 PM
Last Post: korenron

Forum Jump:

User Panel Messages

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