thijse / Arduino-CmdMessenger

CmdMessenger Communication library for Arduino & .NET
Other
208 stars 87 forks source link

ReceivedCommandSignal does not work on my Arduino Uno #23

Closed MobiFlight-Admin closed 7 years ago

MobiFlight-Admin commented 7 years ago

Hi,

I am having an issue with the blocked/sync calls, even with the example. The response is never received from the arduino. Even if I increase the timeout value to 5 sec. It won't help.

Steps to reproduce:

Expected result:

Actual result:

I have tried dtrEnabled with both values (true, false) When I use the SerialMonitor of the ArduinoIDE and just send the plain command the response is correct and immediate. So it must be in the blocking-code portion on the C# client side. I have spent an hour of debugging but I cannot see the reason. Maybe something with the suspended ReceiveQueue?

MobiFlight-Admin commented 7 years ago

Ok, that's crazy - it now works. Only if I reconnect the Arduino freshly apparently it takes too long to get it initialized.