Hi,
I am using MSP430F5438A and PAN1327. I have made changes according to documentation provided by StoneStreet one protocol stack. I am able to open stack successfully, when I try to use it as client and do Inquiry (through debug UART) I get error -14. Following is the debug log-
OpenStack().
Bluetooth Stack ID: 1
Device Chipset: 2.1
BD_ADDR: 0xC83E9910735F
******************************************************************
* Command Options: Server, Client, Help *
******************************************************************
Choose Mode>Client
******************************************************************
* Command Options: Inquiry, DisplayInquiryList, Pair, *
* EndPairing, PINCodeResponse, PassKeyResponse, *
* UserConfirmationResponse, *
* SetDiscoverabilityMode, SetConnectabilityMode,*
* SetPairabilityMode, *
* ChangeSimplePairingParameters, *
* GetLocalAddress, GetLocalName, SetLocalName, *
* GetClassOfDevice, SetClassOfDevice, *
* GetRemoteName, SniffMode, ExitSniffMode, *
* Open, Close, Read, Write, *
* GetConfigParams, SetConfigParams, *
* GetQueueParams, SetQueueParams, *
* Loopback, DisplayRawModeData, *
* AutomaticReadMode, SetBaudRate, Send *
* Help, Quit *
******************************************************************
Client>Inquiry
Inquiry Failed: -14.
Function Error.
Client>
When I change following line in function MainThread() Main.c-
HCI_DRIVER_SET_COMM_INFORMATION(&HCI_DriverInformation, 1, 115200, cpHCILL_RTS_CTS);
to
HCI_DRIVER_SET_COMM_INFORMATION(&HCI_DriverInformation, 1, 115200, cpUART_RTS_CTS);
I do not get error after Inquiry command, but I am not able to find other Bluetooth devices nearby.
I short my problem is when cpHCILL_RTS_CTS is selected none of the command works whether its server mode or client mode. And when I select cpUART_RTS_CTS all command works but my device is not in the discoverable mode and also I am not able to find any other devices nearby.