Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Novice
1,107 Views

Questions on Edison Bluetooth behavior

My application interface to Edison Bluetooth controller via HCI . When app send the following HCI commands to Edison BT controller,

1) < HCI Command: Reset (0x03|0x0003) plen: 0 [ 01 03 0C 00 ]

2) < HCI Command: Set Event Mask (0x03|0x0001) plen: 8 [ 01 01 0C 08 FF FF FB FF 07 F8 BF 3D ]

3) < HCI Command: LE Set Event Mask (0x08|0x0001) plen: 8 [ 01 01 20 08 1F 00 00 00 00 00 00 00 ]

4) < HCI Command: LE Set Advertising Enable (0x08|0x000A) plen: 1 [ 01 0A 20 01 01 ]

I noticed via hcidump the following communication was happening between host (my app on Edison) and the Edison bluetooth controller:

(1)

 

< HCI Command: Reset (0x03|0x0003) plen 0

> HCI Event: Command Complete (0x0e) plen 4

Reset (0x03|0x0003) ncmd 1

status 0x00

(2)

 

< HCI Command: Set Event Mask (0x03|0x0001) plen 8

Mask: 0xfffffbff07f8bf3d

> HCI Event: Command Complete (0x0e) plen 4

Set Event Mask (0x03|0x0001) ncmd 1

status 0x00

(3)

 

< HCI Command: LE Set Event Mask (0x08|0x0001) plen 8

mask 0x1f00000000000000 (Reserved)

> HCI Event: Command Complete (0x0e) plen 4

LE Set Event Mask (0x08|0x0001) ncmd 1

status 0x00

(4)

 

< HCI Command: LE Set Advertise Enable (0x08|0x000a) plen 1

> HCI Event: Command Complete (0x0e) plen 4

LE Set Advertise Enable (0x08|0x000a) ncmd 1

status 0x00

(5)

 

< HCI Command: LE Set Advertising Data (0x08|0x0008) plen 32

> HCI Event: Command Complete (0x0e) plen 4

LE Set Advertising Data (0x08|0x0008) ncmd 1

status 0x00

My Question is, why there is a 5th command/event that is captured by hcidump when my app isn't sending it ??

It seems to me the LE Set Advertising Data is automatically sent, and the Advertising Data (in the plen 32) includes the name I assigned to my Edison. Why is this packet sent to the Edison BT controller ?

 

 

BT = Bluetooth.

 

0 Kudos
3 Replies
Highlighted
Employee
3 Views

Re: Questions on Edison Bluetooth behavior

Hi clashion,

I'm not sure I haven't used LE that much. Have you tried using another method to see the transferred raw data? Similar to the one showed in Section 6.5 of this http://www.intel.com/support/edison/sb/CS-035381.htm Guide. This might give you more information on the data.

Regards,

 

JPMontero_Intel
Highlighted
Employee
3 Views

Re: Questions on Edison Bluetooth behavior

Hi clashion

Do you still have issues or questions about bluetooth?

Have you tried the suggestion above?

Regards;

CMata

Highlighted
Novice
3 Views

Re: Questions on Edison Bluetooth behavior

CMata_Intel , JPMontero_Intel,

Nope, I do not find the answer in the Edison Bluetooth Guide pdf. It's ok, I'll accept the behavior as observed and work around it. Thanks.