I'm using the .Net Serial Port class (C#) to send commandos to the the Arduino, which processes them. This works fine.
Unfortunately, the Arduino HardwareSerial has no support for flow control included. With SerialPort objects I could use XON - XOFF; if this would be supported by the Arduino.
Has anybody ever gotten this to work with the .Net SerialPort class? How do I have to configure the serialPort instance? What do I have to send how from the Arduino?
Simply writing or printing the XON and XOFF dec or hex values doesn't seem to get the job done (ex.: Serial.Write/print(19) ). Maybe my expectations here, are wrong too. I would expect, that the .NET SerialPort hierarchy would process the value so that I do not see it?!
Thx a lot for your answer! I'm gonna read that :).
I have a robot, being built on Arduino basis. I' m a student and I need it for university of applied science (dt. Fachhochschule). The task is to integrate this robot into Microsoft Robotics Developer Studio.
The irony is, that I have tested, better really tried, to overflow the Arduino with my "invented" commands. I couldn't achieve that, even without flow control. Of course I know that I really can't rely on that on every machine (used a laptop, which can't be called high end).
But, and that's why I noted that I'm a student, I should try to go the secure way - programming defensively.
Sure - I could implement some sort of "manual" flow control; but I think, that this solution isn't very graceful and therefore isn't really my first resort.