Monday, May 2, 2022

Saturday, February 26, 2022

The Village-VII

So he has his tasks cut-out. To win confidence of his village elders to start a hospital as his first priority and to heal himself of his past hurts by focusing on writing.Setting priorities gave him a sense of purpose.

Friday, February 25, 2022

The Village-VI

Ramu is naturally an easy-going person.But he lost some of his originality during his stay in hostel.He was looking to regain his original-self by way of service to mankind and in particular service to his native village. One way he tries to get away from pain of not having done his duty is to immerse in writing.His idea of redemption is to get his works published.He also had his own doubts that writing is an escape route than actual redemption. He thought more about others for his own redemption than his own family.That backfired many a times and he did realized his folly only after receiving some very hard knocks in his life before he turned 21. He always felt that the deviation between what he is capable of and what he is presently doing is too large and unfair to him.But he did not have any idea about how to close the gap and how to live upto his full potential. Writing on the other hand proved therapeutic for his bruised mind.

Saturday, January 8, 2022

Unit testing

Test everytime before you push to git even though the changes may be simple changes.This is a great tip to be a good programmer

Best practices while coding in 'C' language.

1. how do you optimize 'c' code? Ans: 1. Reduce large 'if' or 'else'blocks.If you return anyway from 'if' condition, don't use 'else'. 2. don't use 'static' variables in embedded code.because they occupy ram for whole life time of system. 3.use 'switch' 'case' instead of if else whenever possible. I cannot give exact explanation.But it reduces unforeseen erros in implementation. 2.Some best practices in 'c' Ans: 1. Always implement proper error handling mechanisms.It will make program fail-safe. 2. Make sure to assign deallocated pointer to NULL after free. 3. put debug logs in failure conditions with error code logging. 4. don't use too many 'if','else' conditions. switch statements are better when handling multiple condition checks. 5. make sure to free allocated memory. 6. don't use magic numbers. use MACROS instead. All the Best.

IoT - The next big thing in technology

Probably you may never heard or heard very little about the next big wave in Technology. The technology is called M2M(Machine-To-Machine) Communications/IoT. The CEOs named it as Internet of Every thing or Internet of Things to be short. So what is M2M? How does it work? M2M means your machines can communicate with each other while you can focus on your core work. Eg: Your car can communicate with the server of your insurance provider to give update about the health of your car and even your driving habits! Your refrigerator can detect if items are depleting in the fridge and order online to your supermarket to refill the food items. The lights in your home switches on automatically the moment you enter your home and not only that in case you forget to switch them off, you can switch off your lights from your mobile phone! So that means M2M has applications in wide ranging fields. Its uses are envisioned from Industrial automation to Home automation,transportation,Health to name a few. There are lot of interesting forums to know about latest in M2M applications.Join Linked in forums to see what is happening almost live about M2M/IoT. Go!Get your visa to fly on IoT applications.

Bluetooth interview questions - part2

Bluetooth interview questions(Reference Bluetooth spec) 1. Explain Bluetooth stack Ans: From lower layers: Controller part:BR/EDR controller - Software Baseband controller -Hardware HCI - Firmware Link Manager - Firmware Controller part - AMP Controller AMP MAC & PHY - Hardware AMP PAL - Firmware HCI - Firmware Host: Hardware to connect with Controller Physical Bus Firmware(USB,SDIO,Other) Physical Bus Driver HCI Controller driver Other High Level Driver L2CAP Host --> Controller From lower layer Physical Bus Firmware -over physical bus->Physical Bus Firmware HCI Driver-over HCI->HCI Firmware Host can control both BR/EDR controller and several AMP Controllers High level driver-Host1-->userdata-->Higher level driver- Host2 2.What is ACL in Bluetooth? http://en.wikipedia.org/wiki/Asynchronous_Connection-Less 3.Explain RS-232 http://en.wikipedia.org/wiki/RS-232 4.What is sniff? http://developer.nokia.com/community/wiki/Bluetooth_Protocol#Sniff_Mode 5.What is a slot? 6.What is an event? 7.What is Frequency hopping?(AFH) 8.What is Baseband controller? 9.What is paging? 10.What is RFCOMM?

The Village-VIII