SolidSoils / Arduino

C# .NET - Arduino library supporting simultaneous serial ASCII, Firmata and I2C communication
https://solidsoils.github.io/Arduino/index.html
BSD 2-Clause "Simplified" License
200 stars 61 forks source link

EnhancedSerialConnection.Find(); Results In Timeout When Arduino Is Connected #27

Closed Brittank88 closed 6 years ago

Brittank88 commented 6 years ago

As the title suggests, EnhancedSerialConnection.Find(); results in a timeout error when an Arduino device is connected to one of my ports. If there is no device connected, the connection is null meaning it is indeed picking up the device, but timing out before whatever data exchange occurs can fully take place.

Is there any way for me to disable the timeout of EnhancedSerialConnection.Find();?

EDIT: The stacktrace shows at Solid.Arduino.ArduinoSession.GetMessageFromQueue(FirmataMessage awaitedMessage)

skpotocny commented 6 years ago

I had a similar problem working with the embedded Leonardo on a LattePanda SBC. I found that setting DtrEnable after creating the EnhancedSerialConnection cleared this up. I found this suggestion on the issue 19 message trail.

Brittank88 commented 6 years ago

Thanks for your advice!

Unfortunately I'm unable to test this as the project involving it concluded (and there were other larger issues present anyway).

Hopefully others come across this if they're having the same issue.