WT32 Auto-Connect

Ok, this one has me stumped right now. Is there a way to get the WT32 module (running PROFILE HFP and PROFILE A2DP) to ‘auto-connect’ to the phone when the WT32 module power up?

Right now, if I power cycle the WT32, no connect.

If I turn off BT and turn it back on again on the phone, HFP connects, but A2DP does not.

If I go into the phone and tell it to “set as wireless stereo”, then I get the Ring 1,Ring 2 and the A2DP connects.

Digging through the iWrap docs and nothing jumps out. Suggestions? How do you get the module to automatically connect on power up? Thanks!

Hi,

Sixerdoodle,

Unfortunately, I just don’t have the time to test this.

However, look at the IWrap to IWrap Serial Port Profile + SCO connection. In this example the SET CONTROL BIND option is used to automatically initiate an SCO connection when the SPP is established.

Effectively one of the I/O rises upon SPP connection and this triggers the WT32 to execute SCO Open 0. Perhaps you can use something similar to initiate an A2DP connection rather than SCO connection.

At the WT32 module create some hardware/firmware/software to make an I/O go high soon after power up. Use SET CCONTROL BIND to initiate A2DP when that I/O goes high.

I am not certain it will work but it may be worth a try.

thanks, that’s getting closer :slight_smile:

I’ve used a SET CONTROL AUTOCALL 111e 5000 HFP which on bootup or reset connects the hands free profile to the phone -sweet-

Trick is I also want to connect the A2DP profile. only one autocall allowed :frowning: so I used the trick of watching a PIO line and ended up with this

SET CONTROL CD 80 0 - to raise the line when the hfp connect is made

and then a SET CONTROL BIND 0 80 R call 00:17:e8:3f:d9:e2 19 a2dp

So the hfp profile autocalls, which when it connects, raises the pio bit which triggers the call to connect the a2dp profile. Works pretty slick except I’ve got to put the address in the call, which means it’s binding dependent.

any way to wildcard the address or force it to pick the first address?

Hi,

I am pleased that you are getting nearer to your reqiurements.

The autocall appears to connect to the first paired device if available but as you state the address has to be supplied for the second connection.

When the autocall connection is made does the appropriate BT address get reported. If so can you parse this address part of the text and use this for the second call?