Hi All,
I am trying to run "SimpleBLEPeripheral" on the following LSR bluetooth module (CC2541). Btool has not been able to connect to the module. Btool log window activity is pasted below.
LSR module link is as follows
http://www.lsr.com/downloads/products/330-0134.pdf
I did some serach about the error 0x03E and found the following
A "Failed to Establish" (0x3E) error occurs if the master is unable to receive a packet from the slave within the first 6 connection events after sending a connection request. This could be caused a number of reasons. Here are a few possibilities:
- The RF performance on one or both devices is not good, so the slave either never receives the connection request, or the master never receives any packets from the slave during the first 6 connection events. The RF Performance could be bad due to a failed CRC, collision or maybe the devices are just out of range.
- There could be a timing issue in either device. If the link layer clock on either device is not running at 32.768kHz (within the tolerance set using the HCI_Ext_SetSCACmd function; default is +/-50ppm) then the timing will be off and the slave might not be listening at the correct time to receive the master's packets.
- If the slave device is advertising with the whitelist filter policy set to GAP_FILTER_POLICY_WHITE_CONor GAP_FILTER_POLICY_WHITE then the slave will ignore the connection from the master and continue advertising normally, and the master will get the 0x3E error since it does not receive any packets from the slave during the first 6 connection events.
I thing is that I do not HCI_Ext_SetSCACmd function and GAP_FILTER_POLICY_WHITE_CONor GAP_FILTER_POLICY_WHITE are located and how can I change their values and what shoud be the value.
------------------------------------------------------------------------------------------------------------------------
[36] : <Tx> - 07:14:27.519
-Type : 0x01 (Command)
-Opcode : 0xFE09 (GAP_EstablishLinkRequest)
-Data Length : 0x09 (9) byte(s)
HighDutyCycle : 0x00 (Disable)
WhiteList : 0x00 (Disable)
AddrTypePeer : 0x00 (Public)
PeerAddr : B8:9A:14:BB:D6:98
Dump(Tx):
01 09 FE 09 00 00 00 B8 9A 14 BB D6 98
------------------------------------------------------------------------------------------------------------------------
[37] : <Rx> - 07:14:27.559
-Type : 0x04 (Event)
-EventCode : 0xFF (HCI_LE_ExtEvent)
-Data Length : 0x06 (6) bytes(s)
Event : 0x067F (GAP_HCI_ExtentionCommandStatus)
Status : 0x00 (Success)
OpCode : 0xFE09 (GAP_EstablishLinkRequest)
DataLength : 0x00 (0)
Dump(Rx):
04 FF 06 7F 06 00 09 FE 00
------------------------------------------------------------------------------------------------------------------------
[38] : <Info> - 07:14:31.579
Device Connected
Handle = 0x0000
Addr Type = 0x00 (Public)
BDAddr = 98:D6:BB:14:9A:B8
------------------------------------------------------------------------------------------------------------------------
[39] : <Rx> - 07:14:31.575
-Type : 0x04 (Event)
-EventCode : 0xFF (HCI_LE_ExtEvent)
-Data Length : 0x13 (19) bytes(s)
Event : 0x0605 (GAP_EstablishLink)
Status : 0x00 (Success)
DevAddrType : 0x00 (Public)
DevAddr : 98:D6:BB:14:9A:B8
ConnHandle : 0x0000 (0)
ConnInterval : 0x0050 (80)
ConnLatency : 0x0000 (0)
ConnTimeout : 0x07D0 (2000)
ClockAccuracy : 0x00 (0)
Dump(Rx):
04 FF 13 05 06 00 00 B8 9A 14 BB D6 98 00 00 50
00 00 00 D0 07 00
------------------------------------------------------------------------------------------------------------------------
[40] : <Info> - 07:14:32.086
Device Disconnected
Handle = 0x0000
Addr Type = 0x00 (Public)
BDAddr = 98:D6:BB:14:9A:B8
------------------------------------------------------------------------------------------------------------------------
[41] : <Rx> - 07:14:32.086
-Type : 0x04 (Event)
-EventCode : 0xFF (HCI_LE_ExtEvent)
-Data Length : 0x06 (6) bytes(s)
Event : 0x0606 (GAP_TerminateLink)
Status : 0x00 (Success)
ConnHandle : 0x0000 (0)
Reason : 0x3E (Failed To Establish)
Dump(Rx):
04 FF 06 06 06 00 00 00 3E
------------------------------------------------------------------------------------------------------------------------