Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - problem about Integrating Bluetooth audio devices into the MME: (7 Items)
   
problem about Integrating Bluetooth audio devices into the MME  
hello all


      I want Integrating Bluetooth audio devices into the MME, so i use the  

avrcpexample. But when call the function "device_init(dep)"  my broad will down.

I have no idea what happend , because my broad has no reaction after that. The 

only way restart the broad is cuting power. Can anybody help me? thanks very 

much.


shawn
Re: problem about Integrating Bluetooth audio devices into the MME  
> avrcpexample. But when call the function "device_init(dep)"  my broad will 
> down.

I think that io-fs internally sends a pulse back to itself at priority 12 and then calls your drivers mount function. 
You could try using gdb or putting printfs() in there to see how far it goes.

Could it be spinning in a loop (i.e. trying to parse options or something?) at priority 12? That would make the other 
software on the board running at priority 10 look unresponsive.

You could also raise the priority of your shell so that it doesn't lock up so you can better debug the issue (i.e. see 
the output of pidin)

Regards,
Gilles
Re: problem about Integrating Bluetooth audio devices into the MME  
hi

   thank you very much. I get into a dead loop in 'mediafs_mount' as you said. 

   Now,I face another problem. MME can not send right cmd to 
 
io-fs-media(avrcpexample).

//////////////////////////////////////////////////////////
 when I do :

'qdbc -d mme "select msid,slotid,storage_type, mountpath from mediastores" '

result is:

Rows: 2  Cols: 4
Names:  +msid+slotid+storage_type+mountpath+
00000:  |1|1|2|/media/drive|
00001:  |2|11|2|/fs/avrcp0|

**********************************************
 when I do :

'qdbc -d mme "select fid,msid,folderid,ftype,filename, title from library where msid=2" '

result is:

Rows: 1  Cols: 6
Names:  +fid+msid+folderid+ftype+filename+title+
00000:  |11|2|3|5||Bluetooth|

***********************************************
 when I do :

'mmecli newtrksession l "Select fid from library where msid=2" '

result is:

(rc=0,errno=0) new trksessionid=1.  Execution Time=0.021

*************************************************

 when I do :

'mmecli settrksession 1'

result is:

(rc=0,errno=0) Set trksessionid=1.  Execution Time=0.052

**************************************************

 when I do :

'mmecli play'

result is:

(rc=-1,errno=61) Playing from tracksession fid/bid = 0.  Execution Time=0.067

******************************************************

And my  io-fs-media(avrcpexample)  has not recerve any cmd from MME.

When I run  'io-fs-media -davrcpexample,verbose=10'

I can receive some devctl messages below , but I don't  these cmd is right.

--devctl(0,0x41000212)
--devctl(0,0xc3240c36)
--devctl(0,0x318)
--devctl(0,0x318)
--devctl(0,0x318)
--devctl(0,0x318)
--devctl(0,0x318)
--devctl(0,0x318)
--devctl(0,0x40a8020d)
--devctl(0,0x41000c0b)

///////////////////////////////////////////////////////////////////////////////


 Is any problem here ?  thank you for help.



shawn




Re: problem about Integrating Bluetooth audio devices into the MME  
>    thank you very much. I get into a dead loop in 'mediafs_mount' as you said.

Great!

>    Now,I face another problem. MME can not send right cmd to 
>  
> io-fs-media(avrcpexample).
> 
> 
> And my  io-fs-media(avrcpexample)  has not recerve any cmd from MME.
> 
> 
>  Is any problem here ?  thank you for help.

Generally, when you have issues related to playback, you should start io-media-generic with -DD. Then before you 
reproduce your problem, on the command line you can do:
mmecli set_debug 4 0
sloginfo -c > /dev/null

Now, reproduce your problem and post the output of "sloginfo -t". As well, you could try:
mmecli play_resume_msid 2

Regards,
Gilles
Re: problem about Integrating Bluetooth audio devices into the MME  
Hello Gilles


      the output of "sloginfo -t" below. I think the fatal err is "Jan 01 00:11:41.682    2    27     0 MME:
_attachinput(3321): Could not set input device(/fs/avrcp0) to controlcontext default.  errno=5" .  But I don't know how 
resolve it.

     Do you  have any source code that can work on my board(imx35)?


    Thank you .


Regards

shawn


///////////////////////////////////////////////////////////////////////////////////////

# sloginfo -t

Time                 Sev Major Minor Args
Jan 01 00:02:38.079    3    27     0 MME:fs_volume_get(533): Could not find volume name in /media/drive
Jan 01 00:02:38.090    3    27     0 MME:fs_volume_get(533): Could not find volume name in /media/drive
Jan 01 00:02:38.091    3    27     0 MME:ms_inserted(3546): MSS devb failed getting name for media store with ID 0.
Jan 01 00:02:39.261    7    20     1 io-media-generic: open('graphs/trackplayer/mme_metadata')
Jan 01 00:02:39.261    7    20     1 io-media-generic/trackplayer: Calling graph create function
Jan 01 00:02:39.263    6    20     1 io-media-generic/trackplayer: Created graph instance 'mme_metadata'
Jan 01 00:02:39.263    6    20     1 io-media-generic: open( 'graphs/trackplayer/mme_metadata' ): success
Jan 01 00:02:39.265    7    20     1 io-media-generic/trackplayer: Calling graph handler for dcmd GRAPHOPTIONS
Jan 01 00:02:39.265    7    20     1 io-media-generic/trackplayer: Dcmd GRAPHOPTIONS returning 0
Jan 01 00:02:39.266    3    20     1 io-media-generic/trackplayer: received invalid dcmd (C0300F12)
Jan 01 00:02:39.267    2    27     0 MME:getFileMetadata(82): Failed iom_get_track_info, errno = 22
Jan 01 00:02:39.268    3    20     1 io-media-generic/trackplayer: received invalid dcmd (C0300F12)
Jan 01 00:02:39.268    2    27     0 MME:getFileMetadata(82): Failed iom_get_track_info, errno = 22
Jan 01 00:02:39.269    3    20     1 io-media-generic/trackplayer: received invalid dcmd (C0300F12)
Jan 01 00:02:39.269    2    27     0 MME:getFileMetadata(82): Failed iom_get_track_info, errno = 22
Jan 01 00:02:39.276    3    20     1 io-media-generic/trackplayer: received invalid dcmd (C0300F12)
Jan 01 00:02:39.277    2    27     0 MME:getFileMetadata(82): Failed iom_get_track_info, errno = 22
Jan 01 00:02:39.278    3    20     1 io-media-generic/trackplayer: received invalid dcmd (C0300F12)
Jan 01 00:02:39.278    2    27     0 MME:getFileMetadata(82): Failed iom_get_track_info, errno = 22
Jan 01 00:02:39.279    3    20     1 io-media-generic/trackplayer: received invalid dcmd (C0300F12)
Jan 01 00:02:39.279    2    27     0 MME:getFileMetadata(82): Failed iom_get_track_info, errno = 22
Jan 01 00:02:39.280    3    20     1 io-media-generic/trackplayer: received invalid dcmd (C0300F12)
Jan 01 00:02:39.280    2    27     0 MME:getFileMetadata(82): Failed iom_get_track_info, errno = 22
Jan 01 00:02:39.280    3    20     1 io-media-generic/trackplayer: received invalid dcmd (C0300F12)
Jan 01 00:02:39.281    2    27     0 MME:getFileMetadata(82): Failed iom_get_track_info, errno = 22
Jan 01 00:02:39.281    3    20     1 io-media-generic/trackplayer: received invalid dcmd (C0300F12)
Jan 01 00:02:39.282    2    27     0 MME:getFileMetadata(82): Failed iom_get_track_info, errno = 22
Jan 01 00:03:15.026    2     3   800 io-fs-media(AVRCPEXAMPLE): avrcp_mount
Jan 01 00:03:15.027    2     3   800 io-fs-media(AVRCPEXAMPLE): start
Jan 01 00:03:15.535    5    21     0 run fault pid 327692 tid 2 signal 11 code 1 ip 0x780118b8 io-fs-media
Jan 01 00:03:26.276    2     3   800 io-fs-media(AVRCPEXAMPLE): avrcp_mount
Jan 01 00:03:26.277    2     3   800 io-fs-media(AVRCPEXAMPLE): start
Jan 01 00:03:26.787    5    21     0 run fault pid 335884 tid 2 signal 11 code 1 ip 0x780118b8 io-fs-media
Jan 01 00:10:10.403    2     3   800 io-fs-media(AVRCPEXAMPLE): avrcp_mount
Jan 01 00:10:10.404    2     3   800 io-fs-media(AVRCPEXAMPLE): start
Jan 01 00:10:10.911    5    21     0 run fault pid...
View Full Message
Re: Re: problem about Integrating Bluetooth audio devices into the MME  
Hello Gilles


      Thank you for your reply.
      the output of "sloginfo -t" below. I think the fatal err is "Jan 01 00:11:41.682    2    27     0 MME:
_attachinput(3321): Could not set input device(/fs/avrcp0) to controlcontext default.  errno=5" .  But I don't know how 
resolve it.
     Do you  have any source code that can work on my board(imx35)?
    Thank you .
Regards
shawn
///////////////////////////////////////////////////////////////////////////////////////
# sloginfo -t
Time                 Sev Major Minor Args
Jan 01 00:02:38.079    3    27     0 MME:fs_volume_get(533): Could not find volume name in /media/drive
Jan 01 00:02:38.090    3    27     0 MME:fs_volume_get(533): Could not find volume name in /media/drive
Jan 01 00:02:38.091    3    27     0 MME:ms_inserted(3546): MSS devb failed getting name for media store with ID 0.
Jan 01 00:02:39.261    7    20     1 io-media-generic: open('graphs/trackplayer/mme_metadata')
Jan 01 00:02:39.261    7    20     1 io-media-generic/trackplayer: Calling graph create function
Jan 01 00:02:39.263    6    20     1 io-media-generic/trackplayer: Created graph instance 'mme_metadata'
Jan 01 00:02:39.263    6    20     1 io-media-generic: open( 'graphs/trackplayer/mme_metadata' ): success
Jan 01 00:02:39.265    7    20     1 io-media-generic/trackplayer: Calling graph handler for dcmd GRAPHOPTIONS
Jan 01 00:02:39.265    7    20     1 io-media-generic/trackplayer: Dcmd GRAPHOPTIONS returning 0
Jan 01 00:02:39.266    3    20     1 io-media-generic/trackplayer: received invalid dcmd (C0300F12)
Jan 01 00:02:39.267    2    27     0 MME:getFileMetadata(82): Failed iom_get_track_info, errno = 22
Jan 01 00:02:39.268    3    20     1 io-media-generic/trackplayer: received invalid dcmd (C0300F12)
Jan 01 00:02:39.268    2    27     0 MME:getFileMetadata(82): Failed iom_get_track_info, errno = 22
Jan 01 00:02:39.269    3    20     1 io-media-generic/trackplayer: received invalid dcmd (C0300F12)
Jan 01 00:02:39.269    2    27     0 MME:getFileMetadata(82): Failed iom_get_track_info, errno = 22
Jan 01 00:02:39.276    3    20     1 io-media-generic/trackplayer: received invalid dcmd (C0300F12)
Jan 01 00:02:39.277    2    27     0 MME:getFileMetadata(82): Failed iom_get_track_info, errno = 22
Jan 01 00:02:39.278    3    20     1 io-media-generic/trackplayer: received invalid dcmd (C0300F12)
Jan 01 00:02:39.278    2    27     0 MME:getFileMetadata(82): Failed iom_get_track_info, errno = 22
Jan 01 00:02:39.279    3    20     1 io-media-generic/trackplayer: received invalid dcmd (C0300F12)
Jan 01 00:02:39.279    2    27     0 MME:getFileMetadata(82): Failed iom_get_track_info, errno = 22
Jan 01 00:02:39.280    3    20     1 io-media-generic/trackplayer: received invalid dcmd (C0300F12)
Jan 01 00:02:39.280    2    27     0 MME:getFileMetadata(82): Failed iom_get_track_info, errno = 22
Jan 01 00:02:39.280    3    20     1 io-media-generic/trackplayer: received invalid dcmd (C0300F12)
Jan 01 00:02:39.281    2    27     0 MME:getFileMetadata(82): Failed iom_get_track_info, errno = 22
Jan 01 00:02:39.281    3    20     1 io-media-generic/trackplayer: received invalid dcmd (C0300F12)
Jan 01 00:02:39.282    2    27     0 MME:getFileMetadata(82): Failed iom_get_track_info, errno = 22
Jan 01 00:03:15.026    2     3   800 io-fs-media(AVRCPEXAMPLE): avrcp_mount
Jan 01 00:03:15.027    2     3   800 io-fs-media(AVRCPEXAMPLE): start
Jan 01 00:03:15.535    5    21     0 run fault pid 327692 tid 2 signal 11 code 1 ip 0x780118b8 io-fs-media
Jan 01 00:03:26.276    2     3   800 io-fs-media(AVRCPEXAMPLE): avrcp_mount
Jan 01 00:03:26.277    2     3   800 io-fs-media(AVRCPEXAMPLE): start
Jan 01 00:03:26.787    5    21     0 run fault pid 335884 tid 2 signal 11 code 1 ip 0x780118b8 io-fs-media
Jan 01 00:10:10.403    2     3   800 io-fs-media(AVRCPEXAMPLE): avrcp_mount
Jan 01 00:10:10.404    2     3   800 io-fs-media(AVRCPEXAMPLE): start
Jan 01 00:10:10.911    5    21     0...
View Full Message
RE: Re: problem about Integrating Bluetooth audio devices into the MME  
It looks like the MME doesn't know it is a 2wire device (a device that does its own playback, where audio and control 
have distinct channels).

In the avrcpexample.c file, in the function avrcp_getinfo(), make sure the media/device section of the info.xml file is 
"AVRCP", not "AVRCPEXAMPLE":
  xmlbuf_add(xp, "device", "AVRCP");

If you take a look in services/mme/mss/mediafs2wire/mediafs2wire.c, in the function mss_mediafs2wire_probe() you will 
see the "Found device..." log message which is followed by comparing the device to some known 2wire devices, setting the
 rating appropriately.

-- 
Ryan J. Allen
QNX Software Systems

Attachment: Text winmail.dat 2.81 KB