mik3y / usb-serial-for-android

Android USB host serial driver library for CDC, FTDI, Arduino and other devices.
MIT License
4.81k stars 1.58k forks source link

Not receiving any data #500

Closed gautam-paliwal closed 1 year ago

gautam-paliwal commented 1 year ago

I am tring to communicate between android app and Xbee3. I am able to send data from android app to XBee3 but not receiving any Data from Xbee3 to android app. I have tried to implement SerialInputOutputManager.Listener and int len = port.read(packet, 1000); but none of them works

kai-morich commented 1 year ago

please try: https://github.com/mik3y/usb-serial-for-android/wiki/FAQ#user-content-I_am_using_an_Arduino_Uno_Sparkfun_Pro_Micro_or_other_Arduino_but_codeSerialwritecode_does_not_send_data

Alfaizkhan commented 1 year ago

I'm also not getting the data in the application sometime.

I have to open application again, make a connection and then only it will work.

Alfaizkhan commented 1 year ago

@kai-morich Any solution or tips? Why it's happening.

I get nothing in onNewData() sometimes.