7 Appendix A: Configuring the RN4678 Modules using ASCII Commands

Use the terminal emulator programs (TeraTerm for Windows® OS and CoolTerm for MAC OS®) to control and monitor the RN4678 module. This is helpful only if you want to work with the PICtail boards without the interface with MCU.

The following two tables list the sequence of commands, which must be used to set up a simple Bluetooth connection between two RN4678 Bluetooth modules.

Table 7-1. Sequence of Commands used for the Wireless Node to Wait for the Connection

User ASCII Commands

Expected ASCII Responses

$$$

CMD\r\n

+\r\n

ECHO ON\r\n

SM,0\r\n

AOK\r\n

SA,0\r\n or SA,4\r\n

AOK\r\n

R,1\r\n

Reboot!\r\n

Table 7-2. Sequence of Commands used for the Wireless Node to Initiate the Connection

User ASCII Commands

Expected ASCII Responses

$$$

CMD\r\n

+\r\n

ECHO ON\r\n

SM,0\r\n

AOK\r\n

SA,0\r\n or SA,4\r\n

AOK\r\n

R,1\r\n

Reboot!\r\n

$$$

CMD\r\n

+\r\n

ECHO ON\r\n

F\r\n

Inquiry\r\n%List of MAC_Addresses>END_INQ

C,<MAC_Address>\r\n

Connected\r\n

K,\r\n

Disconnected\r\n

Note: When the modules are connected, one Bluetooth module sends the data bytes and the other Bluetooth module receives the data bytes and vice versa. Later, if required, the user can disconnect the modules.