Open pauliusbau opened 5 months ago
hey @pauliusbau, sadly I did not add this feature and don't have the HW to test. Possibly @JMilthaler can help as he did the work on this. FWIW did this ever work for you? The code hasn't been touched in 1 years :O
Hey. No, it haven't. It's the first time I am trying it out.
Hmmm yea, unless something changed in System.IO.Ports I am not sure what the issue, unless you have the ability to clone the repo and test locally?
It's been quite a long time since I looked at this code, so it may take a bit to reacquaint myself with the details, but I can also look. I don't remember if the settings.json file has any sensitive information in it. If not, having a copy of that may help me see what's going on.
I do also have a very simple example of an Arduino based serial communication in my repo - https://github.com/JMilthaler/PresenceLightHardware/tree/master/PresenceLight.Hardware.Serial
edit Ignore PresenceLight.Hardware.BLE in that repo - the hardware was never reliable and often stopped working randomly
The only thing you need to add is the client ID in appsettings.json.
Send me an email isaac@isaaclevin.com and I will send it to you
I am also seeing something similar. My serial connections work fine for a day or two, but then I start getting these errors:
System.IO.IOException: The semaphore timeout period has expired. : 'COM3'
and serial commands fail to send.
sadly I do not have a device to test this feature. More than happy to review a PR if you have a fix
I am also seeing something similar. My serial connections work fine for a day or two, but then I start getting these errors:
System.IO.IOException: The semaphore timeout period has expired. : 'COM3'
and serial commands fail to send.
I think this happens when the serial device goes to sleep or loses power. I can only speak to the Seeduino XIAO because that's what I used, but I had to disable all power saving functions on the device or I received similar issues.
Describe the bug I am trying to control a custom Arduino device via Serial. COM ports are enumerated successfully, but App throws timeout messages every time it trys to send a message out (see below). I tired several different USB-Serial adapters and different COM port configurations. I tried to reset settings. Tried to reinstall the app. No luck whatsoever. No Serial communication is getting through (sniffed serial bus with logic analyzer). Any ideas how to fix this issue?
Log messages:
Further details