Serial Port Datareceived

Serial Port Datareceived Average ratng: 3,9/5 4736 votes

Mar 25, 2013  Before planning this article I have gone through related articles. It surprised me to know that developers are facing lot of issues with the SerialPort DataReceived event. Because this event is raised on the top of operating system event, that’s why. Hence there will naturally be a delay between your expected. First thing is SerialPort.DataReceived event. MSDN says: The DataReceived event is not guaranteed to be raised for every byte received. Use the BytesToRead property to determine how much data is left to be read in the buffer.

↓. vksalianHello,I have been trying to re-write a.NET based C# application under Monodevelop which required SerialPort implementation. The original SerialPort was giving problem, but your solution solved hanging problem.I used it under Ubuntu 12.04 with Monodevelop Ver 4.0 & 5.01 (and also on default Monodevelop) and it worked well for following devices.1.

Beagleboard Rev. EZ430 dongle (A Texas Instruments product).3. TI-Launchpad.Thanks for this beautiful post which is helpful for a lot of people struggling in the implementation.—Regards,VKSALIAN. ↓.Hello Antanas, your solution works perfectly in a Raspberry.I’m developing a program that scans a sensor array trough Raspberry serial port. I begin to develop in C# and using Mono on Raspbian and works until the serial reception, because I was using an event handler for reception. Later I found that serial port over Mono doesn’t work with event handler UNTIL I found your solution.Just I have to replace with your class, EnhancedSerialPort, and works like it was over Windows.Thanks a lot.Giovanni G. ↓.

C# serial port datareceived not working

jiHi guys,I am very curious if anyone can help me out.First of, thanks for the great work! Pleas keep it up!Now to my problem:Looking for an event handler that works with mono, i found your code and was able to use it out of the box on a Mac System and am really greatfull for that.Running this on a windows machine in Mono develop also works great!! Out of curiosity i put the script in Unity 3d to read serial data from there, too (unity beeing multiplatform and using mono 4.6 for coding/building). While it ran out of the box on Mac, nothing works on windows - same code, but no dataHas anyone any idea what to do/encountered similiar poblems? John deere riding mower manual stx38.