9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Олег Бахарев" <disconnectix@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] How read data from USB-device ?
Date: Thu, 16 Aug 2018 02:03:20 +0300	[thread overview]
Message-ID: <CALp9=oKBUZ1PWAw5D6kpKXeGryu=vXuCDRHbS6j6Ko12-wRJ8g@mail.gmail.com> (raw)
In-Reply-To: <CALp9=oKnezbF0VmqaxASk=R3g5X5=pX=vfM4Zggq6edMoWiHaw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1151 bytes --]

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)
>>
>>
>>
>

[-- Attachment #2: Type: text/html, Size: 2192 bytes --]

  reply	other threads:[~2018-08-15 23:03 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-13 22:45 Олег Бахарев
2018-08-14  7:45 ` Steve Simon
2018-08-14  7:54 ` Richard Miller
2018-08-14  8:32   ` Олег Бахарев
2018-08-14  9:46     ` Richard Miller
2018-08-14 11:09       ` Олег Бахарев
2018-08-14 11:19         ` Олег Бахарев
2018-08-14 12:16           ` Richard Miller
2018-08-14 16:36             ` Олег Бахарев
2018-08-15 23:03               ` Олег Бахарев [this message]
2018-08-16 11:26                 ` Richard Miller
2018-08-16 12:50                   ` Олег Бахарев
2018-08-16 13:00                     ` Олег Бахарев

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CALp9=oKBUZ1PWAw5D6kpKXeGryu=vXuCDRHbS6j6Ko12-wRJ8g@mail.gmail.com' \
    --to=disconnectix@gmail.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).