9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Richard Miller <9fans@hamnavoe.com>
To: 9fans@9fans.net
Subject: Re: [9fans] How read data from USB-device ?
Date: Tue, 14 Aug 2018 13:16:56 +0100	[thread overview]
Message-ID: <9dd7dcc8bad9e422d7d6e8d8f6dc20c3@hamnavoe.com> (raw)
In-Reply-To: <CALp9=oKB0xs72x9bRKoSBr8Dqe_E42ezBYbih6MWF8tkDk1SqQ@mail.gmail.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)




  reply	other threads:[~2018-08-14 12:16 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 [this message]
2018-08-14 16:36             ` Олег Бахарев
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=9dd7dcc8bad9e422d7d6e8d8f6dc20c3@hamnavoe.com \
    --to=9fans@hamnavoe.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).