Shell script for switching wifi channel using hopping

Using the below script we tries to connect to different wifi channels of hotspot using iwconfig command. … Read more

How to concatenate strings in Python ?

When you are working with strings in python, at some point in time, you would definitely need … Read more

Check if a File Exists in C

If we want to see whether certain file exists or not before doing some operation like read/write … Read more

Debugging using C macros __FILE__ and __func__ and __LINE__

Following program shows a sample example of how we can use C macros __FILE__ , __func__ and … Read more

Understanding Android Bluetooth Code : part 1 – Application Framework

At the application framework level is the app’s code, which utilizes the android.bluetooth APIs to interact with … Read more

How Android Bluetooth Profiles are enabled and Services are activated ?

How Android Bluetooth profiles are enabled ? Answer: Check packages/apps/Bluetooth/res/values/config.xml If you want to disable the above … Read more

WiFi

Turn Your Linux PC Into Bluetooth Speakers For Your Mobile Phone

This post shows steps to Play Songs from mobile and listen on laptop/desktop speaker over Bluetooth. The … Read more

Configure Ubuntu 16.04 as Bluetooth A2DP Sink

This post shows steps configure Ubuntu 16.04 as Bluetooth A2DP Sink. When Ubuntu is acting as A2DP … Read more

Send and receive data from user space and kernel using Netlink sockets

As mentioned in Linux kernel souce code net/netlink/af_netlink.c, netlink is a Kernel-user communication protocol which allows user … Read more

C program to read the contents of a file into character buffer

Lets say we want to read the contents of some file and want to operate on these … Read more