我正在使用Arduino mini pro并且刚刚购买了蓝牙伴侣银牌。我连接了两个并供电。蓝牙设备闪烁。我按照步骤将设备与我的Mac配对(10.9.5)。
当我上传我的草图时,它连接并且绿灯亮起但是我收到以下错误:
avrdude: stk500_recv(): programmer is not responding
和&#34;有时&#34;以下内容;当我切换TX和RX时,我没有收到此错误(请注意,他们在Mate中提到蓝牙设备可以像突破一样连接到主板,并且突破TX - &gt; TX; RX - &gt; RX:< / p>
ioctl("TIOCMGET"): Inappropriate ioctl for device
其他时候我收到此错误:
avrdude: ser_open(): can't open device "/dev/tty.RNBT-EFD7-RNI-SPP": Resource busy
ioctl("TIOCMGET"): Inappropriate ioctl for device
我再次安装了驱动器。我已经在上传之前和上传之后将重置推送到pro mini,然后错误消息出现并且无效。我已经尝试了许多解决方案,我看到了这个问题,有些已经有40多个评级,但它只是不起作用。
我还将/dev/tty.RNBT-EFD7-RNI-SPP的用户更改为我并在其上使用chmod 755 ..仍然收到以下错误:
avrdude: stk500_recv(): programmer is not responding
令人非常沮丧。
#include <Wire.h>
#include "RTClib.h"
#include "Time.h"
#include "TimeAlarms.h"
RTC_DS1307 rtc;
void setup(){
Wire.begin();
rtc.begin();
setSyncProvider(syncProvider); // the function to get the time from the RTC
Alarm.alarmRepeat(10,30,0,startBuz); // 10:30am every day
Alarm.alarmRepeat(16,36,15,startBuz); // 4:30pm every day
Alarm.alarmRepeat(22,30,0,startBuz); // 10:30pm every day
Serial.begin(9600);
// bluetooth.begin(9600);
}
void loop(){
//printing the current time
DateTime now = rtc.now();
Serial.print(now.year());
Serial.print('/');
Serial.print(now.month());
Serial.print('/');
Serial.print(now.day());
Serial.print(' ');
Serial.print(now.hour());
Serial.print(':');
Serial.print(now.minute());
Serial.print(':');
Serial.print(now.second());
Serial.println();
Alarm.delay(1000); // wait one second between clock display
}
void startBuz(){
// so some stuff here
}