Daemonbite adapter problem in 2 player mode

Discussion of keyboards, gamepads, joysticks and other input related peripherals.
rgn
Posts: 17
Joined: Tue Aug 25, 2020 12:46 pm
Has thanked: 1 time
Been thanked: 4 times

Daemonbite adapter problem in 2 player mode

Unread post by rgn »

Hello.
I've build my own Daemonbite adapter for Genesis controllers to use my Joyzz (2.4 GHz) controllers with my MiSTer. Tested it with a Gens emulator on PC and it works fine for both players. I checked the soldering and it is ok. I also tested it with
https://gamepad-tester.com/
Though the button codes differs from each other (say, B0 for the 1p != B0 for the 2p), but anyway, the device registers different buttons that can be mapped.

But when I connect it to MiSTer and try to bind the buttons in the core (any core), it works strange. When I bind a player, it breaks the binding for the second player.
System update didn't help.
Did anyone experience the same problem?
Please, help/
rgn
Posts: 17
Joined: Tue Aug 25, 2020 12:46 pm
Has thanked: 1 time
Been thanked: 4 times

Re: Daemonbite adapter problem in 2 player mode

Unread post by rgn »

Ah... I debugged the MiSTer binary and it seems that it works incorrectly with the devices that have 2 controllers under the same ID (like daemonbite) :(
Did anyone try 2p mode with the adapter?
jca
Top Contributor
Posts: 1911
Joined: Wed May 27, 2020 1:59 pm
Has thanked: 145 times
Been thanked: 454 times

Re: Daemonbite adapter problem in 2 player mode

Unread post by jca »

Someone else mentioned this problem (also with a Daemonbite) and I am not sure if it was resolved. Try to search in the forum.
rgn
Posts: 17
Joined: Tue Aug 25, 2020 12:46 pm
Has thanked: 1 time
Been thanked: 4 times

Re: Daemonbite adapter problem in 2 player mode

Unread post by rgn »

nah, not the same problem
dizzeee
Posts: 3
Joined: Sat Jul 10, 2021 8:55 am
Has thanked: 1 time

Re: Daemonbite adapter problem in 2 player mode

Unread post by dizzeee »

Hi,

any solution to this problem, because i have the exact same.

Got an Egret II with a regular controller harness plugged into two Arduino Micros flashed with Daemonbite Firmwares.

First Player that i programm with buttons works fine. The second player i configure works fine too, but the first has mixed up Inputs and dont function well.

Is there any solution to this problem?
pacoarcade
Posts: 72
Joined: Mon May 25, 2020 8:41 am
Has thanked: 75 times
Been thanked: 13 times
Contact:

Re: Daemonbite adapter problem in 2 player mode

Unread post by pacoarcade »

Although maybe it's not the ideal solution I use a daemonbite controller for each player.
PikWik
Posts: 256
Joined: Sat May 30, 2020 7:00 pm
Has thanked: 192 times
Been thanked: 71 times

Re: Daemonbite adapter problem in 2 player mode

Unread post by PikWik »

was going to say the same as paco.
i would just use 2 separate adapters, as running 2 controllers of one board does add a tiny amount of input lag (~2ms as suggested by porkchopexpress)

2 separate adapters is also how i run my bartop with 2 arcade sticks
dizzeee
Posts: 3
Joined: Sat Jul 10, 2021 8:55 am
Has thanked: 1 time

Re: Daemonbite adapter problem in 2 player mode

Unread post by dizzeee »

Thanks for your quick replies.

Sorry for bothering with my own foolishness. I just didnt configure the conroller harness wiring the same, so it couldnt work. Everythings works great now.
Matsu
Posts: 25
Joined: Tue Oct 27, 2020 1:02 pm
Has thanked: 8 times
Been thanked: 7 times

Re: Daemonbite adapter problem in 2 player mode

Unread post by Matsu »

I also built the Daemonbite two controller adapter. And I have zero problems, both controllers function as separate inputs.
Make sure you use the files from here: https://github.com/MickGyver/DaemonBite ... rollersUSB
Validate the script, and make sure no errors show up. Then upload the script.

Did you connect both db9 connectors to the shared vcc and ground pins? Also make sure to make the solder bridge in the upper left corner labeled J1.
If you still have problems, maybe it has to do with some conflicting config files on the mister... try deleting all the files in your input folder.

Hope you figure it out!
robinmasters
Posts: 3
Joined: Sun May 24, 2020 10:53 pm
Has thanked: 1 time
Been thanked: 1 time

Re: Daemonbite adapter problem in 2 player mode

Unread post by robinmasters »

hi,
I'm facing the same issue.
2 arduino pro micros, same id.
each one is working flawlessly when plugged alone.
with both plugged as p1 and p2 eventually everything gets messed up,
buttons get deactivated, or get swapped...

I have a lot of arduinos but all come from the same manufacturer.
I'm waiting for new ones, to see if having different IDs solves it.

is deamonbite aware?
a software workaround may be possible?
User avatar
aberu
Core Developer
Posts: 1144
Joined: Tue Jun 09, 2020 8:34 pm
Location: Longmont, CO
Has thanked: 244 times
Been thanked: 388 times
Contact:

Re: Daemonbite adapter problem in 2 player mode

Unread post by aberu »

If you have two controllers with the same ID's this is always going to be a problem since the ID of the usb device is used to distinguish it from other input devices. This is inherent to MiSTer.
birdybro~
robinmasters
Posts: 3
Joined: Sun May 24, 2020 10:53 pm
Has thanked: 1 time
Been thanked: 1 time

Re: Daemonbite adapter problem in 2 player mode

Unread post by robinmasters »

ok thank you for the answer.
so every daemonbite 2p users buy 2 different arduino from 2 different manufacturers?
if I remember well the ID = vendor:product

if it's the case I'm surprised this info is not spread everywhere
User avatar
ItalianGrandma
Posts: 132
Joined: Sun May 24, 2020 7:09 pm
Has thanked: 17 times
Been thanked: 22 times
Contact:

Re: Daemonbite adapter problem in 2 player mode

Unread post by ItalianGrandma »

robinmasters wrote: Mon Jul 26, 2021 7:32 pm ok thank you for the answer.
so every daemonbite 2p users buy 2 different arduino from 2 different manufacturers?
if I remember well the ID = vendor:product

if it's the case I'm surprised this info is not spread everywhere
I have daemonbites for NES/SNES/Genesis/Neo Geo and have used them for 2P with no issues (bought my arduinos from the same eBay seller too). The one thing I did was edited the “gp_serial” line in the .ino file that you flash to the arduino. I named one adapter OriginalDescription_P1 and the other OriginalDescription_P2. After defining the joystick buttons for both, the MiSTer has a separate configuration file for each adapter.
robinmasters
Posts: 3
Joined: Sun May 24, 2020 10:53 pm
Has thanked: 1 time
Been thanked: 1 time

Re: Daemonbite adapter problem in 2 player mode

Unread post by robinmasters »

well,
I received new arduino pro micros from other manufacturers.
always the same Id.
the only different one is the official arduino micro which is 2341:8037 instead of 2341:8036 for the pro micro clones.

but it is definitely possible to use two arduinos with the same Id on a mister by adjusting the gp_serial variable in the. ino file.
add _p1 for the player 1, recompile and upload
add _p2 for the player 2, recompile and upload
and so on...

works flawlessly
rgn
Posts: 17
Joined: Tue Aug 25, 2020 12:46 pm
Has thanked: 1 time
Been thanked: 4 times

Re: Daemonbite adapter problem in 2 player mode

Unread post by rgn »

for everyone who's interested in this topic
https://github.com/MiSTer-devel/Main_MiSTer/issues/401
Post Reply