codm / cc2652-raspberry-pi-module

ZigBee CC2652P Raspberry Pi Module
38 stars 5 forks source link

Cannot communicate with module #1

Closed tanguy2m closed 3 years ago

tanguy2m commented 3 years ago

Hi,

I've bought the module on cod.m website. I'm trying to use it throught Zigbee2MQTT but the communication with the module seems to be impossible:

Zigbee2MQTT:info  2021-07-20 20:57:42: Starting Zigbee2MQTT version 1.20.0 (commit #41b67fd),
Zigbee2MQTT:info  2021-07-20 20:57:42: Starting zigbee-herdsman (0.13.117),
Zigbee2MQTT:debug 2021-07-20 20:57:42: Using zigbee-herdsman with settings: '{"adapter":{"concurrent":null,"delay":null,"disableLED":false},"backupPath":"/app/data/coordinator_backup.json","databaseBackupPath":"/app/data/database.db.backup","databasePath":"/app/data/database.db","network":{"channelList":[11],"extendedPanID":[221,221,221,221,221,221,221,221],"networkKey":"HIDDEN","panID":6754},"serialPort":{"path":"/dev/ttyAMA0"}}',
2021-07-20T18:57:42.693Z zigbee-herdsman:controller:log Starting with options '{"network":{"networkKeyDistribute":false,"networkKey":[1,3,5,7,9,11,13,15,0,2,4,6,8,10,12,13],"panID":6754,"extendedPanID":[221,221,221,221,221,221,221,221],"channelList":[11]},"serialPort":{"path":"/dev/ttyAMA0"},"databasePath":"/app/data/database.db","databaseBackupPath":"/app/data/database.db.backup","backupPath":"/app/data/coordinator_backup.json","adapter":{"disableLED":false,"concurrent":null,"delay":null}}',
2021-07-20T18:57:42.696Z zigbee-herdsman:adapter:zStack:znp:log Opening SerialPort with /dev/ttyAMA0 and {"baudRate":115200,"rtscts":false,"autoOpen":false},
2021-07-20T18:57:42.706Z zigbee-herdsman:adapter:zStack:znp:log Serialport opened,
2021-07-20T18:57:43.163Z zigbee-herdsman:adapter:zStack:znp:log Writing skip bootloader payload,
2021-07-20T18:57:44.172Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1},
2021-07-20T18:57:43.164Z zigbee-herdsman:adapter:zStack:unpi:writer --> buffer [239],
2021-07-20T18:57:44.177Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32],
2021-07-20T18:57:50.187Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1},
2021-07-20T18:57:50.193Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32],
2021-07-20T18:57:56.202Z zigbee-herdsman:adapter:zStack:znp:SREQ --> SYS - ping - {"capabilities":1},
2021-07-20T18:57:56.202Z zigbee-herdsman:adapter:zStack:unpi:writer --> frame [254,0,33,1,32],
Zigbee2MQTT:debug 2021-07-20 20:57:58: Saving state to file /app/data/state.json,
Zigbee2MQTT:error 2021-07-20 20:57:38: Error while starting zigbee-herdsman,
Zigbee2MQTT:error 2021-07-20 20:57:38: Error: Failed to connect to the adapter (Error: SRSP - SYS - ping after 6000ms),

When I try to flash it with cc2538-prog I have the following error message:

NAK
ping failed
No bootloader detected

Is there something wrong with my module ? Thanks

codmpm commented 3 years ago

Hmm. That's odd.

Could you check that you did not set the correct device and freed-up the serial pins of the pi? Could you post your config?

Which Pi do you use? On some models the serial is not /dev/ttyAMA0.

If the module is defective of course we will replace it.