C# serial communication with u-blox gps

前端 未结 9 1898
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-06 11:12

I have a GPS from u-blox.com with a USB-connection and driver. The driver installs a virual COM port that pops up when you plug the USB in. Using a hyperterminal I can then

9条回答
  •  猫巷女王i
    2021-01-06 11:39

    Not sure if this is the same issue you are experiencing.

    I noticed that if the RX_FLAG is used with SetCommMask API, the GetOverlappedResult does not seems to returns after the first WaitCommEvent. It will appears that the API is waiting for something to happens until the com mask is reset (At least that is what I observed). However, there is still some data received if you go and read the port after which, the device does not respond any more. In this scenario, you would need to unplug and replug the device to get it to respond again.

    However, if the RX_CHAR is used instead, the GetOverLappedResult returns with the correct status and the device works as per normal.

    Hope this information helps.

提交回复
热议问题