I have a problem that I encounter with my arduino program and the use of OpenWRT linino. I can’t really find a solution for several days. (I use Arduino TIAN)
Indeed, my program works well but after 14,15 hours of operation it stops working and I don’t receive datas. The program is fast at the beginning, then after 2 to 3 hours before stopping, it becomes more and more slow with the message “timeout” (on Laview). All the communication and all, what we would like to do is working fine, except, that after a sporadic time the communication to the PC trough the restserver quits the service.
At first I thouhgt, it might be a problem on the programmation side of the Atmel, but several testings did not show a clear pattern for the fault. Than I checked deeper and analized the linux based linino-side and I did find out, that probably the process is consuming more virtual memory than there is available RAM, so is swapping… And stop… The ciao and restserver increase the memory demand over the time and when the memory is “full” and the linux begins to swap, the communication to the PC slows down immediatley and drastically and after a few requests from the PC the Tian would quit the service and hang up. So there must be some maybe “bad” code in the ciao.py and restserver.py, which does not take in account to clear the memory…,?
So I think maybe a modification at the program level could correct the problem or maybe several commands on the linino side ?