If I run the exact same code on Windows 7 or 10 it works as expected and data is always received. A Console.WriteLine() inside my DataReceived event will show the messages, but if I try to process anything I dont get any results. I know it's well known problem, I tried to use many sollutions. I managed to open to and close (connect and disconnect) port connected to an Arduino, but it seems that SerialDataReceivedEventHandler is newer 'used'.
#Serial port datareceived event not firing serial#
I am using (or trying to use to be specific) serial communication for this. Both devices were tested with Mono 5.18.1 and 5.20 with the same failure mode. Hello, i am trying to create simple weather win app that reads data from Arduino nano connected to DHT11. 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. 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. Hi, I am new to programming and have attached my code so far, i need to insert the code to read data from serial port but havent a clue where to put it or how any help would be great. I have a very basic WPF form with a TextBox for user input, a TextBlock for output, and a button to write the input to the serial port. The problem is that the DataReceived event doesn't seem to be firing at all. Only when the remote device transmits data back does the DataReceived event fail to fire off. I have a WPF test app for evaluating event-based serial port communication (vs. Transmitting data using WriteLine always work as I see the data on the remote device. Serial, when there is data in the buffer, the data received event is triggered. NET 4.7.2 that uses the serial port control. I want read my serial port but only when data comes(I want not polling). To produce this condition I used VS 2019 to write an application in VB targeting. Moreover, Ive tried to create a Separate Thread with a simple ReadByte (that function to me, but data arriving to fast and it takes disordered data). Ive tried SerialPort.ReadLine that doesnt function to me and stuck me unity in this instruction. 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. I need to access to a COM port to receive data from a input system.