maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   [Announce] USB hostmode beta release (https://talk.maemo.org/showthread.php?t=65232)

joerg_rw 2010-11-19 18:21

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by iDont (Post 877938)
I can confirm that the following OTG cable works without any mods on the N900:
[...]
Funny fact is that the cable, despite being advertised so, shouldn't work on the N8, as the N8 got a square USB connector AFAIK.

It will work for N8 as well. If it fits to N900 then it has a micro-B plug, and N8 (and N810) has a micro-AB receptacle, which matches both micro-A and micro-B plugs.
This means plugs that fit to N900 also fit to N8, but not all plugs that fit to N8 also fit to N900.
If it works for N8, this seems to indicate it has a grounded ID pin, which is a good thing and really rare for micro-B plugs though. Usually only micro-A-plugs have ID pin grounded - it's the definition of an A-plug and meant to switch the OTG device into host role.

Nice find :-)

/j

snakekontrol 2010-11-19 18:25

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by iDont (Post 877938)
I can confirm that the following OTG cable works without any mods on the N900:
http://cgi.ebay.com/ws/eBayISAPI.dll...K%3AMEWNX%3AIT
This particular bidding had ended, but I'm sure the item has been reposted (multiple times) already.

Funny fact is that the cable, despite being advertised so, shouldn't work on the N8, as the N8 got a square USB connector AFAIK.

Great! Just ordered one, thanks dude!!

luketanti 2010-11-19 19:03

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by toxaris (Post 877958)
Quite usefull when aboard without wifi and dataplan. Wounder if something needs to be done to get it work, drivers etc? Enyone know?

Yes does any one know the steps to get this working with a usb to Ethernet adapter?? And a suggestion can some one collect several common drivers and make them in a package so we can install them so we will have a large compability? Thanks

Zas 2010-11-19 19:35

Re: [Announce] USB hostmode beta release
 
I get an error installing i2c-tools:
Code:

dpkg: error processing /var/cache/apt/archives/i2c-tools_3.0.2-1maemo2_armel.deb (--unpack):
 trying to overwrite `/usr/include/linux/i2c-dev.h', which is also in package linux-kernel-headers
Errors were encountered while processing:
 /var/cache/apt/archives/i2c-tools_3.0.2-1maemo2_armel.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


snakekontrol 2010-11-19 20:42

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by luketanti (Post 878199)
Yes does any one know the steps to get this working with a usb to Ethernet adapter?? And a suggestion can some one collect several common drivers and make them in a package so we can install them so we will have a large compability? Thanks

I just followed the steps in the video with an apple usb ethernet adapter, and all went excellent, cheers!

Zas 2010-11-19 21:09

Re: [Announce] USB hostmode beta release
 
Quote:

Originally Posted by Zas (Post 878234)
I get an error installing i2c-tools:
Code:

dpkg: error processing /var/cache/apt/archives/i2c-tools_3.0.2-1maemo2_armel.deb (--unpack):
 trying to overwrite `/usr/include/linux/i2c-dev.h', which is also in package linux-kernel-headers
Errors were encountered while processing:
 /var/cache/apt/archives/i2c-tools_3.0.2-1maemo2_armel.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


Everyhting installed successfully by renaming linux-kernel-headers.list and linux-kernel-headers.md5sums in /var/lib/dpkg/info/ to .bak files to fake its removal.

cferrism 2010-11-20 08:17

Re: [Announce] USB hostmode beta release
 
This is awesome guys! thanks for your hard work. Im seeing a day in the not too distant future when I am viewing my n900 via the tv-out on the big telly and controlling it via a kinect hack from the usb :P

5spdvl 2010-11-21 05:47

Re: [Announce] USB hostmode beta release
 
So, here are my results using USB Host Mode beta release so far.

Sandisk Cruzer Blade 4Gb flash stick worked perfectly via high speed mode. I was able to watch videos from it using the Media Player, and copy files to the 32Gb internal storage as well as the 8Gb MicroSD card I have, and back to the flash drive again. no playback issues at all, and no write protect issues.

250Gb external powered HDD did not work, however this HDD only works intermittently anyway. Nothing to do with H-E-N IMO.

500Gb external passport HDD, which is supplied with a dual USB cable (second plug provides additional power). This did not work. We powered the second plug via a USB power supply, but no luck. I forgot to check the kernel messages.

HTC Desire worked, and started charging! It read the 32Gb MicroSD inserted, and successfully played some music with no issues (although Media Player tried to retrieve all the "new" media's information).

5spdvl 2010-11-21 05:58

Re: [Announce] USB hostmode beta release
 
1 Attachment(s)
Nokia N97 did not work. I expected it to come up with the mass storage selection, but nothing happened across all speeds. Afgter I closed H-E-N, it said the device had no file system. Attached is the kernel output.

peppino 2010-11-21 20:16

Re: [Announce] USB hostmode beta release
 
Thank you for the beautilful news and the good work. Now my usb mass storage works on my n900. I tested a serial converter and the device ttyUSB0 is maked.
I'm testing a hid usb periferical, it's a RFID programmer. The linux client use the library libusb, when open the device all works without problem but when try to write with usb_bulk_write I have a timeout error code -110.
I recompiled the kernel power with HIDRAW and HIDDEV enabled but the client don't work, I have always the error -110. I tried to modify the client increase the timeout on usb_bulk_write but without success.
Have you suggestions? Some kernel modules is missing?

Code:

    Interface Descriptor:
      bLength                9
      bDescriptorType        4
      bInterfaceNumber        0
      bAlternateSetting      0
      bNumEndpoints          2
      bInterfaceClass        3 Human Interface Devices
      bInterfaceSubClass      0 No Subclass
      bInterfaceProtocol      0 None
      iInterface              0
        HID Device Descriptor:
          bLength                9
          bDescriptorType        33
          bcdHID              1.00
          bCountryCode            0 Not supported
          bNumDescriptors        1
          bDescriptorType        34 Report
          wDescriptorLength      52
          Report Descriptor: (length is 52)
            Item(Global): Usage Page, data= [ 0xa0 0xff ] 65440
                            (null)
            Item(Local ): Usage, data= [ 0x01 ] 1
                            (null)
            Item(Main  ): Collection, data= [ 0x01 ] 1
                            Application
            Item(Local ): Usage, data= [ 0x02 ] 2
                            (null)
            Item(Main  ): Collection, data= [ 0x00 ] 0
                            Physical
            Item(Global): Usage Page, data= [ 0xa1 0xff ] 65441
                            (null)
            Item(Local ): Usage, data= [ 0x03 ] 3
                            (null)
            Item(Local ): Usage, data= [ 0x04 ] 4
                            (null)
            Item(Global): Logical Minimum, data= [ 0x80 ] 128
            Item(Global): Logical Maximum, data= [ 0x7f ] 127
            Item(Global): Physical Minimum, data= [ 0x00 ] 0
            Item(Global): Physical Maximum, data= [ 0xff ] 255
            Item(Global): Report Size, data= [ 0x08 ] 8
            Item(Global): Report Count, data= [ 0x40 ] 64
            Item(Main  ): Input, data= [ 0x02 ] 2
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Local ): Usage, data= [ 0x05 ] 5
                            (null)
            Item(Local ): Usage, data= [ 0x06 ] 6
                            (null)
            Item(Global): Logical Minimum, data= [ 0x80 ] 128
            Item(Global): Logical Maximum, data= [ 0x7f ] 127
            Item(Global): Physical Minimum, data= [ 0x00 ] 0
            Item(Global): Physical Maximum, data= [ 0xff ] 255
            Item(Global): Report Size, data= [ 0x08 ] 8
            Item(Global): Report Count, data= [ 0x40 ] 64
            Item(Main  ): Output, data= [ 0x02 ] 2
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Main  ): End Collection, data=none
            Item(Main  ): End Collection, data=none
      Endpoint Descriptor:
        bLength                7
        bDescriptorType        5
        bEndpointAddress    0x01  EP 1 OUT
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type              None
          Usage Type              Data
        wMaxPacketSize    0x0008  1x 8 bytes
        bInterval              1
      Endpoint Descriptor:
        bLength                7
        bDescriptorType        5
        bEndpointAddress    0x82  EP 2 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type              None
          Usage Type              Data
        wMaxPacketSize    0x0008  1x 8 bytes
        bInterval              1

Here the source of linux client.

Thank you for the help.


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

vBulletin® Version 3.8.8