added scan command to detect multiple devices on a comm port