-
-
Notifications
You must be signed in to change notification settings - Fork 500
Using a Raspberry Pi
rbswift edited this page May 22, 2020
·
11 revisions
Before running Tuya-Convert, you need to disconnect the Pi from its Wi-Fi network, enabling the required vtrust-flash
WiFi network to broadcast correctly. There are multiple ways of doing this:
Warning You will need to be connected via Ethernet or "USB Gadget mode" to continue use after disabling wifi.
Option 1. Via GUI: connect via VNC viewer, click the Wifi Icon, select your network and disconnect.
Option 2. Via SSH/Terminal: paste the command sudo killall wpa_supplicant
Option 3. Via SSH/Terminal:
- type sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
- Delete the wifi network block including network={}
- Close the file (ctrl x, y, enter)
- sudo reboot
You can now follow the instructions on the main page.
Setup USB Serial Gadget mode (unless you have keyboard/monitor)
- Connect to the Raspberry Pi Zero W using wifi and ssh
- Follow the normal Raspberry Pi instructions but stop before running start_flash.sh
- Run the command
screen
(this will prevent your session being terminated when it disconnects) - Run
start_flash.sh
- Your ssh session will be disconnected when the Pi disassociates from your wifi network and creates its own vtrust-flash AP
- Connect to the vtrust-flash AP and SSH to 10.42.42.1
- Run
screen -r
to identify the session id your original screen session - Resume that screen session by running
screen -r -d [screen id]
- Continue with normal Raspberry Pi instructions