kai-morich / SimpleBluetoothTerminal

Android terminal app for Bluetooth classic devices using SPP profile
MIT License
447 stars 166 forks source link

About transmitting data from Serial Bluetooth Terminal app to arduino due #4

Closed JMJ15 closed 4 years ago

JMJ15 commented 4 years ago

Sir, When ever I try to pass any character from Serial Bluetooth Terminal app it is not working. But when I try to pass the character from serial monitor of Arduino it is transmitting to serial monitor and also to phone via Bluetooth. From that thing I understood that receiving data from Arduino via Bluetooth to phone is working but transmitting data from phone to Arduino is not working. Hereby attaching the code what I used in Arduino side.

char Incoming_value = 0; void setup() { Serial.begin(9600);
pinMode(LED_BUILTIN, OUTPUT);
} void loop() { if (Serial.available() > 0) { digitalWrite(LED_BUILTIN, HIGH); Incoming_value = Serial.read(); Serial.write(Incoming_value); delay(500); digitalWrite(LED_BUILTIN, LOW); }

Hopefully waiting for your help and thanks in advance.

kai-morich commented 4 years ago

please check https://github.com/mik3y/usb-serial-for-android/wiki/Troubleshooting#i-am-using-an-arduino-uno-sparkfun-pro-micro-or-other-arduino-and-if-serial-doesnt-work

JMJ15 commented 4 years ago

Sir with OTG its working fine. But when I replace OTG with HC-05 Bluetooth module transmission is not working but receiving side is okay. I came to this conclusion by checking it with serial monitor in arduino in PC

JMJ15 commented 4 years ago

Thanks a lot I corrected it. Its because i did not used the other serial port available in due. When I used other Rx & Tx (1 or 2 or 3) it works fine. Thanks anyway