BLE connection problem

Post Reply
arajakar
Posts: 13
Joined: Tue Sep 11, 2018 2:52 pm
Company: university oulu

BLE connection problem

Post by arajakar » Mon Oct 22, 2018 12:52 pm

Hi I was trying to run the BLE Example 09(encrypted connection) and connect the waspmote with raspberry pi with encrypted connection., but I got the following error. What can be the reason for this "Error encryting connection".

Waiting for incoming connections...
Connected!
Now Waspmote is connected as slave.
MASTER MAC Address: B827EBBB37F4
Error encryting connection
Event found
flag = 12
Event found
flag = 13

libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: BLE connection problem

Post by libelium-dev » Tue Oct 23, 2018 11:00 am

Hi,

What API version are you using?

Could you please post the output with debug mode enabled to know more information about the problem?

Regards

arajakar
Posts: 13
Joined: Tue Sep 11, 2018 2:52 pm
Company: university oulu

Re: BLE connection problem

Post by arajakar » Tue Oct 23, 2018 12:43 pm

I'm using API v0.35. This is serial output,

J#
BLE_08 Example
[BLE] ev:8007070099C80300000101
[BLE] Cmd: 0400000604
[BLE] Ans: 000206048101[BLE] ec: 181
[BLE] Cmd: 0700030606000001
[BLE] Ans: 000206060000[BLE] ec: 0
[BLE] BLE init ok
[BLE] Cmd: 06000206010200
[BLE] Ans: 000206010000[BLE] ec: 0
[BLE] Cmd: 06000206010202
[BLE] Ans: 000206010000[BLE] ec: 0
Waiting for incoming connections...
[BLE] ev:801003000005F437BBEB27B80036002A000000FF
Connected!
Now Waspmote is connected as slave.
MASTER MAC Address: B827EBBB37F4
[BLE] Cmd: 06000205006501
[BLE] Ans: 00030500658601[BLE] ec: 186
Error encryting connection

libelium-dev
Posts: 27967
Joined: Mon Sep 28, 2009 1:06 pm

Re: BLE connection problem

Post by libelium-dev » Thu Oct 25, 2018 2:34 pm

Hi,

Could you try to add to the code a delay just before BLE.encryptConnection() function? We have tried to connect with a mobilephone and it works including the delay.

Regards

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest