Part Number:CC3220SF-LAUNCHXL
Tool/software: Code Composer Studio
Hai,
External Communication device interfacing ( not data transmission & Receive)
my issue is UART Communication problem at CC3220SF
i will use UART0 ( PIN 4 & PIN 3)
I will Using UART ECHO program, is working fine to terminal
but i connect to GSM or BLE ( Communication Devices Externally )
Example:
TI (CC3220SF) GSM or BLE
P03(RX) --> TX
P04(TX) --> RX
program:
UART_Handle uart;
UART_Params uartParams;
/* Call driver init functions */
GPIO_init();
UART_init();
/* Configure the LED pin */
GPIO_setConfig(Board_GPIO_LED0, GPIO_CFG_OUT_STD | GPIO_CFG_OUT_LOW);
/* Turn on user LED */
GPIO_write(Board_GPIO_LED0, Board_GPIO_LED_ON);
UART_Params_init(&uartParams);
uartParams.writeDataMode = UART_DATA_BINARY;
uartParams.readDataMode = UART_DATA_BINARY;
uartParams.readReturnMode = UART_RETURN_FULL;
uartParams.readEcho = UART_ECHO_OFF;
uartParams.baudRate = 115200;
uart = UART_open(Board_UART0, &uartParams);
if (uart == NULL)
{
while (1); /* UART_open() failed */
}
UART_write(uart, echoPrompt, sizeof(echoPrompt));
const char cmd1[] = "AT\r\n";
const char cmd2[] = "AT+CMGF=1\r\n";
const char cmd3[] = "AT+CMGS=\"+917010878940\"\r\n";
const char cmd4[] = "AT+CMSS=1\r\n";
UART_write(uart, cmd1, strlen(cmd1));
sleep(5);
/* //UART_read(uart, &input, 4);
//UART_write(uart, cmd2, strlen(cmd2));
//sleep(2);
//UART_read(uart, &input, 4);
UART_write(uart, cmd3, strlen(cmd3));
sleep(2);
//UART_read(uart, &input, 4);
UART_write(uart, cmd4, strlen(cmd4));
sleep(2); */
/* Loop forever echoing */
while (1)
{
UART_write(uart, cmd1, strlen(cmd1));
sleep(5);
//UART_read(uart, &input, 1);
//UART_write(uart, &input , 1);
}
}
External device same bard rate 115200 ,
but not date transmit and receive at CC3220SF Board
this is my issue
how to solve this one
Regards
SELVA