Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Decoding a serial stream
Post: RE: Decoding a serial stream

Ha! What is being sent is what I'm trying to figure out. Unfortunately I don't have a clue. It's a solar charger controller with a uart output. I'm trying to decode the stream so I can determine ...
AKGentile1963 General Coding Help 7 8,510 Mar-20-2021, 06:30 PM
    Thread: Decoding a serial stream
Post: RE: Decoding a serial stream

Thank you for that explanation. I have used your code as a test. And I have added the decode. The decoded output simply removes the leading "b" and the single quote marks from either end. It didn'...
AKGentile1963 General Coding Help 7 8,510 Mar-20-2021, 04:33 PM
    Thread: Decoding a serial stream
Post: RE: Decoding a serial stream

(Mar-20-2021, 03:31 PM)deanhystad Wrote: b’\t\x9c\x1d\xc8LX\t\xfdXh\t\xbf\x1e\x8a^X{|\xbe\x85’ is a bytearray. When you print a bytearray it displays ascii characters when possible, or it uses hexa...
AKGentile1963 General Coding Help 7 8,510 Mar-20-2021, 04:30 PM
    Thread: Decoding a serial stream
Post: Decoding a serial stream

Hi, I am trying to read a UART serial stream, and the data comes in as hex (I think). I’m not actually sure. Below is a short snippet of what I am getting. b’\t\x9c\x1d\xc8LX\t\xfdXh\t\xbf\x1e\x8a^X...
AKGentile1963 General Coding Help 7 8,510 Mar-20-2021, 03:04 PM

User Panel Messages

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