Im working with bridge library and I have a problem because the comunication is slow between arduino and linino and I need communication in real time. Its any alternative?
Actually, I am execute in yún a C program that execute "curl http:/...".
flyonthewind:
Im working with bridge library and I have a problem because the comunication is slow between arduino and linino and I need communication in real time. Its any alternative?
@flyonthewind,
this is a common request, there are a lot of "work arounds". Can you explain your need a bit more?
TIA
Jesse
I have a C program in Linino for send orders to Arduino. If order is a ultrasound sensor its no problem, but if the sesor is a motors delay its problematic. I have a delay around 0,5"-1".
I have a C program in Linino for send orders to Arduino. If order is a ultrasound sensor its no problem, but if the sesor is a motors delay its problematic. I have a delay around 0,5"-1".
Okay, not very common problem. But has solution.
If you want deterministic solution, then all your important code MUST be on ATmega32u4, not Linux. Linux is NOT deterministic.
If NOTdeterministic and small time window delay is okay, you must define that time window. Maybe some code can be on ATmega32u4 and some code on Linux.
I have libcurl installed by opkg, but gcc can not find the file, I use #include <curl/curl.h> also #include <curl.h> and doesn't found "fatal error: curl/curl.h: No such file or directory"
I have libcurl installed by opkg, but gcc can not find the file, I use #include <curl/curl.h> also #include <curl.h> and doesn't found "fatal error: curl/curl.h: No such file or directory"
flyonthewind: #1) Mailbox is similar to yunserver-client no? #2) I compile OK, and I receive error "fatal error: curl/curl.h: No such file or directory"
gcc -o program file.cpp file2.cpp -lstdc++ -lcurl
#3) I think that Libcurl-dev not in Linino
#1 Mailbox is service, processor (ATmega32u4) to processor (AR9331). Mailbox is memory, not socket, not internet. #2 Compile:
gcc -o program file.cpp file2.cpp -lstdc++ -lcurl [b]-include /{path to}/curl/curl.h[/b]
#3 libcurl is not Libcurl-dev. libcurl is okay - use.