Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

second usb input not always working #59

Open
lowagner opened this issue Mar 7, 2016 · 9 comments
Open

second usb input not always working #59

lowagner opened this issue Mar 7, 2016 · 9 comments
Labels

Comments

@lowagner
Copy link
Contributor

lowagner commented Mar 7, 2016

your latest commit (shuffling init code) made me wonder: if NO_USB is not defined, is it possible to wait a second or two to try and init the second usb? i'm still not getting very consistent 2nd player in bbgunner. i've found i can get better chances (though not perfect) if i disconnect player one, connect player two, start the bitbox, then plug in player 1. snake gets it pretty consistently by keeping both in.

i've tried giving the bitbox a bit more power, and that doesn't seem to help.

also, for debugging and testing other usb devices, would it be possible to have test_usb have a super low level "what i'm seeing from the usb", so we can maybe debug and add other usb devices? (i.e., before we interpret any button press as "left" or "A", just get the usb data chunks...) if this is possible, i can submit a new issue for it...

@makapuf
Copy link
Owner

makapuf commented Apr 22, 2016

USB really needs some love, I feel it's soo unnecessarily complex... for the simple use cases we have.
It would be nice starting either to look at another usb stack or simplifying it much (to be able to debug it !) but it's quite hairy and I don't know where to start .. maybe we need to do it piecewise. and, yes, a datadump would be a good starting point.

@pulkomandy
Copy link
Contributor

I usually find http://www.beyondlogic.org/usbnutshell/usb1.shtml quite useful on USB matters. Lots of reading, however.

@makapuf
Copy link
Owner

makapuf commented Apr 22, 2016

sure, it's a great resource which I used for an intro on USB !
It also seems the usb driver has been updated, that would be a start.

2016-04-22 11:12 GMT+02:00 Adrien Destugues [email protected]:

I usually find http://www.beyondlogic.org/usbnutshell/usb1.shtml quite
useful on USB matters. Lots of reading, however.


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#59 (comment)

@makapuf makapuf added the usb label May 24, 2016
@lowagner
Copy link
Contributor Author

lowagner commented Dec 12, 2016

still would love to understand why we get plug-and-unplug OK for the first player, but it doesn't really work for player two. i like making multiplayer games for the bitbox, but it's a pain to get it setup so player 2 works! (lots of trial and error, but no consistent behavior...)

@makapuf
Copy link
Owner

makapuf commented Dec 12, 2016 via email

@lowagner
Copy link
Contributor Author

as a note, 2nd player works even less well with commit:
513c4bb

this branch reverts that and gets back to about where we were (>50% chance of 2nd player working):
https://github.com/lowagner/bitbox/tree/test

@makapuf
Copy link
Owner

makapuf commented Jul 26, 2017

Hi, I tried reverting this commit and have not had much success, ie the success rate is about the same (50%).
Do you confirm it's the case with your device ?
Also, I updated the test usb to give more details , can you try it and give me the results when working or not ?
also, can you try plugging a mouse by example on the second por with test usb and tell me the results also ?
thanks

@lowagner
Copy link
Contributor Author

i seem to get much worse success than 50% with the above commit 513c4bb, and around 50% without it (when commit 513c4bb is reverted); but i will report back soon with the results from test_usb.

@makapuf
Copy link
Owner

makapuf commented Sep 14, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants