Lines Matching +full:serial +full:- +full:midi
18 9. MIDI function
23 14. SERIAL function
37 Function-specific configfs interface
38 ------------------------------------
45 The attribute is read-only.
47 There can be at most 4 ACM/generic serial/OBEX ports in the system.
51 ------------------------
76 Function-specific configfs interface
77 ------------------------------------
99 ------------------------
116 Function-specific configfs interface
117 ------------------------------------
139 -------------------------------
156 Function-specific configfs interface
157 ------------------------------------
179 ------------------------
196 Function-specific configfs interface
197 ------------------------------------
209 ------------------------
220 Function-specific configfs interface
221 ------------------------------------
246 $ echo -ne \\x05\\x01\\x09\\x06\\xa1.....
249 ------------------------
253 - create the gadget
254 - connect the gadget to a host, preferably not the one used
256 - run a program which writes to /dev/hidg<N>, e.g.
263 - observe the keystrokes from the gadget
270 Function-specific configfs interface
271 ------------------------------------
282 -----------------------------
286 host: test-usb (tools/usb/testusb.c)
293 Function-specific configfs interface
294 ------------------------------------
327 read-only. This is implied if CD-ROM emulation
333 being a CD-ROM.
336 forced_eject This write-only file is useful only when
340 Any non-zero number of bytes written will
345 ---------------------------------
351 9. MIDI function
356 Function-specific configfs interface
357 ------------------------------------
359 The function name to use when creating the function directory is "midi".
360 The MIDI function provides these attributes in its function directory:
363 buflen MIDI buffer length
364 id ID string for the USB MIDI adapter
365 in_ports number of MIDI input ports
366 index index value for the USB MIDI adapter
367 out_ports number of MIDI output ports
371 Testing the MIDI function
372 -------------------------
381 $ arecordmidi -l
383 14:0 Midi Through Midi Through Port-0
384 24:0 MIDI Gadget MIDI Gadget MIDI 1
385 $ arecordmidi -p 24:0 from_gadget.mid
389 $ aplaymidi -l
393 $ aplaymidi -p 20:0 to_host.mid
399 $ arecordmidi -l
403 $ arecordmidi -p 20:0 from_host.mid
407 $ aplaymidi -l
409 14:0 Midi Through Midi Through Port-0
410 24:0 MIDI Gadget MIDI Gadget MIDI 1
412 $ aplaymidi -p24:0 to_gadget.mid
418 MIDI files can be played to speakers/headphones with e.g. timidity installed::
420 $ aplaymidi -l
422 14:0 Midi Through Midi Through Port-0
423 24:0 MIDI Gadget MIDI Gadget MIDI 1
429 $ aplaymidi -p 128:0 file.mid
431 MIDI ports can be logically connected using the aconnect utility, e.g.::
435 After the gadget's MIDI port is connected to timidity's MIDI port,
436 whatever is played at the gadget side with aplaymidi -l is audible
444 Function-specific configfs interface
445 ------------------------------------
467 ------------------------
484 Function-specific configfs interface
485 ------------------------------------
492 The attribute is read-only.
494 There can be at most 4 ACM/generic serial/OBEX ports in the system.
497 -------------------------
501 seriald -f /dev/ttyGS<Y> -s 1024
505 serialc -v <vendorID> -p <productID> -i<interface#> -a1 -s1024 \
506 -t<out endpoint addr> -r<in endpoint addr>
510 https://github.com/felipebalbi/usb-tools.git master
517 Function-specific configfs interface
518 ------------------------------------
529 ---------------------------
535 http://www.spinics.net/lists/linux-usb/msg85689.html
539 git://git.gitorious.org/meego-cellular/phonet-utils.git
543 $ ./phonet -a 0x10 -i usbpn0
550 $ ./phonet -a 0x6c -i upnlink0
556 http://www.spinics.net/lists/linux-usb/msg85690.html
560 $ ./pnxmit -a 0x6c -r
564 $ ./pnxmit -a 0x10 -s 0x6c
571 $ ./pnxmit -a 0x10 -r
575 $ ./pnxmit -a 0x6c -s 0x10
582 Function-specific configfs interface
583 ------------------------------------
605 --------------------------
617 14. SERIAL function
622 Function-specific configfs interface
623 ------------------------------------
626 The SERIAL function provides just one attribute in its function directory:
630 The attribute is read-only.
632 There can be at most 4 ACM/generic serial/OBEX ports in the system.
634 Testing the SERIAL function
635 ---------------------------
640 echo VID PID >/sys/bus/usb-serial/drivers/generic/new_id
665 Function-specific configfs interface
666 ------------------------------------
674 isoc_maxpacket 0 - 1023 (fs), 0 - 1024 (hs/ss)
683 -------------------------------
687 host: test-usb (tools/usb/testusb.c)
695 Function-specific configfs interface
696 ------------------------------------
714 -------------------------
720 aplay -l # should list our USB Audio Gadget
727 Function-specific configfs interface
728 ------------------------------------
735 c_srate list of capture sampling rates (comma-separated)
743 c_hs_bint capture bInterval for HS/SS (1-4: fixed, 0: auto)
746 p_srate list of playback sampling rates (comma-separated)
753 p_hs_bint playback bInterval for HS/SS (1-4: fixed, 0: auto)
754 req_number the number of pre-allocated request for both capture
762 -------------------------
765 host: aplay -l # should list our USB Audio Gadget
772 $ arecord -f dat -t wav -D hw:2,0 | aplay -D hw:0,0 &
776 $ arecord -f dat -t wav -D hw:CARD=UAC2Gadget,DEV=0 | \
777 aplay -D default:CARD=OdroidU3
784 Function-specific configfs interface
785 ------------------------------------
821 # ln -s header/h class/fs
822 # ln -s header/h class/ss
823 # mkdir -p functions/uvc.usb0/streaming/uncompressed/u/360p
832 # ln -s ../../uncompressed/u
834 # ln -s ../../header/h
836 # ln -s ../../header/h
838 # ln -s ../../header/h
842 ------------------------
846 # uvc-gadget -u /dev/video<uvc video node #> -v /dev/video<vivid video node #>
848 where uvc-gadget is this program:
849 http://git.ideasonboard.org/uvc-gadget.git
853 http://www.spinics.net/lists/linux-usb/msg99220.html
857 luvcview -f yuv
864 Function-specific configfs interface
865 ------------------------------------
876 ----------------------------
882 # ls -l /devices/virtual/usb_printer_gadget/
892 host->device transmission:
902 device->host transmission::
921 Function-specific configfs interface
922 ------------------------------------
929 c_srate list of capture sampling rates (comma-separated)
937 p_srate list of playback sampling rates (comma-separated)
944 req_number the number of pre-allocated requests for both capture
952 -------------------------
955 host: aplay -l # should list our USB Audio Gadget
962 $ arecord -f dat -t wav -D hw:2,0 | aplay -D hw:0,0 &
966 $ arecord -f dat -t wav -D hw:CARD=UAC1Gadget,DEV=0 | \
967 aplay -D default:CARD=OdroidU3