Recently bought my first Arduino Yún, and worked fine until now.
I want to implement some functions wich require bridge, but can't get them to work. (also standard examples do not work)
Now I made a very basic code (see belown) to look where it goes wrong, and found out it goes wrong when Bridge.bigin() is called.
After connection the serial monitor, text "Starting bridge" is displayed and leds goes on. But then nothing happens and the led stays on.
So something goes wrong in Bridge.begin();
Does somebody has a solution to solve this issue?
Thanks
Futher information:
I removed all connections shield and SD card, so only bare arduino Yun connected to laptop.
Via wifi I can logon to arduino web interface, also programming via wifi works.
#include <Bridge.h>
int LED = 13; // Red led
void setup() {
Serial.begin(19200);
pinMode(LED, OUTPUT);
digitalWrite(LED,HIGH);
delay(10000);
digitalWrite(LED,LOW);
Serial.println("Starting bridge");
delay(5000);
digitalWrite(LED,HIGH);
Bridge.begin();
digitalWrite(LED,LOW);
Serial.println("Bridge has started succesfully");
}
Hi Pimmernl,
I too have similar problems. I feel the problem is there during start-up (Linino takes about 60 secs to start and Arduino takes few seconds) where-in the hand-shaking between the Arduino and Linono fails.
I put a delay of 60 seconds (60000 msec) at the first statement in setup() and things started working again.
delay(60000);
Also restarting the Arduino (pressing and releasing the top left button next to ethernet port after Linino is up) also solved my problem.
Hi Everyone,
Sorry for getting back late. I had completely lost track of this post. My apologies...
Please try performing soft reset / manual reset of Arduino after Linux side of processor is up (after the White light glows).
Soft reset can be done by issuing following command on SSH:
/usr/bin/reset-mcu
Manual reset can be done by pressing the reset button (top left corner) on the board itself.
I use Console to log messages. I believe you have connected PC to the micro USB connection of Yun. May be good idea to wait for Serial (see code below) to come up before you start printing...
@jessemonroy650
i meet the problem that the sketch does not run bridge.begin(), at #13, @alexafa has found a solution, he says need to create a new file K49stop-mcu
but i dont know how to do this.
i ssh into the linux side, go to the directory: /etc/rc.d/
and then type
however the bridge.begin() still not works, the sketch run to the bridge.begin(), then hang on, ive already try many ways, but not work:
1, upgrade to the latest lininoIO
2, remove python-firmata and pyserial
3, change bridge.begin() to bridge.begin(250000)
4, create stop-mcu in /etc/rc.d or /etc/init.d
almost give up, find arduino yun has so many problems