prusa3d / Prusa-Firmware-ESP32-Cam

Firmware for ESP32 Cam modules to be used in Prusa Connect
GNU General Public License v3.0
197 stars 19 forks source link

WiFi access with no SSID password #54

Open aarpi3 opened 3 months ago

aarpi3 commented 3 months ago

Hi,

In our printer lab there is only a guest WiFi access with no password. It's only a captive portal requiring you to agree to the terms and conditions or pre-approved units based on MAC filtering. But trying to connect the camera to this WiFi SSID (with no password) I just get "Save cfg NOT ok!".

I don’t know if it is a feature or bug, but it looks like I'm not able to save (and connect) the SSID without a password. If it’s not a security issue, would it be possible to change this behavior? (I’ve have not tried to compile anything myself).

BTW, this has also been an issue directly on our printers (MK4) using wifi, but for them I’ve just switched to a cable connection.

Edit: firmware: 1.0.3

johnyHV commented 3 months ago

Hello @aarpi3 . Yes, this is standard situation. Camera SW must have a WiFi network with encryption.

aarpi3 commented 3 months ago

Hello @aarpi3 . Yes, this is standard situation. Camera SW must have a WiFi network with encryption.

Thanks for the feedback @johnyHV.

johnyHV commented 3 months ago

@aarpi3 I can added precompilation macro, for disable check WiFi password

aarpi3 commented 3 months ago

I'm not 100% sure what that involves or if it's alot of work. But I would be happy if that makes it possible to connect to the open WiFi.

johnyHV commented 3 months ago

I created first tested version now :) . Can you try tested it please ? it is necessary to set the SSID and leave the password blank

ESP32_PrusaConnectCam.ino.bin.zip

aarpi3 commented 3 months ago

Thanks, I'll will hopefully manage to test it tonight.

aarpi3 commented 3 months ago

I can confirm that this version connects to wifi without password. But it feels, maybe unrelated, more sluggish.

johnyHV commented 3 months ago

Hello @aarpi3 Perfect, thanks. But in the official version of the firmware, I cannot disable the WiFi network protection with a password. So if you need to upload a newer firmware, you will have to compile it yourself. Or send me a message, and I will compile the firmware for you.

The speed of communication will not affect the disabling of password protection.

aarpi3 commented 3 months ago

Thanks! It would be easiest to compile it, when needed, myself. But could you point me in the right direction for what/where changes I need to apply?

BE-Automation commented 3 months ago

Hey @johnyHV, alot of companies block these kind of devices on the main network so we too need to be able to connect to wifi networks without passwords that the netwokr itself blocks devices not on a pre-approved list. So it would be great to see this version supported in future releases.

BE-Automation commented 3 months ago

Hi @johnyHV are you able to create another one for the latest firmware? That would be amazing!

aarpi3 commented 2 months ago

I created first tested version now :) . Can you try tested it please ? it is necessary to set the SSID and leave the password blank

ESP32_PrusaConnectCam.ino.bin.zip

Hi @johnyHV. Would this still work with 1.1.0?

BE-Automation commented 2 months ago

@aarpi3 I tried to use it, but I couldn't get it to work. But I'm fully aware that could be just me implamenting it incorrectly.

johnyHV commented 2 months ago

Hello @aarpi3 and @BE-Automation. Sorry for the long response...

In the mcu_cfg.h is macro

#define WIFI_DISABLE_UNENCRYPTED_STA_PASS_CHECK true

true option is for disable password checking. In the attachmed is new firmware for the 1.1.0. I working on the new FW version, but this is latest stable FW

PrusaCam 1.1.0-withouth wifi pass.zip

BE-Automation commented 2 months ago

That worked! Thanks very much!