Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
FMods.net
Search
Search
Log in
Personal tools
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
USB subsystem
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== USB subsystem == <!--T:1--> === usblauncher === <!--T:52--> <pre> /fs/mp/etc/usblauncher/ βββ iap2ea.lua βββ iap2.lua βββ iap2ncm.lua βββ netstart.sh βββ netstop.sh βββ override.lua βββ rules.lua βββ rules_otg.lua βββ startncm-molex.sh βββ startncm.sh βββ stopncm.sh βββ umass.lua </pre> Useful commands: <code>usb -vvv -N /dev/otg/io-usb-otg</code> == USB-LAN ethernet == <!--T:1--> List of supported NICs in <code>/fs/mp/etc/usblauncher/rules_otg.lua</code> <pre> nic_devices = { device(0x0b95, 0x7720); -- CISCO linksys USB300M ethernet dongle device(0x0b95, 0x772b); -- Insignia NS-PU98505 ethernet dongle device(0x2001, 0x3c05); -- D-Link DUB-E100 (revB1) ethernet dongle device(0x2001, 0x1a02); -- D-Link DUB-E100 (revC1) ethernet dongle } foreach (nic_devices) { start"/fs/mp/etc/usblauncher/netstart.sh busnum=$(busno),devnum=$(devno),path=$(USB_PATH),ign_remove /fs/mp/lib/dll/devnp-asix.so"; removal"/fs/mp/etc/usblauncher/netstop.sh"; } </pre> Content of <code>/fs/mp/etc/usblauncher/netstart.sh</code> <pre> #!/bin/sh IFACE=ax0 IPADDR=192.168.1.26 mount -T io-pkt -o $1 $2 ifconfig $IFACE $IPADDR netmask 255.255.255.0 echo "debug $IFACE done." </pre> {{#fas:circle-info}} To get a working usb network on "production" OS, copy <code>devnp-asix.so</code> from [[reformat package]] to <code>/fs/mp/lib/dll/devnp-asix.so</code> <pre> 1. pidin ar | grep usblauncher_otg 2. usblauncher_otg -S1 -c /fs/mp/etc/usblauncher/rules_otg.lua -M /fs/mp/etc/mcd.mnt -s /fs/mp/lib/dll/pubs/ -n/dev/otg/io-usb-otg -vvvv -b -eErtl /fs/mp/etc/usblauncher/netstart.sh busnum=0x01,devnum=0x2,path=/dev/otg/io-usb-otg,ign_remove /fs/mp/lib/dll/devnp-asix.so </pre> == USB-HID == <!--T:1--> Run USB HID server: <pre> io-hid -d devh-usb.so </pre> {{#fas:circle-info}} You should get <code>devh-usb.so</code> lib from QNX SDP. <code>io-hid</code> usage: <pre> # use io-hid io-hid - HID Server ( Human Interface Device ) Usage: io-hid [options] & Options: -d dll [opts] Device DLL to load and options to pass to the DLL. -n name Set server name. default "/dev/io-hid/io-hid" -v Be verbose -V Display server version Examples: USB HID devices, PS/2 mouse, Serial mouse on COM1 directly, PS/2 keyboard io-hid -dusb -dps2ser ps2mouse:mousedev:msoft:uart,1:kbd:kbddev & </pre> {{#fas:circle-info}} After launch <code>io-hid</code> all HID events will be grabbed by libscreen. Use <code>[https://openqnx.com/static/neutrino/utilities/h/hidview.html hidview]</code> tool for get info about connected HID devices.
Summary:
Please note that all contributions to FMods.net may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
FMods.net:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Toggle limited content width