Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xbee.wait_read_frame waits forever and returning no response #59

Open
GoogleCodeExporter opened this issue Apr 11, 2015 · 1 comment
Open

Comments

@GoogleCodeExporter
Copy link

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

@GoogleCodeExporter
Copy link
Author

It gets stuck at xbee.wait_read_frame(100)  and waiting and waiting ... even 
provided timeout did not help.
BUT AT command is by remote xbee received and performed

Original comment by [email protected] on 30 Mar 2015 at 9:14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant