![sparkfun RN-52 Скачать руководство пользователя страница 11](http://html1.mh-extra.com/html/sparkfun/rn-52/rn-52_user-manual_1339608011.webp)
Action commands tell the module what action to take. With these
commands, you can accept incoming calls, change the volume, change the
track, and pause your music. Check out the Command Reference for a
complete list of action commands.
Troubleshooting
• If you cannot talk to the RN-52 over the serial port, make sure you
are connected at the correct baud rate (default:115200).
• To change the baud rate, GPIO7 must be pulled LOW (it is HIGH by
default). This will set the baud rate to 9600. 115200 and 9600 are the
only two baud rates available on the RN-52.
• If you need to implement a factory reset, send
SF,1(/r)
to reset the
module, then
R,1(/r)
to reboot it.
• The commands for the RN-52 all terminate with a carriage return (\r),
not
with a carriage return/line feed. If you keep seeing
?
after every
command you enter, there should be a setting in your serial terminal
to turn on
just
carriage return.
This is especially important to note if you plan on having a microcontroller
communicate with the RN-52.
Streaming Tunes
Enough talk. Let’s stream some tunes! The RN-52 comes ready to begin
streaming tunes from most any Bluetooth audio-capable device. However,
to add external control functions such as play, skip, and volume, you’ll need
to make a few small adjustments.
Hardware
Using the same setup from the Hardware Setup section, let’s add a few
more pieces. By connecting a few buttons and some speakers, the RN-52
becomes a full-on music station and remote. The image below shows all
the connections and the functions of each button.
Page 11 of 14