Show Posts
Pages: 1 2 [3] 4 5 ... 15
31  International / Software / Re: arduino si riavvia da solo ... poca ram? on: October 23, 2012, 07:42:01 am
per capire se davvero รจ la ram a mancare usaq questa funzione:

int freeRam () {
  extern int __heap_start, *__brkval;
  int v;
  return (int) &v - (__brkval == 0 ? (int) &__heap_start : (int) __brkval);
}
32  Using Arduino / Programming Questions / Re: Program flow question on: October 22, 2012, 08:23:50 am
Quote
Should I be using a completley different approach?
yes you can. i suggest you to read http://www.google.it/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&ved=0CDYQFjAB&url=http%3A%2F%2Fciteseerx.ist.psu.edu%2Fviewdoc%2Fdownload%3Fdoi%3D10.1.1.88.9025%26rep%3Drep1%26type%3Dpdf&ei=kkiFULGPB4vMsgbN9YHIAQ&usg=AFQjCNHpg7FOkZg9-3JO1VNAFOSxIhcnOg&sig2=HwQhSKvap7BtM_SRr6AINg&cad=rja
33  Using Arduino / Programming Questions / Re: how ethernt library methods work on: October 22, 2012, 08:01:55 am
thank you SurferTim.
34  Using Arduino / Networking, Protocols, and Devices / Re: why won't ethernet stay connected for more than a few hours? on: October 22, 2012, 08:01:44 am
In the version with the timeout is it ok that you call two times the client.stop if the timeout is reached?
35  Using Arduino / Programming Questions / Re: how ethernt library methods work on: October 22, 2012, 06:05:39 am
you can go look at the code yourself to answer such questions

Of course before ask you have to check yourself... If I have asked it is because after looking at the code, arduino docs and technical docs about TCP connections I did not succed. Answers like your made the forum heavy to read. Anyway it's true that sometimes people ask thing they can solve by themselves but this discussion is out of topic.
36  Using Arduino / Programming Questions / Re: how ethernt library methods work on: October 22, 2012, 05:58:38 am
Thanks. I edit the question specifing that I am using arduino always as a client.
Quote
The Ethernet class can't tell the status of the connection on the other end
but so how ethernet client.connected() can works? (I have read the code but I can't understand how  readSnSR() works)

Quote
If there is no client connected, there is nothing to stop.
but in many official examples you can find:

Code:
if (!client.connected()) {
Serial.println();
Serial.println("disconnecting.");
client.stop();
for(;;)
;
}
37  Using Arduino / Programming Questions / how ethernt library methods work on: October 22, 2012, 04:08:48 am
Hello. I need to periodically send data on the internet and I am sucessfully using the official ethernet shield and library The arduino only acts as CLIENT.
What I am doing is this:
A) Check if the connection in ON 
Code:
client.connected()

B) if not connect 
Code:
client.connect()
C) send data
D) while
Code:
client.connected()
  read and parse server answer
E) once obtained the right answer or once a timout elapses call
Code:
client.stop()

This works but I may be I can make it better understanding more deep what ethernet methods do.
My questions (unresolved afer reading the internet reference and the library code) are:

1) Does
Code:
client.connected
checks if the connection is opened only SERVER SIDE speaking? (On TCP it is like we have 2 connections, one server side and one client side).
2) If point "A" give false do I have do call
Code:
stop()
before call the
Code:
connect()
on point "B".
3) Does the
Code:
stop()
funtion only close the connection client side speaking? (I call the close every time I send data because I know it is not a good practice to leave too much connection opened to the server, but if it acts only only on client side...)

Thanks for you help if you could answer!

38  Using Arduino / Programming Questions / Re: High and low power switching on: October 22, 2012, 02:47:08 am
yes you can datect voltages. I suggest you to read this page:
http://openenergymonitor.org/emon/buildingblocks
39  Using Arduino / Programming Questions / Re: Wifly connection problem on: October 17, 2012, 08:44:06 am
what library're you using?
40  Using Arduino / Networking, Protocols, and Devices / Re: Sketch hangs with DHCP and XBee on: October 17, 2012, 08:22:45 am
I had exactly the same problem and I solved it using the mega too.
41  Development / Suggestions for the Arduino Project / Re: IDE1 DHCP library: included (Terrell) vs Kaindl's one on: October 17, 2012, 08:02:49 am
The problem has been resolved with the IDE 1.0.1 now the only thing necessary is to call Ethernet.mantain().
Look at http://arduino.cc/en/Reference/EthernetMaintain for more info.
42  Development / Other Software Development / Re: [MOD] Arduino Enhanced Release 1.0.1H for Windows (installer, drivers, etc) +SRC on: October 10, 2012, 09:40:03 am
Does anyone know how to disable the "fancy new font" and to use a the original IDE's one?
Thanks

In the preferences, use "System" and antialias = false

But why?

I estetically prefer the old one, the new one has also problem with the accents
43  Development / Other Software Development / Re: [MOD] Arduino Enhanced Release 1.0.1H for Windows (installer, drivers, etc) +SRC on: October 05, 2012, 07:22:11 am
Does anyone know how to disable the "fancy new font" and to use a the original IDE's one?
Thanks
44  Using Arduino / Programming Questions / avr libc and memory bugs on: September 24, 2012, 03:32:53 am
I have read on many posts that the library avr libc 1.6.4 is affected by some bugs mainly concerning memory allocation. Is it true that is sufficient to update this library for solve the problem?
If I download a new one (for example here http://download.savannah.gnu.org/releases/avr-libc/) how can I update it and how to be sure that new versions are 100% compatible with arduino?
Thanks
45  Using Arduino / Project Guidance / Free RAM needed to work fine on: September 24, 2012, 02:56:52 am
Hi. Do you know if it is important to leave a quantity of RAM always free or if it is just possible to fit all the spaces just till the last byte? And why?
Thanks
Pages: 1 2 [3] 4 5 ... 15