I use AutoHotKey to make it extremely easy to auto-magically talk to USB devices plugged into my laptop.
Once I plug a USB device (like a SAM32) into my laptop, I press Windows Key
+ c
and the serial console will automatically connect to the proper COM port and I can begin interfacing with the device.
The script looks like this:
#c::
COMPort := Object()
COMPortName := Object()
Num:=0
Loop, HKLM, HARDWARE\\DEVICEMAP\\SERIALCOMM\\
{
RegRead, OutputVar
If not InStr("%OutputVar%", "COM3")
Run "putty.exe" "-serial" "%OutputVar%" "115200"
Exit
COMPort%Num%:=OutputVar
COM_result:=COMPort%Num%
Num+=1
}
Return
it requires you have PuTTy installed and a putty.exe
executable in %systemroot%