Connection Error

Ask, and ye shall receive.
Eugenia
Posts: 6
Joined: 16:16, 12 Dec 2014

Connection Error

Postby Eugenia » 16:21, 12 Dec 2014

I am new to Evothings and am simply trying to ran the example LED On/Off TCP from my android phone. After putting in the IP address I keep getting a connection error. Anybody have any idea, I cannot find any answers to this problem on the forum or anywhere else.

Thanks

ardiri
Posts: 58
Joined: 16:13, 28 May 2014

Re: Connection Error

Postby ardiri » 16:58, 12 Dec 2014

did you walk through the blog post we had on this?

http://evothings.com/blink-a-led-on-the-intel-edison-dev-board-using-your-smartphone/

the secret to this is to make sure you have the right IP address - the sketch will display this in the serial monitor when the sketch starts up. it can take up to a minute for the Edison to boot up and actually start running your sketch.
// Aaron
Chief Technology Officer
Evothings AB http://www.evothings.com/

Eugenia
Posts: 6
Joined: 16:16, 12 Dec 2014

Re: Connection Error

Postby Eugenia » 17:00, 12 Dec 2014

Yes Adiri,
I followed these instructions step by step. And I am also copying in the IP Address from the Arduino board exactly as I see it. I am really at a loss. been at it the whole day, and still receive a connection error.

Best regards,
Eugenia

ardiri
Posts: 58
Joined: 16:13, 28 May 2014

Re: Connection Error

Postby ardiri » 17:08, 12 Dec 2014

Eugenia wrote:
I followed these instructions step by step. And I am also copying in the IP Address from the Arduino board exactly as I see it. I am really at a loss. been at it the whole day, and still receive a connection error.


are you on the same subnet/network? for example, if the Arduino has an IP address like 192.168.0.10 - your mobile phone must also be able to connect to it via the same network. it should be connected using WiFi - if you are only connected to your mobile phone network, you wont be able to reach the Arduino :)
// Aaron
Chief Technology Officer
Evothings AB http://www.evothings.com/

Eugenia
Posts: 6
Joined: 16:16, 12 Dec 2014

Re: Connection Error

Postby Eugenia » 17:10, 12 Dec 2014

I am on the same Wifi network :cry:

ardiri
Posts: 58
Joined: 16:13, 28 May 2014

Re: Connection Error

Postby ardiri » 17:14, 12 Dec 2014

Eugenia wrote:I am on the same Wifi network :cry:


the only thing I can think of is if your WiFi network has client isolation functionality enabled which prevents your devices from talking to each other - but, if you were able to push the application out to the Android phone using the workbench - there should be a connection. you may need to review the debugging logs - the first is on the serial monitor (for Arduino, where you get the IP address). the second; is within the Workbench itself, click on the "TOOLS" menu bar and you may see some additional information from the Android application shown there - maybe best to cut and paste and share it here?
// Aaron
Chief Technology Officer
Evothings AB http://www.evothings.com/

Eugenia
Posts: 6
Joined: 16:16, 12 Dec 2014

Re: Connection Error

Postby Eugenia » 12:51, 16 Dec 2014

I connected to a different network and now my phone is connected to the Arduino. However when I press on LED on I get these messages in the serial Monitor window:
Client connected
O2
Client disonnected
Client connected
H2
Client disonnected
Client connected
O2
Client disonnected
Client connected
H2
Client disonnected
Client connected
O2
Client disonnected
Client connected
H2
Client disonnected
Client connected
O2
Client disonnected
Client connected
H2
Client disonnected
Client connected
O2
Client disonnected
Client connected
L2
Client disonnected
Client connected
Client disonnected
Client connected
O2
Client disonnected
Client connected
H2
Client disonnected
Client connected
O2
Client disonnected
Client connected
H2
Client disonnected
Client connected
O2
Client disonnected
Client connected
H2
Client disonnected
Client connected
O2
Client disonnected
Client connected
H2
Client disonnected
Client connected
O2
Client disonnected
Client connected
H2
Client disonnected
Client connected

The Led does not come on. Do you know what this could mean?

Best regards,
Eugenia

ardiri
Posts: 58
Joined: 16:13, 28 May 2014

Re: Connection Error

Postby ardiri » 12:58, 16 Dec 2014

much better!

did you connect an LED to pin 2 with a 220 Ohm resistor? you could also use a multimeter to verify the pin is actually going high as well when you press the ON button. The LED on/off examples require some hardware setup (wiring)
// Aaron
Chief Technology Officer
Evothings AB http://www.evothings.com/

Eugenia
Posts: 6
Joined: 16:16, 12 Dec 2014

Re: Connection Error

Postby Eugenia » 13:43, 16 Dec 2014

It is currently 0.59V on pin2 when I press LED ON. But it fluctuates. It is the same when I press LED OFF, though I am expecting it to be 0V.

Eugenia
Posts: 6
Joined: 16:16, 12 Dec 2014

Re: Connection Error

Postby Eugenia » 15:00, 16 Dec 2014

It works now! I thought it the LED was well connected. Maybe it wasn't. Didn't change anything, just reconnected. Thanks so much for the help! :D :D :D


Return to “Questions and answers”

Who is online

Users browsing this forum: No registered users and 52 guests