Many times, we face a situation where we want to take logs for our application, which is stand alone and not connected to the internet. The device is at a remote location and you can not take anything at runtime. This situation more suitable for POS devices where developer will not have any track record … Continue reading Storing Android logcat logs programatically for your application
I2C Communication in Linux based drivers
I2C is a two wire communication protocol first published by Philips, used for connecting together low speed peripherals, any of which having the ability to become a bus master. An I2C bus consists of a number of interconnected devices. There can be one or more controlling master devices and a number of slave devices. All … Continue reading I2C Communication in Linux based drivers
“Fatal: This operation must be run in a work tree” Are you facing the same problem in your Git initialization?
It is not possible to add Git init in bare repository as git add will take files from work tree and add them in an index. Now, bare repository will not have any work-tree that's why will get an error like this. Fatal: This operation must be run in a work tree Now, what is … Continue reading “Fatal: This operation must be run in a work tree” Are you facing the same problem in your Git initialization?
How to create git repository in Ubuntu
Device development requires to maintain different version of code and updated patches and for this many tools are being used like git, Jenkins and many more integration tool. Git is open source version developed by Linus Torvalds himself to support kernel code. Git will create repository with complete history of who changed what and when. … Continue reading How to create git repository in Ubuntu
How to read SQLite-database via C Language ?
Many times we require to use database as a part of device development. As per android architecture it is clear that android supports SQLite database. “SQLite is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine. SQLite is the most widely deployed database engine in the world. The source code for … Continue reading How to read SQLite-database via C Language ?
How to share files when ssh is being blocked at your company’s network ?
Many times we face the situation where even 'ssh' is being blocked by company's administrative staff . Correct ? It will be very difficult for us to share big files when your mailbox is over blasting with mails and by putting efforts you are freeing some space to get a new mail !! If this … Continue reading How to share files when ssh is being blocked at your company’s network ?
Basic Understanding of Android Partitions
Android has different partitions and each of them will have different role to play. One should know that Android uses these partitions to organize files and folders on the devices. Different functionality relay on them. In this guide, I will take you on a tour of Android partitions, what they contain and what can be … Continue reading Basic Understanding of Android Partitions
WiFi Architecture and Flow in Android
Android Wireless Architecture can be divided in three part Java Framework (WiFiManager,WifiMonitor etc..), HAL(wifi.c, wpa_supplicant) kernel space modules (Wireless stack, driver). Application Framework code for WifiManager, WifiMonitor , WifiConfiguration are in base/wifi/java/android/net/wifi folder Jni code written in “android_net_wifi_WifiNative.cpp” located in “frameworks/base/core/jni” folder. Which communicate with HAL layer. HAL layer code is written in wifi.c (hardware/libhardware_legacy/wifi/). … Continue reading WiFi Architecture and Flow in Android
How to run script file via adb shell ?
Many times we want to run script file from our android device. May be for getting logs or for running some commands. Generally android device developer required this kind of arrangement to debug code flow and functionality. Many times developer required to run some activity (android activity or intent) for testing purpose. In this scenario we … Continue reading How to run script file via adb shell ?
A Hand Made Radar For Object detection
RADAR is an object detection system which uses radio waves or microwaves to determine the range, altitude, direction and speed of objects.The radar antenna transmits pulses of radio waves or microwaves which bounces off any object in their path. The object returns a portion of the wave that is received by the receiver which is in line … Continue reading A Hand Made Radar For Object detection
How to Use Sublime Text Editor effectively With Remote Server ?
Download latest source code from this link http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_3047_x64.tar.bz2 Extract tar file tar vxjf sublime_text_3_build_3047_x64.tar.bz2 Now we should move the uncompressed files to an appropriate location. sudo mv Sublime\ Text\ 3 /opt/ Lastly, we create a symbolic link to use at the command line. sudo ln -s /opt/Sublime\ Text\ 3/sublime_text /usr/bin/sublime In Ubuntu, if you also … Continue reading How to Use Sublime Text Editor effectively With Remote Server ?
Wi-fi client detector
To make a system that can capture MAC address of client that have their wi-fi turned on. This is the system that can capture the MAC address of any device that has turned on its wi-fi. There is no need to ask any permission to the client device for gettintg his MAC adress. So this … Continue reading Wi-fi client detector
Introduction To Beaglebone Black
The BeagleBone Black has evolved out of the long lineage of BeagleBoard products into the current version; a small form-factor, very powerful, and extremely expandable product that allows builders, makers, artists, and engineers the ability to create truly innovative projects. The BeagleBoard family was originally designed to provide a relatively low-cost development platform for hobbyists … Continue reading Introduction To Beaglebone Black
Automated Wheel Chair Using Image Processing In Matlab
GOALS AND ABSTRACT OF THE PROJECT: To enable a user to drive the wheelchair by performing head motion through colour detection in various directions, thereby reducing physical stress and eliminating need of an extra person https://www.youtube.com/watch?v=0FowcXVjZl8 ‘Automated Wheelchair Motion’ which suggests a wheelchair being fused with certain technology to make it automated. Here we are … Continue reading Automated Wheel Chair Using Image Processing In Matlab
Control usr LEDs on Beaglebone Black
The 4 controllable LEDs appear in the file system under “/sys/class/leds/beaglebone:green:usrX” where X is 0 to 3 and they are already set for read, write and execute for all users so we do not need to worry about file permissions. In order to turn an LED on, we can use the simple echo command as … Continue reading Control usr LEDs on Beaglebone Black
Status Change of Beaglebone Black GPIO pin through Python Flask Server and Web Sockets
GPIO0_7 ON/off with status If you have seen Simple Python Flask server creation with linux you can go further. If not please see thishttps://innovativetechspace.wordpress.com/2015/01/18/live-video-streaming-with-websockets/ Python code import Adafruit_BBIO.GPIO as GPIO import time GPIO.setup("GPIO0_7", GPIO.OUT) from flask import Flask from flask import render_template from flask import request from jinja2 import Environment, PackageLoader app =Flask(__name__) … Continue reading Status Change of Beaglebone Black GPIO pin through Python Flask Server and Web Sockets
Analog pin reading in Beaglebone Black
Enable the analog pin such that you can use AIN0 -AIN5 To enable the analog pin write a command in ctl # echo cape-bone-iio >/sys/devices/bone_capemgr.*/slots File will be created for each AIN pins. To find out where the have been created you have to search it out. To search the same write down the command … Continue reading Analog pin reading in Beaglebone Black
How to communicate over UART in Beaglebone Black
Command to see how pins are multiplexed cat /sys/kernel/debug/pinctrl/44e10800.pinmux/pingroups Setup UART port echo ADAFRUIT-UART2 > /sys/devices/bone_capemgr.8/slots or >>> import Adafruit_BBIO.UART as UART >>> UART.setup("UART1") How to check which port is working on kernel cat /sys/devices/bone_capemgr.8/slots Test You can easily test that everything is working, without having to code anything, or installing any … Continue reading How to communicate over UART in Beaglebone Black
Live Video Streaming With Websockets
Live Video Streaming With Websockets
How to transfer data over MATLAB from your LAPTOP
How to transfer data over MATLAB from your LAPTOP