16 Posts for Blog Category

Bluetooth: SetDiscoveryFilter for filtered scanning

In continuation to our previous blog on bluetooth scanning and remove device after scanning, we will explore on discovery filters. Filters are typically used to narrow down our search. By default “StartDiscovery” will scan for all the nearby bluetooth devices. But in many situations user/developer already knows the desired category of devices. Few examples are, […]

Written by -
Continue Reading

Bluetooth: RemoveDevice to remove the device

In our previous example we have seen method to scan for nearby devices. In this blog we will extend the same example to remove the device explicitly. Code: View the code on Gist. In our previous example while exploring “StartDiscovery” method, we have seen “InterfacesRemoved” signal which will be emitted when any object path or […]

Written by -
Continue Reading

Bluetooth: Adapter scan for new devices using “StartDiscovery”

So far we have seen ways to get Adapter properties, set the properties and also to list the devices using GetManagedObjects. To get started with real Bluetooth operation in action we need to understand the general use case and methods to achieve it. First thing in communication using Bluetooth is for, Sharing some data (file, […]

Written by -
Continue Reading

Bluetooth: List devices using GDBUS

In this blog we will jump back to use GetManagedObjects method to find the list of Bluetooth devices which are currently present in all the Adapters. This sample in continuation to set property blog will help us understand more about Bluetooth devices and Adapters. Code: View the code on Gist. In this example above we […]

Written by -
Continue Reading

bluetooth: Set Adapter Powered property and watch signal using GDBUS

In this blog we will continue our understanding toward BlueZ to set the property in Adapter1 interface in continuation to our Get Property sample. As DBUS based applications can be accessed by any number of clients, modification a property needs to be informed to all the clients. In DBUS this can be done using signals. […]

Written by -
Continue Reading

bluetooth: Get Adapter (controller) properties using GDBUS

In this blog we extent our previous example list HCI controller using GDBUS method to get the properties of the Adapter. We will examine the Adapter properties both by using “GetManagedObject” and also using “GetAll” method in org.freedesktop.DBus.Properties interface. Code: View the code on Gist. In our previous example we have used GetManagedObject and filtered the […]

Written by -
Continue Reading

bluetooth: List available controllers using DBUS

This blog is the continuation of list controllers using HCI interface, to cover the same use case using DBUS interface provided by Bluez. We will be using the “GetManagedObjects” methid to get the list of Bluetooth controllers. Using GDBUS: View the code on Gist. Using GDBUS Proxy: View the code on Gist. If Bluetooth service is […]

Written by -
Continue Reading

Yocto: bitbake build/populate sysroot

Yocto stops building the global sysroot (both native and cross) from version 2.6. To build any package yocto copies the sysroot as “recipes-sysroot” and “recipes-sysroot-native” into each WORKDIR. This stops the external application builders from using “tmp/sysroots/<MACHINE>” for cross compilation. To do the same way building external application using common sysroot and toolchain one need […]

Written by -
Continue Reading

Bluetooth: List available controllers

This is the fist post in the series of blogs for Bluetooth in Linux. In this series we are going to cover mostly about Bluez and it’s provisions for Bluetooth functionality over DBUS (API’s in bluez/doc/). We will also cover few Bluetooth profiles like GAP, A2DP, AVRCP, PBAP in near future. Assumption: This series of […]

Written by -
Continue Reading

Linumiz – Farmconnect

Agriculture is backbone of any county. In the process of development of agriculture 1. Resource management, 2. Crop management and 3. Pest/Disease management are the key management areas for boosting production. As there is huge technology improvement in day to day life, it became very important to involve technology in Agricultural as well. The Internet […]

Written by -
Continue Reading