Dragino Yun Shield setup

Hello, for some reason my Dragino Yun Shield will not save the REST API access option to "OPEN". It always reverts back to "WITH PASSWORD". There doesn't seem to be a save button on the page only the "Configure and restart" button in the WIFI section above the REST API access section.

Does anyone know a solution to this? Any help would be greatly appreciated.
Thank you.

tman1978:
::::SNIP::::

Does anyone know a solution to this? Any help would be greatly appreciated.
Thank you.

@tman1978,
In some rare cases, the router does NOT accept the connection. To check this you'll need to use the YunSerialTerminal.

Here are the instructions you'll need to follow:

First it's good to know, when Arduino Yun cannot find the AP you have set it for (like your home wifi), it has a script that puts it back into default SSID and AP mode.

Next, you may have already watched this video, but it's worth watching again. Pay extra attention to the part with the sketches.
Getting started with Arduino Yún - tutorial (6:53)

Then, read these short instructions. We (the volunteer support group) already know these steps by heart, so be familiar with the different reboot methods, and especially the 30+ second wifi reset. Also, not mentioned on that page, if you reset the Wifi/Linux part of the Yun, it will take from 2-8 minutes for the reboot.
Resetting the processors (AR9331, WiFi, and 32U4)
http://arduino.cc/en/Guide/ArduinoYun#toc6

Then start over, plug your Yun into the USB port, run this sketch, and hit the Wifi Reset button (for 5-10 seconds).
http://arduino.cc/en/Tutorial/YunSerialTerminal

The YunSerialTerminal provides a simplified console access to the Linux part of the Yun. It works via the USB port (the one that powers the Yun - the microUSB). From there you'll be able to run a few commands to give us a better idea of problems.

Also, be ready with this sketch YunWiFiStatus. This sketch will help us see the status of your home AP. The sketch prints the wifi status to the console every 5 seconds or so. This sketch might seem familiar as it was in that first video link (above).

TARGET or GOAL

If the Yun is NOT taking the password because the routers is rejecting the YUN we will see it in the logs - as the YUN will never report being "authenticated".

Lastly, post results from the YunSerialTerminal, if you are still having problems.
Please use markup when posting results. Please let us know how it goes.

Jesse

arduino_markup.png

tman1978:
Hello, for some reason my Dragino Yun Shield will not save the REST API access option to "OPEN". It always reverts back to "WITH PASSWORD". There doesn't seem to be a save button on the page only the "Configure and restart" button in the WIFI section above the REST API access section.

The Dragino Yun Shield plus a regular Arduino is close but not quite the same as a Yun. My understanding is that there are some subtle (and some not-so-subtle differences.)

On an actual Yun, clicking the radio buttons to change the REST API mode has an immediate effect: there is no need to save the settings, nor is there a need to restart. If the Dragino shield behaves differently, that may be one if the differences deep down in their Linux implementation?

Three methods:

method I: uci api

PASSWORD:

uci set arduino.@arduino[0].secure_rest_api=true
uci commit arduino

OPEN:

uci set arduino.@arduino[0].secure_rest_api=false
uci commit arduino

Method II: config file

opkg update
opkg install nano
nano /etc/config/arduino
config arduino
        option password '775e9f944188a7bcb36e9ca5dc51672b44bcceeb7d56d89dfb914e$
        option wifi_reset_step 'clear'
        option secure_rest_api 'true'
...

"true" for PASSWORD and "false" for OPEN.

Method III: web interface

make sure fill in WIFI PASSWORD, select REST API ACCESS, click configure & restart.