serial-port-json-server icon indicating copy to clipboard operation
serial-port-json-server copied to clipboard

Question

Open Taillaert opened this issue 6 years ago • 8 comments

We are using the 1.95 version of the serial json service. Is there a command to check if a comport is already open? When we sending JSON command to open com port in several browser instances we get open com3 9600 (for example) and then the JSON services stops. doesn't respond anymore to request and we need to restart

Taillaert avatar Oct 02 '18 12:10 Taillaert

You can list the serial ports and it returns whether the port is open or not.

I have seen the bug you're describing occur every now and then and it's probably not hard to track down if you wanted to help fix it and check in your changes on Github.

On Tue, Oct 2, 2018 at 5:29 AM Taillaert [email protected] wrote:

We are using the 1.95 version of the serial json service. Is there a command to check if a comport is already open? When we sending JSON command to open com port in several browser instances we get open com3 9600 (for example) and then the JSON services stops. doesn't respond anymore to request and we need to restart

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/chilipeppr/serial-port-json-server/issues/58, or mute the thread https://github.com/notifications/unsubscribe-auth/AHidbagPOiaqen_D5L6lx8vJWpt1Jcggks5ug1wlgaJpZM4XD7bB .

chilipeppr avatar Oct 02 '18 13:10 chilipeppr

Thank you for the reply. I've found! Seems when opening the port 2-3 times it gives this bug.

Taillaert avatar Oct 02 '18 13:10 Taillaert

Hi,

Here you can find verbose logging when error occurs. At the end it gives inside spHandler and then it stops. http://prntscr.com/l1aaug

Taillaert avatar Oct 02 '18 13:10 Taillaert

Any way you could take a look at spHandler in the code and see where it might be getting stuck?

On Tue, Oct 2, 2018 at 6:58 AM Taillaert [email protected] wrote:

Hi,

Here you can find verbose logging when error occurs. At the end it gives inside spHandler and then it stops. http://prntscr.com/l1aaug

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/chilipeppr/serial-port-json-server/issues/58#issuecomment-426283969, or mute the thread https://github.com/notifications/unsubscribe-auth/AHidbcZ0DyAQr3azT5f851V-Ljnqh_2Oks5ug3EggaJpZM4XD7bB .

chilipeppr avatar Oct 03 '18 03:10 chilipeppr

I will check. Thnx!

Taillaert avatar Oct 04 '18 07:10 Taillaert

Have problems with pushing it to git now, but looks like issue is solved with this patch:

leonua avatar Oct 09 '18 12:10 leonua

This patch looks good. So you're saying that on that error there was just an oversight on not removing the mutex lock. Makes sense actually that this got missed. Thanks for the help.

chilipeppr avatar Oct 09 '18 15:10 chilipeppr