I am using TM4C129 Launchpad launchpad and trying to connect XBee Series 2 (S2C) through UART.
TM4C129 Launchpad has many UARTs (8?). Which one I should connect the XBee TX, RX?
Looking into the forum, looks like others have connected to UART0. Looking into the pinout of TM4C129, I am not sure how to connect to TX(0) and RX(0). The are the ICDI jumper pins in the middle.
Instead, I used UART3 - TX(3), RX(3). Below connection
XBee TX <---> RX(3) [pin 69 aka. PA_4]
XBee RX <---> TX(3) [pin 70 aka. PA_5]
XBee 3.3V <---> pin#41
XBee GND <---> pin#62
I use below code on the LaunchPad at Energia
void setup()
{
Serial.begin(9600);
//pinMode(13, OUTPUT);
}
void loop()
{
Serial.println('H');
delay(1000);
Serial.println('L');
delay(1000);
}
And the below python code runs on my Mac as a coordinator
#!/usr/bin/python
import serial
ser = serial.Serial('/dev/tty.usbserial-A104IC2U', 9600)
while True:
incoming = ser.readline().strip()
print '%s' % incoming
But it doesn't work. FYI, this code worked on Arduino.
Am I missing some connection? jumper settings? Anything on the code to specify UART3?