bash, socket,serial