maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Accessories (https://talk.maemo.org/forumdisplay.php?f=17)
-   -   USB/IP - a way to connect USB devices to your N900 (https://talk.maemo.org/showthread.php?t=41870)

titan 2010-01-22 22:38

USB/IP - a way to connect USB devices to your N900
 
in the thread http://talk.maemo.org/showthread.php?p=489589
we've learned that it will be almost impossible to connect USB devices directly
to the N900 USB port.

An alternative idea came up: USB over IP,
which uses an external computer or special hub in which the devices
are plugged in. The hub forwards all USB IO to the N900.
This solution does already work for Linux and Windows desktops
http://usbip.sourceforge.net/

the relevant posts in the other thread are
http://talk.maemo.org/showpost.php?p...&postcount=573
http://talk.maemo.org/showpost.php?p...&postcount=575
http://talk.maemo.org/showpost.php?p...&postcount=578
http://talk.maemo.org/showpost.php?p...&postcount=579
http://talk.maemo.org/showpost.php?p...&postcount=583

the microcontroller idea was discussed independently in http://www.mail-archive.com/maemo-de.../msg20603.html
USB/IP was not mentioned

Bernard 2010-01-22 23:32

Re: USB/IP - a way to connect USB devices to your N900
 
I came accross a view more posts about a USB over IP solution.

http://www.virtualinsanity.com/index...g/usb-over-ip/
http://www.incentivespro.com/

tekplay 2010-01-23 00:29

Re: USB/IP - a way to connect USB devices to your N900
 
Do not have a N900 but usbip will be very useful am sure.
I had compiled in scratchbox and installed the modules on my N800(needed libwrap and libsysfs also), with my Linux desktop serving as the USBIP Server. Am able to list and attach the remote usb device on my N800. Havent played around with it much more though or checked the error with the usb.ids.

server:~# usbip_bind_driver --list
List USB devices
- busid 4-1 (045e:008a)
4-1:1.0 -> usbhid
4-1:1.1 -> usbhid

- busid 5-8 (058f:6335)
5-8:1.0 -> usbip

Client side(N800)
./usbip --list 1xx.xx.xxx.xx(server ip)
usbip err: vhci_attach.c: 586 (main ) open usb.ids
- 1xx.1xx.xx.xxx
5-8: unknown vendor : unknown product (058f:6335)
: /sys/devices/pci0000:00/0000:00:1d.7/usb5/5-8
: (Defined at Interface level) (00/00/00)
: 0 - unknown class / unknown subclass / unknown protocol (08/06/50)

./usbip --port
usbip err: vhci_attach.c: 586 (main ) open usb.ids
8 ports available

Port 00: <Port in Use> at High Speed(480Mbps)
unknown vendor : unknown product (058f:6335)
2-1 -> usbip://1xx.xxx.xx.xxx:3240/5-8 (remote devid 0005001d (bus/dev 005/029))
2-1:1.0 used by usb-storage
/sys/class/scsi_device/0:0:0:0/device
.........................

netstat -tapn (on server)
tcp6 0 0 1xx.1xx.xx.xxx:3240 1xx.xxx.xxx.xx:58989 ESTABLISHED

qole 2010-01-23 08:25

Re: USB/IP - a way to connect USB devices to your N900
 
This makes my "N8x0 as USB server" even more attractive to me. If someone can get the usbip server working on the N8x0 tablets and the client working on the N900, the n8x0 could easily share usb ports over wifi with the n900... :)

I know... N8x0 is a big bulky extra thing to lug around... and not super-cheap, either... but still way smaller than a laptop, and with that big bright screen it has lots of other uses besides USB host.

titan 2010-01-23 08:53

Re: USB/IP - a way to connect USB devices to your N900
 
Quote:

Originally Posted by tekplay (Post 489770)
I had compiled in scratchbox and installed the modules on my N800(needed libwrap and libsysfs also), with my Linux desktop serving as the USBIP Server. Am able to list and attach the remote usb device on my N800. Havent played around with it much more though or checked the error with the usb.ids.

thanks a lot! this looks very promising.
Now we only need to compile the USB modules for the N900...

Quote:

Originally Posted by qole (Post 490124)
This makes my "N8x0 as USB server" even more attractive to me. If someone can get the usbip server working on the N8x0 tablets and the client working on the N900, the n8x0 could easily share usb ports over wifi with the n900... :)

a nice idea for people who already own a N8x0!

Bec 2010-01-23 09:40

Re: USB/IP - a way to connect USB devices to your N900
 
Quote:

Originally Posted by titan (Post 490158)
thanks a lot! this looks very promising.
Now we only need to compile the USB modules for the N900...

If would be very cool if nokia would make these and combine them with a quickcharger too :eek:
-but small, I think one USB port would suffice.

We should somehow suggest that.

titan 2010-01-23 09:44

Re: USB/IP - a way to connect USB devices to your N900
 
Quote:

Originally Posted by Bec (Post 490204)
If would be very cool if nokia would make these and combine them with a quickcharger too :eek:

IMO Nokia should do their homework and implement a real USB host on the device
(maybe 1x USB OTG and 1x USB device+charge)

Bec 2010-01-23 09:54

Re: USB/IP - a way to connect USB devices to your N900
 
1 Attachment(s)
That's true, but if they made such a gadget they would have the upper hand over let's say other "mobile" charger manufacturers like Energizer for example that provide one charger for multiple devices - especially because this would bring USB OTG for Symbian as well (provided they offer an app for that)

Example based on: Nokia Extra Power DC-8

Bernard 2010-01-23 10:38

Re: USB/IP - a way to connect USB devices to your N900
 
Quote:

Originally Posted by titan (Post 490206)
IMO Nokia should do their homework and implement a real USB host on the device
(maybe 1x USB OTG and 1x USB device+charge)

USB host on the N900 would be a preferred solution in a lot of cases, but using a USB over IP solution could have a lot of other possibilities. It is definitely a super cool feature to have on the N900.

Bernard 2010-01-23 10:41

Re: USB/IP - a way to connect USB devices to your N900
 
Quote:

Originally Posted by qole (Post 490124)
This makes my "N8x0 as USB server" even more attractive to me. If someone can get the usbip server working on the N8x0 tablets and the client working on the N900, the n8x0 could easily share usb ports over wifi with the n900... :)

I know... N8x0 is a big bulky extra thing to lug around... and not super-cheap, either... but still way smaller than a laptop, and with that big bright screen it has lots of other uses besides USB host.

I have been thinking about using my N800 as a USB server also, but I am afraid that transfer speeds would be too low. The wifi and USB throughput speeds of the N900 are much much higher than my old N800.

titan 2010-01-23 11:04

Re: USB/IP - a way to connect USB devices to your N900
 
Quote:

Originally Posted by Bec (Post 490219)
That's true, but if they made such a gadget they would have the upper hand over let's say other "mobile" charger manufacturers like Energizer for example that provide one charger for multiple devices - especially because this would bring USB OTG for Symbian as well (provided they offer an app for that)

nice picture, but don't underestimate the problem:
it would require a chipset which runs Linux 2.6 and is fast enough
to handle the transfer speeds. This would be a non-trivial engineering effort.
The chargers and batteries, however, are low-tech, low-cost, disposable devices assembled in China.
It would be better to keep the USB/IP hub as a separate device which could
be connected to any USB micro power source.

Bec 2010-01-23 11:24

Re: USB/IP - a way to connect USB devices to your N900
 
But wouldn't you like to have the USB/IP portable? I know that the device pictured is too small to be accurate.

I was thinking about some sort of wireless self-powered usb hub that would allow charging too if that would be needed.

titan 2010-01-23 11:37

Re: USB/IP - a way to connect USB devices to your N900
 
yes, it should not be larger than the N900 itself and should have it's own
battery. Input voltage range should be such that you can connect both
LiPoly and normal AA cells.

you mean wireless charging? :D that would be nice (Tesla would love it).

I think a wired connection to the N900 should be default
(as if the the hub was a desktop computer) and wireless could be optional
(it's probably too slow).

Quote:

Originally Posted by Bec (Post 490318)
But wouldn't you like to have the USB/IP portable? I know that the device pictured is too small to be accurate.
I was thinking about some sort of wireless self-powered usb hub that would allow charging too if that would be needed.


Farooq 2010-01-23 11:37

Re: USB/IP - a way to connect USB devices to your N900
 
What i am thinking is that the device should have atleast 2 USB ports, 1 Ethernet port, chargeable as well, builtin wifi transmitter which will ofcourse transmit USB data as well as internet (received through ethernet). The size could be like as normal wireless router available in the market. Usb port should also be able to charge N900. The batery life of the devicse should be atlease 3 to 4 hours.
Is it possible :-)

titan 2010-01-23 11:49

Re: USB/IP - a way to connect USB devices to your N900
 
Quote:

Originally Posted by Farooq (Post 490332)
What i am thinking is that the device should have atleast 2 USB ports, 1 Ethernet port, chargeable as well, builtin wifi transmitter which will ofcourse transmit USB data as well as internet (received through ethernet). The size could be like as normal wireless router available in the market. Usb port should also be able to charge N900. The batery life of the devicse should be atlease 3 to 4 hours.
Is it possible :-)

if you can afford it (shipping is about $50 to EU :(
http://www.gumstix.com/store/catalog...roducts_id=226
http://www.gumstix.com/store/catalog...roducts_id=230
would even give you DVI output.
now you only need to provide 5V input, e.g. http://gizmodo.com/gadgets/gadgets/m...ger-177527.php

Farooq 2010-01-23 11:55

Re: USB/IP - a way to connect USB devices to your N900
 
Quote:

Originally Posted by titan (Post 490345)
if you can afford it (shipping is about $50 to EU :(
http://www.gumstix.com/store/catalog...roducts_id=226
http://www.gumstix.com/store/catalog...roducts_id=230
would even give you DVI output.
now you only need to provide 5V input, e.g. http://gizmodo.com/gadgets/gadgets/m...ger-177527.php

are the first 2 devices compatible with N900?

titan 2010-01-23 12:09

Re: USB/IP - a way to connect USB devices to your N900
 
Quote:

Originally Posted by Farooq (Post 490355)
are the first 2 devices compatible with N900?

not without some hacking.
you would have to install a Linux kernel with USB/IP enabled on the flash mem.
(it's almost the same chipset as on the N900 - so could even port Maemo to it)

for power supply you could also try
http://www.eneloop.info/products/mobile-boosters.html

Bec 2010-01-23 12:10

Re: USB/IP - a way to connect USB devices to your N900
 
Quote:

Originally Posted by titan (Post 490330)
I think a wired connection to the N900 should be default
(as if the the hub was a desktop computer) and wireless could be optional
(it's probably too slow).

Don't know why I got stuck at the idea that USB/IP *has* to be done over wifi.

If it works by pluging it in directly we should keep it simple and small IMHO.

Once we have a working full-size "female" USB port all imaginable adapters and converters could be plugged in.

Quote:

Originally Posted by Farooq (Post 490355)
are the first 2 devices compatible with N900?

Provided you know how to mess around with the N900 kernel and wire those two boards together and to a decent Li-Po power source + charging circuits, the rest would be a piece of cake.

Farooq 2010-01-23 16:17

Re: USB/IP - a way to connect USB devices to your N900
 
Quote:

Originally Posted by titan (Post 490345)
if you can afford it (shipping is about $50 to EU :(
http://www.gumstix.com/store/catalog...roducts_id=226
http://www.gumstix.com/store/catalog...roducts_id=230
would even give you DVI output.
now you only need to provide 5V input, e.g. http://gizmodo.com/gadgets/gadgets/m...ger-177527.php

is there any chance that these devices be available in an assembled form for N900 in the future?

titan 2010-01-23 16:23

Re: USB/IP - a way to connect USB devices to your N900
 
Quote:

Originally Posted by Farooq (Post 490592)
is there any chance that these devices be available in an assembled form for N900 in the future?

step by step - first we need to verify that USB/IP can work in the N900 kernel
and that the speed over USBnet or wifi is sufficiently fast.
Then it will be a DIY solution until someone is willing to mass produce it.

Farooq 2010-01-23 16:28

Re: USB/IP - a way to connect USB devices to your N900
 
Quote:

Originally Posted by titan (Post 490605)
step by step - first we need to verify that USB/IP can work in the N900 kernel
and that the speed over USBnet or wifi is sufficiently fast.
Then it will be a DIY solution until someone is willing to mass produce it.

titan will u work on this or do u know any one already working on this?

titan 2010-01-23 16:52

Re: USB/IP - a way to connect USB devices to your N900
 
Quote:

Originally Posted by Farooq (Post 490609)
titan will u work on this or do u know any one already working on this?

I don't have to resources to work on the hardware implementation (200 EUR is too much for a USB host for me) but I'd be glad to help everyone who wants to work on it or can find a less expensive way to implement it.
The modifications on the N900 and testing with a normal Linux desktop should be
possible as soon as we can compile custom N900 kernels again.

Bernard 2010-01-27 13:10

Re: USB/IP - a way to connect USB devices to your N900
 
I tried to set up the USBIP connection using Ubuntu karmic on my desktop and laptop according to this tutorial:

http://www.howtoforge.com/how-to-mod...over-ip-server

But I'm having troubles.
At the very end when you try to establish the connection using
Code:

sudo usbip -a <server-ip> X-Y
I get this error, no matter what device I try (I tried a USBstick, a USB to serial converter and a DVB-T stick):
Code:

request failed at peer, 1
usbip err: vhci_attach.c: 324 (query_import_device) recv op_common
usbip err: vhci_attach.c: 362 (attach_device) query

I also tried it the other way around, switching the USBIP server and client, but I get the same error.
Anybody have any ideas?
When I have this working I will try to get the N900 working as a client.

Edit:
Using windows as a client I get a similar problem (in usbip.c instead of vhci_attach.c)

titan 2010-01-28 11:02

Re: USB/IP - a way to connect USB devices to your N900
 
Quote:

Originally Posted by Bernard (Post 497384)
get this error, no matter what device I try (I tried a USBstick, a USB to serial converter and a DVB-T stick):
Code:

request failed at peer, 1
usbip err: vhci_attach.c: 324 (query_import_device) recv op_common
usbip err: vhci_attach.c: 362 (attach_device) query


it seems that it cannot even contact your usbipd on your server.
maybe it must be started as root or is the firewall enabled?

meep 2010-01-28 21:20

Re: USB/IP - a way to connect USB devices to your N900
 
Just a thought, could you use an n900 with this over wifi?

http://www.ebuyer.com/product/184686

Cheers

titan 2010-01-28 21:38

Re: USB/IP - a way to connect USB devices to your N900
 
Quote:

Originally Posted by meep (Post 500048)
Just a thought, could you use an n900 with this over wifi?
http://www.ebuyer.com/product/184686

look interesting but I suspect it does'nt use the open USB/IP but some proprietary
protocol.

Konceptz 2010-02-05 16:05

Re: USB/IP - a way to connect USB devices to your N900
 
Just wondering if this is the same technology.

titan 2010-02-05 16:20

Re: USB/IP - a way to connect USB devices to your N900
 
Quote:

Originally Posted by Konceptz (Post 512034)
Just wondering if this is the same technology.

It seems to be the same idea, but a different protocol.
the user-space programs are not open-source.
I wonder how that company survives as they seem to offer only freeware.

titan 2010-02-05 16:23

Re: USB/IP - a way to connect USB devices to your N900
 
FYI: there is now a new N900 kernel with USB/IP support
http://talk.maemo.org/showthread.php?p=511207

Konceptz 2010-02-05 16:45

Re: USB/IP - a way to connect USB devices to your N900
 
Quote:

Originally Posted by titan (Post 512049)
It seems to be the same idea, but a different protocol.
the user-space programs are not open-source.
I wonder how that company survives as they seem to offer only freeware.

I think they are waiting for a hardware manufacturer to pick them up and mass produce?

Bernard 2010-02-05 21:39

Re: USB/IP - a way to connect USB devices to your N900
 
I would like to use this USB/IP idea to connect a DVB-T adapter to the N900.

But I also found a PCTV DVBT Wlan solution:
http://www.pctvsystems.com/Products/...B/Default.aspx

How do you think will this device transfer the streams? couls be a simple video stream over RTSP, or they could use something like a USB over IP solution.

I need the latter because ultimately I want to view pay-tv channels, so I need "direct" access to the DVB-T adapter in order to de-scramble the streams.

MohammadAG 2010-02-26 11:25

Re: USB/IP - a way to connect USB devices to your N900
 
Same problem as Bernard
Code:

request failed at peer, 1
usbip err: vhci_attach.c: 324 (query_import_device) recv op_common
usbip err: vhci_attach.c: 362 (attach_device) query


stomper 2010-11-03 16:01

Re: USB/IP - a way to connect USB devices to your N900
 
Quote:

Originally Posted by MohammadAG (Post 547353)
Same problem as Bernard
Code:

request failed at peer, 1
usbip err: vhci_attach.c: 324 (query_import_device) recv op_common
usbip err: vhci_attach.c: 362 (attach_device) query


I also noticed the same problem and tried to debug the software. So instead of
usbipd -D
I started the daemon with
usbipd -d
to get debug information. And then usbip seems to work fine :)
Now I have virtually connected USB mouse on my PC. And also worked between two Ubuntu PCs. Haven't tried yet with N900.

Bernard 2010-11-04 00:00

Re: USB/IP - a way to connect USB devices to your N900
 
I believe that -d or -D does not matter.
if the error occurs, you should kill the usbip deamon en restart it with the sudo usbipd -D command. after that it also works for me.
I also tested it on the n900, but that does not yet work. I do get a port 0 attached message, and there is a second USB device when I run lsusb, but when I look in output of dmesg, I see a lot of errors. (bad cable etc. etc.)

Maybe it was because I tried to send a USB stick to the N900, and maybe it lacks the proper drivers. I will try a keyboard and/or mouse tomorrow.

Fabry 2011-09-06 22:19

Re: USB/IP - a way to connect USB devices to your N900
 
I have tried to use N900 as WiFi USB Server for a Windows Client but it not works.
  • On N900 (Power Kernel v48) I have done:
    • Used h-e-n to power and enumerate an Usb Stick (full usb 2.0)
    • Connected N900 to Access Point
    • Loaded the needed usbip modules and started the usbip deamon:
      sudo gainroot
      modprobe usbip
      modprobe usbip_common_mod
      usbipd -D
    • Shared the Usb Stick:
      usbip_bind_driver --usbip 1-1
  • On Windows (Seven x64 with UsbIp driver installed) I have done:
    • Listed remote usb device:
      C:\Users\xxxx\usbip_windows_v0.2.0.0_signed>usbip -l 192.168.x.3
      This works correctly and reports:
      - 192.168.x.3
      1-1: SanDisk Corp. : Cruzer Micro 256/512MB Flash Drive (0781:5151)
      : /sys/devices/platform/musb_hdrc/usb1/1-1
      : (Defined at Interface level) (00/00/00)
      : 0 - Mass Storage / SCSI / Bulk (Zip) (08/06/50)
    • Attached the remote usb device:
      C:\Users\xxxx\usbip_windows_v0.2.0.0_signed>usbip -a 192.168.x.3 1-1
      This not works, it hangs for some seconds and then it returns an error:
      new usb device attached to usbvbus port 1
      usbip err: usbip_windows.c: 374 (write_to_dev) read from sock ret 0 not equal a usbip_header

After the error something crashes on N900 because there isn't anymore shared usb device and the command lsusb hangs if executed.
I must reboot N900 to fix it

I have tried 2 o 3 times with different Usb devices, with always same results (and crashes)

Flop 2012-09-05 10:59

Re: USB/IP - a way to connect USB devices to your N900
 
Just came across your thread googling about usb over network solution.. Guys, have anybody tried http://www.net-usb.com/ in action?

Stanku 2017-02-07 13:49

Re: USB/IP - a way to connect USB devices to your N900
 
I use the alternative solution to access USB over IP network - www.eltima.com/usb-over-ip/
The solution helped me a lot, but I bought it with the promocode and there was 30% off.

Stanku 2017-02-07 14:16

Re: USB/IP - a way to connect USB devices to your N900
 
Quote:

Originally Posted by Flop (Post 1261476)
Just came across your thread googling about usb over network solution.. Guys, have anybody tried net-usb.com in action?

Yes, I did use it. It is Eltima Solution. It helped me a lot to access my USB devices over network.


All times are GMT. The time now is 23:34.

vBulletin® Version 3.8.8