Yocto: bitbake recipe for uhubctl

September 18, 2018

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.

Continue Reading

Bluetooth: ConnectDevice without scanning

June 29, 2018

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 […]

Continue Reading

BeagleBone UART peripheral boot

June 28, 2018

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 […]

Continue Reading

Bluetooth: SetDiscoveryFilter for filtered scanning

June 19, 2018

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, […]

Continue Reading

Bluetooth: RemoveDevice to remove the device

June 13, 2018

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 […]

Continue Reading

Bluetooth: Adapter scan for new devices using “StartDiscovery”

June 8, 2018

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, […]

Continue Reading

Bluetooth: List devices using GDBUS

June 6, 2018

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 […]

Continue Reading

bluetooth: Get Adapter (controller) properties using GDBUS

June 6, 2018

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 […]

Continue Reading

bluetooth: List available controllers using DBUS

June 1, 2018

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 […]

Continue Reading