【问题标题】:Arduino Bluetooth Module HC-06 ErrorArduino蓝牙模块HC-06错误
【发布时间】:2016-04-29 18:50:23
【问题描述】:

我的 Arduino Uno 蓝牙模块无法正常工作。我已按照本网站的说明进行操作: http://www.instructables.com/id/Arduino-AND-Bluetooth-HC-05-Connecting-easily/?ALLSTEPS

所以在我的蓝牙设置上显示 COM7 Incoming 所以我把它放在 Putty 和 COM8 中用于传出,所以我把它放在 arduino IDE 中。我收到这些错误

Sketch uses 3,016 bytes (9%) of program storage space. Maximum is 32,256 bytes.
Global variables use 226 bytes (11%) of dynamic memory, leaving 1,822 bytes for local variables. Maximum is 2,048 bytes.
avrdude: ser_open(): can't open device "\\.\COM8": Access is denied.


Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x31
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x31
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x31
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x31
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x31
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x31
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x31
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x31
avrdude: stk500_recv(): programmer is not responding
Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x31
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x31

谢谢

【问题讨论】:

    标签: bluetooth arduino arduino-uno


    【解决方案1】:

    这个问题,或者类似的问题,“avrdude: stk500_recv(): 程序员没有响应”,很容易解决。

    如果 Arduino 已经连接到带有 HC-06 蓝牙模块的面包板,则会出现这些问题。

    首先,从电源上拔下 Arduino,然后断开 Arduino 到面包板的连接。给 Arduino 加电并检查串行通讯。端口是正确的。现在将草图上传到 Arduino 将不会出现问题。最后,拔下 Arduino 的电源,然后将 Arduino 重新连接到面包板。

    当蓝牙模块连接到Arduino时,模块会阻止Arduino的串口连接到USB上传草图。

    【讨论】:

      【解决方案2】:

      首先,您是否尝试通过蓝牙下载您的程序,因为如果您这样做,请不要这样做,它将无法正常工作。如果您尝试使用 USB 电缆上传程序,请确保您位于正确的 COM 端口(不是蓝牙 COM 端口)。上传程序时,保持电源和地连接,使其仍然处于激活状态,但您需要断开 rx 和 tx 连接(两个数字端口连接)。这是蓝牙模块的常见问题,因为由于某种原因,当 rx 和 tx 连接时,它会干扰程序的上传能力。

      【讨论】:

      • 教程似乎就是这样做的。不过好的,谢谢!那么当程序上传时,我可以断开它并让它插入电池吗?我也遇到了终端问题。我的蓝牙设置说 COM7-incoming-hc06 和 COM8-outgoing-hc06 'dev b'。我的终端应该使用什么 dev b 以及哪个端口?
      • 因此,一旦您正确上传了程序,您就可以再次连接 rx 和 tx。如果你做对了,那么连接到你的电脑应该不会有问题。确保一旦程序运行,您将串行端口更改为 com8(如果您从 arduino 接收信息)或 com7(如果您正在向 arduino 发送指令)与计算机配对时可能会将这些混淆。我在使用 hc-06 时也遇到了这些问题,需要反复试验。
      【解决方案3】:

      您收到“程序员没有响应”消息,因为其他进程正在使用 COM8 端口。如果其他程序(如串行终端)正在使用该端口,则无法通过该端口对 Arduino 进行编程,因此请退出程序,对 Arduino 进行编程,然后再次打开程序。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2018-08-20
        • 2018-02-19
        • 2018-03-10
        相关资源
        最近更新 更多