Skip to content

Response packet was longer than expected; expected: 32, got: 36 bytes - Join Notification #55

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. Zigbee Router API firmware version 23A7, product family: XB24-ZB (Router)
2. Zigbee Coordinator API firmware version 21A7, product family: XBP24BZ7
3. Zigbee coordinator is connected to serial port on windows COM3
4. Both Devices are on API mode 2, and python xbee.Zigbee with escape option 
set to True
5. When Router is set to transmit join notification, following error occures:

Response packet was longer than expected; expected: 32, got: 36 bytes.

Output from a terminal Software shows all data captured trhrough serial port:

0x7E 0x00 0x24 0x95 0x00 0x13 0xA2 0x00 0x40 0xAA 0x19 0x62 0xBD 0xE7 0x02 0xBD 
0xE7 0x00 0x13 0xA2 0x00 0x40 0xAA 0x19 0x62 0x20 0x00 0xFF 0xFE 0x01 0x03 0xC1 
0x05 0x10 0x1E 0x00 0x03 0x00 0x00 0xD4

XCTU Terminal works without any issue, output from there:

Node Identification Indicator

7E 00 20 95 00 13 A2 00 40 AA 19 62 BD E7 02 BD E7 00 13 A2 00 40 AA 19 62 20 
00 FF FE 01 03 C1 05 10 1E D7

WRONG output from Python (logged at where exception occures):

95 00 13 a2 00 40 aa 19 62 bd e7 02 bd e7 00 13 a2 00 40 aa 19 62 20 00 ff fe 
01 03 c1 05 10 1e 00 03 00 00


If i remove the lines: 

# If there are more bytes than expected, raise an exception
        if index < len(data):
            raise ValueError(
                "Response packet was longer than expected; expected: %d, got: %d bytes" % (index,                                                                          
len(data))) 

Then i receive : 

{'source_addr_long': '\x00\x13\xa2\x00@\xaa\x19b', 'source_addr': '\xbd\xe7', 
'parent_source_addr': '\xff\xfe', 'digi_profile_id': '\xc1\x05', 'options': 
'\x02', 'sender_addr': '\xbd\xe7', 'source_event': '\x03', 'node_id': ' ', 
'device_type': '\x01', 'manufacturer_id': '\x10\x1e', 'sender_addr_long': 
'\x00\x13\xa2\x00@\xaa\x19b', 'id': 'node_id_indicator'}

Thank you,
 Szilard


Original issue reported on code.google.com by szili...@gmail.com on 15 Aug 2014 at 12:52

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions