Implemented "ping" command to find device