* Query regarding BLE GetPrimaryServices()
[not found] <F82830D409D80E4881C83250E051B74B4784BC9E@banasiexm01.ASIA.ROOT.PRI>
@ 2011-10-19 13:10 ` Vijaykumar Dadmode
2011-10-19 13:30 ` Anderson Lizardo
2012-01-03 9:47 ` Multiple Thermometer device connections Vijaykumar Dadmode
1 sibling, 1 reply; 12+ messages in thread
From: Vijaykumar Dadmode @ 2011-10-19 13:10 UTC (permalink / raw)
To: 'linux-bluetooth@vger.kernel.org'
Hi ,
Could you please let me know "How do we retrieve the primary services from Client over DBUS APIs when we are already 'CONNECTED' to the server device " ?
Thanks,
Vijay
Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Query regarding BLE GetPrimaryServices()
2011-10-19 13:10 ` Query regarding BLE GetPrimaryServices() Vijaykumar Dadmode
@ 2011-10-19 13:30 ` Anderson Lizardo
2011-10-21 12:06 ` Vijaykumar Dadmode
0 siblings, 1 reply; 12+ messages in thread
From: Anderson Lizardo @ 2011-10-19 13:30 UTC (permalink / raw)
To: Vijaykumar Dadmode; +Cc: linux-bluetooth@vger.kernel.org
Hi,
On Wed, Oct 19, 2011 at 10:10 AM, Vijaykumar Dadmode
<Vijaykumar.Dadmode@csr.com> wrote:
> Hi ,
> Could you please let me know "How do we retrieve the primary services from Client over DBUS APIs when we are already 'CONNECTED' to the server device " ?
This is already done automatically, when you do either CreateDevice()
or CreatePairedDevice(). See the device_browse_primary() calls in
src/device.c and src/adapter.c
Regards,
--
Anderson Lizardo
Instituto Nokia de Tecnologia - INdT
Manaus - Brazil
^ permalink raw reply [flat|nested] 12+ messages in thread
* RE: Query regarding BLE GetPrimaryServices()
2011-10-19 13:30 ` Anderson Lizardo
@ 2011-10-21 12:06 ` Vijaykumar Dadmode
2011-10-21 12:29 ` Anderson Lizardo
0 siblings, 1 reply; 12+ messages in thread
From: Vijaykumar Dadmode @ 2011-10-21 12:06 UTC (permalink / raw)
To: 'Anderson Lizardo'; +Cc: linux-bluetooth@vger.kernel.org
Hi Anderson,
> This is already done automatically, when you do either CreateDevice()
> or CreatePairedDevice(). See the device_browse_primary() calls in
> src/device.c and src/adapter.c
How do we get the primary services when we have already called a "CreateDevice() or CreatePairedDevice()", "CONNECTED" state over dbus?
Thanks,
Vijay
Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Query regarding BLE GetPrimaryServices()
2011-10-21 12:06 ` Vijaykumar Dadmode
@ 2011-10-21 12:29 ` Anderson Lizardo
2011-10-21 13:04 ` Ajay Pillai
0 siblings, 1 reply; 12+ messages in thread
From: Anderson Lizardo @ 2011-10-21 12:29 UTC (permalink / raw)
To: Vijaykumar Dadmode; +Cc: linux-bluetooth@vger.kernel.org
Hi,
On Fri, Oct 21, 2011 at 9:06 AM, Vijaykumar Dadmode
<Vijaykumar.Dadmode@csr.com> wrote:
> Hi Anderson,
>
>> This is already done automatically, when you do either CreateDevice()
>> or CreatePairedDevice(). See the device_browse_primary() calls in
>> src/device.c and src/adapter.c
>
> How do we get the primary services when we have already called a "CreateDevice() or CreatePairedDevice()", "CONNECTED" state over dbus?
You cannot do this by hand. It is done right after connection (or
pairing, if using CreatePairedDevice). For more information on how to
read the services and characteristics over D-Bus, see
doc/attribute-api.txt.
Regards,
--
Anderson Lizardo
Instituto Nokia de Tecnologia - INdT
Manaus - Brazil
^ permalink raw reply [flat|nested] 12+ messages in thread
* RE: Query regarding BLE GetPrimaryServices()
2011-10-21 12:29 ` Anderson Lizardo
@ 2011-10-21 13:04 ` Ajay Pillai
2011-10-21 14:07 ` Claudio Takahasi
0 siblings, 1 reply; 12+ messages in thread
From: Ajay Pillai @ 2011-10-21 13:04 UTC (permalink / raw)
To: Anderson Lizardo, Vijaykumar Dadmode; +Cc: linux-bluetooth@vger.kernel.org
>You cannot do this by hand. It is done right after connection (or
>pairing, if using CreatePairedDevice). For more information on how to
>read the services and characteristics over D-Bus, see
>doc/attribute-api.txt.
Does this mean that it is not possible for an Application to just come up, and list the primary services of a remote LE device that is already connected(due to another application)? (via DBUS)
Is this something that we can just add as a new API (listPrimaryServices) to the " org.bluez.Device" interface of the device object?
Regards,
--
Anderson Lizardo
Instituto Nokia de Tecnologia - 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
To report this email as spam click https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg== .
Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Query regarding BLE GetPrimaryServices()
2011-10-21 13:04 ` Ajay Pillai
@ 2011-10-21 14:07 ` Claudio Takahasi
0 siblings, 0 replies; 12+ messages in thread
From: Claudio Takahasi @ 2011-10-21 14:07 UTC (permalink / raw)
To: Ajay Pillai
Cc: Anderson Lizardo, Vijaykumar Dadmode,
linux-bluetooth@vger.kernel.org
Hi Ajay,
On Fri, Oct 21, 2011 at 10:04 AM, Ajay Pillai <Ajay.Pillai@csr.com> wrote:
>>You cannot do this by hand. It is done right after connection (or
>>pairing, if using CreatePairedDevice). For more information on how to
>>read the services and characteristics over D-Bus, see
>>doc/attribute-api.txt.
>
> Does this mean that it is not possible for an Application to just come up, and list the primary services of a remote LE device that is already connected(due to another application)? (via DBUS)
> Is this something that we can just add as a new API (listPrimaryServices) to the " org.bluez.Device" interface of the device object?
>
Applications can access the primary service using the Generic Attribute API.
After pairing, bluetoothd executes discover all primary services.
Check the "Services" property in the Device to discovery, it contains
an array of paths for the primary services.
Use the test/test-attrib script to understand how it works. Using
d-feet you can also access the primary services and characteristics.
BR,
Claudio
^ permalink raw reply [flat|nested] 12+ messages in thread
* Multiple Thermometer device connections.
[not found] <F82830D409D80E4881C83250E051B74B4784BC9E@banasiexm01.ASIA.ROOT.PRI>
2011-10-19 13:10 ` Query regarding BLE GetPrimaryServices() Vijaykumar Dadmode
@ 2012-01-03 9:47 ` Vijaykumar Dadmode
2012-06-13 9:18 ` Bluetooth LE scan/pair using MGMT_OPS on Ubuntu 12.04 fails Vijaykumar Dadmode
1 sibling, 1 reply; 12+ messages in thread
From: Vijaykumar Dadmode @ 2012-01-03 9:47 UTC (permalink / raw)
To: 'linux-bluetooth@vger.kernel.org'
Hi,
Could you please help me with below query?
Usecase:
Have 2 temperature devices connected and set the CCC(Client Char Config) to receive the temperature updates.
Issue:
-- In attio_connected_cb we are calling g_attrib_register(user_data) were we are passing the "user_data" which has the "Device Reference".
So in the callback function "notif_handler" we are getting notified from the 1st connected device, using the "user_data" we are trying to get the "Device Reference", which has the data/info of the 2nd device rather than the 1st device.
How do we retrieve the handle/device reference for the device which is sending the "NOTIFY"?
Thanks,
Vijay
Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog
^ permalink raw reply [flat|nested] 12+ messages in thread
* Bluetooth LE scan/pair using MGMT_OPS on Ubuntu 12.04 fails.
2012-01-03 9:47 ` Multiple Thermometer device connections Vijaykumar Dadmode
@ 2012-06-13 9:18 ` Vijaykumar Dadmode
2012-06-13 9:35 ` Johan Hedberg
0 siblings, 1 reply; 12+ messages in thread
From: Vijaykumar Dadmode @ 2012-06-13 9:18 UTC (permalink / raw)
To: 'linux-bluetooth@vger.kernel.org'
Hi,
On Ubuntu 12.04 using Management OPS , when I launch the "Bluetooth New Device Setup" wizard, it does not show any device, but on console it will find LE Devices. Works good on Ubuntu 10.04.
$ hcitool lescan
Scanning ...
00:12:03:19:xx:yy Keyboard
mgmt_start_discovery() returns write error "Unknown error 524"
if (write(mgmt_sock, buf, sizeof(buf)) < 0)
return -errno;
Thanks,
Vijay
Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Bluetooth LE scan/pair using MGMT_OPS on Ubuntu 12.04 fails.
2012-06-13 9:18 ` Bluetooth LE scan/pair using MGMT_OPS on Ubuntu 12.04 fails Vijaykumar Dadmode
@ 2012-06-13 9:35 ` Johan Hedberg
2012-06-13 9:51 ` Vijaykumar Dadmode
0 siblings, 1 reply; 12+ messages in thread
From: Johan Hedberg @ 2012-06-13 9:35 UTC (permalink / raw)
To: Vijaykumar Dadmode; +Cc: 'linux-bluetooth@vger.kernel.org'
Hi Vijay,
On Wed, Jun 13, 2012, Vijaykumar Dadmode wrote:
> Hi,
>
> On Ubuntu 12.04 using Management OPS , when I launch the "Bluetooth New Device Setup" wizard, it does not show any device, but on console it will find LE Devices. Works good on Ubuntu 10.04.
>
> $ hcitool lescan
> Scanning ...
> 00:12:03:19:xx:yy Keyboard
>
> mgmt_start_discovery() returns write error "Unknown error 524"
>
> if (write(mgmt_sock, buf, sizeof(buf)) < 0)
> return -errno;
You'd need to be more specific of exactly what kernel version and what
user space version of BlueZ you have. The management interface is only
expected to work properly with latest user space bluez.git and kernel
version 3.4 or later. And for LE you'll want to use the latest
bluetooth.git or bluetooth-next.git or wait until the 3.5 kernel gets
released.
Johan
^ permalink raw reply [flat|nested] 12+ messages in thread
* RE: Bluetooth LE scan/pair using MGMT_OPS on Ubuntu 12.04 fails.
2012-06-13 9:35 ` Johan Hedberg
@ 2012-06-13 9:51 ` Vijaykumar Dadmode
2012-06-13 10:04 ` Johan Hedberg
0 siblings, 1 reply; 12+ messages in thread
From: Vijaykumar Dadmode @ 2012-06-13 9:51 UTC (permalink / raw)
To: 'Johan Hedberg'; +Cc: 'linux-bluetooth@vger.kernel.org'
Hi Johan,
On Wed, Jun 13, 2012, Vijaykumar Dadmode wrote:
> Hi,
>
> On Ubuntu 12.04 using Management OPS , when I launch the "Bluetooth New Device Setup" wizard, it does not show any device, but on console it will find LE Devices. Works good on Ubuntu 10.04.
>
> $ hcitool lescan
> Scanning ...
> 00:12:03:19:xx:yy Keyboard
>
> mgmt_start_discovery() returns write error "Unknown error 524"
>
> if (write(mgmt_sock, buf, sizeof(buf)) < 0)
> return -errno;
>> You'd need to be more specific of exactly what kernel version and what
>> user space version of BlueZ you have. The management interface is only
>> expected to work properly with latest user space bluez.git and kernel
>> version 3.4 or later. And for LE you'll want to use the latest
>> bluetooth.git or bluetooth-next.git or wait until the 3.5 kernel gets
>> released.
Sorry about that. Yes I am using latest from bluez.git and kernel from bluetooth-next.
BlueZ userspace version: latest clone from "git://git.kernel.org/pub/scm/bluetooth/bluez.git".
Kernel version: 3.4.0-rc5
Thanks,
Vijay
Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Bluetooth LE scan/pair using MGMT_OPS on Ubuntu 12.04 fails.
2012-06-13 9:51 ` Vijaykumar Dadmode
@ 2012-06-13 10:04 ` Johan Hedberg
2012-06-13 11:58 ` Vijaykumar Dadmode
0 siblings, 1 reply; 12+ messages in thread
From: Johan Hedberg @ 2012-06-13 10:04 UTC (permalink / raw)
To: Vijaykumar Dadmode; +Cc: 'linux-bluetooth@vger.kernel.org'
Hi Vijay,
On Wed, Jun 13, 2012, Vijaykumar Dadmode wrote:
> On Wed, Jun 13, 2012, Vijaykumar Dadmode wrote:
> > Hi,
> >
> > On Ubuntu 12.04 using Management OPS , when I launch the "Bluetooth New Device Setup" wizard, it does not show any device, but on console it will find LE Devices. Works good on Ubuntu 10.04.
> >
> > $ hcitool lescan
> > Scanning ...
> > 00:12:03:19:xx:yy Keyboard
> >
> > mgmt_start_discovery() returns write error "Unknown error 524"
> >
> > if (write(mgmt_sock, buf, sizeof(buf)) < 0)
> > return -errno;
>
> >> You'd need to be more specific of exactly what kernel version and what
> >> user space version of BlueZ you have. The management interface is only
> >> expected to work properly with latest user space bluez.git and kernel
> >> version 3.4 or later. And for LE you'll want to use the latest
> >> bluetooth.git or bluetooth-next.git or wait until the 3.5 kernel gets
> >> released.
>
> Sorry about that. Yes I am using latest from bluez.git and kernel from bluetooth-next.
>
> BlueZ userspace version: latest clone from "git://git.kernel.org/pub/scm/bluetooth/bluez.git".
> Kernel version: 3.4.0-rc5
bluetooth-next is currently based on top of 3.5-rc1 so it seems you have
an old kernel. Please do a fresh pull from the user space and kernel
trees and try again.
Johan
^ permalink raw reply [flat|nested] 12+ messages in thread
* RE: Bluetooth LE scan/pair using MGMT_OPS on Ubuntu 12.04 fails.
2012-06-13 10:04 ` Johan Hedberg
@ 2012-06-13 11:58 ` Vijaykumar Dadmode
0 siblings, 0 replies; 12+ messages in thread
From: Vijaykumar Dadmode @ 2012-06-13 11:58 UTC (permalink / raw)
To: 'Johan Hedberg'; +Cc: 'linux-bluetooth@vger.kernel.org'
-----Original Message-----
From: Johan Hedberg [mailto:johan.hedberg@gmail.com]
Sent: Wednesday, June 13, 2012 3:35 PM
To: Vijaykumar Dadmode
Cc: 'linux-bluetooth@vger.kernel.org'
Subject: Re: Bluetooth LE scan/pair using MGMT_OPS on Ubuntu 12.04 fails.
Hi Vijay,
On Wed, Jun 13, 2012, Vijaykumar Dadmode wrote:
> On Wed, Jun 13, 2012, Vijaykumar Dadmode wrote:
> > Hi,
> >
> > On Ubuntu 12.04 using Management OPS , when I launch the "Bluetooth New Device Setup" wizard, it does not show any device, but on console it will find LE Devices. Works good on Ubuntu 10.04.
> >
> > $ hcitool lescan
> > Scanning ...
> > 00:12:03:19:xx:yy Keyboard
> >
> > mgmt_start_discovery() returns write error "Unknown error 524"
> >
> > if (write(mgmt_sock, buf, sizeof(buf)) < 0)
> > return -errno;
>
> >> You'd need to be more specific of exactly what kernel version and what
> >> user space version of BlueZ you have. The management interface is only
> >> expected to work properly with latest user space bluez.git and kernel
> >> version 3.4 or later. And for LE you'll want to use the latest
> >> bluetooth.git or bluetooth-next.git or wait until the 3.5 kernel gets
> >> released.
>
> Sorry about that. Yes I am using latest from bluez.git and kernel from bluetooth-next.
>
> BlueZ userspace version: latest clone from "git://git.kernel.org/pub/scm/bluetooth/bluez.git".
> Kernel version: 3.4.0-rc5
>>>> bluetooth-next is currently based on top of 3.5-rc1 so it seems you have
>>>> an old kernel. Please do a fresh pull from the user space and kernel
>>>> trees and try again.
>From git I see not many changes being committed after 3.4.0-rc5. Which Ubuntu version is it tested/works using "Bluetooth New Device Setup" wizard and MGMT_OPS?
Johan
To report this email as spam click https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg== .
Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2012-06-13 11:58 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <F82830D409D80E4881C83250E051B74B4784BC9E@banasiexm01.ASIA.ROOT.PRI>
2011-10-19 13:10 ` Query regarding BLE GetPrimaryServices() Vijaykumar Dadmode
2011-10-19 13:30 ` Anderson Lizardo
2011-10-21 12:06 ` Vijaykumar Dadmode
2011-10-21 12:29 ` Anderson Lizardo
2011-10-21 13:04 ` Ajay Pillai
2011-10-21 14:07 ` Claudio Takahasi
2012-01-03 9:47 ` Multiple Thermometer device connections Vijaykumar Dadmode
2012-06-13 9:18 ` Bluetooth LE scan/pair using MGMT_OPS on Ubuntu 12.04 fails Vijaykumar Dadmode
2012-06-13 9:35 ` Johan Hedberg
2012-06-13 9:51 ` Vijaykumar Dadmode
2012-06-13 10:04 ` Johan Hedberg
2012-06-13 11:58 ` Vijaykumar Dadmode
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).