BC127: Pair/bond to BLE peripheral?

Discussions about BC118, BC127, BC188 modules

BC127: Pair/bond to BLE peripheral?

Postby thomasfogh » Fri May 19, 2017 12:50 pm

How do I pair with a BLE peripheral from a BC127 acting as central? (It has Melody Audio V6.1.0.)

I can scan for it and open a connection, but sending a "PAIR xxxxx" just end in PAIR_ERROR, and I don't get a SM_PAIRING_AUTH_IND on my BLE peripheral.
My BLE peripheral is a BC118 running custom firmware.

Thanks!

/Thomas Fogh
thomasfogh
 
Posts: 8
Joined: Mon May 08, 2017 3:39 am
Has thanked: 0 time
Have thanks: 0 time

Re: BC127: Pair/bond to BLE peripheral?

Postby thomasfogh » Wed May 24, 2017 7:53 am

Anyone?

Right now my peripheral is just running the CSR hr_sensor sample application. I can connect and get notifications but pairing fails using the MelodySmart command PAIR.
If I use my phone and the BLE scanner app (https://play.google.com/store/apps/deta ... blescanner) it works fine.
And I have also tried using a BLE USB dongle and that can also pair.

/Thomas Fogh
thomasfogh
 
Posts: 8
Joined: Mon May 08, 2017 3:39 am
Has thanked: 0 time
Have thanks: 0 time

Re: BC127: Pair/bond to BLE peripheral?

Postby mlw » Wed May 24, 2017 2:32 pm

Thomas,

Can you upgrade the BC127 to the latest 6.1.4 firmware, I know one of the guys has used this and done what you are trying to achieve although I am having issues with it and neither of us is using custom firmware on the BC118.
Regards

Matt
mlw
 
Posts: 592
Joined: Thu Jun 17, 2010 3:59 am
Has thanked: 0 time
Have thanks: 60 times

Re: BC127: Pair/bond to BLE peripheral?

Postby thomasfogh » Mon May 29, 2017 11:14 am

I've upgraded to 6.1.4 but I still get a PAIR_ERROR.
thomasfogh
 
Posts: 8
Joined: Mon May 08, 2017 3:39 am
Has thanked: 0 time
Have thanks: 0 time

Re: BC127: Pair/bond to BLE peripheral?

Postby mlw » Tue Jun 06, 2017 6:55 am

Not sure where the problem is, I have it working as per the attached.

Regards

Matt
Attachments
BC127 (central) connecting to BC118 (peripheral).zip
(1.03 KiB) Downloaded 7 times
mlw
 
Posts: 592
Joined: Thu Jun 17, 2010 3:59 am
Has thanked: 0 time
Have thanks: 60 times

Re: BC127: Pair/bond to BLE peripheral?

Postby thomasfogh » Tue Jun 06, 2017 8:02 am

Hi Matt,

You're not trying to pair.
I can also create a connection but pairing doesn't work. I just get a PAIR_ERROR.
thomasfogh
 
Posts: 8
Joined: Mon May 08, 2017 3:39 am
Has thanked: 0 time
Have thanks: 0 time

Re: BC127: Pair/bond to BLE peripheral?

Postby mlw » Tue Jun 06, 2017 8:17 am

Thomas,

Can you send me the sequence you are using in the same way I did so I can compare and play (and ask other people)?

Regards

Matt
mlw
 
Posts: 592
Joined: Thu Jun 17, 2010 3:59 am
Has thanked: 0 time
Have thanks: 60 times

Re: BC127: Pair/bond to BLE peripheral?

Postby thomasfogh » Tue Jun 06, 2017 8:36 am

You can run the "HR Sensor" sample from CSR on the BC118.

Code: Select all
version<CR>
BlueCreation Copyright 2017<CR>
Melody Audio V6.1.4<CR>
Build: 1493828294<CR>
<HT>   Bluetooth address 20FABB019008<CR>
<HT>   Profiles: A2DP AVRCP HFP BLE SPP PBAP MAP<CR>
<HT>   Codecs: SBC<CR>
OK<CR>
status<CR>
STATE CONNECTED[0] CONNECTABLE[ON] DISCOVERABLE[ON] BLE[IDLE]<CR>
OK<CR>
SET BLE_CONFIG=1<CR>
OK<CR>
SCAN 5<CR>
PENDING<CR>
SCAN 0015BC888888 0 <0015BC888888> 06 -91db<CR>
SCAN 0015BC229A54 0 <0015BC229A54> 06 -96db<CR>
SCAN 0015BC888888 0 <0015BC888888> 06 -90db<CR>
SCAN 00025B00B91B 0 <CSR Keyboard> 05 -56db<CR>
SCAN 0015BC123456 0 <0015BC123456> 06 -91db<CR>
SCAN F4F5D8C48A31 0 <UNKNOWN> 06 -86db<CR>
SCAN 0015BC888888 0 <0015BC888888> 06 -93db<CR>
SCAN 0015BC123456 0 <0015BC123456> 06 -92db<CR>
SCAN 00025B00B91B 0 <CSR Keyboard> 05 -56db<CR>
SCAN 0015BC888888 0 <0015BC888888> 06 -87db<CR>
SCAN 00025B00B91B 0 <CSR Keyboard> 05 -56db<CR>
SCAN 0015BC123456 0 <0015BC123456> 06 -91db<CR>
SCAN 00025B00B91B 0 <CSR Keyboard> 05 -58db<CR>
SCAN 0015BC888888 0 <0015BC888888> 06 -92db<CR>
SCAN 00025B00B91B 0 <CSR Keyboard> 05 -55db<CR>
SCAN 0015BC229A54 0 <0015BC229A54> 06 -95db<CR>
SCAN F4F5D8C48A31 0 <UNKNOWN> 06 -80db<CR>
SCAN 0015BC888888 0 <0015BC888888> 06 -87db<CR>
SCAN 00025B00B91B 0 <CSR Keyboard> 05 -58db<CR>
SCAN 0015BC888888 0 <0015BC888888> 06 -94db<CR>
SCAN 0015BC888888 0 <0015BC888888> 06 -87db<CR>
SCAN 0015BC888888 0 <0015BC888888> 06 -92db<CR>
SCAN_OK<CR>
OPEN 00025B00B91B BLE 0<CR>
PENDING<CR>
OPEN_OK 14 BLE 00025B00B91B<CR>
PAIR 00025B00B91B<CR>
PENDING<CR>
PAIR_ERROR 00025B00B91B<CR>
thomasfogh
 
Posts: 8
Joined: Mon May 08, 2017 3:39 am
Has thanked: 0 time
Have thanks: 0 time

Re: BC127: Pair/bond to BLE peripheral?

Postby mlw » Tue Jun 06, 2017 3:29 pm

Thomas,

I have confirmed that the BC127 does not support bonding hence if you set bonding on with the BC118 (which does support it) the connection will be rejected.

Between these two units you can only set up a connection and send/receive data.

Regards

Matt
mlw
 
Posts: 592
Joined: Thu Jun 17, 2010 3:59 am
Has thanked: 0 time
Have thanks: 60 times

Re: BC127: Pair/bond to BLE peripheral?

Postby thomasfogh » Wed Jun 07, 2017 5:55 am

Hi Matt,

Must BLE services require encryption, LE Security Mode 1 and either Security Level 2 or 3.
The BC127 also fails to respond to a SM Slave Security Request.
If you want your customers to be able to connect to anything other than Melody Smart modules using BLE, you need to implement bonding.

/Thomas
thomasfogh
 
Posts: 8
Joined: Mon May 08, 2017 3:39 am
Has thanked: 0 time
Have thanks: 0 time

Re: BC127: Pair/bond to BLE peripheral?

Postby mlw » Wed Jun 07, 2017 6:40 am

Thomas,

I don't get your meaning?

It is just the BC127 that does not implement bonding on BLE, BC118 does so it is just the combo you are using that does not do exactly what you want.

Regards

Matt
mlw
 
Posts: 592
Joined: Thu Jun 17, 2010 3:59 am
Has thanked: 0 time
Have thanks: 60 times

Re: BC127: Pair/bond to BLE peripheral?

Postby thomasfogh » Wed Jun 07, 2017 6:49 am

Hi Matt,

Yes. So your customers will not be able to connect 3rd party BLE devices to their BC127, like a BLE remote or keyboard.

/Thomas
thomasfogh
 
Posts: 8
Joined: Mon May 08, 2017 3:39 am
Has thanked: 0 time
Have thanks: 0 time

Re: BC127: Pair/bond to BLE peripheral?

Postby mlw » Wed Jun 07, 2017 10:52 am

Thomas,

Yes but this is not typically where the B127 is aimed at. I will point this out to product management and make sure that it is implemented in future modules.

Regards

Matt
mlw
 
Posts: 592
Joined: Thu Jun 17, 2010 3:59 am
Has thanked: 0 time
Have thanks: 60 times

Re: BC127: Pair/bond to BLE peripheral?

Postby thomasfogh » Wed Jun 07, 2017 11:40 am

Hi Matt,

Thanks! It should be a fairly simple firmware update as you already support this for classic Bluetooth.

/Thomas
thomasfogh
 
Posts: 8
Joined: Mon May 08, 2017 3:39 am
Has thanked: 0 time
Have thanks: 0 time


Return to WiFi and Bluetooth Modules

Who is online

Users browsing this forum: No registered users and 1 guest