Return-Path: MIME-Version: 1.0 In-Reply-To: <508DCE10.40801@globaledgesoft.com> References: <508D6672.8000009@globaledgesoft.com> <508DCE10.40801@globaledgesoft.com> Date: Tue, 30 Oct 2012 09:12:19 -0400 Message-ID: Subject: Re: BLE issue: Start_LE_Encryption fails From: Anderson Lizardo To: Ajay Cc: linux-bluetooth@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Ajay, On Sun, Oct 28, 2012 at 8:30 PM, Ajay 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, -- Anderson Lizardo Instituto Nokia de Tecnologia - INdT Manaus - Brazil