상세 컨텐츠

본문 제목

Serial Port Datareceived

카테고리 없음

by udwhimecam1989 2020. 2. 27. 01:41

본문

  1. Serialport Datareceived Example

I am not sure if this is an actual bug or currently a limitation of Mono running on Linux but the DataReceived event of the serial port control is never triggered when there's incoming data on an open serial port.To produce this condition I used VS 2019 to write an application in VB targeting.NET 4.7.2 that uses the serial port control. Transmitting data using WriteLine always work as I see the data on the remote device. Only when the remote device transmits data back does the DataReceived event fail to fire off. This does not appear to be a hardware issue either as I can use Putty on all of these devices and communicate fine with my remote devices.In my troubleshooting I found that this occurs regardless of architecture as I tested this with both a Raspberry Pi 3B+ with Raspbian and a Lenovo P51 running Debian 9.8. Both devices were tested with Mono 5.18.1 and 5.20 with the same failure mode. If I run the exact same code on Windows 7 or 10 it works as expected and data is always received.

Serialport Datareceived Example

Receive data from serial port c#

When answering a question please:. Read the question carefully. Understand that English isn't everyone's first language so be lenient of badspelling and grammar. If a question is poorly phrased then either ask for clarification, ignore it, oredit the question and fix the problem. Insults are not welcome. Don't tell someone to read the manual. Chances are they have and don't get it.Provide an answer or move on to the next question.Let's work to help developers, not make them feel stupid.