Python Forum
Serial toggles serial, but no data - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Networking (https://python-forum.io/forum-12.html)
+--- Thread: Serial toggles serial, but no data (/thread-20943.html)



Serial toggles serial, but no data - Saltwater - Sep-07-2019

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,


RE: Serial toggles serial, but no data - Larz60+ - Sep-08-2019

32 is the decimal value for ascii space, so i wouldn't expect to see anything, try 65 which is 'A'


RE: Serial toggles serial, but no data - Saltwater - Sep-08-2019

(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?