jmichault / flash_cc2531

flash CC2531 USB dongle from your Raspberry, without Arduino nor CC Debugger.
https://jmichault.github.io/flash_cc2531-dok/
GNU General Public License v3.0
215 stars 46 forks source link

wiringPi deprecated #29

Closed rumoldus closed 2 years ago

rumoldus commented 2 years ago

Hi, this project depends on wiringPi but that is no longer available. It cannot be installed anymore. So this flash software also will not run. [Edit] The instructions on zigbee2mqtt will not work, but this will:

cd /tmp wget https://project-downloads.drogon.net/wiringpi-latest.deb sudo dpkg -i wiringpi-latest.deb

So no issue, actually

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

nobodyguy commented 2 years ago

@rumoldus Keep a track of my fork - https://github.com/nobodyguy/flash_cc2531 I removed wiringPi dependency and replaced it with a standard libgpiod. I'm still waiting for my CC2530 boards to arrive, so give me a week to be able to test my changes and push it.

Caius-Bonus commented 1 year ago

@nobodyguy , Thanks for porting this to libgpiod. This project might become difficult to use without compatibility with current raspberry pi os versions.

This project is important to keep these Zigbee devices accessible to people without CC programmer and these cheap devices are important to allow for accessible development for zigbee devices.

However, I tested it with a CC2531 on a RPI3B on Bookworm and with ./cc_chipid I got: ID = 0000 . I didn't look further into it yet, but it still seems to work with https://project-downloads.drogon.net/wiringpi-latest.deb on a RPI3B. Would you be open to debug this? If @jmichault is open to it, it would be great to merge this here.