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
    BakerMan @ BakerMan: as to you