Ksocket integration with basic accelerometer driver code