From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <9dd7dcc8bad9e422d7d6e8d8f6dc20c3@hamnavoe.com> From: =?UTF-8?B?0J7Qu9C10LMg0JHQsNGF0LDRgNC10LI=?= Date: Thu, 16 Aug 2018 02:03:20 +0300 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary="0000000000002dfd400573815548" Subject: Re: [9fans] How read data from USB-device ? Topicbox-Message-UUID: da976b9a-ead9-11e9-9d60-3106f5b1d025 --0000000000002dfd400573815548 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 =D0=9E=D0=BB=D0=B5=D0=B3 =D0=91=D0=B0=D1=85=D0= =B0=D1=80=D0=B5=D0=B2 : > 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/seria= l >> >> 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) >> >> >> > --0000000000002dfd400573815548 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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 w=
ith the program itself.
Are there any ideas how to tackle the problem?


2018-= 08-14 19:36 GMT+03:00 =D0=9E=D0=BB=D0=B5=D0=B3 =D0=91=D0=B0=D1=85=D0=B0=D1= =80=D0=B5=D0=B2 <disconnectix@gmail.com>:
Thanks ! It's really works !=


2018-08-14 15:16 GMT+03:00 Rich= ard Miller <9fans@hamnavoe.com>:
> mk: don't know how to make 'acm.h' in direct= ory /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)




--0000000000002dfd400573815548--