Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Aviage and Android phones: (6 Items)
   
Aviage and Android phones  
Aviage and mcd can be configured to detect USB stick and play mp3 audio files on the stick. We can do the same with an 
iPhone connected thru the USB port. How do we do the same with an Ardroid phone? "/fs/usb0" shows up when the USB stick 
was inserted to the USB port, and "/fs/ipod0" shows up when the iPhone was inserted to the USB port. I was expecting to 
see "/fs/pfs0" when an Android phone was inserted, but nothing happens. What am I missing?

Thanks.
Re: Aviage and Android phones  
You need to have and run the pfs driver (iofs-pfs.so loaded by
io-fs-media). Refer to the Aviage documentation for usage notes on
iofs-pfs.so. If you don't have the driver contact your QNX representative.

-- 
Ryan J. Allen
QNX Software Systems

Re: Aviage and Android phones  
We do have iofs-pfs.so and it is in the path /lib/dll. The file /etc/system/enum/devices/usb/mtp is configured to have 
io-fs-media starts iofs-pfs driver via the following...

device(usb, mscomp=MTP) driver(io-fs-media "-dpfs,device=$(busno):$(devno):$(iface)")

I was expecting it to start the driver just like it starts the required ipod driver, but it did not. Anything else I 
should check?

Thanks.
Re: Aviage and Android phones  
Starting the iofs-pfs.so manually via running "io-fs-media -dpfs" from the command prompt works. the directory "/fs/pfs0
" showed up and MME/QDB database query listed the mp3 audio files from the Android device. I can also get MME to play 
the audio files.

What else should I check to see why the auto-detect did not work? The file "mcd.conf" has the pfs section as followings.
..

[/fs/pfs*]
Callout = PATH_MEDIA_PROCMGR
Argument = /proc/mount
Priority = 11,10
Start Rule = INSERTED
Stop Rule = EJECTED

Thanks.
Re: Aviage and Android phones  
If the driver isn't starting at all on device insertion then the USB
device enumerator must not be starting it (or, starts it with incorrect
arguments such that it fails). If you are using enum-usb then the mtp enum
file you shared should be correct. You might try different devices to see
if it's a device-specific failure. You might also check to make sure that
enum-usb can find both io-fs-media and iofs-pfs.so in its path and library
search paths okay.

-- 
Ryan J. Allen
QNX Software Systems


Re: Aviage and Android phones  
Finally got it working. I was missing the "check_MS_desc" option.
Thanks.