arduino - Bluetooth RN41 does not respond -


I want to send some commands using the serial monitor from Serial Port from Aradiano Leonardo to RN 41 Bluetooth module, the tutorial Shows in the form But this is not the answer. I can connect to the Bluetooth module and the status blinks is on the right. I tried to send $$$ to change to the command mode, and the rate of the blink turns to 10 / second, but the module does not respond And when I send '---', the rate of naps comes back in general I think that means the connection is successful, but I can not see anything on the serial monitor.

I set the monitor baud to 9600, as the tutorial actually shows. (https://learn.sparkfun.com/tutorials/using-the-bluesmirf/example-code-using-command-mode)

Do you know what happens? Could wrong? Code Attached:

  / * example by Bluetooth serial passstra sketch: Jim Lindblum Sparkfan Date: February 26, 2013 License: Public Domain This example is designed to make RN-42 Bluetooth modules Converts BPS (from 115200), and passes any serial data between serial monitor and Bluetooth module. Include * / # & lt; SoftwareSerial.h & gt; Int bluetoothTx = 2; // bluetooth partner's TX-O PIN, Arduino D2 int bluetoothRx = 3; // RX-I Bluetooth Friend's Pin, Arduino D3 SoftwareCirial Bluetooth (bluetoothTx, bluetoothRx); Zero setup () {serial.begin (9600); // start the serial monitor at 9600bps bluetooth.begin (115200); // 115200bps Bluetooth MET default for Bluetooth; Print ("$"); // Print different Bluetooth three times. Print ("$"); Bluetooth.print ("$"); // Enter the command mode delay (100); // Short delay, wait for CM to send back the CMD Bluetooth Println ("U, 9600, N"); // Temporarily replace Bondet until 9600; There may be some similarity / 115200 on time for New Softseal so that reliably relay the Bluetooth.bizin (9600) to the data; // Start the Bluetooth serial at 9600} zero loop () (if (bluetooth.available ()) // If any characters have been sent to Bluetooth then // any printed characters to the Bluetooth print serial monitor serial print ((four ) Bluetooth .read ());} If (serial.available ()) // If the item was typed in serial monitor then send a serial monitor to print any characters on Bluetooth Bluetooth. Print ((four) Serial.read ());} // and loop forever and Ever!}  

Yes, send only 3 characters, even "$$$" me I was also stuck for a bit, I also realized that it is necessary to read the matte reaction "CMD", which is not shown in the published sketch.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -