RN52 Configuring

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

RN52 Configuring

leva3000
Hi guys! Until the mic is not working maybe is there way to disable phone profile in RN52 to answer the calls in usual way when the phone connected to rn52? For now anybody cannot hear me. Can suggest how to configure in this way? I think this can be helpful http://ww1.microchip.com/downloads/en/DeviceDoc/50002154A.pdf
Reply | Threaded
Open this post in threaded view
|

Re: RN52 Configuring

leva3000
Also there you can find commands for configuring mic gain level. Maybe it can be helpful with saab built-in mic problem?

Also I find SS command for configuring speaker gain level. Can it raise up the sound level? For now it little bit quiter than radio etc.

Also it would be nice to configure RN52 to sleep after a timeout and wake up when CDC mode on. It is not good when my saab discoverable on the parking.

Also I noticed that answers from RN52 displayed incorectly in port monitor. Maybe SU command (UART speed) can fix it?
Reply | Threaded
Open this post in threaded view
|

Re: RN52 Configuring

Karlis
Administrator
*) The problem with no one being able to hear you is not with RN52. It is actually how your phone treats the connection. When your phone is connected to the module, it "gives" all of it's "resources" to it. Or should I say, it "routes" all the signals through it. This includes both: audio out and mic in. And since there's no microphone connected to the module, there's no input. Hence - no one can hear you. I doubt there's a bluetooth profile out there, that allows to route audio out via bluetooth while keeping the mic in on the source level.

*) When switching over to CDC mode, the code sends "SS,0F" (max volume up) to RN52. In case it fails to do it, you can still force "volume up" function on your 9-5 by long pressing CD/RDM button on IHU till you hear a beep (as described here). That will raise the volume level of RN52 by one.

*) We might think of powering down (or putting the module to sleep) in further revisions of code.

*) The serial speed of RN52 is set to default of 115200bps as it should be. The problem you are seeing is because of buffer sizes and handling of it. I haven't been able to spend much time on that code as have more pressing issues at hand at the moment.
2001 9-5 SE V6; 2006 9-5 Wagon; iOS; BlueSaab version = "latest and greatest" :)
Reply | Threaded
Open this post in threaded view
|

Re: RN52 Configuring

Da Bear
In bluetooth setting on your phone you can deactivate that it should route calls to the connected bluetooth device.

Screenshot_2016-01-24-23-19-46.png
Saab 9-5 Aero MY01 AS3 - 270hp/240hp Biopower
Saab 9-5 SE    MY00 AS1 - 210hp+
Reply | Threaded
Open this post in threaded view
|

Re: RN52 Configuring

Karlis
Administrator
In reply to this post by leva3000
In order to disable HFP (phone profile) and keep the audio (A2DP) profile, settings SD and SK on RN52 Bluetooth module need to be set to a value of "06" (without the quotes). That will essentially tell RN52 to stream music, but once there's an incoming voice call, it will route the audio and mic-in through the phone.
2001 9-5 SE V6; 2006 9-5 Wagon; iOS; BlueSaab version = "latest and greatest" :)