openmiko / openmiko

Open source firmware for Ingenic T20 based devices such as WyzeCam V2, Xiaomi Xiaofang 1S, iSmartAlarm's Spot+ and others.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

no wifi Wyze Cam V2

mon5termatt opened this issue · comments

random: Trying to read entropy from /dev/random
Successfully initialized wpa_supplicant
Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'nl80211' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group='0'
ap_scan=1
Priority group 2
   id=0 ssid='Get off my LAN'
nl80211: Could not add multicast membership for vendor events: -2 (No such file or directory)
rfkill: Cannot open RFKILL control device
nl80211: RFKILL status not available
Could not read interface wlan0 flags: No such device
nl80211: Driver does not support authentication/association or connect commands
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
nl80211: Remove monitor interface: refcount=0
netlink: Operstate: ifindex=0 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)
Could not read interface wlan0 flags: No such device
nl80211: Set mode ifindex 0 iftype 2 (STATION)
nl80211: Failed to set interface 0 to mode 2: -19 (No such device)
wlan0: Failed to initialize driver interface
Failed to add interface wlan0
wlan0: Cancelling scan request
wlan0: Cancelling authentication timeout```

SSID and password is defiantly correct

Is key_mgmt=WPA-PSK set?

I am getting the same.

Logs:

wpa_supplicant v2.5
random: Trying to read entropy from /dev/random
Successfully initialized wpa_supplicant
Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'nl80211' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group='0'
ap_scan=1
bgscan='simple:30:-45:300'
Priority group 2
   id=0 ssid='MINE-IoT'
nl80211: Could not add multicast membership for vendor events: -2 (No such file or directory)
rfkill: Cannot open RFKILL control device
nl80211: RFKILL status not available
Could not read interface wlan0 flags: No such device
nl80211: Driver does not support authentication/association or connect commands
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
nl80211: Remove monitor interface: refcount=0
netlink: Operstate: ifindex=0 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)
Could not read interface wlan0 flags: No such device
nl80211: Set mode ifindex 0 iftype 2 (STATION)
nl80211: Failed to set interface 0 to mode 2: -19 (No such device)
wlan0: Failed to initialize driver interface
Failed to add interface wlan0
wlan0: Cancelling scan request
wlan0: Cancelling authentication timeout

WPA Supplicant:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1
bgscan="simple:30:-45:300"

network={
        ssid="MINE-IoT"
        key_mgmt=WPA-PSK
        pairwise=CCMP TKIP
        group=CCMP TKIP WEP104 WEP40
        psk="DefinitelyNotMyPassword"
        priority=2
}

This is using the latest release on a cam v2.

I forgot to mention I was using the latest version of v2 as well

I’m getting this same issue with a Wyze Pan Cam. I tried the latest version as well as several older versions. Everything seems to flash fine, and I see logs on the SD card, but the Wifi never connects and I see the “no such device” error mentioned above.

commented

getting this same error

same issue with my wyze cam pan


wpa_supplicant v2.5
random: Trying to read entropy from /dev/random
Successfully initialized wpa_supplicant
Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'nl80211' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
Priority group 2
   id=0 ssid='MrUniverse Cortex Uplink'
nl80211: Could not add multicast membership for vendor events: -2 (No such file or directory)
rfkill: Cannot open RFKILL control device
nl80211: RFKILL status not available
Could not read interface wlan0 flags: No such device
nl80211: Driver does not support authentication/association or connect commands
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
nl80211: Remove monitor interface: refcount=0
netlink: Operstate: ifindex=0 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)
Could not read interface wlan0 flags: No such device
nl80211: Set mode ifindex 0 iftype 2 (STATION)
nl80211: Failed to set interface 0 to mode 2: -19 (No such device)
wlan0: Failed to initialize driver interface
Failed to add interface wlan0
wlan0: Cancelling scan request
wlan0: Cancelling authentication timeout

I had the same issues. Cam would get on the network using the stock firmware, so I knew it wasn't a hardware issue. I'm relatively certain one of the two below solved the issue:

  1. Re-Flashed several times, just to be safe.
  2. Ensured that my wpa_supplicant.conf was using unix, and not windows, line endings.

Yes, I know that the docs said that #2 shouldn't be an issue with the latest, but I was running out of things to try before I gave up.

Got the answer on the slack at the bottom of this you have to change the wifi module.
https://github.com/openmiko/openmiko/blob/master/overlay_minimal/etc/openmiko.conf
then put the file in the same folder as the supplicant file.

Got the answer on the slack at the bottom of this you have to change the wifi module. https://github.com/openmiko/openmiko/blob/master/overlay_minimal/etc/openmiko.conf then put the file in the same folder as the supplicant file.

is that for the pan or v2?

the pan, but it would be worth doublechecking and making sure that you have the right module.

the pan, but it would be worth doublechecking and making sure that you have the right module.

i can check when i get home from work but the pan (according to documentation) is the one that needs a different one.. not the V2

Got the answer on the slack at the bottom of this you have to change the wifi module. https://github.com/openmiko/openmiko/blob/master/overlay_minimal/etc/openmiko.conf then put the file in the same folder as the supplicant file.

Not relevant for the V2. We are having problems with the V2 specifically.
@tachang any input on this?

I can confirm that the issue I was having was related to the wifi module. Changing to the appropriate one resolved it.

I decided to merge together all of my changes from the last six months and release them for testing. I've included new config file generators that ask which camera you are using and outputs appropriate config files. Testing is appreciated, and you can file an issue in that repo if you have any problems.

Sounds like a plan. I still have one camera out of three that's just refusing to work with it so I'll give it a try tomorrow

Great, thanks! To get the camera and SD card back to a clean slate before starting, you can:

  • Hold the reset button for a few seconds and it will flash blue three times to show it has deleted any residual files
  • Format the memory card, as it can easily become corrupted if it is writing to a log file when it is powered off.