Port busy when run JmavSim in HITL Mode In cygwin
Evaneee opened this issue · comments
Evaneee commented
My operation system is windows
so I use cygwin Tool chain
to run Jmavsim in HITL mode,I followed the link
https://dev.px4.io/en/simulation/hitl.html
but when I type ./Tools/jmavsim_run.sh -q -d /dev/ttyS2 -b 921600 -r 250
every time it throws serial port busy.
need help!
Thanks
Hamish Willee commented
I don't know if HITL debugging is supported in Cygwin, but @MaEtUgR will.
Matthias Grob commented
@Evaneee I successfully used HITL with the Cygwin toolchain on Windows before.
- Make sure the vehicle is in HITL mode with the parameter
SYS_HITL
- Make sure QGroundcontrol is closed
- I think I started HITL with the command
./Tools/jmavsim_run.sh -q -d COM3 -b 921600 -r 250
COM3 is the device I see in your device manager. I'm not sure anymore but I think I had to use the windows naming of the port because it goes through java which is windows native. - As soon as it connected successfully you can open QGC again and do your tests
Sorry I can't currently test but can you try and write if it works?
Hamish Willee commented
Awesome. I'm closing this. @MaEtUgR I've added note to the docs - can you please check them? PX4/PX4-Devguide#791