Python Forum
[PyQt] Sending 4 bytes Hex data over serial in PyQt
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyQt] Sending 4 bytes Hex data over serial in PyQt
#1
Hi,

I would like to send 4 Bytes of Hex data over serial to a microcontroller which are being received from GUI in PyQt5.
For example, consider the first two bytes received as characters 'a' and 'b' while the remaining two bytes as integers and I would like to send all the 4 bytes as Hex values over serial. Kindly help.

firstByte = 'a'
secondByte = 'b'
thirdByte = 100
fourthByte = 120


Thanks in advance,
gratna
Reply


Messages In This Thread
Sending 4 bytes Hex data over serial in PyQt - by gratna - Oct-28-2019, 01:52 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] Serial Port data readout macellan85 3 7,946 Jun-19-2020, 12:32 PM
Last Post: deanhystad
  Read Data from Serial port PA3040 2 3,013 Feb-25-2020, 04:13 PM
Last Post: Denni

Forum Jump:

User Panel Messages

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