Re: BLE issue: Start_LE_Encryption fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday 30 October 2012 06:42 PM, Anderson Lizardo wrote:
Hi Ajay,

On Sun, Oct 28, 2012 at 8:30 PM, Ajay <ajay.kv@xxxxxxxxxxxxxxxxxx> wrote:
Thanks, but "sudo hcitool -i hci0 cmd 0x08 0x0008 03 02 01 06 " ,   this
command only sets the advertising data to zero right . so how do i set the
adv flag as 0x06 . Which hci command is used for this  purpose .

No, this sets adv. data to have "Flags" AD set to 0x06. But you missed
the second line of the command:

sudo hcitool -i hci0 cmd 0x08 0x0008 03 02 01 06 \
     $(perl -e 'print "00 " x 28')

The second line is important because it fills the other bytes with
zero (which some controllers require).

Regards,

ya , i got your point ,advertiser is informing the remote device , that it is not BR/EDR capable .That is done and device is connecting now. But still i dont know, how to do le specific pairing and start_encryption enable(part of le pairing) . Is there any tool in bluez providing LE pairing before connecting the devices (want to try with 2 ubuntu pc's ).

--
Thanks & regards

 AJAY KV
 GlobalEdge software Ltd
 8892753703
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux