Show Posts
Pages: [1] 2 3 ... 5
1  Products / Arduino Yún / Re: HTTPClient Bridge Example hangs on: December 27, 2013, 02:39:26 am
Federico, so far so good, I have been able to apply the modifications you suggested and everything is working fine.

I will be out for 20 days, will resume testing when back.

Thanks
2  Products / Arduino Yún / Re: HTTPClient Bridge Example hangs on: December 23, 2013, 08:41:10 pm
federico, many thanks, I will be able to look at it next Thursday, I will let you know how it goes.
3  Products / Arduino Yún / Re: HTTPClient Bridge Example hangs on: December 21, 2013, 05:37:55 pm
Thanks Federico.
4  Products / Arduino Yún / Re: HTTPClient Bridge Example hangs on: December 21, 2013, 05:02:47 pm
Thanks Federico, so what would you recommend? Should I wait for a fix?

This is taking too long and is quite disapointing...
5  Products / Arduino Yún / Re: HTTPClient Bridge Example hangs on: December 19, 2013, 06:27:29 pm
Hi OttoF,  once again many thanks for your input.

Unfortunately the solution that worked for you wouldn't help in my case, I have to send an API ( "get" request) that is 100 characters long and the server will not understand if it is not sent all at once. I then receive 14 bytes back from the server.

Bottom line I  wouldn't say that in my case the transfer involves  "...a lot of bytes on the bridge..."  and besides I guess the Yun should work no matter what or otherwise the limit should be part of the spec.

Don't you agree?

Best and thanks again for your support
6  Products / Arduino Yún / Re: HTTPClient Bridge Example hangs on: December 18, 2013, 02:53:27 pm
Hi Federico, I wonder if you were able to reproduce the problem.

Thanks, Simon
7  Products / Arduino Yún / Re: HTTPClient Bridge Example hangs on: December 13, 2013, 03:34:48 pm
Federico, as always thank you very much for your support... and I'm very glad you are testing it, hopefully you will be able to reproduce the problem and of course fix it!

Regarding your remarks:

Quote
I'm running your sketch since 2 hours and it hasn't failed yet (I haven't kept on watching the led since then, I just see that is blinking the expected way)

No surprise to me, some times it hangs after a short period of time ( < 2 hours) and sometimes runs for more than a day

Quote
Could the problem be related to something else going on the linux side? Like some cron-driven process or something generating big log files or filling up the ram?

I have no clue, I've no experience with Linux the only thing I can tell you is that the simple sketch is the only thing I've loaded.

Have a nice weekend!
8  Products / Arduino Yún / Re: HTTPClient Bridge Example hangs on: December 11, 2013, 08:55:23 am
OttoF, thanks for sharing your insights.

 Anyway I guess the main point is why the Yun doesn't perform as it should even with a very simple case as this.

Let's wait to see what the Arduino's gurus (Federico?) have to say about

Best!
9  Products / Arduino Yún / Re: HTTPClient Bridge Example hangs on: December 11, 2013, 08:29:03 am
You are correct, the LED stops blinking (as a matter of fact stays ON leading to imagine the problem is related to the HTTP client operation.

As for the compiler optimization I have no clue...
10  Products / Arduino Yún / Re: Rest API gets slower and slower and finally webserver hangs... on: December 11, 2013, 08:08:57 am
@OttoF, many thanks for your reply.

In order to simplify things I've decided to start a new topic reporting the full issue:

http://forum.arduino.cc/index.php?topic=204077.0

looking forward to hear your thoughts...

Best!
11  Products / Arduino Yún / HTTPClient Bridge Example hangs on: December 11, 2013, 08:05:55 am
Team, I've developed a very simple HTTP client application completely based on the HTTPClient example from the IDE which runs OK for some time and then suddenly stops working. In some occasions the Yun recovers after awhile but most of the times hangs and the only way to bring it back to life is by performing a full reset (off and on again)

My WiFi is pretty stable and I have other devices connected to the same network working properly even when the Yun stops.

In order to eliminate the (highly probable) possibility of an error on my sketch I've slightly modified the original example (see code below) an got exactly the same behavior.

The modifications I made are:

- remove (comment) the Serial communication operations in order to be able to leave the Yun working by itself unattached to other computer.
- added a Led feedback in order to "see" if the Yun is or not operating.

Hope I've been clear and it should be easy to reproduce the problem.

I'd really appreciate any hints on what can be done to overcome the issue.

Many thanks in advance, Simon

Code:
/*
  Yun HTTP Client

 This example for the Arduino Yún shows how create a basic
 HTTP client that connects to the internet and downloads
 content. In this case, you'll connect to the Arduino
 website and download a version of the logo as ASCII text.

 created by Tom igoe
 May 2013

 This example code is in the public domain.

 http://arduino.cc/en/Tutorial/HttpClient

 */

#include <Bridge.h>
#include <HttpClient.h>

void setup() {
  // Bridge takes about two seconds to start up
  // it can be helpful to use the on-board LED
  // as an indicator for when it has initialized
  pinMode(13, OUTPUT);
  digitalWrite(13, LOW);
  Bridge.begin();
  digitalWrite(13, HIGH);

  //Serial.begin(9600);

  //while (!Serial); // wait for a serial connection
}

void loop() {
 
  //turn the led to show we are starting a new loop
    digitalWrite(13, HIGH);

  // Initialize the client library

  HttpClient client;

  // Make a HTTP request:
  client.get("http://arduino.cc/asciilogo.txt");

  // if there are incoming bytes available
  // from the server, read them and print them:
  while (client.available()) {
    char c = client.read();
    //Serial.print(c);
  }
  //Serial.flush();

  // turn the led Off to indicate completion
 
      digitalWrite(13, LOW);

 
  delay(5000);
}

12  Products / Arduino Yún / Re: Rest API gets slower and slower and finally webserver hangs... on: December 10, 2013, 09:27:20 am
Guys I've installed the new IDE but in my case the Yun keeps hanging after a while...

Any hints?

 I'm extremely frustrated with the Yun's behaviour.


13  Products / Arduino Yún / Re: Rest API gets slower and slower and finally webserver hangs... on: November 21, 2013, 05:04:06 am
Olivb, at least in my case your theory
Quote
memory management of python
doesn't apply. I'm not using Python, just plain Arduino C code and another thing to point out is the fact that the problem occurs without a timing pattern. Sometimes the Yun stops after a few hours and now it has been working for 3 days.
14  Products / Arduino Yún / Re: Rest API gets slower and slower and finally webserver hangs... on: November 18, 2013, 08:12:53 am
Federico, in my case the program reads the  wind speed and direction from an Sparkfun weather station (https://www.sparkfun.com/products/8942) and sends a request to a Web server to display the data.

If you want to run the program use W2S26 as your Yun's name  and see the post on http://wind2surf.com/ choosing Torino, Italy as your "Praia" (beach). (you don't need to have a weather station...)

Let me know what you find out.

Thanks

.

15  Products / Arduino Yún / Re: Rest API gets slower and slower and finally webserver hangs... on: November 15, 2013, 12:45:19 pm
olivb, any progress with your issue? I'm experiencing what may be a similar problem.

I have a very simple HTTP client sketch sending data every 10 seconds, it runs fine for long periods of time (> 1 day)  and then suddenly stops completely.

 I'm considering to have some kind of watchdog involved to overcome the problem but with so many resets on the Yun I don't know where to start.

Federico, I would appreciate any hints from you side.

Cheers!
Pages: [1] 2 3 ... 5