We are developing applications in .Net Core and one of them require to access a serial port.
As I learned that System.IO.Ports won't be implemented in .Net Core, I was looking for a nuget library that supplies that functionality, but couldn't get one compatible with .net core (VS Code is showing an error message).
Is there any alternative out there?
UPDATE: I found that the official SerialPort API is being taken into consideration for porting to .Net Core (see https://github.com/dotnet/corefx/issues/984)
RS232 is a popular communications protocol for connecting modems and data acquisition devices to computers. RS232 devices can be plugged straight into the computer's serial port (also known as the COM or Comms port).
Serial port in C# is very useful for interfacing Arduino or other microcontrollers systems with a PC. Most of these ones communicate with computers using a FTDI chip, or an equivalent converting a serial port to a virtual USB Communication Device Class (CDC).
RS232 Standard. RS-232 is a standard communication protocol used by serial ports for linking a computer and its peripheral. This standard describes the process of exchanging data between a telecommunications device, such as a modem and a computer terminal.
IO. Ports namespace is located in the System assembly (in System. dll), so you need to add the System assembly from the GAC to access the namespace.
I managed to compile https://github.com/jcurl/SerialPortStream for netstandard1.5 with some minor modifications.
Have a look at the pull request: https://github.com/jcurl/SerialPortStream/pull/13
Experimental nuget package: https://www.nuget.org/packages/SerialPortStreamCore/2.1.0
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With