dzungpv / dnckatsw00x

Zigbee light switch with dim support base on chip cc2530
GNU General Public License v3.0
90 stars 19 forks source link

CC1352 wiring #13

Closed guitar9 closed 4 years ago

guitar9 commented 4 years ago

So this is a little bit off topic. @dzungpv
I want to ask you how to exactly wire the CC1352. I am using zibgee2mqtt. you said to wire Xds110 or later with 4 pin, TMS, TCK, Reset, GND, VCC(3.3V).

in XDS110 there is no TMS. At how to connect the USB Interface?

XDS110 Pin Mapping: XDS110

XDS110: XDS110

CC1352 CC1352

dzungpv commented 4 years ago

Pin number 1, XDS110 do not have VCC so you must power it with 3.3V

guitar9 commented 4 years ago

ok thank you very much. At which PIN I must Power the XDS110? And for Ground I can choose 8,10,12,16 or 20? Should I wire the 3.3 V also at VCC and GND of the CC1352? And where to connect RXD and TXD of the USB interface?

dzungpv commented 4 years ago

Pin 5 of the XDS110 VREF to +3.3V, Ground you can choose any pin. TX pin to IO12 RX pin to IO13

guitar9 commented 4 years ago

Did I forgot something? 1 2

dzungpv commented 4 years ago

ResetN to Xds Nreset. Note that only wire TMS, TCK, Reset to Xds when you are programing the chip. After that disconnect it and use only 4 pin VCc, GNd, TX, Rx when use zigbee2mqtt

guitar9 commented 4 years ago

Flashing works fine but when I use zigbee2mqtt I get error Error: AREQ - SYS - resetInd after 30000ms According to this thread I should press software reset button. Do you know how I do this without dev board? Or do you have another idea? I am using CC1352P https://github.com/Koenkk/zigbee2mqtt/issues/2162

dzungpv commented 4 years ago

You flash the wrong firmare, you chip is cc1352 but 20dbm for 433/900mhz not for 2.4Ghz/zigbee. You must build your own firmware, see the guide in the firmware repo, but choose "znp_cc1352p1"

guitar9 commented 4 years ago

Cant find znp_cc1352p1. Where can I buy cc1352p-2 chip? I only found cc1352P Microcontroller at texas instruments. I only found CC1352p-2 as dev board.

image

dzungpv commented 4 years ago

You can try CC1352P2 variant and disable high power mode, you can see in TI docs https://www.ti.com/tool/LAUNCHXL-CC1352P

And this is my last answer here. You can ask for help in TI forum https://e2e.ti.com/support/wireless-connectivity/zigbee-and-thread/f/158

guitar9 commented 4 years ago

Thank you! I think I should first start with Simple SDK Basics. Do you know a good point to start with zigbee?