Skip to content
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

WiFi network never appears #24

Closed
jptrsn opened this issue Jan 27, 2019 · 28 comments
Closed

WiFi network never appears #24

jptrsn opened this issue Jan 27, 2019 · 28 comments
Labels
help wanted Extra attention is needed

Comments

@jptrsn
Copy link

jptrsn commented Jan 27, 2019

I'm trying to use this project, but I get stuck at the step where I need to connect to the vtrust-flash network. Using a couple different phones and a couple different computers, I'm never able to see the network listed.

I've tried running tuya-convert on an rPi 3 as well as an old netbook running Ubuntu. Never see the wifi network appear on any device when I'm scanning.

@drushbrook
Copy link
Contributor

would probably help if you send in the smarthack-*.log files you find in the scripts directory

@qingz2004
Copy link

qingz2004 commented Jan 27, 2019

I'm using Raspberry Pi 3 B+. I can't see the access point either.
Got the following messages.
screenshot_3
screenshot_4

@drushbrook
Copy link
Contributor

drushbrook commented Jan 27, 2019

When did you last do a git pull?

It appears they have added the -Logfile option which isn't supported by the version of screen that is on raspbian.

can you try the version prior to the latest commit:

$ git checkout df38bc33c0b02d084f57267f45325a8b116f58af

@qingz2004
Copy link

I did it today.
I will try the previous version.

@nanobyte84
Copy link
Collaborator

nanobyte84 commented Jan 27, 2019 via email

@qingz2004
Copy link

The new script works now.
Thanks!

@qingz2004
Copy link

qingz2004 commented Jan 27, 2019

I can see the access point, but can not connect to it with my phone.
Tried another phone, same.
screenshot_3

@drushbrook
Copy link
Contributor

Have you tried WPA PSK?

@nanobyte84
Copy link
Collaborator

When you cannot enter the WIFI you probably need to use a different (usb) wifi adapter.
Which Hardware are you using?

@botak13
Copy link

botak13 commented Jan 27, 2019

I use an Lenovo Laptop with Linux Mint and an onboard Wifi Adapter.
After I have entered the Wifi Passwort my Phone tries to get an IP Adress from vtrust-flash but it doesnt work. When I use Static IP the Phone connects but I still cant flash my Device.

@qingz2004
Copy link

I was using Raspberry Pi 3 B+ build in WiFi adapter. It showed the access point, but could not connect to it.
After I added a Netgear USB WiFi adapter and change the config to wlan1, it worked.
Thanks!

@botak13
Copy link

botak13 commented Jan 27, 2019

hmm I dont have an usb WiFi Adapter to test.
What is the difference to an Onboard WiFi?

@jptrsn
Copy link
Author

jptrsn commented Jan 27, 2019

The latest version did not work, but checking out the commit before -Logfile option worked for me.

@merlinschumacher merlinschumacher added the help wanted Extra attention is needed label Jan 28, 2019
@kurim
Copy link
Contributor

kurim commented Jan 28, 2019

It did work with PI 3B+ (I only get it work with raspbian not with Kali!)
I've just remove everything from my SD Card to have a clear setup:

Raspberry Pi 3B+ & Raspbian Stretch (2018-11-13-raspbian-stretch-lite.img)
Do pre-setup because ssh is disabled by default you need to enable it first

sudo apt update && apt update -y
sudo apt install git
git clone https://github.com/ct-Open-Source/tuya-convert
cd tuya-convert
./install_prereq.sh
./start_flash.sh

Wifi was come up and is working fine.
img_8780 img_8781

Since I currently dont have any device to flash it stand still here:
1

@Zefau
Copy link

Zefau commented Jan 28, 2019

Unfortunately, WiFi does not show up for me. I'm on the same system as kurim (Raspberry Pi 3B+ & Raspbian Stretch using 2018-11-13-raspbian-stretch-lite.img).

@kurim
Copy link
Contributor

kurim commented Jan 28, 2019

Thats strange.
It might not necessary but did you setup your wifi region? (raspi-config)

@Zefau
Copy link

Zefau commented Jan 28, 2019

Apparently I had the WiFi setup to connect to my home WiFi, which is why the scripts couldn't use it. I deleted the WiFi settings and the script works now.
Thanks

@geertvercamer
Copy link

started from scratch, didn't setup wifi, the network doesn't show. Reboot, nothing, set WiFi country, reboot, nothing...
Pi2B + usb wifi adapter

@kurim kurim mentioned this issue Jan 29, 2019
@Vendo232
Copy link

same on my end, I`m using HP laptop with built in WLAN and USB WLAN ( wlan1).
edited config.txt , tried fresh Kali, ubuntu, Mint install

can`t make the AP appear.

@plazomat
Copy link

plazomat commented Feb 4, 2019

How many places do you change the WLAN# and which files? Same issue here, Mint fresh install on IBM laptop.

@Vendo232
Copy link

Vendo232 commented Feb 4, 2019

How many places do you change the WLAN# and which files? Same issue here, Mint fresh install on IBM laptop.

what worked for me was renaming WLAN0 from the random name Linux OS will assigned to WIFI module to wlan0 ( use command ifconfig)

I used this command

$ sudo nano /etc/default/grub
Look for GRUB_CMDLINE_LINUX and add the following net.ifnames=0 biosdevname=0.
From:
GRUB_CMDLINE_LINUX=""
To:
GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"
Generate a new grub file using the following command.
$ sudo grub-mkconfig -o /boot/grub/grub.cfg
Restart PC

than you need to make sure that inside config.txt inside 'tuya-convert" folder you have the right wlan0 or wlan1

I used Ubuntu 16.04, old HP PC and old USB WLAN and successfully flashed 2 types of plugs and LED RGB bulb.

Important is also TIMING of the flash process.
-> put the device into flashing/pairing mode just seconds before you hit "ENTER"

@kueblc
Copy link
Collaborator

kueblc commented Feb 4, 2019

You can modify the interface in config.txt. I definitely do NOT recommend modifying your GRUB configuration for this.

@Vendo232
Copy link

Vendo232 commented Feb 4, 2019

You can modify the interface in config.txt. I definitely do NOT recommend modifying your GRUB configuration for this.

I think if you setup a machine to one and only purpose ( flash TUYA devices ) the modification of GRUB should not be an issue. Besides you can revert the modification once you are done with flashing.

@plazomat
Copy link

plazomat commented Feb 4, 2019

Thanks - I will try with the just the config.txt modify to whatever ifconfig tells me the adapter is.

@plazomat
Copy link

plazomat commented Feb 4, 2019

If that don't work go after the GRUB file, right now the machine is only to flash tuya, it was a paperweight until tuya-convert..

@jptrsn
Copy link
Author

jptrsn commented Feb 5, 2019

Closing issue as my install worked. Please open a new issue for problems you encounter.

@jptrsn jptrsn closed this as completed Feb 5, 2019
@ashfaaaa
Copy link

anyone found a fix for this issue? tried with both internal and external wifi adapter but vtrust-flash does not show

@kueblc
Copy link
Collaborator

kueblc commented Mar 22, 2019

@ashfaaaa Please open a new issue with your logs and details about your problem and hardware

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests