maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Thread for problems getting USB hostmode working. (https://talk.maemo.org/showthread.php?t=65570)

joerg_rw 2010-11-17 01:17

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by kolos (Post 875386)
I mentioned in "USB hostmode beta release" thread that I unsuccessfully tried to connect Canon camera and Nokia N95 (PC Suite mode). Today I tried again just to get dmesg logs.

N95 looks really weird, from a fast scan it seems N95 is trying to create more than 16 devices, and that fails. ttyACM is coming up (terminal to N95), but no mass storage in first 15 devices

For Canon I see:
[ 9355.010009] usb 1-1: new full speed USB device using musb_hdrc and address 120
[ 9355.164764] usb 1-1: adding 1-1:1.0 (config #1, interface 0)
[ 9355.166290] usb 1-1: New USB device found, idVendor=04a9, idProduct=30b1
[ 9355.166351] usb 1-1: Product: Canon Digital Camera
[ 9355.166351] usb 1-1: Manufacturer: Canon Inc.
Then the log aborts. It seems like Canon needs an awful lot of retries, until it ends up with addr 120. Possibly this device needs some 10s of seconds to initialize after VBUS, prior to starting ENUM.

cheers
jOERG

firstknight 2010-11-17 02:17

Re: [Announce] USB hostmode beta release
 
mine says unable to connect.. file system unavailable...

what is missing?

Nightmae 2010-11-17 02:50

Re: [Announce] USB hostmode beta release
 
Thanks all for work on h-e-n, that successfully tested on Flash drive(SanDisk Extreme Contour 16GB), mice and keyboard =)

but how to work on lan adapter? i tested in full speed hostmode, router can detect the lan signal, but can't connect network though wired lan. I don't know how to setup by wired lan, can anyone help me?? thanks!

lifenexus 2010-11-17 03:12

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by Temporal (Post 875074)
It was closed. In fact, I tried after rebooting just to make sure - thanks!

Good news:
Now I was able to get a SD reader recognized and working AND recognize (but not work with) my modem. I didn't knew that I needed to install h-e-n. I thought that it was installed alongside power kernel, now that they are together, and that was then a command prompt, but I was wrong.

Bad news:
I noticed that after using h-e-n (and closing it), if I go to charge my device (and then shut the screen backlight), it will glow, whenever it needs to glow, but REALLY WEAK and then, from nowhere, goes normal again. And then, randomly, will glow weak again. I just saw that happening RIGHT NOW. I don't know why, maybe some thing is reverse charged and the it needs to wait until discharge, I just see that it does that.

This is a problem which i have to. i just lock the screen and unlock after i close hen.. it works fine after

[quot]


I noticed too that, if I try to copy ONE BIG file(700mb) from the SD to an external SD, it will go really fast in the first 20mb, but will start to slow down up to the maximum of 200mb(in my experiences) when it will "break" - mostly will break before. I'm yet to test with other hub to see if it is a problem with my actual hub, but I'd like to let it registered. I hope someone tried to copy some file from the SD to an USB SD reader to confirm or deny that. I'm yet to test from the internal memory to the USB SD reader too.

And, finally, I guess this is related with the power kernel: It does not like to reboot. Almost always, when I ask it to REBOOT, it will reboot, but not actually boot, it will start to boot and then, turn off. Then I need to turn it on manually. Is anybody else experiencing this?

I'm yet to retry the maemo-pc-connectivity, to see if it is working.

Thanks.[/QUOTE]

yes. i have this problem. i have no clue what it is. i try copying a huge file, it stops at around 250-300mb.

Nightmae 2010-11-17 04:01

Re: Thread for problems getting USB hostmode working.
 
Thanks all for work on h-e-n, that successfully tested on Flash drive(SanDisk Extreme Contour 16GB), mice and keyboard :)

but how to work on lan adapter? i tested in full speed hostmode, router can detect the lan signal, but can't connect network though wired lan. I don't know how to setup by wired lan, can anyone help me?? thanks!

joerg_rw 2010-11-17 04:02

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by lifenexus (Post 875718)
yes. i have this problem. i have no clue what it is. i try copying a huge file, it stops at around 250-300mb.

This is a general problem/bug of maemo, to be seen on all copy actions and probably related to mem/swap usage.
It also happens when copying / moving a large file from uSD to eMMC (card to MyDocs) via cmdline in osso-xterm, as well as on trying to directly copy same thing via mass storage under control of your PC.

So while this shows up in your case for USB attached storage, it basically is completely unrelated to hostmode or h-e-n


For the display part: yes, there's something odd with display dimming after restart of bme. Usually a lock&unlock of screen fixes that

/j

firstknight 2010-11-17 04:13

Re: Thread for problems getting USB hostmode working.
 
mine says unable to connect no system file available....

also for new power kernel v45 do i still need to instal i2c-tools?

joerg_rw 2010-11-17 04:41

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by firstknight (Post 875745)
also for new power kernel v45 do i still need to instal i2c-tools?

Yes, i2c-tools are needed to make VBUS boost possible. If Mohammad has packaged
h-e-n GUI pkg correctly, it should install i2c-tools as a dependency
/j

kolos 2010-11-17 07:46

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by joerg_rw (Post 875664)
N95 looks really weird, from a fast scan it seems N95 is trying to create more than 16 devices, and that fails. ttyACM is coming up (terminal to N95), but no mass storage in first 15 devices

For Canon I see:
[ 9355.010009] usb 1-1: new full speed USB device using musb_hdrc and address 120
[ 9355.164764] usb 1-1: adding 1-1:1.0 (config #1, interface 0)
[ 9355.166290] usb 1-1: New USB device found, idVendor=04a9, idProduct=30b1
[ 9355.166351] usb 1-1: Product: Canon Digital Camera
[ 9355.166351] usb 1-1: Manufacturer: Canon Inc.
Then the log aborts. It seems like Canon needs an awful lot of retries, until it ends up with addr 120. Possibly this device needs some 10s of seconds to initialize after VBUS, prior to starting ENUM.

cheers
jOERG

Joerg, thanks for explanation.

About camera, I attached it in switched off state, so when I initiate VBUS it actually switch on the camera first. I will do the test also with switched on camera and post the log.

N95 has 2 partitions, phone's internal drive and microsd memory card. I will try to connect the phone in PC suite mode without microsd memory and also post the results.

I don't expect from you guys that you will provide us functionality for any device which come across our minds. I'm already exited and satisfied with current progress. I just hope that infos like this can help you to make some additional improvements.

Thanks again!

firstknight 2010-11-17 08:15

Re: Thread for problems getting USB hostmode working.
 
1 Attachment(s)
Quote:

Originally Posted by joerg_rw (Post 875761)
Yes, i2c-tools are needed to make VBUS boost possible. If Mohammad has packaged
h-e-n GUI pkg correctly, it should install i2c-tools as a dependency
/j

hmm i tried.. and this is what i got...as per attachement....

sygys 2010-11-17 08:17

Re: Thread for problems getting USB hostmode working.
 
I just fixed to connect my PC keyboard without installing any other programs. Awsome!

cloud596 2010-11-17 09:49

Re: Thread for problems getting USB hostmode working.
 
2 Attachment(s)
@joerg_rw :

thanx for your advance from my 1st report but unfortunately I don't have any pc linux at all.

Sorry while I edit my imei suddenly i overwrite sda1 to sdb1 on last word. that was a mistake, so actually the problem is with primary hard drive on n86 it self, Icon copy , move file from n900 to 8GB sdhc and delete file inside MC from N900. as far as I know as standard format for mobile usually FAT or FAT32 not NTFS which is microsoft development.
but at part of kernel message from h-e-n it was succesfully scan and set write protected off, but while tried to copy to primary hard drive on n86, cause something I don't know its been set to read only.

I am curious so I plugged again and the reported were ?
below on attachment

debernardis 2010-11-17 11:18

Re: Thread for problems getting USB hostmode working.
 
I've also tested two quite recent nokia smartphones, equipped with microsd adjunctive memory: an E51 and an E90.
With sfdisk -l both showed sda1 to 4 after connecting with h-e-n, which is the first weird thing because they should show two partitions only (internal and sdcard); also, the partitions appeared empty.

A cheap Chinese mp3 player with 2 gigs on board didn't get recognized in any way.

I'm not particularly interested in making those work. Anyway, if someone is interested I can attach dmesg output for each device.

All thumb drives I have work well, and this is what counts to me. Also two external hard drives with their external power supply I have, connected to a hub and from the hub to the n900, did get enumerated and could be mounted - for the NTFS one I did like in http://talk.maemo.org/showpost.php?p...5&postcount=10

joerg_rw 2010-11-17 16:25

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by cloud596 (Post 875897)
@joerg_rw :

thanx for your advance from my 1st report but unfortunately I don't have any pc linux at all.

[...]
but at part of kernel message from h-e-n it was succesfully scan and set write protected off, but while tried to copy to primary hard drive on n86, cause something I don't know its been set to read only.

I am curious so I plugged again and the reported were ?
below on attachment

please check your log. it has several lines suggesting "USB cable defect?"
Also it seems the device is recognized as full-speed, while you're trying to connect high-speed.
In addition to my answer in other thread, I'd suggest trying a better cable/adapter combo, and also try to use different speeds in h-e-n GUI.
Also I don't know if there's such a thing, but if there is then you should select "mass storage mode" on N86, at least for initial testing. Make sure N86 doesn't try to charge from USB, this would cause problems with VBUS overload and switchoff, which also will result in hostmode failing after initial proper ENUM. To rule that out you may want to use a externally powered hub.

Thanks for the log :-)
cheers
jOERG

stlpaul 2010-11-17 21:30

Re: Thread for problems getting USB hostmode working.
 
I'm still waiting for my USB adapter to arrive in mail before I can try to attach a real device, however:

- USB/wall charger is not attached to N900
- Start h-e-n
- Wait 5 seconds
- Close h-e-n
- Battery is now detected as having MUCH less life.

For example if I have 90% battery remaining suddenly it will have 50% remaining. If I open h-e-n for 5 seconds and quit again, suddenly N900 says my battery is dead.

(I understand that BME must be stopped for h-e-n to function and that battery monitoring won't work while it is active, I'm talking about after h-e-n has closed)

Is this normal experienced by everyone else or have I got something wrong? I'm using power45 and h-e-n 0.2-8

EDIT/Update: I decided to try "stop bme" followed by "start bme" and after issuing these commands, the battery level appears to be the normal (expeced) value again.

kolos 2010-11-17 21:40

Re: Thread for problems getting USB hostmode working.
 
3 Attachment(s)
I made new logs as I promised. Now I attached already switched on camera and N95 without memory card. Between camera logs is few seconds delay.

joerg_rw 2010-11-17 22:13

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by stlpaul (Post 876449)
I'm still waiting for my USB adapter to arrive in mail before I can try to attach a real device, however:

- USB/wall charger is not attached to N900
- Start h-e-n
- Wait 5 seconds
- Close h-e-n
- Battery is now detected as having MUCH less life.

For example if I have 90% battery remaining suddenly it will have 50% remaining. If I open h-e-n for 5 seconds and quit again, suddenly N900 says my battery is dead.

(I understand that BME must be stopped for h-e-n to function and that battery monitoring won't work while it is active, I'm talking about after h-e-n has closed)

Is this normal experienced by everyone else or have I got something wrong? I'm using power45 and h-e-n 0.2-8

EDIT/Update: I decided to try "stop bme" followed by "start bme" and after issuing these commands, the battery level appears to be the normal (expeced) value again.

Don't ask me what bme is doing to guesstimate battery capacity. Maybe it gets confused by 'sudden' voltage drop, or it goes mad about somebody "messed with bq24150" - no idea. My suggestion: just ignore it. If battery really would drop at that rate, your device would melt and glow.
BME is known to store things to CAL (a persistent storage partition for all sort of small data), and maybe it decides battery has to be very near to an end when voltage is dropping by 100mV from last probe to next probe (ignoring there were arbitrary off times between). Aslo BME is known to lie about capacity. This seems in accordance with other phones. The icon is all but linear.
/j

stlpaul 2010-11-17 22:17

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by joerg_rw (Post 876484)
Don't ask me what bme is doing to guesstimate battery capacity. Maybe it gets confused by 'sudden' voltage drop, or it goes mad about somebody "messed with bq24150" - no idea. My suggestion: just ignore it. If battery really would drop at that rate, your device would melt and glow.
/j

:D I was sure the battery didn't really lose full capacity in a matter of seconds.

In fact, after more repeated "stop bme" and "start bme" I can see that the readings fluctuate quite large amounts each time it is restarted in general.

so in other words "Nothing to see here. Move along."

Thanks. :)

firstknight 2010-11-17 23:34

Re: Thread for problems getting USB hostmode working.
 
1 Attachment(s)
Quote:

Originally Posted by firstknight (Post 875846)
hmm i tried.. and this is what i got...as per attachement....

anyone can help me??

kolos 2010-11-18 07:13

Re: Thread for problems getting USB hostmode working.
 
1 Attachment(s)
I'm attaching another log, for Patriot 16GB USB stick. For this one I needed to hit 2 times Mount before it appeared in File Manager.

keljuk 2010-11-18 15:30

Re: Thread for problems getting USB hostmode working.
 
Is there a way to get a generic dual-stick-clone gamepad to work with n900 and the emulators... It seems to recognize it, but it has no function what so ever and none of the light light up :(

sophocha 2010-11-18 15:42

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by kolos (Post 876790)
I'm attaching another log, for Patriot 16GB USB stick. For this one I needed to hit 2 times Mount before it appeared in File Manager.

yeah, almost all times you need to hit it twice, I`m not sure if it`s a bug or not

arkonosze 2010-11-26 12:36

Re: Thread for problems getting USB hostmode working.
 
Usb mouse doesn't work for me :/ I've installed bt-hid-scrpits. I can mount pendrives and card readers but when I connect mouse it doesn't react. Mouse cursor doesn't move, but mouse lights are on. Please help :D btw I have power kernel installed. I just don't know what to do :/

impeham 2010-11-26 15:27

Re: Thread for problems getting USB hostmode working.
 
mouse works for me but i cannot see the cursor - anyone had this issue? if i click i can see it reacts but no cursor...

SubCore 2010-11-26 16:11

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by impeham (Post 883836)
mouse works for me but i cannot see the cursor - anyone had this issue? if i click i can see it reacts but no cursor...

you need to install bt-hid-scripts (you don't have to download from there, it's in extras-devel) and call "showmouse" from XTerm.

but beware, it will mess up kinetic scrolling.

impeham 2010-11-26 16:22

Re: Thread for problems getting USB hostmode working.
 
ok issue solved - i installed ExtMou and cursor is working and also a wireless mouse that previously didn't work.

blue_led 2010-11-26 16:42

Re: Thread for problems getting USB hostmode working.
 
2 Attachment(s)
working devices

"Carrefour" class card reader :D
Gembird NIC-U1 ( device id 0b95:772a, ASIX chip )

card reader work fine but xD card dont mount from button . it must mount manually. PNY 32G sd card mount ok from button. other media not tested yet.
ethernet adapter detected but dhcp is useless.
I add ip, route, dns settings mannualy

impeham 2010-11-26 17:35

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by keljuk (Post 877152)
Is there a way to get a generic dual-stick-clone gamepad to work with n900 and the emulators... It seems to recognize it, but it has no function what so ever and none of the light light up :(

it is working - i was playing with such a joystick - connected my n900 to the TV and played mame games, playstation games with the emulator, and mupen 64 - amazing - the N900 has now become a full game console...

i used mgtech joystick:
http://img.zap.co.il/pics/5/6/1/1/21601165b.gif

impeham 2010-11-26 17:37

Re: Thread for problems getting USB hostmode working.
 
just got my order from ebay:
http://cgi.ebay.com/USB-Female-USB-M...item2c58fe92c9

no extra cables, very easy to carry around.

very small and works great!

prymus 2010-11-26 19:23

Re: Thread for problems getting USB hostmode working.
 
Anyone get a usb serial adapter working? Someone in the "[Announce] USB hostmode beta release" thread said that they did, but the one I have does not work. Mine has a Prolific PL2303 chipset in it. I never get the /dev/ttyUSB0 created. This same adapter works fine on the PC running Debian or Ubuntu. If anyone has a usb serial working, what chipset is it using?

blue_led 2010-11-26 19:47

Re: Thread for problems getting USB hostmode working.
 
2 Attachment(s)
Quote:

Originally Posted by prymus (Post 883973)
Anyone get a usb serial adapter working? Someone in the "[Announce] USB hostmode beta release" thread said that they did, but the one I have does not work. Mine has a Prolific PL2303 chipset in it. I never get the /dev/ttyUSB0 created. This same adapter works fine on the PC running Debian or Ubuntu. If anyone has a usb serial working, what chipset is it using?

power kernel 46 seems to have usbserial.ko in place but because pl2303.ko is missing ... you get the idea
diablo version of pl2303.ko don't work ( forcing mode ; got some errors revealed in dmesg )
i tried to compile a new version but i have problems with my ironport proxy and dns as usual in scratchbox.

Late edit:
I compiled pl2303.ko against 10power46 kernel.
i will test it after a long sleep ( offtopic : & my regular saturday enduro ride )

Later edit 2
i put the driver here, for convenience but i don't test it yet

Trestry 2010-11-26 20:03

Re: Thread for problems getting USB hostmode working.
 
Is there a way to get write support for NTFS? At the moment I can see my NTFS harddisk, but I can't write files towards it. FAT and FAT32 are both working fine.

blue_led 2010-11-27 04:21

Re: Thread for problems getting USB hostmode working.
 
in extras thre is kernel-module-ntfs. take a look.

anapospastos 2010-11-27 14:57

Re: Thread for problems getting USB hostmode working.
 
Mount button doesnt work all the times so I m mounting manually the connected devices but they are read-only. Can someone tell me the right way to give them write permissions? I tried chmod with all the ways but no light.

MohammadAG 2010-11-27 15:03

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by anapospastos (Post 884414)
Mount button doesnt work all the times so I m mounting manually the connected devices but they are read-only. Can someone tell me the right way to give them write permissions? I tried chmod with all the ways but no light.

Code:

mount -o uid=29999,gid=29999,utf8,dmask=027,fmask=137 [dev node] [mount point]
Read the first page of this thread.

Zas 2010-11-27 15:17

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by firstknight (Post 876563)

As root:
Code:

cd /var/lib/dpkg/info
mv linux-kernel-headers.list linux-kernel-headers.list.bak
mv linux-kernel-headers.md5sums linux-kernel-headers.md5sums.bak
apt-get install i2c-tools
mv linux-kernel-headers.list.bak linux-kernel-headers.list
mv linux-kernel-headers.md5sums.bak linux-kernel-headers.md5sums


MohammadAG 2010-11-27 15:55

Re: Thread for problems getting USB hostmode working.
 
Quote:

Originally Posted by Zas (Post 884430)
As root:
Code:

cd /var/lib/dpkg/info
mv linux-kernel-headers.list linux-kernel-headers.list.bak
mv linux-kernel-headers.md5sums linux-kernel-headers.md5sums.bak
apt-get install i2c-tools
mv linux-kernel-headers.list.bak linux-kernel-headers.list
mv linux-kernel-headers.md5sums.bak linux-kernel-headers.md5sums


Don't do that, the new package is fixed, don't mess with dpkg's database!

bachagabriel 2010-11-27 21:46

Re: [Announce] USB hostmode beta release
 
Same question but did not get answered
Quote:

Originally Posted by Nightmae (Post 875708)
Thanks all for work on h-e-n, that successfully tested on Flash drive(SanDisk Extreme Contour 16GB), mice and keyboard =)

but how to work on lan adapter? i tested in full speed hostmode, router can detect the lan signal, but can't connect network though wired lan. I don't know how to setup by wired lan, can anyone help me?? thanks!

I tried connecting a usb network adapter. The connection between the adapter and the N900 worked but the N900 does not connect to the internet.

How can I make this work? What packages must I install?

If nothing is available can someone write a program that allows us to do so?

Thanks

deny_winarto 2010-11-28 02:13

Re: Thread for problems getting USB hostmode working.
 
sorry if this has been asked before, but do you have to install the power kernel in order to make this work?
I've heard bad things about the modified kernel so i prefer to keep the original one.. thanks

NokiaRocks 2010-11-28 04:25

Re: Thread for problems getting USB hostmode working.
 
Yes you do need the power kernel to get the host mode working.

I just installed h-e-n, but I dont really know here I can find the mounted device.
.Thx for the help.

//edit : Just rebooted again and now every thing's working fine ;)
Great job all people who made the host mode possible.


All times are GMT. The time now is 04:57.

vBulletin® Version 3.8.8