I encountered some problem: there is a trivial program on Go that writes to the files / dev / eiaU4 / eiaUctl and / dev / eiaU the control parameters and data respectively. But in fact the records are not produced at all, it is known that this has nothing to do with the program itself.
Are there any ideas how to tackle the problem?


2018-08-14 19:36 GMT+03:00 Олег Бахарев <disconnectix@gmail.com>:
Thanks ! It's really works !


2018-08-14 15:16 GMT+03:00 Richard Miller <9fans@hamnavoe.com>:
> mk: don't know how to make 'acm.h' in directory /sys/src/cmd/usb/serial

Sorry, I thought that was already in the distributed version.  I've updated
the serial.tar file, so it should be complete now if you try again.

> And how do I read data (if possible, not through C)?

Set the baud rate with
  echo b9600 >/dev/eiaU?/eiaUctl
and then you can receive data with
  cat /dev/eiaU?/eiaU
or set up an interactive conversation, as Steve Simon suggested, with
  con /dev/eiaU?/eiaU

More information is in the manual - uart(3), usb(4), con(3)