Strange; if you've got the blue/green display, it's connected properly, so that wouldn't be a USB connection problem. Does the plunger itself work in that state? I.e., not in ZB Launch mode, but for regular plunger tables?
oh good question. I never noticed this because it always works when i quit the table and start a new one... So i did some more testing.
1. Make sure kl25z is disconnected by not having power on my usb hub.
2. Load a table
3. turn on kl25z
4. push to launch and normal plunger doesn't work
So it would seem that after it reconnects its not providing controls to VP?
Well, kind of. It *is* providing input. VP is just ignoring that input. VP scans for joysticks at startup. If you connect a joystick after VP starts up, VP will never know that joystick is there and will ignore its input. So with that exact sequence - start VP, connect joystick - VP will never see that joystick. So that would explain the problem.
Ok, when i tested this earlier i swear it wasn't working.
So i thought to myself, well it can't be that hard to just listen for the windows event for plugging in a usb device. I compiled the latest vpx and was testing with an xbox 360 controller, but it was reconnecting find and providing inputs even if i disconnected mid-game
So I thought to myself, well maybe its the build of vp 10.5 i have on my cabinet... but it worked there too.
So i thought to myself, well maybe the board doesn't behave like a controller, but i unplugged the kl25z, plugged it back in and it was reading the plunger pull back just fine
The one common thing though is that the zb launch ball doesn't work after i plug the kl25z back in..
I don't remember the table i tested earlier where the plunger didn't work.
EDIT:
more testing...
I hooked up an extra button i had laying around to Button 1 on the kl25z and set button 1 to launch ball in the VP settings
Playing on AFM i would launch a ball with the plunger and then disconnect the kl25z.
I'd immediately reconnect it and let the ball drain
I then would try to use the plunger to launch the ball but it wouldn't ... however my button using the same board was able to launch it everytime (about 10 tests)
I was looking at main cpp on the pinscape controller source and notice wizOn. Just a uneducated guess, but maybe that state isn't getting turned back on for my zb launch port in the led wiz? I'm not sure how to test the ledwiz to see if a port is open or not for output
also... I was trying to download the source from os.mbed.com for the library but i keep getting an error page when i select Export to desktop IDE > Choose Toolchain
is this hosted anywhere else i could pull it down?
nevermind I found a tiny zip link
Thanks again, I put together the pinscape boards but haven't gotten around to installing them yet. I might do another cabinet build to keep it clean
Let me know if there is anything i can do to help debug.
Edited by savinte, 21 November 2018 - 03:05 AM.