Jump to content

SIO reconnect for SIO2BT?


Recommended Posts

  • 2 weeks later...

Honestly I don't know how to solve it properly...


"SOFTWARE (SIO2BT)" handshake mode is implemented in a way that reading a command frame is an endless loop, where incoming data is beeing analyzed.

ReadFile() returns 0 bytes either when there is nothing available at the moment (which is OK) or when the serial port was closed (in this case we should return an empty command frame to sioworker.cpp, but we don't).


I don't know how to "detect" a closed serial port with available Windows API.

Edited by TheMontezuma
Link to comment
Share on other sites

On 7/21/2020 at 2:23 AM, tuf said:

Does the following feature apply to bluetooth connections?  I'm wondering in particular from a cold boot - the connection never re-establishes.






This commit is not related to bluetooth connections.

It was a request from an Atari user (I don't remember who) because he was experiencing timeout or some spurious disconnections.

The auto-reconnect option is used to reconnect if a disconnection has been detected.

  • Like 1
Link to comment
Share on other sites

That was me. Thanks. It has helped a lot. If would even *breathe* on my SIO2PC (USB) cable, it would disconnect. If I turned on / off the fluorescent light above my desk, it would disconnect. Plasma arc disturbing the Ether or something... Not sure why, but it did disconnect many times.

This new version has solved that problem.


This is unrelated to the BT issue. The BT issue is about auto-pairing. I think that has to do with the SIO device. Not sure, really, but I do know that the latest fix has solved MY connectivity problem completely.



  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...