-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Couldn't flash device #12
Comments
Can you run the script again and in a second terminal ping the device while the script is running?
That would mean the device has been successfully redirected to the ZAGDU-789 access point and that the problem might be with the access point.
Then try connecting to ZAGDU-789 with your phone. This will fail, but the output from the hostapd command will tell me something.
You don't need to have DHCP or DNS servers running on the machine the script runs on because it has its own cut down DHCP server built in. |
Thanks SynAckFin I have just tried Using interface wlan0 with hwaddr 28:f3:66:b6:10:ce and ssid "ZAGDU-789" Both of my phone can't connect to the ZP ZAGDU-789. It said incorrect password although I make sure that it is un49fqxc. Tried to change to password but it had the same result. I will recheck this. |
If you comment out the |
Thanks. I tried to comment out those 2 lines but my phones still ask for password!. I tried to rename the SSID to make sure it using the current config file. |
root@orangepiplus:~/TuyOTA# hostapd -d ./hostapd.conf
|
I'm surprised at the phone asking for a password. Type in any password it should still connect to the access point and then fail to get an IP. |
Same problem with default AP ARMBIAN armbian-config command line. Password is incorrect. Not sure if it is hardware issue or not... |
root@orangepiplus:~/TuyOTA# ./tuyota.pl -ip 192.168.2.82 -s myWiFi -p mypassword
Getting interface into stable state
RTNETLINK answers: Cannot assign requested address
RTNETLINK answers: Cannot assign requested address
Done
Using WiFi device wlan0 for Access Point
Starting Access Point with SSID ZAGDU-789
Giving Access Point IP address 10.44.57.1, pid is 13343
Redirecting device 192.168.2.82 to use Access Point ZAGDU-789
**** Redirect appears successful
Shutting down...
Setting up IP Address 192.168.4.2 for Final Stages
Getting interface into stable state
RTNETLINK answers: Cannot assign requested address
The script freezes there for
I use orange pi Plus 2 with armbian ubuntu 18.04. I already kill wpa_supplicant process. I also make sure that I did't open tuya app on my mobile devices. Homeassistant instance was also stopped
192.168.2.82 is IP address when my 3 gangs wifi switch connects to myWiFi network.
the orange pi box is on the same network of 192.168.2.82. I couldn't find dhcpd on my OS. Is that maybe issue? I also have my DHCP service on my router on 192.168.2.x network. Do I need to disable it or something?
When the script froze and stopped at that. The led on my 3 gangs wifi switch indicated that it is working with static green led. Flashing green led is connecting/searching wifi. Gang is turned on: red led, gang is turned off: blue led. Since the device is at static green led, I need to hold the button for 20 seconds to reset it, I then can add it to tuya app.
Device info: https://www.aliexpress.com/item/Alexa-compatible-Tuya-smart-life-app-control-WiFi-light-switch-US-touch-and-remote-control-switches/32950455100.html?spm=a2g0s.8937460.0.0.5fd52e0ex3dPme
Thanks for help or let me know step to debug.
The text was updated successfully, but these errors were encountered: