problem with JY-MCU Bluetooth

I just got a JY-MCU Bluetooth module and I am using Arduino Uno and Mac bluetooth setup assistant . My mac found the bluetooth with the name HC-06.

Uno is loaded with the following code:

void setup() {
  // initialize serial:
  Serial.begin(9600);
  // initialize the led pin
  pinMode(13, OUTPUT);
}
 
void loop() {
  while (Serial.available()) {
    char inChar = (char)Serial.read();
    switch(inChar) {
      case '1':
        digitalWrite(13, HIGH);
      break;
      case '0':
        digitalWrite(13, LOW);
      break;
    }
    Serial.println(inChar);
  }
}

I then selected serial port: dev/tty.HC-06-DevB from Arduino IDE.

When I tried to launch the serial monitor, I got an error saying that the serial port already in use. I am pretty sure it is not in use… any idea what may have gone wrong?

thanks!

Jim

I was trying to troubleshoot a bit…

I opened “bluetooth preferences” on my Mac, and tried to “edit serial port”, but it looked like my laptop “could not get services for HC-06”

the red light on the bluetooth is still blinking instead of turning solid!

any idea why ?? thanks!