1
votes

I would like to use a bluetooth serial link on my Android device to upload .hex files to my arduino UNO board. I successufully load arduino sketches from Android using AVRDude command: /myFolders/avrdude -settings -serialPort -configuration -fileToBeFlashed.

My serialPort is /dev/ttyACM0 while the arduino is connected to USB. This works fine. However, when the bluetooth adapter is connected, I receive the error "programmer is not responding". I cannot identfy on which port is bluetooth running. I tried to enumerate the serial ports but I can't find any difference with or without the bluetooth adapter. Any idea on where to find the right serial port name for bluetooth communication?

1
What bluetooth module you use on arduino side? If ble than it may put you into trouble. Also you may need init Bt on arduino before use it for programming.Vladimir Tsykunov

1 Answers

0
votes

Try reset your board (but not bluetooth) right before programming. You maybe noticed that board resets every time serial port is activated. First time after reset bootloader is active, if no, it starts user program.

If you look at board scheme you can find there reset signal (pin) connected to programming chip on legal boards, or to usb-serial converter on clones. This done for resetting the board after usart opening.

Some bluetooth modules have a pin indicating connection state, it maybe helpful to connect the pin to arduinos's reset.