Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flashing and wiring CC2530 #88

Closed
1981nick1982 opened this issue Jun 3, 2018 · 20 comments
Closed

flashing and wiring CC2530 #88

1981nick1982 opened this issue Jun 3, 2018 · 20 comments

Comments

@1981nick1982
Copy link

1981nick1982 commented Jun 3, 2018

I intend to buy a cc2530 . However, it is not clear in the wiki how it should be flashed and how it should be connected to, for example, an RPI.

I would have liked to know which parts I have to buy to flash the CC2530. I have read this page but this does not create an overall clarity in my opinion.

If I understand correctly, I should use the pinout of this diagram to connect the CC2530 to the CC debugger / CC2531 cable? http://ptvo.info/wp-content/uploads/2018/05/smartrf04eb-pinout.jpg

And use USB to TTL - Aliexpress
for the link to the pi?

I connect this stick as follows:

TX = P0_3
RX = P0_2
RST = P0_5
GND =?
3V3 =?
5V =?

For the CC2531 there is a step by step wiki available, maybe that something similar has to be made for this solution with photos?

@ciotlosm
Copy link
Contributor

ciotlosm commented Jun 3, 2018

Maybe @ptvoinfo or @kirovilya can help with more information.

@kirovilya
Copy link
Contributor

@1981nick1982 For speedup you can buy dev-board like this https://www.aliexpress.com/item/ZigBee-CC2530-Sensor-Node-Baseboard-Functional-Module-Expansion-Board-USB-Port-24MHz-256KB/32767498002.html put CC2530 and connect CCDebugger to this board.
Without board, you need connect CCDebugger to CC2530 as described http://ptvo.info/wp-content/uploads/2018/05/smartrf04eb-pinout.jpg

After flashing, for using you need USB-TTL cable and connection:
TX = P0_3
RX = P0_2
GND = GND
3v3 = VCC
and on CC2530 P20 to GND

@1981nick1982
Copy link
Author

1981nick1982 commented Jun 3, 2018

When you use the expansion board , is it still needed to use a USB-TTL cable. And which one do you recommend?

@kirovilya
Copy link
Contributor

@1981nick1982 With expansion board you not need USB-TTL. You will have to try to hide this board - this is the only problem :) Hide the cc2530 with a TTL cable without a board much easier.

@1981nick1982
Copy link
Author

1981nick1982 commented Jun 3, 2018

@kirovilya Hiding is not a problem. Next to the distribution box, I would place a cabinet in which I place the pi with the Zigbee2MQTT, Z-wave stick and an RFLink connected to it. The antennae of the RFLink and CC2530, I extend with a small piece of cable so that these come on the outside of the box.

@ptvoinfo
Copy link
Contributor

ptvoinfo commented Jun 3, 2018

@1981nick1982
If you'll connect CC2530 to RPi you don't need a USB-TTL converter. You may connect the P0_2, P0_3, GND directly to the corresponding pins on the RPi header.

Uploading firmware: connect pins as showed http://ptvo.info/wp-content/uploads/2018/05/smartrf04eb-pinout.jpg

@1981nick1982
Copy link
Author

1981nick1982 commented Jun 3, 2018

@ptvoinfo So i can use pin 6 / 8 and 10 on my pi to connect?
https://www.raspberrypi-spy.co.uk/wp-content/uploads/2012/06/Raspberry-Pi-GPIO-Layout-Model-B-Plus-rotated-2700x900.png

should I not give the cc2530 power?

@ptvoinfo
Copy link
Contributor

ptvoinfo commented Jun 4, 2018

@1981nick1982

Pins: yes, you may use 6, 8 and 10
Power: you may connect 3.3V or 5V from the board to the corresponding pin on CC2530. If your CC2530 board does not have 5V pin you should connect 3.3V only (in this case the pin has the VCC label).

@1981nick1982
Copy link
Author

@ptvoinfo Perfect, i will give it a try. Maybe someone can make a wiki page of this information?

@ciotlosm
Copy link
Contributor

ciotlosm commented Jun 4, 2018

@1981nick1982 if you could create something basic based on your understanding, I'm happy to pimp it out with formatting and stuff

@ptvoinfo
Copy link
Contributor

ptvoinfo commented Jun 5, 2018

I've prepared a tutorial.
http://ptvo.info/how-to-select-and-flash-cc2530-144/
Comments are welcome.

@kirovilya
Copy link
Contributor

@ptvoinfo great work!

@ciotlosm
Copy link
Contributor

ciotlosm commented Jun 5, 2018

@ptvoinfo Looks great!
Only things I can think of are: a wiring picture with a RPI and one of the boards

@1981nick1982
Copy link
Author

@ptvoinfo Super!!! i have ordered the parts.

@james-fry
Copy link

I've prepared a tutorial.
http://ptvo.info/how-to-select-and-flash-cc2530-144/
Comments are welcome.

Great job!
My USB CC2530 has arrived from China, but I am away with work this week.
Looking forward to programming and testing this based on @kirovilya wiring advice.

BTW @ptvoinfo what is the use case for the CC2530 board with additional 8051?

@ptvoinfo
Copy link
Contributor

ptvoinfo commented Jun 6, 2018

@james-fry The additional chip implements the USB interface and the CC debugger. This board can be programmed without the debugger. Therefore it holds small space on your work table :). It can be useful for developers. If you need only one CC2530 or CC2531 for a coordinator role you may save money.

@james-fry
Copy link

Thanks.
I will update the repo wiki with link to your guide.

@ryanbeaton
Copy link

So much good information developing, thanks.
Received my CC2531 with download cable yesterday (they actually sent two of each - score!), my CC2530 "RF TO USB (CC2530 CC2591)" today but still waiting on the CC Debugger. Still super keen though.

Would have probably started out with the "dev-board" but I ordered exactly as per the Getting Started wiki page because I'm literal when reading instructions :) That was back in the 'old days' when the wiki was only 8 pages and there was no "Supported sniffer devices" page.

Another HA user in Perth (WA) has offered to lend me his CC Debugger so maybe get something going this weekend, fingers crossed, and report in.

@ciotlosm
Copy link
Contributor

@1981nick1982 considering the documentation now exists (thanks @ptvoinfo ) can we close this issue?

@1981nick1982
Copy link
Author

Yes, it can be closed. Thank you guys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants