I have tried sending +++ but there is not response. Am not sure whether I am sending it properly. Since I am reading data through the serial port, am writing the commands directly to the same serial ports. Kindly advice me if this is correct and it would be great if you can share me any example codes for doing the above.
Code: Select all
#! /usr/bin/python ESCAPED_LIST = [0x7e,0x7d,0x13,0x11] from xbee import XBee import serial import termios import io PORT = '/dev/ttyS1' BAUD_RATE = 115200 packet ='hai' ser = serial.Serial(PORT,BAUD_RATE, timeout=1) print ser.name xbee = XBee(ser, escaped='true') import pprint pprint.pprint(xbee.api_commands) while True: ser.write('+++') a=ser.read() print a ser.close()