JM 3/19/2019 The following worked for me on a Lenovo Yoga Tab 3, running Androwish
set dev [lindex [usbserial] 0] set fh [usbserial $dev]
Instead of:
set fh [open $comPort RDWR]
Screenshot:
JM 3/23/2019 - Here a SerPortChat between Tablet with Androwish and PC running ubuntu
This is an old desktop PC with legacy DB9 serial port, here is how they were connected:
PC - Null_Modem_Cable - USB_to_RS232 - USB_OTG - Tablet
Only a few changes were needed on the Androwish version:
jorge@jorge-nga:~/tclCode$ diff SerPortChat.tcl AWSerPortChat.tcl
4c4
< image create photo img-icone -file app.png
---
> #image create photo img-icone -file app.png
87c87
< ttk::label .about.fond.i -image img-icone -anchor n
---
> ttk::label .about.fond.i -text img-icone -anchor n
175c175,178
< if {![catch "open $::comport r+" ::tty]} {
---
> set dev [lindex [usbserial] 0]
> # set fh [usbserial $dev]
>
> if {![catch "usbserial $dev" ::tty]} {PC Screenshot:
Tablet Screenshot: