fritzconnection: QR code doesn't work with iOS stock cam

Hi @kbr , thanks for adding the QR code feature.

I recently tested the functionality and I can’t connect to the wifi with iOS stock cam scanning the qr code. The connection fails. If I use a app like Qrafter I could connect to the network. With Qrafter its possible to read out the qr code. I noticed that there is no encryption setting within the qr code.

So I wrote a script and adding the security parameter "WPA/WPA2" to make_wifi() from the segno library. It works even on a WPA2 + WPA3 network.

from segno.helpers import make_wifi
import io

ssid = "myssid"
pw = "mypw"
encryption="WPA/WPA2"

stream = io.BytesIO()
qr_code = make_wifi(ssid=ssid, password=pw, security=encryption)
qr_code.save("qr.png", kind="png")

Could you please add the encryption setting to make this work with iOS stock cam (and maybe other qr code readers)?

Thanks. sti0

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 37 (28 by maintainers)

Most upvoted comments

So in the end it’s simpler than assumed.

Keep it simple is ok for me 😃

Checking the qr-code created by the router indeed report for all WPA encryptions plainly WPA as encryption type.

Yes, I also have some additional notes. Basically it is just to match the state of the router with input-values for qr-code creation to get the same output as the qr-code generated from the router. And to write tests, so we know when something changes. But as we are all volunteers, I have to find a timeslot for this.

@sti0, if you have the possibility to make one more test, would be nice to get the string our of the QR for each settings:

I used https://zxing.org/w/decode.jspx and got this for my WPA2 (CCMP) network:

WIFI:S:<redacted SSID>;T:WPA;P:<redacted PWD>;;

Those are my advanced settings:

image

I decoded the generated QR codes from the FritzOS frontend . This is tested with my GUEST network:

WPA2 (CCMP): WIFI:S:<<my ssid>>;T:WPA;P:<<my password>>;; WPA2+WPA3: WIFI:S:<<my ssid>>;T:WPA;P:<<my password>>;; Hotspot Mode: WIFI:S:<<my ssid>>;T:nopass;;;

image

So I think it should be WPA only.

Simone

Yup that’s it:

The Wi-Fi Alliance refers to their approved, interoperable implementation of the full 802.11i as WPA2

Simone

Have done exactly that yesterday, but missed this information – for whatever reason …