Python Forum
Serial toggles serial, but no data
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Serial toggles serial, but no data
#1
Hi,


I can't figure out the problem here? I got a toggle on my serial bus Teensy 3.2. But no data?


import time
import serial

# configure the serial connections (the parameters differs on the device you are connecting to)

ser = serial.Serial('COM10',115200,timeout = None)
print (ser)

print ("Sleeping")
time.sleep(0.5)
print ("Awake")

ser.write(32)


print ("EOF")
Regards,
Reply
#2
32 is the decimal value for ascii space, so i wouldn't expect to see anything, try 65 which is 'A'
Reply
#3
(Sep-08-2019, 02:17 AM)Larz60+ Wrote: 32 is the decimal value for ascii space, so i wouldn't expect to see anything, try 65 which is 'A'


It's passing integers, so theres not much to go wrong. Everything works when using a console or the serial monitor?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Errors in serial data Joni_Engr 4 7,236 Dec-13-2021, 07:05 PM
Last Post: Bicarbonaat
  Python 3 Serial communication need help jegatheesans 0 1,598 Mar-16-2020, 05:37 AM
Last Post: jegatheesans
  Serial port monitor federicomassimi 1 2,063 Jan-15-2020, 12:22 PM
Last Post: buran
  How to: Serial Epilepsy 3 3,226 Nov-10-2018, 10:52 PM
Last Post: Larz60+
  Serial communication Isabelle94 3 3,457 Sep-28-2018, 10:23 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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