C# serial communication with u-blox gps

前端 未结 9 1761
爱一瞬间的悲伤
爱一瞬间的悲伤 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条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-06 12:02

    I ran into a similar problem in an application I was writing and the problem turned out to be that I was trying to us SerialPort.WriteLine which sends a \r\n to end the line when I really needed to just send \n. When I switched to SerialPort.Write with a \n appended to the end, everything worked as in HyperTerminal.

提交回复
热议问题