3 Replies Latest reply on Mar 17, 2015 10:35 AM by clashion

    Questions on Edison Bluetooth behavior

    clashion

      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.