intrepidcs / libicsneo

Intrepid Control Systems device communication library
Other
36 stars 32 forks source link

icsneocsharp.icsneo_openDevice() stuck when device's power(VBATT) is not ON #47

Open CodeHandyman opened 2 years ago

CodeHandyman commented 2 years ago

//Open Port if (!icsneocsharp.icsneo_isOpen(SelectedCanDevice.Value)) //check if closed
isOpen = icsneocsharp.icsneo_openDevice(SelectedCanDevice.Value) ? true : false;
else isOpen = true;

openDevice() API function will stuck when there is no power to the connected device, it can only return if power is applied. Also, isOpen() API function is not working properly when lost connection/device power, it will report the last status. Similarly for isOnline(), We need these function to work properly so it can detect lost of connection or power. Please investigate and update.