Date: Tue, 26 Apr 2016 15:06:01 -0500 From: Karl Denninger <karl@denninger.net> To: freebsd-usb@freebsd.org Subject: Byte-banging a USB device attached on ugen Message-ID: <c2e2dadd-6301-1b29-9203-0cb473437630@denninger.net>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
So I've got one of these....
ugen0.5: <X10 Wireless Technology Inc> at usbus0
Which is a CM15.
It does not appear to attach as an HID or expose a serial-like interface
(on a tty or cua device node.)
I have documentation of two end-points that this device uses, one for
transmitting data to the host and one for receiving commands from the
host, along with the byte-format protocol that is expected on each. As
such if I can determine how to programmatically access those two
end-points I should be good.
What I'm having trouble finding documentation on is how to open the
device and attach a byte stream to those endpoints on FreeBSD (e.g. how
to get it open and specify which endpoint to associate with the handle)
and once I do, can I expect to use the usual select() paradigm to see if
they're ready for read (e.g. something is on the bus inbound to me) and
ready for write (can be written to.)
Is there a pointer available somewhere to a code fragment that shows how
to do this? I also want to get the device specification as part of the
setup, obviously, to make sure I'm talking to the right device and not
some other random thing that was plugged in -- my intent is to handle
the situation where my code can detect a hot-plug (or unplug) of the
device and initialize and/or shut down the channel accordingly and thus
I want to iterate over the ugen devices I find and check them for the
correct device specification.
Thanks in advance!
--
Karl Denninger
karl@denninger.net <mailto:karl@denninger.net>
/The Market Ticker/
/[S/MIME encrypted email preferred]/
[-- Attachment #2 --]
0 *H
010
`He 0 *H
_0[0C)0
*H
010 UUS10UFlorida10U Niceville10U
Cuda Systems LLC10UCuda Systems LLC CA1"0 *H
Cuda Systems LLC CA0
150421022159Z
200419022159Z0Z10 UUS10UFlorida10U
Cuda Systems LLC10UKarl Denninger (OCSP)0"0
*H
0
X@vkY
Tq/vE]5#֯MX\8LJ/V?5Da+
sJc*/r{ȼnS+ w")ąZ^DtdCOZ ~7Q '@a#ijc۴oZdB&!Ӝ-< ?HN5y
5}F|ef"Vلio74zn">a1qWuɖbFeGE&3(KhixG3!#e_XƬϜ/,$+;4y'Bz<qT9_?rRUpn5
Jn&Rx/p Jyel*pN8/#9u/YPEC)TY>~/˘N[vyiDKˉ,^" ?$T8 v&K%z8C @?K{9f`+@,|Mbia 007++0)0'+0http://cudasystems.net:88880 U0 0 `HB0U0, `HB
OpenSSL Generated Certificate0U-h\Ff Y0U#0$q}ݽʒm50U0karl@denninger.net0
*H
Owbabɺx&Uk[(Oj!%p MQ0I!#QH}.>~2&D}<wm_>V6v]f>=Nn+8;q wfΰ/RLyUG#b}n!Dր_up|_ǰc/%ۥ
nN8:d;-UJd/m1~VނיnN I˾$tF1&}|?q?\đXԑ&\4V<lKۮ3%Am_(q-(cAeGX)f}-˥6cv~Kg8m~v;|9:-iAPқ6ېn-.)<[$KJtt/L4ᖣ^Cmu4vb{+BG$M0c\[MR|0FԸP&78"4p#}DZ9;V9#>Sw"[UP7100010 UUS10UFlorida10U Niceville10U
Cuda Systems LLC10UCuda Systems LLC CA1"0 *H
Cuda Systems LLC CA)0
`He M0 *H
1 *H
0 *H
1
160426200601Z0O *H
1B@+Bbl*D,|Jza('U?B*s{
_HpB¶tƢ^I<l0l *H
1_0]0 `He*0 `He0
*H
0*H
0
*H
@0+0
*H
(0 +710010 UUS10UFlorida10U Niceville10U
Cuda Systems LLC10UCuda Systems LLC CA1"0 *H
Cuda Systems LLC CA)0*H
1010 UUS10UFlorida10U Niceville10U
Cuda Systems LLC10UCuda Systems LLC CA1"0 *H
Cuda Systems LLC CA)0
*H
9-][KKZ<d!axsqZ
Ti)R؍{o^"z[ EI0KbW>3v
8U$^<~TBd[3
6y
P
`mr#ԗ 2Q66LJ'Nzh)J/Z./&O@YvLUSJPRM`Xm-!ZMixn] ѽ^E;ʸSG;u8בQ9Ή>95ez{MGQ0
iSJ 'xQw$i)*sԂ7Pi1q[<*S0vYBhbh+#k9JnKMetOkyQ<vWje:*Gݦj40}lj9E=koy;@3|f[{-aMщ1Ur#~F0WoShrJȟIp]<JZ
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c2e2dadd-6301-1b29-9203-0cb473437630>
