Cleric-K / vJoySerialFeeder

Feed Virtual Joystick driver with data from a serial port
GNU General Public License v3.0
258 stars 55 forks source link

automatic reconnect only works halfway #79

Open tsmspace opened 7 months ago

tsmspace commented 7 months ago

So,, I was here a long time ago.

I have always visited the vjoyserialfeeder window and hit the disconnect button, then the connect button. But what happens is, even though the connection to vjoyserialfeeder is good , it stops feeding vjoy on a disconnect.

I was imagining that if it automatically hit this button for me when it picked up a hotplug ,, then I wouldn't have to halt my gameplay to go hit disconnect.

Even with all new cables and stuff,, my arduino stability isn't perfect all the time. As it is, I am now kind of back to visiting the disconnect button several times a session. For a while, it wouldn't happen like that but as my ports are aging it happens more frequently. But,, again,, the connection to feeder is good,, I can go and see all of my controls responding, but after a disconnect, it stops sending that info to vjoy somehow.

Cleric-K commented 7 months ago

I remember that I've implemented the capability to keep connected even if USB flaps. Does this work? If you unplug and plug the USB, does vjsf keep working?

tsmspace commented 7 months ago

yes,, vsjf keeps working in that I can see all of the buttons and axis as I interact with them,, but it doesn't continue to feed it to vjoy. It continues to receive, but I need to disconnect and reconnect for it to make it to windows.

Cleric-K commented 7 months ago

Strange. I think this used to work. I'll have to check but maybe I'll be able to do so next week.

Cleric-K commented 7 months ago

I tried but can't reproduce the problem. When I disconnect the USB cable and connect it again, the connection restores and vjoy is fed again. I'm using vjoy 2.1.9. Are you using the same?

tsmspace commented 7 months ago

I am. Let me do some experimentation.

edit:::

ok. I don't actually know how to check if vjoy is being fed. I don't have a vjoy screen that shows the axis. I am using the "set up USB controllers" windows app ... but if I connect, I can see the controls move in this "set up USB controllers" , and then if I hot plug,, it no longer gets to "set up USB controllers".

edit ::: I can also confirm that I do not see these controls operating in the vjoy input visualizer. it's the same. I connect, they work, I unplug and plug back in, , vjoyserialfeeder shows them working but not vjoys monitor.

edit ::: and just to be complete, I am using your latest posted release of 1.7.1

edit again :::: ... ok I am doing the plugging repeatedly, and I have had it work one time, but then not again. and it always works in feeder. But, vjoymonitor DOES blink like it's reloading it when I hot plug every time. It just doesn't get the inputs. (except that one time)