Closed tesorrells closed 3 years ago
typical issues are wrong baud rate or incomplete permission handling. please try with example app.
typical issues are wrong baud rate or incomplete permission handling. please try with example app.
Hey! I am having the same issue. I am trying to stream the data continuosly. I tried sending a string from android app to Arduino Uno, I can see the Rx led glowing but LED is not blinling as it should according to the program. However I observed that when I am sending the string just once from the app, the LED blinks but it takes some time to do this after the Rx pin blinks. I think this is the reason for the stream of data working. Is there a way I could set frequency of streaming?
Edit I was able to solve this issue. For those facing the same issue, the following worked for me-
I think that since arduino serial communication is interrupt based, and the buffer time between arrival of two simultaneous data is very very less than the time taken by arduino to process a piece of data (in my case LED blinking), the arduino receives the data but fails to process it.
I am trying to send some serial data from my android app to an arduino nano, just some numbers, and when i hit the button to send the nano RX light flashes, but the code on the nano doesn't do anything, as it should, with the data. I'm using a USB-C to USB-C cable, as when i tried to usb an OTG cable it did not recognize the USB device was even there on the android side. Not sure if the issue is on the android side or the nano side. I tried reading from serial to see if that produced anything and it just crashed.
` protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main);
`