Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RS232 library for .net core

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)

like image 660
Jaime Avatar asked Nov 19 '16 06:11

Jaime


People also ask

Is Rs 232 a COM port?

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).

What is serial port in C#?

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).

Is Rs 232 parallel or serial?

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.

Where is system IO ports DLL?

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.


1 Answers

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

like image 51
Jaime Avatar answered Oct 19 '22 02:10

Jaime