Python Forum
send hexadecimal package variable UART
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
send hexadecimal package variable UART
#2
Are you trying to send string (ascii) representations or are you trying to send byte values?

To send a ten, do you want to send a numeric 10, or an ascii "1" followed by an ascii "0"?

The "output" you show above is a bytes object (so numeric), while you have hex() calls all over your code which is creating strings.
Reply


Messages In This Thread
RE: send hexadecimal package variable UART - by bowlofred - Oct-30-2020, 04:25 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  UART write binary code trix 3 381 Apr-28-2024, 04:57 PM
Last Post: deanhystad
  UART & I2C slow down a loop trix 4 702 Dec-28-2023, 05:14 PM
Last Post: trix
  How to clean UART string Joni_Engr 4 2,572 Dec-03-2021, 05:58 PM
Last Post: deanhystad
  checking for valid hexadecimal digits Skaperen 3 6,544 Sep-02-2021, 07:22 AM
Last Post: buran
  UART Serial Read & Write to MP3 Player Doesn't Work bill_z 15 5,967 Jul-17-2021, 04:19 PM
Last Post: bill_z
  wrong data reading on uart fahri 6 3,451 Sep-29-2020, 03:07 PM
Last Post: Larz60+
  decimal or hexadecimal digits to int Skaperen 3 4,228 Sep-26-2017, 07:03 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

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