Safer form of connection between Android and Arduino

Asked

Viewed 68 times

1

I am developing an application that communicates with Arduino (Uno). I used two modes to communicate so far, via USB (I used the usb-serial-for-android and Physicaloid libraries) and Bluetooth.

Sending and receiving data via Bluetooth was a bit slow and sometimes the information just wasn’t sent or received. In communication via USB the sending of data was very fast, but even so, sometimes the connection does not open and is very random. I run the application and the USB connection does not open, close the application, run again and the connection opens. I have not tried connection via WIFI.

What is the ideal and safest way to make an Arduino connection?

  • By the information all modes used present problems, for me it leads to believe that the problem is the own programming (on both sides) or the device itself (Android or Android) used, but not its form of connection. I always used by Wifi and Ethernet, which in the same network can be accessed by Wifi. I have had problems of slowness and delay to perform tasks, this was mainly lack of memory and many simultaneous connections. Each case is a case, but if three modes used present problems... I think the problem is not this.

  • I get it, I’m gonna go over the code, there might actually be something wrong, thank you for the answer!

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.