Hi Team
I am new on this stuff. I have browsed a lot of topics inside this and others forums and I could not get the answers. I have the following problem:
When connecting my Arduino Leonardo with Dragino YUN Wifi shield I get the answer: "Retrying...Not connected". It is random. Sometimes It connects and sometimes not. Sometimes I could upload the sketch and sometimes not.
Following is the history with all the tries I have done.
1.- First I have started with an Arduino Uno and the Dragino Wifi Shield. I have followed the instructions on the Dragino Yun Shield Wiki to connect with an Arduino Uno and put 16U2 into reset mode. With this I have accessed the YUN Shield GUI and configured it correctly . But when trying to upload any sketch from the Arduino IDE I have got the same message. : Retrying. Cannot connect. ". It is randomly. Sometimes I could connect and upload the sketch and sometimes not.
I have browsing for known solutions and I thought it was the problem with the serial monitor of the Arduino Uno. It uses pin 0 (RX) and pin 1 (TX). Since those pins are also used for the Bridge to the wifi/linux/OpenWRT module I thought that problem could be avoided by using an Arduino Leonardo.
I have bought an Arduino Leonardo but the problem still arises. I can randomly connect and upload the sketches.
I have loaded the board packages and select Arduino Leonardo + Dragino Yun. The problem is not solved.
I have tried to update the firmware of Dragino Yun Shield to dragino2-yun-common-v2.0.7-squashfs-sysupgrade. But it does not solve the problem.
I have updated the Arduino IDE to 1.6.8. But still the same.
When uploading sketches I have noticed that there is an error into compiling:
"Bootloader file specified but missing: C:\Users.....\AppData\Local\Arduino15\packages\Dragino\hardware\avr\0.1.0\bootloaders\arduino:caterina\Caterina-Yun.hex
I do not know how to solve this error. I do not know how to create a folder in windows that containns the ":" inside a path likes the one in ....\arduino:caterina.... in order to put the file in that path.
I think that I should correct this error in compiling before looking for another solution to the " No connection, retrying problem".
What do you think I should try?
All help is welcomed
Thanks
Keep using the Leonardo with the Dragino shield. The Uno or a Mega board cause too much trouble because the Serial port is used for the Bridge.
I think my Leonardo has the normal Leonardo firmware, but I select 'Yun' as board in the Arduino IDE.
I did not change the boards.txt for my Leonardo + Dragino shield.
To upload a sketch, I use a usb cable. I also use the serial monitor to show many (debug) information and to be able to type commands.
To connect to OpenWRT (webpage with settings, telnet SSH with putty, connect to webpage or SD card) I use either wifi or Ethernet.
I know it is possible to upload a sketch via wifi, but i stopped doing that. Sometimes it appears as a board in the menu and sometimes not.
The warning about a missing bootloader is no problem. That is when in boards.txt a bootloader is mentioned, but it can not be found.
Which version of the Dragino Yun shield do you have ?
I run the newest firmware on the older Dragino Yun shield. I have added my own DC-DC converter, the new Dragino Yun has two onboard DC-DC converters.
Koepel:
I know it is possible to upload a sketch via wifi, but i stopped doing that. Sometimes it appears as a board in the menu and sometimes not.
All the problems reported were when trying to upload sketches through the wifi interface and I really want to fix this method. I have also test Wifi selecting Arduino Yun as the board.
Even though I am going to test uploading through the USB cable as suggested.
Koepel:
To connect to OpenWRT (webpage with settings, telnet SSH with putty, connect to webpage or SD card) I use either wifi or Ethernet.
I do use Wifi to access the Dragino GUI without any problem.
Koepel:
Which version of the Dragino Yun shield do you have ?
sn YunF380467 model v1.1
Koepel:
I run the newest firmware on the older Dragino Yun shield.
I have also upgraded to dragino2-yun-common-v2.0.7-squashfs-sysupgrade which I think is the latest firmware.