News for hackers. Stuff that matters.
Re:Improv Wi-Fi: Open Standard for Setting Up Wi-Fi via Blue... by Someone1234 on Wednesday June 16, 2021 @10:40PM (#27535675)
This looks interesting, hopeful it gets some adaption.

On a related note most mobile devices already support QR code for setting up a WiFi networks (iOS, Android). Works extremely well. This website has a JavaScript implementation you can take offline for generation:

https://qifi.org/

Declaimer: I have no relationship with the site. I've just used it for generation after a code review and taking the site offline.

Re:Improv Wi-Fi: Open Standard for Setting Up Wi-Fi via Blue... by comex on Thursday June 17, 2021 @12:01AM (#27536031)
The Nintendo Switch has a hilarious use case for this. When you view a screenshot or screen recording in the Switch’s album, there’s a menu option called Send to Smartphone. Press it, and a dialog comes up with a QR code. This points to a non-internet-connected Wi-Fi network that the Switch has just set up. You scan it, wait several seconds for your phone to connect to the network, and… the Switch displays a second QR code. This one is an HTTP URL pointing to a web server the Switch is now running. Scan that one, and you can finally access your screenshot through the phone browser. You have to go through this process every time you want to send media. You can’t remember the Wi-Fi network on your phone, as the password changes every time; you can’t tell the Switch to run a web server on an existing network; and you can’t ask it to show the password as text so you can easily input it into a non-phone device.

The sad thing is that, while Nintendo could have added more polish to the feature, they had no way to make the UX truly good for an average user without depending on some cloud service. The file transfer protocols with good UX are all either Internet-dependent (cloud storage), proprietary (AirDrop), slow (classic Bluetooth file transfer), or all of the above. Under those constraints, the QR codes feel a bit like a clever hack.

Re:Improv Wi-Fi: Open Standard for Setting Up Wi-Fi via Blue... by mschuster91 on Thursday June 17, 2021 @05:37AM (#27537820)
> The file transfer protocols with good UX are all either Internet-dependent (cloud storage), proprietary (AirDrop), slow (classic Bluetooth file transfer), or all of the above. Under those constraints, the QR codes feel a bit like a clever hack.

There would have been other alternatives to make life easier for people:

1) the Switch is gonna be connected to your LAN anyways via WiFi - so have it open up a SMB server that you can connect to.

2) Use the Nintendo Switch companion app and broadcast packets to allow local discovery

3) Expose the content of the internal storage and/or SD card via USB MTP

4) Use the NFC transmitter in the right JoyCon that is normally used to read Amiibos to transmit the WiFi credentials like Sony does this in some of the Alpha cameras.

The problem is, we're talking about Nintendo here who require you put the Switch into the DMZ with full (!) firewall exposure to play Animal Crossing because apparently they have never ever heard about STUN/TURN or WebRTC. Good luck if you have two people in one household who both want to play Animal Crossing as the host with someone else!

I, seriously, have NO FUCKING IDEA how a company can be at the same time so good at implementing software and so fucking bad at the basics. Jesus. They have all the hardware they need but apparently are unable to make use of it.

(Side note: Anyone here who has tried fuzzing the network stack that Animal Crossing uses? Could be a nice vector for remote code execution, especially since the way AC operates network play requires it be wide open to the Internet)

Re:Improv Wi-Fi: Open Standard for Setting Up Wi-Fi via Blue... by tinus_hn on Thursday June 17, 2021 @05:41AM (#27537835)
Nintendo is not good at implementing software, it is great at game design but its software really is a big mess full of bizarre bugs.
Re:Improv Wi-Fi: Open Standard for Setting Up Wi-Fi via Blue... by tokamak-teapot on Thursday June 17, 2021 @04:19AM (#27537302)
Amazing. I found the easiest way was to set up a Twitter account and have it post there, then log in to Twitter to download!
Re:Improv Wi-Fi: Open Standard for Setting Up Wi-Fi via Blue... by crooked-v on Thursday June 17, 2021 @05:09AM (#27537603)
You may find Snapdrop interesting: https://github.com/RobinLinus/snapdrop

It uses WebRTC for local file transfers, though as of yet it still needs a server to shuffle connection messages between peers on the same IP.

Re:Improv Wi-Fi: Open Standard for Setting Up Wi-Fi via Blue... by KingMachiavelli on Thursday June 17, 2021 @01:52AM (#27536456)
Interesting. Is it using WiFi Direct or is it just a standard adhoc WiFi network? I though WiFi Direct was suppose to basically be a the open/standard transport part of Airdrop like things such that it would be seamless but frankly I have not used it enough to know.

I'm also a bit surprised QR codes can't be composed or combined. e.g have a single QR code that has a WiFi connection as the first code and then a URL code as a second. I know QR codes can increase in size to fit more data but I guess it still has to be a single string/byte array?

Re:Improv Wi-Fi: Open Standard for Setting Up Wi-Fi via Blue... by thebiss on Thursday June 17, 2021 @10:02AM (#27539664)
QR code based Wifi setup is extremely handy for guest networks with obscure SSIDs and long complex passwords, and makes it easy for visitors to reconnect when the password changes.