From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <9dd7dcc8bad9e422d7d6e8d8f6dc20c3@hamnavoe.com> References: <9dd7dcc8bad9e422d7d6e8d8f6dc20c3@hamnavoe.com> From: =?UTF-8?B?0J7Qu9C10LMg0JHQsNGF0LDRgNC10LI=?= Date: Tue, 14 Aug 2018 19:36:10 +0300 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary="000000000000c6a074057367ce29" Subject: Re: [9fans] How read data from USB-device ? Topicbox-Message-UUID: da0f300e-ead9-11e9-9d60-3106f5b1d025 --000000000000c6a074057367ce29 Content-Type: text/plain; charset="UTF-8" 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) > > > --000000000000c6a074057367ce29 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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.=C2=A0 = 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
=C2=A0 echo b9600 >/dev/eiaU?/eiaUctl
and then you can receive data with
=C2=A0 cat /dev/eiaU?/eiaU
or set up an interactive conversation, as Steve Simon suggested, with
=C2=A0 con /dev/eiaU?/eiaU

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



--000000000000c6a074057367ce29--