themactep / thingino-firmware

Open-source firmware for Ingenic SoC IP cameras
https://thingino.com
MIT License
221 stars 60 forks source link

WebUI Network settings - Use DHCP issue #254

Open wes58 opened 1 month ago

wes58 commented 1 month ago

I have downloaded the latest firmware on WyzeCam 3 and I have noticed the following issue. When I go to WebUI and network settings, I select "Use DHCP" to OFF. I set IP and other fields. When I click "Save Changes" the "Use DHCP" switch goes back to ON. After rebooting the camera and opening the WebUI network settings page the switch "Use DHCP" is ON. When I turn it OFF it shows that parameters that I set before, though! And it shows: # cat /etc/network/interfaces.d/wlan0 auto wlan0 iface wlan0 inet static address 192.168.0.16 netmask 255.255.255.0 gateway 192.168.0.1 So it looks like it is the switch position that is incorrect

I checked on the second camera with older firmware and the switch "Use DHCP" retains the state that it was set to.

themactep commented 1 month ago

using static address on a wifi connection is a bad practice in general, pin the mac address to a desired ip address on your dhcp router and that will be equal to a static ip with a twist that you won't be locked out of the network if the target address is already accidentally occupied.

nevertheless, i'll look into the dhcp form later this week.

wes58 commented 1 month ago

I know all that. That's how I used to have it set up when I used wz_mini_hacks. But with my configuration I had some problems so when I saw that I can set up static IP with thingino firmware, I decided to do it this way. And that leads me to another question. I don't know whether it can be done or not. I have two modem/(wifi)router and wifi router. The second one is mainly used for cameras. Both wifi routers have the same password but different SSID Can it be done that if SSID1 is not available the camera connects to SSID2?

Thanks for your response. There is no rush with fixing it. It is just something I noticed when I updated the firmware

themactep commented 1 month ago

technically, wpa_supplicant can handle multiple networks. but i never tried that on camera, only on a full desktop. here's a little info https://raspberrypi.stackexchange.com/questions/11631/how-to-setup-multiple-wifi-networks

wes58 commented 1 month ago

After reading the information on the link that you gave me, it looks promising. But I can't do anything about it. I don't know much about Linux and I can't compile the firmware. Thanks