mtp-server-nx - Open Source USB file transfer for Switch

mtp-server-nx

A port of https://manpages.ubuntu.com/manpages/xenial/man1/mtp-server.1.html for Nintendo Switch - free and open source!

Author
Gillou68310

Known Issues
  • Startup takes long with a lot of Files on the SD Card, due to scanning
  • Transfer speed can still be improved
  • Untested on Horizon < 6.1
  • Max filesize is currently limited to ~4GB
  • Version 1.1 has issues with Windows, consider it not supported right now :/
  • TBD
License
Apache 2.0

Repository: https://github.com/retronx-team/mtp-server-nx
Download: https://github.com/retronx-team/mtp-server-nx/releases
 
Last edited by m4xw,

SkullHex2

Well-Known Member
Member
Joined
Feb 27, 2017
Messages
245
Trophies
0
XP
1,295
Country
United States
this HB just showed a black screen to me, is it same for you guys?
Well, you're supposed to use a MTP client along with it or it wouldn't be a MTP server.
In other terms, connect the Switch to a USB port of your PC and it will be detected as any other mass storage device.
 
  • Like
Reactions: leon315

goncalodoom

Well-Known Member
Member
Joined
Sep 12, 2009
Messages
420
Trophies
1
Age
32
Location
portugal
XP
1,135
Country
Portugal
Well, you're supposed to use a MTP client along with it or it wouldn't be a MTP server.
In other terms, connect the Switch to a USB port of your PC and it will be detected as any other mass storage device.
I have the same issue and the previous app "nxmtp" is still working, this one just blackscreens and nothing is detected on my PC.

Btw, whY is this trying to access my prodinfo??? :unsure:
 

Attachments

  • 2019090318431400-8E25F120CD0D8D3A0B0296B714922EB0.jpg
    2019090318431400-8E25F120CD0D8D3A0B0296B714922EB0.jpg
    71.4 KB · Views: 253
Last edited by goncalodoom,

seeWood

Active Member
Newcomer
Joined
Jul 11, 2019
Messages
25
Trophies
0
Age
36
XP
206
Country
Germany
@leon315 and @goncalodoom you have to start the mtp-server-nx.nro first, wait til the Error Message I/O shown up on Screen and the plug in the USB Cable to your Computer

@m4xw great Tool and Good Job! This will give the Switch a lot more Freedom to play wit.

i have some Infos for you:
- a Friend of mine tested the Tool on FW 5.1.0 AMS, works great!
- i'm using AMS too and want to know if its working on SXOS? So i can easily upgrade AMS with the next release over MTP when it is working with the Free Version of SXOS.
- is it possible to report issues here or you check that on github?
 
  • Like
Reactions: leon315

ShadowOne333

QVID PRO QVO
Editorial Team
Joined
Jan 17, 2013
Messages
12,137
Trophies
2
XP
32,671
Country
Mexico
Known Issues
  • Startup takes long with a lot of Files on the SD Card, due to scanning
  • Transfer speed can still be improved
  • Untested on Horizon < 6.1
  • Max filesize is currently limited to ~2GB
  • TBD

Is there some insight or possible way for the Switch to not scan the whole files on SD?
I feel like a possible fix for this could also benefit other Switch homebrew apps that take too long to launch.
One clear example is GZDoom, the same thing happens, so that's why I was wondering what progress there is on that frontend.
 
Last edited by ShadowOne333,

seeWood

Active Member
Newcomer
Joined
Jul 11, 2019
Messages
25
Trophies
0
Age
36
XP
206
Country
Germany
Btw, whY is this trying to access my prodinfo??? :unsure:

mtp-server-nx is checking some files on the sd card, but these files only have read rights! There no write rights and this causes the Error. So when you get that Error you can plug in the usb cable to your computer
 

m4xw

Ancient Deity
OP
Developer
Joined
May 25, 2018
Messages
2,442
Trophies
1
Age
119
XP
6,956
Country
Germany
Is there some insight or possible way for the Switch to not scan the whole files on SD?
I feel like a possible fix for this could also benefit other Switch homebrew apps that take too long to launch.
One clear example is GZDoom, the same thing happens, so that's why I was wondering what progress there is on that frontend.
You don't make sense.
 
  • Like
Reactions: SaulFemm

designgears

Well-Known Member
Member
Joined
Aug 8, 2016
Messages
291
Trophies
0
XP
671
Country
United States
You don't make sense.

I think I get where he was going with this.

Something like NX-Shell can list files very quickly as you drill down instead of trying to aggregate everything all at once and list only what you're looking at.

Would it possible to "lazy load" things as you go into the directories?

Also, does horizon keep track of what's on the sdcard? If so, would it be possible to query that info instead of scanning the file system?
Assuming no for that bit.

Oh sorry, I was referring to this known issue:


Other homebrew apps seem to have this very same problem as well.
Do you guys know what could be causing it and what could be a possible fix for that (if there is)?

Pretty sure the bottleneck comes from the speed of the sdcard and the switch processing power.
 
Last edited by designgears,
  • Like
Reactions: ShadowOne333

KuranKu

I am KranK
Developer
Joined
Jan 13, 2019
Messages
367
Trophies
0
Age
34
Location
Israel
XP
1,181
Country
Israel
Oh sorry, I was referring to this known issue:


Other homebrew apps seem to have this very same problem as well.
Do you guys know what could be causing it and what could be a possible fix for that (if there is)?
well you assume correct , but in this case the issues are different , games/apps you talk about does have this issues caused by reasons like "assets being too big" or some memory leaks in the app gui or performance

but in this case the issue is the way things being read, the whole sdcard at ones.

this is not the same
 
  • Like
Reactions: ShadowOne333

m4xw

Ancient Deity
OP
Developer
Joined
May 25, 2018
Messages
2,442
Trophies
1
Age
119
XP
6,956
Country
Germany
Other homebrew apps seem to have this very same problem as well.
Do you guys know what could be causing it and what could be a possible fix for that (if there is)?
That depends entirely on the application lol.
hence I said it makes no sense.

Would it possible to "lazy load" things as you go into the directories?
ye, //TODO

Also, does horizon keep track of what's on the sdcard? If so, would it be possible to query that info instead of scanning the file system?
Assuming no for that bit.
Nope
 
  • Like
Reactions: designgears

ecesar

Member
Newcomer
Joined
Oct 18, 2018
Messages
15
Trophies
0
XP
575
Country
Brazil
Thank you, @m4xw !

I hope it gets improved with file sizes up to 4GB.

In recent months, @liuervehc 's closed source nxmtp has been incredible useful for me and many others.

And new solutions are always welcome.
 

DrNeroCF

Well-Known Member
Newcomer
Joined
Oct 12, 2016
Messages
97
Trophies
0
Age
39
XP
409
Country
United States
The other one didn't work on Mac (I couldn't get it to work with AFT or OpenMTP, at least), I'm just getting a black screen on here, is that normal? Not sure if it's the program not working for me or just my Mac not seeing it.
 

hippy dave

BBMB
Member
Joined
Apr 30, 2012
Messages
9,789
Trophies
2
XP
28,227
Country
United Kingdom
The other one didn't work on Mac (I couldn't get it to work with AFT or OpenMTP, at least), I'm just getting a black screen on here, is that normal? Not sure if it's the program not working for me or just my Mac not seeing it.
Look for my post in the nxmtp thread about disabling a MacOS background service to get it working. Not sure if it still works with latest MacOS.
 

Dust2dust

Well-Known Member
Member
Joined
Jun 17, 2010
Messages
2,389
Trophies
2
XP
4,290
Country
Canada
Nice to have an open source option for MTP transfers, but seeing as this doesn't seem to improve on any of the features of nxmtp, I think I'll pass for now and keep using good old nxmtp, which served me well since its release. I'm kind of old fashioned like that, and never try to fix something that isn't broken. I will still watch how this develops to see if it eventually improves upon the closed source one.
 
  • Like
Reactions: ecesar and uvwl

NoNAND

Give me back my legions!
Member
Joined
Aug 22, 2015
Messages
2,274
Trophies
1
Location
Somewhere
XP
5,064
Country
Albania
I take a break off GBAtemp and all of the exciting things happen whilst I'm gone.
Thanks @m4xw for your work.

Copying files over to the switch/from it is made easier due to this app thankfully. Don't have to go through the hassle of unplugging cables, removing SD cards and whatnot anymore. :D
 
  • Like
Reactions: Deleted User

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    LeoTCK @ LeoTCK: yes for nearly a month i was officially a wanted fugitive, until yesterday when it ended