Home/Support/Support Forum/how Xbee 52B (wifi mode) interface with TIVA MCU using AT commends

how Xbee 52B (wifi mode) interface with TIVA MCU using AT commends

0 votes
hi
i am using Xbee wifi module interface with tiva C using uart.
i am new in for AT command and API
i am using AT commands.i send "+++" first n got "OK" response. now how i configure the Xbee for 115200 baudrate and how i send and receive data from Xbee using at commands?

regards
micky
asked Sep 8, 2015 in IEEE 802.11 (Wi-Fi) by micky2406 New to the Community (2 points)

Please log in or register to answer this question.

2 Answers

0 votes
To set the Baud rate, you issue an ATBD7,<CR> and a ATWR<CR> to write it to flash.

As for sending data, you simply issue the data to the radios UART and the radio will send the data to the IP address and port number specified in the AT commands.
answered Sep 11, 2015 by mvut Veteran of the Digi Community (15,409 points)
0 votes
Thanks for reply

my problem is
1. if i dont have any IP address of URL but i want to connect. that time i would like to resolve DNS. so how i resolved it

2.i write code for configuration wifi module

UARTSend("+++\r", 3);
SysCtlDelay((g_ui32SysClock));

if(flag_set==1){

UARTSend("ATIP 1\r\n",8);
SysCtlDelay((g_ui32SysClock)/100);
UARTSend("ATAC\r\n",8);
SysCtlDelay((g_ui32SysClock)/100);
UARTSend("ATAH 0\r\n",8);
SysCtlDelay((g_ui32SysClock)/100);
UARTSend("ATAC\r\n",8);
SysCtlDelay((g_ui32SysClock)/100);
UARTSend("ATID abcdef Link\r\n",19);
SysCtlDelay((g_ui32SysClock)/100);
UARTSend("ATAC\r\n",8);
SysCtlDelay((g_ui32SysClock)/100);

UARTSend("ATEE 1\r\n",8);
SysCtlDelay((g_ui32SysClock)/100);
UARTSend("ATAC\r\n",8);
SysCtlDelay((g_ui32SysClock)/100);
UARTSend("ATPK abcdef123\r\n",17);
SysCtlDelay((g_ui32SysClock)/100);
UARTSend("ATAC\r\n",8);
SysCtlDelay((g_ui32SysClock)/100);
flag_set=0;
}

UARTSend("ATIP\r\n",8);
SysCtlDelay((g_ui32SysClock)/100);
UARTSend("ATID\r\n",8);
SysCtlDelay((g_ui32SysClock)/100);
UARTSend("ATMA\r\n",8);
SysCtlDelay((g_ui32SysClock)/100);
UARTSend("ATAH\r\n",8);
SysCtlDelay((g_ui32SysClock)/100);
UARTSend("ATEE\r\n",8);
SysCtlDelay((g_ui32SysClock)/100);
UARTSend("ATMY\r\n",8);
SysCtlDelay((g_ui32SysClock)/100);

UARTSend("ATAI\r\n",8);
SysCtlDelay((g_ui32SysClock)/100);

as result i got each an every response of AT command
but ATAI gives me response "40" which is not mentioned in datasheet.

response is

ATIP- 1 -TCP
ATID- abcdef Link
ATMA- 0- DHCP
ATAH- 0-IBSS Joiner
ATEE-1- WPA
ATMY-0.0.0.0
ATAI-40

Please help me to solve this problem

micky
answered Sep 14, 2015 by micky2406 New to the Community (2 points)
...