Python Forum
Serial communication with a board
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Serial communication with a board
#3
Thanks a lot for the reply!

Unofrtunately still don't work, I had tried to insert the parity paramenter on my project but without success.....

from binascii import unhexlify
import serial


stringa = "F5010001010008FC"

port = "COM1"
ser = serial.Serial(port,9600,timeout=0.5)
ser.PARITY_EVEN = 'E'


stringa_byte = unhexlify(stringa)

ser.write(stringa_byte)


out = ser.read(20)
for byte in out:
   print(byte)
Now I don't know what to try Huh
Reply


Messages In This Thread
Serial communication with a board - by Bokka - Dec-06-2017, 02:42 PM
RE: Serial communication with a board - by Bokka - Dec-07-2017, 07:34 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Trying to make a board with turtle, nothing happens when running script Quascia 3 608 Nov-01-2023, 03:11 PM
Last Post: deanhystad
  pyserial/serial "has no attribute 'Serial' " gowb0w 9 3,317 Aug-24-2023, 07:56 AM
Last Post: gowb0w
Photo HOW FIX MY BOARD GAME LAZABI 3 1,435 Apr-01-2022, 04:23 PM
Last Post: BashBedlam
  The game should now run and terminate once the board is full, but still can’t identif rango 0 1,430 Jul-22-2021, 03:24 AM
Last Post: rango
  Enabling interrupt on Adafruits button/led board Moris526 0 1,987 Apr-30-2021, 03:29 PM
Last Post: Moris526
  High-Precision Board Voltage Reading from Python into PD Liam484 1 2,047 Mar-29-2021, 02:57 PM
Last Post: Marbelous
  Interrupt for Adafruits Neotrellis button/led board Moris526 0 1,769 Dec-28-2020, 05:42 AM
Last Post: Moris526
  packet radio communication EmpireAndrew 1 2,154 Nov-01-2019, 06:35 PM
Last Post: micseydel
  WiFi communication Milad 2 2,418 Sep-07-2019, 11:53 AM
Last Post: ndc85430
  Serial communication with raspberry pi 3B and Xbee kj7 0 2,147 Mar-25-2019, 03:39 AM
Last Post: kj7

Forum Jump:

User Panel Messages

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