Return-Path: From: Mike Tsai To: Claudio Takahasi , Anderson Lizardo CC: Pavan Savoy , Anderson Briglia , "linux-bluetooth@vger.kernel.org" Date: Fri, 10 Sep 2010 14:35:50 -0700 Subject: RE: set LE advertise not working... Message-ID: <35B17FE5076C7040809188FBE7913F983F2381E185@SC1EXMB-MBCL.global.atheros.com> References: <4C8A3537.2010606@openbossa.org> <4C8A758B.1060708@openbossa.org> In-Reply-To: Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: -----Original Message----- From: linux-bluetooth-owner@vger.kernel.org [mailto:linux-bluetooth-owner@vger.kernel.org] On Behalf Of Claudio Takahasi Sent: Friday, September 10, 2010 2:03 PM To: Anderson Lizardo Cc: Pavan Savoy; Anderson Briglia; linux-bluetooth@vger.kernel.org Subject: Re: set LE advertise not working... On Fri, Sep 10, 2010 at 5:35 PM, Anderson Lizardo wrote: > On Fri, Sep 10, 2010 at 3:01 PM, Pavan Savoy wrote: >> No, I don't suppose my controller was in a advertising state.. even if >> it was why the return 0x0c? (command disallowed ..) >> >> I wanted to know whether you have some HCI-VS commands which sort of >> enable the LE (AMP/radio/controller) ? >> Is it only then the leadv command works? Or does it just works right-away. >> I have one of those all in 1 chips.. bt/fm-rx-tx/gps so I am wondering >> should I do something to enable BLE and is it some sort of un-spoken >> standard? > > Does LE scan work for this same hardware? > > Do you have some windows software to test this hardware ? if so, you > can try putting one device in advertise mode there , then attempt > lescan on the other (from linux)... If it works, most probably the > hardware might require some initialization... > > At least some hardware requires firmware upload and vendor specific > one-time initialization which (I think) is out of scope for hciconfig. > > Regards, > -- > Anderson Lizardo > OpenBossa Labs - INdT > Manaus - Brazil > -- > To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at ?http://vger.kernel.org/majordomo-info.html > > Hi All, > I noticed that some LE hardwares don't allow to enable scanning or > advertising when inquiry scan and/or page scan are enabled. > Try to disable it using hciconfig or the D-Bus method before to start > LE operations. > Regards, > Claudio. Hello, Now I remember, dual mode devices (BR/EDR/LE) are not allowed to work as peripheral (or slave) device. The default advertising mode is "connectable indirect advertising mode". When you try to enable the advertising, you are trying to make this dual mode device as a potential slave to other LE masters and that's why the controller rejects the command. Scan should work though. I don't think you can ever connect 2 dual mode devices together, you need a single mode device (LE only) as the slave, Cheers, Mike To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html