CC2530 could not work in Coordinator mode
I have exactly module list in the wiki https://github.com/Koenkk/zigbee2mqtt/wiki/Supported-sniffer-devices CC2530 from WEBEE, now the seller from aliexpress change to another model. Image: https://camo.githubusercontent.com/9211fbb4c7f9c5c2298ed60e2e2d7fad60527eae/687474703a2f2f696d672e647863646e2e636f6d2f70726f64756374696d616765732f736b755f3432393437385f322e6a7067
I have try both firmware here https://github.com/kirovilya/files/blob/master/CC2530ZNP-Pro-Secure_LinkKeyJoin.hex and here https://github.com/Koenkk/Z-Stack-firmware/blob/master/coordinator/CC2530/bin/CC2530ZNP-Prod.hex
I also try 4 difference connection: Pi3B UART, CP2102 (include in Webee kit), FT232RL, CH341.
Wiring: PI:
1 -> VCC 8 -> P02 9 -> Ground 10 -> P03 Connect P20 to GND and not to GND
USB2TTL:
VCC 3.3V ->Pin 4 RX -> P02 TX -> P03 Ground -> Pin 3 Connect P20 to GND and not to GND
Configuration: Try both advance option: rtscts: false and rtscts: true
I also try to swap TX<->RX and 3 difference CC2530 module
Error logs: https://hastebin.com/mubowexuxi.js
I try this firmware and it work: http://ptvo.info/cc2530-based-zigbee-coordinator-and-router-112/ But wiring for Webee CC2530 must be: P0.2(P2, pin 7)->RS232 TX P0.3(P2, pin 8)->RS232 RX
So all the firmware ware list in wiki and from KoenKK not work with this module
I have the same problem with the cc2530: https://github.com/Koenkk/zigbee2mqtt/issues/270#issuecomment-413634175
There is a problem with the firmware of ptvo. The Xiaomi Motion with lux Sensor do not work.
When install Z-Stack Home it also has ZTool. You can try to plug the cc2530 to PC and test woth ztool, if it could connected, nearly it could work with zigbee2mqtt too. Ptvo firmware is not very good. He fixed channel 11, and can not change, also there are some problem. I will try to build new firmware next week.
I want to flash CC2530 as coordinator using arduino. Do you have any suggestions on wiring ? (I had success with CC2531 with arduino as detailed in wiki for alternative flashing.)
@dzungpv thanks for the tip with Ztool, I was looking for something like that.
Because of Channel 11 with the ptvo firmware. I had the firmware running with Channel 11, I mean is the default channel setting. But the Xiaomi motion with lux didn't work with it. The other sensors, like switch, cube, water leak sensor and the motion sensor without lux work well.
I still wonder why the other firmwares don't work for us.
let me know if you have a firmware that works. I'm starting to think about taking the cc2531 stick + cc2530 router.
@pleasanthill17 is the same as the cc2531, only you have more space. :) https://github.com/Koenkk/zigbee2mqtt/wiki/Alternative-firmware-flashing-methods and a STM32 flash methode: https://github.com/Koenkk/zigbee2mqtt/issues/239
@mark078 You can try my rebuild firmware: https://raw.githubusercontent.com/dzungpv/Z-Stack-firmware/master/coordinator/CC2530/bin/CC2530ZNP-Prod.hex
@mark078 does the firmware from @dzungpv solve the problems with the lux motion sensor?
@Koenkk I just flashed the FW of @dzungpv and paired a sensor (Xiaomi Motion with Lux). So far it looks good. The sensor reacts regularly and often. I'll let this go on overnight.
@dzungpv good work, what did you change to make it work? :)
2018-8-20 21:45:53 DEBUG Recieved zigbee message with data {"cid":"genBasic","data":{"modelId":"lumi.sensor_motion.aq2"}}
2018-8-20 21:45:53 INFO New device with address 0x00158d0002006aa6 connected!
2018-8-20 21:45:53 INFO MQTT publish, topic: 'zigbee2mqtt/bridge/log', payload: '{"type":"device_connected","message":"0x00158d0002006aa6"}'
2018-8-20 21:45:53 DEBUG Recieved mqtt message on topic 'zigbee2mqtt/bridge/config/devices' with data ''
2018-8-20 21:45:53 INFO MQTT publish, topic: 'zigbee2mqtt/bridge/log', payload: '{"type":"devices","message":[{"ieeeAddr":"0x00158d0002006aa6","type":"EndDevice","friendly_name":"0x00158d0002006aa6"}]}'
2018-8-20 21:46:00 DEBUG Recieved zigbee message with data {"cid":"msIlluminanceMeasurement","data":{"measuredValue":31}}
2018-8-20 21:46:00 INFO MQTT publish, topic: 'zigbee2mqtt/0x00158d0002006aa6', payload: '{"illuminance":31}'
...
2018-8-20 21:53:21 INFO MQTT publish, topic: 'zigbee2mqtt/0x00158d0002006aa6', payload: '{"illuminance":81,"occupancy":true}'
2018-8-20 21:53:21 DEBUG Recieved zigbee message with data {"cid":"msIlluminanceMeasurement","data":{"measuredValue":81}}
2018-8-20 21:53:21 DEBUG Recieved zigbee message with data {"cid":"msOccupancySensing","data":{"occupancy":1}}
2018-8-20 21:53:21 INFO MQTT publish, topic: 'zigbee2mqtt/0x00158d0002006aa6', payload: '{"illuminance":81,"occupancy":true}'
@mark078 not much, just about the UART, you can see detail here https://github.com/dzungpv/Z-Stack-firmware/blob/master/coordinator/CC2530/README.md
@dzungpv ok thanks first, it's going very well! :) the motion sensor still reacts very reliably in my test environment.
I will flash the firmware on my main cc2530 on Wednesday and repair everything.
The firmware from @dzungpv solved my problem #165 with the temperature sensors.
@dzungpv Do you mind building a router firmware (repeater) as well? Thanks ;-)
@hdo I will build it very soon
@dzungpv could you also build the router firmware with increased buffers? like for the CC2531.
@Koenkk Ok i will follow you guide
Great to hear ;-)
Off topic, i am testing CC2652R1. It could connect to zigbee2mqtt now. It is a very powerful chip, it could run Zigbee 3.0 , Bluetooth 5.0 and Thread. It use free CCS editor from TI both on Web and Desktop, if anyone want to play http://www.ti.com/tool/LAUNCHXL-CC26X2R1.
@Koenkk Following your guide it could not build because out of memory, what IAR version you use to build CC2531 firmware?
@Koenkk , i make it work now check git readme https://github.com/dzungpv/Z-Stack-firmware/blob/master/coordinator/CC2530/README.md. @hdo Router firmware there is no special, you can use ptvo firmware. @mark078 @1981nick1982 use new firmare for CC2530 with more buffer size here: https://raw.githubusercontent.com/dzungpv/Z-Stack-firmware/master/coordinator/CC2530/bin/CC2530ZNP-Prod.hex
@dzungpv Thanks for the improvement, I'll flash it this weekend. :)
What makes more buffer size? Are more Zigbee devices possible with your new firmware?
I know several reports from the Fhem forum, where from a certain number (20-40) devices no longer react and fail.
@kirovilya has written something about this, that the cc2530/cc2531 have too little memory: https://github.com/Koenkk/zigbee2mqtt/issues/185#issuecomment-410621872