Android upload sketches to Arduino using AVRDUDE through bluetooth

时间:2016-04-04 17:41:28

标签: android bluetooth arduino avrdude

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 个答案:

答案 0 :(得分:0)

在编程之前尝试重置电路板(但不要重置蓝牙)。您可能会注意到每次激活串行端口时电路板都会重置。重置bootloader后第一次激活,如果没有,则启动用户程序。

如果你看看电路板方案,你会发现复位信号(引脚)连接到法律板上的编程芯片,或者连接到克隆上的usb-serial转换器。这是为了在打开后重置电路板。

某些蓝牙模块的引脚指示连接状态,将引脚连接到arduinos的复位可能会有所帮助。