Posts
- Google Wallet Hack - Applying Card Emulation Patch to Android 2.3.4_r1 Source Code and Flashing it on Samsung Nexus S
- C Post
- Near Field Communication - Android Perspective
- Some Questions Compilation
- Gaining Root access and performing Priveleged Commands in Android.
- How I started Gstreamer?
- System Requirements for Buidling the Android ICS
- Creatign two threads to display the task bar and do the background processing..
- GTK Hangout
- Tryst with Hawkboard - Day 1
Friday, July 8, 2011
Creatign two threads to display the task bar and do the background processing..
Wednesday, May 25, 2011
Some Questions Compilation
here is my effort to compile few interview questions being asked in one of the susidiary of a top notch Phone making MNC..
Delegates in C#
uart baud rate y 115200, why these numbers why not some other..
udev, interface ..
hw/sw flow control in uart
programm to dlete a node, a loong node w/o any temporary variable
work queue, tasklets
system v ipc
send messg and post messge in system v ipc
pasing by pointer and refernce in c
where does the arguments of a funtion gets stored in memory (bss or stack)
why the irqs are diabled at boot loader stage
inhritance and polymorphism in c++, virtual functions, what is copy constructor and what is singleton class.
volatile?is it a storage class or compiler directive
way to pass signals in process
how the memory can be allocated in kernel w/o malloc,kalloc, vmalloc - ans get pages , oage level apis ,
mmap ??
memory map and io mapped io
main()
{
fork();
printf("abc")
}
how many times abc will be printed?what if fork is used three times
what is daemon , how it is created and destroyed, thier role
question aabout projects..
version of .NET , why 3.5 why not 2.0
win ce questions if you know
how many bits /per pixel were there in the monochrome lcd we use in the driver
whatis input sub sytem
what is proc file system , there use
what is /etc/fsstab what is /etc/rc.d used for, why ?
assembly level programmin , you know?what?where have you used?
synchronisation primitives
what is atomic_t variables
which is better mutex or atomic_t>?why?
what are spinlocks..
IDES used for development..
your interesets, i have written blogging
mobile phones,
what is the gps latitudde /longitude of bangalore??
what is almanac data in gps
output of ++*p, precedence of * over /....
how the processor returns from supervisor mode to user mode. If user application calls system call to go into kernel mode, how the transition happens in ARM and how it gets back to user.
2. I2C-- The I2C core is currently handling i2c_write() from EEPROM and RTC is trying write on i2c bus, how the core handles this condition.
before i2c_write should it always check for bus busy, and wait in a while loop.
i2c adapter driver vs i2c client driver. Function calls in linux for both
3. LCD-- what are the layers in video linux,
what are the function calls in linux for LCD,
how the mapped memory from user goes into LCD controller.
how data from LCD contoller goes to user mode.
how LCD controller gets the video data from user.
if user calls mmap, how the kernel gets the arguments from user.
what mmap does.
In which part of the memory the user video data resides and where the kernel mapped video data resides.
4. What is the address space of linux kernel.
5. examples of volatile where u used it. how to use volatile in hardware registers, write the C code for it. how does ioremap() works. how the device register memory gets mapped into linux kernel address space.
6. Describe the boot steps. In which part of the memory the kernel resides. Which flash u used in your system. How linux boots from flash memory.
Tuesday, February 1, 2011
Tryst with Hawkboard - Day 1
What we did in this slot :
Our ijob was to connect the board with serial port and get it booted and see the hawkboard prompt on our host machine..that was our moment of glory..as if we had discovered America..
We had a serial to USB converter and we connected it on our laptop as our laptops doesn't supports the serial port(all it has was a good for nothing never usable VGA parallel port)We tried , get it connected , some baud rate and serial port configuration on the hyperterminal , some button pressing, we got nothinng....again some change in configuration here and there googling and found the same state...still nothing...we went to the another pre historic desktop and planned to give up the USB converter and use directly the serial cable ..and blaaahhhhhhhhhhhhhh....got the hawkboard screen display on hyperterminal....we feel ecstatic...now get it done on the USB serial converter on our laptop...
Opened minicom and set its port by .dev/ttyUSB01 and yes we were able to get it briught up using the serial port as well !!
Friday, December 24, 2010
C Post
Alternate way to find out the Size of Intezer is to find the difference between the &(x) and &(x++) .
(2) Accessing a function Pointer via Structure - Hidden OOPS ?
#include<stdio.h>
void (*funcPtr)();
typedef struct test
{
int x;
char y;
void (*ptr)();
}tstruct;
void show()
{
printf("Demoi \n");
}
void main()
{
tstruct z;
z.x = 100;
z.y = 900;
z.ptr = show;
z.ptr();
}
This programm shows some hidden feature of how OOPs can be implemented using the C.If we assign x as n boolean flag for accessing the function pointed to by the ptr variable , I am sure we can do some OOP stuff here with this code.
(3) What is the structure of the programme in the memory?
More ...to be contniued..!
Friday, December 10, 2010
And finalyy got Nokia N900 !!
N9.....
so where do I go from here...!!
Tuesday, November 2, 2010
IKU - Dummy UI looks
Profile Id for assisted mode
In the assisted mode the contactor needs to know the contact number of the target which can be achieved by scanning for the Target’s profile Id which is the registered user for the CCA application, using BT.The scanning result will give the Profile ID which can be send to the CCA server for further processing. Target column on the UI shows the Profile Picture and the Profile Id column shows the Profile Id of the mobile owner, so that the contactor may come to know the profile Id of the Target which he can send to the CCA server.
Profile Id is the uniquie Id for identifying the Phone using this application.
G(a,b,c) will be an algorithm which will generate a (profile Id) string Pattern which will have the information of Phone’s Profile.This will help contactor to identify the Profile Id of the target which he will send to the CCA server for discovering the common contacts.The contactor’s application will give him The UI shown above, with the profile Id of the target, which he will send to the CCA server.
G(a,b,c) =
a = Phone number
b = IMEI number
c = 48 bit BT MAC address
This is one proposal for an Algorithm:
The last 3 bits of component (b, c) and full 10 bits of Phone number are combined together and a string pattern is generated, which will be the profile Id and can be sent to the CCA server
e.g. if a = 919008025304
b = 354552017299159
c = 00:62:25:25:1A:4B
G(a,b,c) = 159-0A-4B-919008025304
The CCA server will then maps the profile Id with the profile Id in the database wether it is registered or not, if yes it will search for the corresponding number and send the result back to the contactor