Communicate with hsdev via socket