18 Posts for Blog Category

Yocto: bitbake recipe for uhubctl

uhubctl is utility to control USB power per-port on smart USB hubs. Smart hub is defined as one that implements per-port power switching. This utility can be build in Yocto using the below recipe. View the code on Gist. Above is the bitbake recipe for version 2.0.0. View the code on Gist. Above is the […]

Written by -
Continue Reading

Bluetooth: ConnectDevice without scanning

After discovering the nearby Bluetooth devices either using StartDiscovery without filter or with SetDiscovertFilter, next big step is to connect with the device and access the functionalities provided by the device. The connection process involves two steps, Pairing – Authenticating and trusting the end bluetooth device Connect itself Here connection can be initiated either by […]

Written by -
Continue Reading

BeagleBone UART peripheral boot

BeagleBone Black serial peripheral boot:  BBB supports many peripheral boot options which can be choosen by the SYSBOOT button projected out near p8 header. Button pressed the sequence is spi0 | mmc0 | usb0 | uart0 Button released the sequence is mmc1 | mmc0 | uart0 | usb0 so we have uart0 in both the […]

Written by -
Continue Reading

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