tested socket opening and device initialization