This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
comfilepi:programming_the_serialport:index [2022/08/19 16:06] COMFILE Technology [Note] |
comfilepi:programming_the_serialport:index [2023/11/22 09:01] (current) COMFILE Technology [Note] |
||
---|---|---|---|
Line 5: | Line 5: | ||
The Mono framework's ''SerialPort'' class [[https://github.com/mono/mono/issues/14118 | does not support the ''DataReceived'' event]], so it may be necessary poll the serial port to receive data, or use one of the following potential workarounds: | The Mono framework's ''SerialPort'' class [[https://github.com/mono/mono/issues/14118 | does not support the ''DataReceived'' event]], so it may be necessary poll the serial port to receive data, or use one of the following potential workarounds: | ||
* [[https://antanas.veiverys.com/mono-serialport-datareceived-event-workaround-using-a-derived-class/|Mono SerialPort.DataReceived Event Workaround – Using a Derived Class]] | * [[https://antanas.veiverys.com/mono-serialport-datareceived-event-workaround-using-a-derived-class/|Mono SerialPort.DataReceived Event Workaround – Using a Derived Class]] | ||
- | * [[http://110.10.189.172/ComfilePi/Comfile.ComfilePi.SerialPortExample.zip|Download a Visual Studio solution]] that implements this workaround | + | * [[http://downloads.comfiletech.com/ComfilePi/Comfile.ComfilePi.SerialPortExample.zip|Download a Visual Studio solution]] that implements this workaround |
* [[http://www.sparxeng.com/blog/software/must-use-net-system-io-ports-serialport#comment-840|If you *must* use .NET System.IO.Ports.SerialPort ]] | * [[http://www.sparxeng.com/blog/software/must-use-net-system-io-ports-serialport#comment-840|If you *must* use .NET System.IO.Ports.SerialPort ]] | ||
* Use [[https://github.com/jcurl/RJCP.DLL.SerialPortStream|the RJCP.DLL.SerialPortStream library]], an independent serial port implementation. | * Use [[https://github.com/jcurl/RJCP.DLL.SerialPortStream|the RJCP.DLL.SerialPortStream library]], an independent serial port implementation. |