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: Tue, 14 Aug 2018 19:36:10 +0300	[thread overview]
Message-ID: <CALp9=oKnezbF0VmqaxASk=R3g5X5=pX=vfM4Zggq6edMoWiHaw@mail.gmail.com> (raw)
In-Reply-To: <9dd7dcc8bad9e422d7d6e8d8f6dc20c3@hamnavoe.com>

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

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: 1114 bytes --]

  reply	other threads:[~2018-08-14 16:36 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             ` Олег Бахарев [this message]
2018-08-15 23:03               ` Олег Бахарев
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=oKnezbF0VmqaxASk=R3g5X5=pX=vfM4Zggq6edMoWiHaw@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).