voice-engine / wiki

Wiki
http://wiki.voicen.io
11 stars 4 forks source link

WiFi Setup Mode #1

Open jakbutler opened 4 years ago

jakbutler commented 4 years ago

Not sure if this is the appropriate place to report an issue with setup / ask a question. I'm having difficulty with the WiFi Setup Mode using the Hey, Wi-Fi webapp. On the VOICEN mic array board, I noticed that the R light does not illuminate ever when the touch key is depressed, held, or after it's released (all the others seem to be working). Could this be related to an inability to set up via the recommended method and what issue might this indicate is occurring with the set up?

xiongyihui commented 4 years ago

When Nanopi Neo Air is connected to a computer, there will be a USB virtual serial port. Are you able to open a terminal via the serial port? If yes, you can check the LED via IO registers

sudo nmtui        # to connect Wi-Fi
sudo apt install -y sunxi-tools
sudo sunxi-pio -m PC3=1  # turn on Red LED
jakbutler commented 4 years ago

When Nanopi Neo Air is connected to a computer, there will be a USB virtual serial port. Are you able to open a terminal via the serial port? If yes, you can check the LED via IO registers

sudo nmtui        # to connect Wi-Fi
sudo apt install -y sunxi-tools
sudo sunxi-pio -m PC3=1  # turn on Red LED

Thank you. After doing the above, it does not appear to have any effect on the Red LED. When I similarly try the below from the IO documentation, I get an error:

root@voicen:~# sudo gpioset 0 67=1
gpioset: error setting the GPIO line values: Device or resource busy

Is this indicative of a possible hardware issue and, if so, is it just cosmetic (i.e. only affecting the LED)?

That being said, connecting via the USB serial port enabled me to get it connected to the WiFi, which is great progress!

xiongyihui commented 4 years ago

gpioset failed because the io is already be used by a io service. You can stop the io service by:

systemctl stop io

It is likely the red led is broken. You could check if any microphone is broken, as configuring Wi-Fi through sound failed.