Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send messages to serial USB terminal (Android app) #395

Open
Qlexio opened this issue Jan 27, 2025 · 0 comments
Open

Send messages to serial USB terminal (Android app) #395

Qlexio opened this issue Jan 27, 2025 · 0 comments

Comments

@Qlexio
Copy link
Owner

Qlexio commented Jan 27, 2025

Hello,

I'm trying to send messages to an android app called Serial USB Terminal. I'm using the following code to write a message:

import serial

ser = serial.Serial(port='/dev/cu.usbserial-1130', 
                    baudrate=19200, 
                    bytesize=serial.EIGHTBITS, 
                    parity=serial.PARITY_NONE, 
                    stopbits=serial.STOPBITS_ONE, 
                    timeout=1, 
                    xonxoff=False, 
                    rtscts=False, 
                    write_timeout=30, 
                    dsrdtr=False, 
                    inter_byte_timeout=None, 
                    exclusive=None)

if ser.is_open:
    ser.open()

print(ser.write("test".encode()))

ser.flush()

ser.close()

The issue is that the messages doesn't appear on the app terminal, like nothing is being received. I leave here some screenshots of the app:
image
image

I've already tried on a M1 as well as on a Windows 11 machine with no luck whatsoever.
Thanks


This issue has been cloned from: pyserial#762

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant