ngocthanhit / xig

Automatically exported from code.google.com/p/xig
0 stars 0 forks source link

XIG hang after several uploads #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. xig 1.4.1 on connectport2 for ZB
2. modified xig_upload_example (time stamp added) on server
3. modified xig_upload_example.pde (.ino)

What is the expected output? What do you see instead?

Expect data point uploaded to server (PHP).  Get periodic hang of connection.

What version of the product are you using?

1.4.1

Please provide any additional information below.

Arduino attempts data upload every 15 seconds.  Data is successful for variable 
number of attempts (sometimes as few as a handful, others as many as hundreds) 
then hangs.  

By hang I mean that messages are being sent by arduino, but the xig does not 
REPLY.  Remote reboot of XIG allows successful connections to resume -- until 
next hang.  No errors in server logs that I can see.

This is similar to issue ID 8 except that I can get more than 1 (one) upload 
and the error is sporatic.

There is limited error reporting by XIG, so if I may request a few features 
that might help:

1) when error occurs -- return an error code or simple ERROR message. 

2) error messages should be short (currently a incorrect URL return whole help 
page then error message).

3) abort also return whole help page -- could this be shortened?  or is there a 
setting somewhere i can change?

4) is there a log file for the xig?

Attached a zip with txt file created by PHP, arduino code, and PHP file. 

Original issue reported on code.google.com by SteveDanielsofRyerson on 5 Mar 2012 at 7:26

Attachments:

GoogleCodeExporter commented 9 years ago
hi,

Did some more reading -- found similar issue on the discussion board.

http://groups.google.com/group/xbee-internet-gateway/browse_thread/thread/14fb31
696f144280

As per that discussion, you can find my trace here:

http://www.spinningtheweb.org/sandbox/trace.zip

Original comment by SteveDanielsofRyerson on 5 Mar 2012 at 8:38

Attachments:

GoogleCodeExporter commented 9 years ago
Thank you for your feedback!

Does the session successfully recover after you send an abort command?

Original comment by Jordan.H...@gmail.com on 6 Mar 2012 at 2:41

GoogleCodeExporter commented 9 years ago
Hi,

Thanks for speedy rely -- this is a very powerful platform!

Yes I have some cleaner code that will recover with an 'abort' sent from the 
Arduino to the XIG.  

Do you know where this goes of the rails?  Is it server or does XIG time out / 
not time out?

thanks for your help.

best

Original comment by SteveDanielsofRyerson on 6 Mar 2012 at 9:14

GoogleCodeExporter commented 9 years ago
It would be interesting to see what's happening on the server side when the 
request hangs.  It's hard to say what is going off the rails without more data.

This does happen a lot in the wild.  It's important when writing any program 
which uses the XIG to have a good xig://abort timeout in your code.

I am going to close this bug as I believe everything is working as we've 
designed it.

Original comment by Jordan.H...@gmail.com on 13 Mar 2012 at 3:50