Sample128 device discovery/pair

7 posts / 0 new
Last post
zwang308
Offline
Last seen:4 years 1 month ago
Master
Joined:2014-07-02 14:15
Sample128 device discovery/pair

Hi Dialog,

I am currently working on a project base on your sample 128 project. However, I notice even using the same advertise package as keyboard application, sample 128 project could not discovery by iOS device directly. Could you help me with it?

Also, is that possible for me to use MITM if I only have a LED on my board? I find we could set IO capability to GAP_IO_CAP_DISPLAY_YES_NO. Then, how could I get the true/false information and what should I do to realize the Security level 3 with that.

Thanks a lot.

AK_Dialog
Offline
Last seen:2 weeks 2 days ago
Staff
Joined:2013-12-16 15:49
Dear Zwang,

Dear Zwang,

Can you share the advertisement data you are trying to put into the sample128 project and where you placed it in the code (share some codesnippets)?

Concerning the MITM you need a way to enter a security code into the peripheral device (like a keyboard).

Dialog Bluetooth Smart Support Team.

zwang308
Offline
Last seen:4 years 1 month ago
Master
Joined:2014-07-02 14:15
Hi AK,

Hi AK,

Thanks a lot for your reply!

Actually, I did not do any change for the advertising part in sample 128 project. I mean, after downloading the original sample128 project, I could find the device using app 'Light Blue'. However, when I open settings/bluetooth in my Iphone, I could not find it.
But for the keyboard application, I could find it directly under Setting/Bluetooth/Devices, without any extra app. I was wondering if I want to find/pair the sample128 application without any third party applications on my iphone, what should I do.

Basically, what I want to do is finding the device directly under Setting/Bluetooth/Devices without any third party device and build the connection automatically when Bluetooth is turn on.(P.S. I also notice in the keyboard application, only after I enable MITM, the application connects to my phone automatically. Does it mean if I want to do the automatic connecting after paired, I must enable MITM?)

Looking forward to your reply and thanks a lot.

AK_Dialog
Offline
Last seen:2 weeks 2 days ago
Staff
Joined:2013-12-16 15:49
Hi Zwang,

Hi Zwang,

Since the keyboard project supports HID over Bluetooth Smart, this is supported by IOS(7-up), Android(4.4-up) and Windows (8-up) and therefor appears in the device list.

The sample128 project ( and also the proximity reporter) advertises their services over the air but you need an app(lication) like 'Light Blue' to detect and connect to the device.

Best regards,

Dialog Bluetooth Smart Support Team.

zwang308
Offline
Last seen:4 years 1 month ago
Master
Joined:2014-07-02 14:15
HI AK,

HI AK,

Thanks a lot for your reply and I am really appreciated. One more question:

For services not supported by IOS/Android/Windows, do we need an extra application to realize automatically connecting even after the device is paired with the host(e.g. iphone).

My current situation is I use security level 2 and enable service in app_paired_func in sample128 project. It asks me to pair to iphone when I try to open the service in LightBlue. After disconnect, I start direct connectable advertising(copy from keyboard application). However I could neither connect the device in IOS device list(after pairing, the device shows in the list) nor find it in app LightBlue.

Thanks a lot.

nagaraj21r
Offline
Last seen:6 years 1 month ago
Joined:2014-09-15 19:10
Hi, any chance to get the

Hi, any chance to get the code Sample128 as client which will scan and connect and get the profile access. Please let me know

AK_Dialog
Offline
Last seen:2 weeks 2 days ago
Staff
Joined:2013-12-16 15:49
Hi,

Hi,

The code sample 128 is not available as client since a client in general has much more user interaction, which normally is executed on a phone, tablet , PC or any other external microcontroller. The way to implement this is described in UM-B-010 :DA14580 Proximity Example in Integrated External Proc Solution V1.1.pdf. In this example the proximity profile can be exchanged with the user profile including the code 128 sample.

Regards,
Dialog Bluetooth Smart Support Team.