This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Establishing serial communication between NRF52832 DK and PC through BLE

Hi,

i am begginer, using my nRF52832 DK with ble_app_uart as peripherial, which is connected to PC via J-link (usb cable). I want is to establish serial communication between nF52832 DK and PC via BLE (using virtual COM port and program like PuTTY), using Asus BT400 usb ble dongle (bluetooth 4.0). When I add RF52832 DK on PC, LED 1 stops blinking and start to indicate connection for few seconds (just ligths), then it returns to blinking. Monitoring traffic with Wireshark ( attached in code, line 34) , i noticed line that says: Rcv Pairing Failed: Pairing not supported. 

When establishing serial connection to my android phone, everything works fine and without problem.

I have following questions:

1.)  What thing do i need to add to my code, to establish connection to PC?

2.) I tried ble_app_hids_mouse example, which establish permanent connection with PC withoust problem, is that becouse nRF52832 DK is introduced to PC as HID?

3.) I there possibility anything to be wrong with my drivers ( do I need any special driver), or am i missing something else?

Thanks for answer & best reagards,

Kristof

1	0.000000	fa:cf:26:e6:39:bb	Broadcast	LE LL	46	ADV_IND
2	0.002001	CC&CTech_9e:ad:45	fa:cf:26:e6:39:bb	LE LL	38	SCAN_REQ
3	0.002001	fa:cf:26:e6:39:bb	Broadcast	LE LL	50	SCAN_RSP
4	0.043011	fa:cf:26:e6:39:bb	Broadcast	LE LL	46	ADV_IND
5	0.044011	fa:cf:26:e6:39:bb	Broadcast	LE LL	46	ADV_IND
6	0.045011	fa:cf:26:e6:39:bb	Broadcast	LE LL	46	ADV_IND
7	0.091023	fa:cf:26:e6:39:bb	Broadcast	LE LL	46	ADV_IND
8	0.092023	fa:cf:26:e6:39:bb	Broadcast	LE LL	46	ADV_IND
9	0.093023	fa:cf:26:e6:39:bb	Broadcast	LE LL	46	ADV_IND
10	0.132043	fa:cf:26:e6:39:bb	Broadcast	LE LL	46	ADV_IND
11	0.133033	CC&CTech_9e:ad:45	fa:cf:26:e6:39:bb	LE LL	60	CONNECT_REQ
12	0.187056	Master_0xaf9a8568	Slave_0xaf9a8568	LE LL	26	Empty PDU
13	0.188047	Slave_0xaf9a8568	Master_0xaf9a8568	ATT	33	Rcvd Exchange MTU Request, Client Rx MTU: 247
14	0.189047	Master_0xaf9a8568	Slave_0xaf9a8568	LE LL	32	Control Opcode: LL_VERSION_IND
15	0.247078	Master_0xaf9a8568	Slave_0xaf9a8568	LE LL	32	Control Opcode: LL_VERSION_IND
16	0.248061	Slave_0xaf9a8568	Master_0xaf9a8568	ATT	33	Rcvd Exchange MTU Request, Client Rx MTU: 247
17	0.249071	Master_0xaf9a8568	Slave_0xaf9a8568	LE LL	26	Empty PDU
18	0.307092	Master_0xaf9a8568	Slave_0xaf9a8568	LE LL	26	Empty PDU
19	0.308076	Slave_0xaf9a8568	Master_0xaf9a8568	LE LL	35	Control Opcode: LL_LENGTH_REQ
20	0.367107	Master_0xaf9a8568	Slave_0xaf9a8568	LE LL	28	Control Opcode: LL_UNKNOWN_RSP
21	0.368090	Slave_0xaf9a8568	Master_0xaf9a8568	LE LL	26	Empty PDU
22	0.427106	Master_0xaf9a8568	Slave_0xaf9a8568	LE LL	26	Empty PDU
23	0.428106	Slave_0xaf9a8568	Master_0xaf9a8568	LE LL	32	Control Opcode: LL_VERSION_IND
24	0.487136	Master_0xaf9a8568	Slave_0xaf9a8568	LE LL	35	Control Opcode: LL_FEATURE_REQ
25	0.488120	Slave_0xaf9a8568	Master_0xaf9a8568	LE LL	26	Empty PDU
26	0.547151	Master_0xaf9a8568	Slave_0xaf9a8568	LE LL	26	Empty PDU
27	0.548135	Slave_0xaf9a8568	Master_0xaf9a8568	LE LL	35	Control Opcode: LL_FEATURE_RSP
28	0.607165	Master_0xaf9a8568	Slave_0xaf9a8568	ATT	33	Sent Exchange MTU Request, Client Rx MTU: 525
29	0.608149	Slave_0xaf9a8568	Master_0xaf9a8568	LE LL	26	Empty PDU
30	0.609149	Master_0xaf9a8568	Slave_0xaf9a8568	SMP	37	Sent Pairing Request: AuthReq: Bonding, MITM, SecureConnection, Reserved | Initiator Key(s): IRK, CSRK, Linkkey | Responder Key(s): LTK, IRK, CSRK, Linkkey
31	0.667164	Master_0xaf9a8568	Slave_0xaf9a8568	SMP	37	Sent Pairing Request: AuthReq: Bonding, MITM, SecureConnection, Reserved | Initiator Key(s): IRK, CSRK, Linkkey | Responder Key(s): LTK, IRK, CSRK, Linkkey
32	0.668164	Slave_0xaf9a8568	Master_0xaf9a8568	ATT	33	Rcvd Exchange MTU Response, Server Rx MTU: 247
33	0.669164	Master_0xaf9a8568	Slave_0xaf9a8568	ATT	33	Sent Exchange MTU Response, Server Rx MTU: 525
34	0.669164	Slave_0xaf9a8568	Master_0xaf9a8568	SMP	32	Rcvd Pairing Failed: Pairing Not Supported
35	0.727188	Master_0xaf9a8568	Slave_0xaf9a8568	ATT	35	Sent Write Request, Handle: 0x000d (Unknown)
36	0.728179	Slave_0xaf9a8568	Master_0xaf9a8568	LE LL	26	Empty PDU
37	0.787194	Master_0xaf9a8568	Slave_0xaf9a8568	LE LL	26	Empty PDU
38	0.788195	Slave_0xaf9a8568	Master_0xaf9a8568	ATT	31	Rcvd Write Response, Handle: 0x000d (Unknown)
39	0.847211	Master_0xaf9a8568	Slave_0xaf9a8568	LE LL	26	Empty PDU

Related