-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
What steps will reproduce the problem?
Python simple app, which tries to change remote xbee digital output and receive
response.
What is the expected output? What do you see instead?
I want to get any response from remote AT command, when I send AT command
localy, response is immediate.
What version of the product are you using? On what operating system?
Linux, xbee 2.1.0, Python 2.7.9
Please provide any additional information below.
Here is my code:
from xbee import ZigBee
import time
import serial
PORT = '/dev/ttyUSB0'
BAUD_RATE = 9600
# Open serial port
ser = serial.Serial(PORT, BAUD_RATE, serial.EIGHTBITS, serial.PARITY_NONE,
serial.STOPBITS_ONE, 5)
xbee = ZigBee(ser)
device={
"gate":'\x00\x13\xa2\x00\x40\xba\xf3\x41',
"lights":"\x00\x13\xa2\x00\x40\xb1\x37\x44"
}
xbee.remote_at(dest_addr_long=device["lights"], command='D3', parameter='\x05',
frame_id='A')
response = xbee.wait_read_frame(100)
print response
xbee.halt()
ser.close()
Original issue reported on code.google.com by [email protected]
on 30 Mar 2015 at 9:12