DBI semaphore error

CaptainKoloth

Active Member
OP
Newcomer
Joined
Aug 12, 2017
Messages
36
Trophies
0
Age
46
XP
252
Country
United States
I'm trying to back up NSPs from my Switch to PC via USB using dbi, but whenever I initiate the transfer, after a few minutes it will consistently stop and display the error "The semaphore timeout period has expired." What is happening? What can I do about it?
 

binkinator

Garfield’s Fitness Coach
Member
GBAtemp Patron
Joined
Mar 29, 2021
Messages
6,511
Trophies
2
XP
6,155
Country
United States
I'm trying to back up NSPs from my Switch to PC via USB using dbi, but whenever I initiate the transfer, after a few minutes it will consistently stop and display the error "The semaphore timeout period has expired." What is happening? What can I do about it?

your PC is losing connectivity to the “drive” (your switch)

try swapping out your USB cable.

try rebooting your PC.

make sure your switch shows up properly in device manager (no alerts/errors)

check that yiu have the right driver.

does it work with a small game or just not work at all?
 
Last edited by binkinator,

binkinator

Garfield’s Fitness Coach
Member
GBAtemp Patron
Joined
Mar 29, 2021
Messages
6,511
Trophies
2
XP
6,155
Country
United States
Happened with three different USB cables on two different PCs. Game size doesn't seem to make a difference.
well crap. That’s pretty consistent that somethings not getting set up right on the switch end.

are you able to do other USB related tasks such as mount your SDCard via UMS in Hekate?
 

CaptainKoloth

Active Member
OP
Newcomer
Joined
Aug 12, 2017
Messages
36
Trophies
0
Age
46
XP
252
Country
United States
Interestingly, it only seems to be happening with folders- not NSPs. So maybe it's large numbers of files that are confusing it.
 

binkinator

Garfield’s Fitness Coach
Member
GBAtemp Patron
Joined
Mar 29, 2021
Messages
6,511
Trophies
2
XP
6,155
Country
United States
Spoke too soon, it also happens with NSPs, though it takes a little longer before it happens.

I don’t know, man. I’m using the latest version they just released a few days ago, I’ve been trying to get it to fail. No luck unless I just flat out whack the tinfoil drivers.

somebody smarter than me want to look at this?
 

binkinator

Garfield’s Fitness Coach
Member
GBAtemp Patron
Joined
Mar 29, 2021
Messages
6,511
Trophies
2
XP
6,155
Country
United States

CaptainKoloth

Active Member
OP
Newcomer
Joined
Aug 12, 2017
Messages
36
Trophies
0
Age
46
XP
252
Country
United States
FYI, also tried via Tinfoil and I'm getting the same error. I can see the files on PC, but I can't reliably copy them. I tried connecting to a drive formatted to FAT32 and an exFAT drive on Windows 11 and Windows 10. It's highly repeatable for me. I'm amazed no one else ever seems to have seen this error.
 

binkinator

Garfield’s Fitness Coach
Member
GBAtemp Patron
Joined
Mar 29, 2021
Messages
6,511
Trophies
2
XP
6,155
Country
United States
FYI, also tried via Tinfoil and I'm getting the same error. I can see the files on PC, but I can't reliably copy them. I tried connecting to a drive formatted to FAT32 and an exFAT drive on Windows 11 and Windows 10. It's highly repeatable for me. I'm amazed no one else ever seems to have seen this error.

You’ve done a great job isolating what it’s not…that’s for sure.

I’ve never tried this but maybe you could get some insight into what’s going on by sniffing the traffic:

https://freeusbanalyzer.com/
 

CaptainKoloth

Active Member
OP
Newcomer
Joined
Aug 12, 2017
Messages
36
Trophies
0
Age
46
XP
252
Country
United States
This is all I got in the log of one failed transfer. Not very illuminating.





Scanning applications...61/61...done
Found 1 users
UID: 10000000009387B9B7AAF12DEC83A082, Nick: User
Found 15 saves
System : 0 saves
Account : 13 saves
BCAT : 1 saves
Device : 0 saves
Temporary : 0 saves
Cache : 1 saves
SystemBCAT: 0 saves
Enumerating album items on NAND
Found 0 album items
Enumerating album items on MicroSD
Found 2 album items
USB3.0 Enabled: no
Server started

Session opened
Sending file: /1979 Revolution Black Friday [B+U65536].nsp
 

Deleted member 585564

Well-Known Member
Newcomer
Joined
Feb 18, 2022
Messages
70
Trophies
0
Age
23
Location
In your head, rent-free
XP
57
Country
United States
Tinfoil registry fix?

Code:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\VID_057E&PID_201D\[DBI VERSION]\Device Parameters]
"DeviceIdleEnabled"=dword:00000000
"DefaultIdleTimeout"=dword:0000EA60
"USBTimeout"=dword:0000EA60

You might need to adapt the VID and PID to your Switch, but hopefully the values will be the same for everyone.

With DBI MTP connected, go to device manager, Portable Devices, and Right-click --> Properties on Switch. Under Details tab, select Hardware Ids property. Then open regedit, go to [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\, and find the key that matches the value you got from device manager. Inside it will be another key that's the DBI version you're using, and inside will be the Device Parameters key. Try to change DeviceIdleEnabled dword to 0, DefaultIdleTimeout to EA60, and create a dword for USBTimeout and set it to EA60.

I'm trying this right now because I'm running into the same issue, so I can't confirm if it helps. But if it doesnt end up helping for me, it might end up helping for you still.

One thing I noticed is that when I got the error, a game produced a 30GB NSP despite the game actually being 17GB (doom eternal), I'm wondering if it somehow fails to properly switch the stream over to a different file, and it just keeps pumping data into the previous file until it realizes something's desynced and it errors out?
 
Last edited by Deleted member 585564,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • Xdqwerty @ Xdqwerty:
    good night
  • BakerMan @ BakerMan:
    as to you
  • K3Nv2 @ K3Nv2:
    How do you know if the night will be good when you're asleep
  • BakerMan @ BakerMan:
    because i didn't say i was asleep
  • BakerMan @ BakerMan:
    i said i was sleeping...
  • BakerMan @ BakerMan:
    sleeping with uremum
  • K3Nv2 @ K3Nv2:
    Even my mum slept on that uremum
  • TwoSpikedHands @ TwoSpikedHands:
    yall im torn... ive been hacking away at tales of phantasia GBA (the USA version) and have so many documents of reverse engineering i've done
  • TwoSpikedHands @ TwoSpikedHands:
    I just found out that the EU version is better in literally every way, better sound quality, better lighting, and there's even a patch someone made to make the text look nicer
  • TwoSpikedHands @ TwoSpikedHands:
    Do I restart now using what i've learned on the EU version since it's a better overall experience? or do I continue with the US version since that is what ive been using, and if someone decides to play my hack, it would most likely be that version?
  • Sicklyboy @ Sicklyboy:
    @TwoSpikedHands, I'll preface this with the fact that I know nothing about the game, but, I think it depends on what your goals are. Are you trying to make a definitive version of the game? You may want to refocus your efforts on the EU version then. Or, are you trying to make a better US version? In which case, the only way to make a better US version is to keep on plugging away at that one ;)
  • Sicklyboy @ Sicklyboy:
    I'm not familiar with the technicalities of the differences between the two versions, but I'm wondering if at least some of those differences are things that you could port over to the US version in your patch without having to include copyrighted assets from the EU version
  • TwoSpikedHands @ TwoSpikedHands:
    @Sicklyboy I am wanting to fully change the game and bend it to my will lol. I would like to eventually have the ability to add more characters, enemies, even have a completely different story if i wanted. I already have the ability to change the tilemaps in the US version, so I can basically make my own map and warp to it in game - so I'm pretty far into it!
  • TwoSpikedHands @ TwoSpikedHands:
    I really would like to make a hack that I would enjoy playing, and maybe other people would too. swapping to the EU version would also mean my US friends could not legally play it
  • TwoSpikedHands @ TwoSpikedHands:
    I am definitely considering porting over some of the EU features without using the actual ROM itself, tbh that would probably be the best way to go about it... but i'm sad that the voice acting is so.... not good on the US version. May not be a way around that though
  • TwoSpikedHands @ TwoSpikedHands:
    I appreciate the insight!
  • The Real Jdbye @ The Real Jdbye:
    @TwoSpikedHands just switch, all the knowledge you learned still applies and most of the code and assets should be the same anyway
  • The Real Jdbye @ The Real Jdbye:
    and realistically they wouldn't

    be able to play it legally anyway since they need a ROM and they probably don't have the means to dump it themselves
  • The Real Jdbye @ The Real Jdbye:
    why the shit does the shitbox randomly insert newlines in my messages
  • Veho @ Veho:
    It does that when I edit a post.
  • Veho @ Veho:
    It inserts a newline in a random spot.
  • The Real Jdbye @ The Real Jdbye:
    never had that i don't think
    The Real Jdbye @ The Real Jdbye: never had that i don't think