I am searching for command to put the BlueTooth into Idle mode
// Bit 0 = 1 RSSI value will be visible in the inquiry results // Bit 1 = 0 reserved // Bit 2 = 1 Interlaced inquiry scan // Bit 3 = 1 Interlaced page scan // Bit 4 = 1 Deep sleep // Bit 5 = 1 Bluetooth address in CONNECT event // Bit 6 = 0 reserved // Bit 7 = 0 Displays the PAIR event after successful pairing // Bit 8 = 0 Enables SCO links. This bit must be 1 if you use audio profiles. // Bit 9 = 0 reserved // Bit 10= 0 reserved // Bit 11= 0 Enables interactive pairing mode // Bit 12= 1 iWRAP randomly replaces one of the existing pairings, // when 17th pairing is done (max number of pairings is 16)
SET CONTROL CONFIG 103D
The SLEEP command will force deep sleep on. After issuing this command, the module will enter deep sleep until a Bluetooth connection is received or something is received from the UART interface in command mode. The SLEEP command will also work when there are one or more active connections and iWRAP is in command mode.
- If YES, then what is the command to wake the Bluetooth WT-11 up later?
If deep sleep is used, the first character written to UART wakes the module from the 'Deep sleep' and that's why the character is lost. There are two ways to overcome this problem:1. If you command iWRAP with a micro controller or processor, add 'space' or 'line break' characters in front of every command.2. In PSTool, set parameter 'EXIT deep sleep on CTS line activity' to TRUE. Now 'Deep sleep' does not lose characters any more, but current consumption will increaseIf you are using 'Deep sleep' the minimum baud rate that can be used is 19200. Lower baud rates will corrupt the data.To enable automatic power saving during connections, "SET BT SNIFF" withappropriate parameters can be used.