Bluetooth SPP – BREAK Support

bluetoothpicuart

I'm using an RN-42 Bluetooth module connected to the serial port of a PIC microcontroller.

The Bluetooth module works great and I'm able to send and receive data but when I send a BREAK (hold TX line to 0) from PC through Bluetooth the RN-42 seems not receive it and the TX line continue to stay at high level.

The data path is the following:

PC -> Bluetooth Dongle -> RN-42 Bluetooth module -> PIC Microcontroller

What could be the cause of this problem? Is this problem common to all Bluetooth modules?

Best Answer

Looking at the RN-42 Advanced User Manual the only mention of a hardware break appears to be on page 20 for the SB set break command. That only sends a break to the local serial port but you may be able to use the remote configuration to send the set break command from the PC end of things. That won't be transparent however so you'll need codes changes to the PC application.

I couldn't find any references to how Bluetooth SPP (Serial Port Profile) devices should handle hardware breaks although it not getting passed through wouldn't really surprise me. Many legacy devices used the hardware break in different ways and I believe most Hayes style PSTN modems wouldn't pass it through either.

Because you're using a microcontroller personally I'd make my own escape sequence to indicate that the break should be set for a certain period. That way it will remain portable if you ever want to change Bluetooth transceivers at either end.