Cannot enter command mode on RN41

I’m trying to get into remote (i.e. over BT) command mode on a RN41 bluetooth module, but cannot get in.

The module is integrated on a PCB, where the baud pin is high (force 9600 baud) and CTS and RTS pins are bridged.

After pairing i can connect to the RN41 using PuTTY on my PC, and the BT status window says “3 bytes sent” after typing ‘$$$’ (within 60 seconds). I expect a ‘CMD’ response now, but nothing happens…

PuTTY settings are 9600, 8, 1, no parity.

I’ve also tried the default 115k2, which doesn’t work either.

I am out of clues now, can anybody hint me?

Follow up:

I do get data accross and the connect status pin also makes sense, so the module is definitely working.

Could it be that forcing 9600 baud disables (remote) cmd mode?

Next test is to see if I can get into commend mode from teh wired side. This requires some more PIC programming though…

Same here. I can’t enter command mode.

Let me know if you get any further, I gave up.

Pulled the bitrate to 9600 electronically and shorted CTS/RTS. This brings me what I needed so I get the data connection up, which is nice. However still no command mode. Did not try it from the wired side though…

Arjan

I have had some grief with these modules also. If you put them in master mode, they essentially “brick up”

I broke through this and reset it to factory using an arduino script and having it attached to the tx/rx on the arduino. I did something like this: (and it worked)

void setup()

{

Serial.begin(115200);

Serial.println(“+++”);

delay(20);

Serial.println(“ATFRST”);

delay(100);

Serial.println(“SM,0”);

delay(130);

}

void loop()

{

delay(10);

Serial.println(“$$$”);

delay(100);

Serial.println(“$$$”);

delay(100);

Serial.println(“$$$”);

delay(100);

Serial.println(“$$$”);

delay(100);

Serial.println(“$$$”);

delay(100);

Serial.println(“$$$”);

delay(100);

Serial.println(“ST,255”);

delay(200);

Serial.println(“SM,0”);

delay(120);

Serial.println(“SF,1”);

delay(16000);

Serial.println(“Z”);

}

mcogill:

I did something like this: (and it worked)

Thanks for posting this. It’s been a while since I worked on my project, but I might give it a try.

Are the delays you mention critical? I don’t know Arduino code, but assume they are msec.

. . . Arjan

Accessing command mode at 9600 shouldn’t be a problem. I got it to work with Putty via my laptop’s internal Bluetooth. Here’s my setup:

reset pin = high

force 9600 pin = high

Auto master pin = low

Auto discovery = high

Once connected, you just send three ‘$’ characters in a row and it immediately replies with “CMD”.