vrajroham / python-xbee

Automatically exported from code.google.com/p/python-xbee
MIT License
0 stars 0 forks source link

x92 frame for ZB is not showing the right info ( i think ) #43

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. ZigBee Coord and Router
2. from Coord xbee.remote.at( .... frame_id ='A'
3.

What is the expected output? What do you see instead?
the answer is
{'status":.. but is not showing the In/Out status as explained on zigbee.py ( I 
think is not parsing )

What version of the product are you using? On what operating system?
2.1.0

Please provide any additional information below.

I am not an expert so please expect that I am doing something wrong.

Original issue reported on code.google.com by diegoc.a...@gmail.com on 14 Aug 2013 at 6:35

GoogleCodeExporter commented 8 years ago
I forgot to say THANKS for this code. It helps a lot and save a lot of time. 
Thank you guys.

Original comment by diegoc.a...@gmail.com on 14 Aug 2013 at 7:09

GoogleCodeExporter commented 8 years ago
Hmm; I'm not sure I understand what the problem you're having is. Could you 
please be more specific about what  command you are sending, what result you 
get, and what result you expected?

Original comment by pmalms...@gmail.com on 16 Aug 2013 at 1:58

GoogleCodeExporter commented 8 years ago
I am sending remote at.... command='D1', parameter'\x05'  commands and I am 
including the parameter frame_id='A' so I can have confirmation back from the 
destination. ( I want to know if the command was executed ).

What I am getting is :
{'status': '\x00', 'source_addr': '\x15\xf9', 'source_addr_long': 
'\x00\x13\xa2\x00@\x98\x9a\xa1', 'frame_id': 'A', 'command': 'D1', 'id': 
'remote_at_response'}

but not samples on the status of the active I/O.

do I am doing something wrong of this is a defect? Thanks dc

Original comment by diegoc.a...@gmail.com on 16 Aug 2013 at 11:39

GoogleCodeExporter commented 8 years ago
HI GUys, is anybody to take a look at this?, sorry to ask, I just need to know 
if there is something wrong or what should I do different to get the proper 
answer from frame 92.

thanks
dc

Original comment by diegoc.a...@gmail.com on 22 Aug 2013 at 10:26

GoogleCodeExporter commented 8 years ago
Sorry for the delay; it's mostly just me answering these tickets.

That result looks like what it should be; you request pin 1 to be a digital 
output high and your device replies with status OK.

Your ZigBee will not tell you the state of the I/O pins by default. If you want 
to see the current I/O status, you need to either ask for it explicitly or 
enable periodic sampling, after you've configured your pins of course.

To force an immediate sample, you can send a remote at request with command IS. 
The response will contain the current I/O data as the parameter.

To enable periodic sampling, you can send a remote at request with command IR 
and parameter value 0x32 - 0xFFFF, where the parameter is the time between 
samples in milliseconds. A parameter of 0 disables periodic sampling. After 
this is configured, the XBee ZB will begin sending 0x92 messages to the 
destination address specified by the DH and DL commands.

Most of this information is from pages 96 and 136 of the XBee ZB product 
manual, available here: 
http://ftp1.digi.com/support/documentation/90000976_P.pdf. 

Our mailing list is another good place to ask questions like this; you might 
get a response a little faster there.

Original comment by pmalms...@gmail.com on 23 Aug 2013 at 1:04

GoogleCodeExporter commented 8 years ago
Thanks man, I knew I was doing something wrong. I will posted here the results 
of what you are telling me to do, just in case another person has the same 
question, but you don't need to answer.

thanks again, I am installing switches and sensors all over my home and your 
library could be the center of all it.

dc

Original comment by diegoc.a...@gmail.com on 23 Aug 2013 at 10:33

GoogleCodeExporter commented 8 years ago
Closing this as WontFix since no code change is required.

Original comment by pmalms...@gmail.com on 21 Sep 2013 at 12:12