dresden-elektronik / gcfflasher

GCFFlasher is the tool to program the firmware of dresden elektronik's Zigbee products.
BSD 3-Clause "New" or "Revised" License
31 stars 3 forks source link

use with a macbook "for dummies" #6

Open Lele855 opened 2 years ago

Lele855 commented 2 years ago

Hello guys, sorry but I need a help to follow the guide to use GCFFlasher with a Mac.. I have to flash a conbee II (at the moment it isn't recognized by deconx 2.12.06 and i'm really going crazy because I don't know how I can resolve) but i have a lot of trouble to understand how i can follow the steps.... in practice:

Compile the executable with the build script (with Clang) _CC=clang ./buildposix.sh

--> what I should do when i open the terminal?

Run $ ./GCFFlasher GCFFlasher v4.0.0 copyright dresden elektronik ingenieurtechnik gmbh usage: GCFFlasher

how I arrive here, in order to execute this program and flash the firmware? how I have also to download the new firmware and put it somewhere in the mac? sorry for this elementary questions but I really don't know what I should do (and what I shouldn't do).

thanks a lot

ciairmi commented 2 years ago

Hi, I need it too. Please help us on mac os

rautesamtr commented 2 years ago

Open a terminal and enter the following commands:

git clone https://github.com/dresden-elektronik/gcfflasher.git
cd gcfflasher
CC=clang ./build_posix.sh

Now if the compilation exits without errors the GCFFlasher executable should be in this folder which you can execute with ./GCFFlasher. Run pwd if you want to know your current directory. So each time you want to run GCFFlasher you have to cd into that directory.

ciairmi commented 2 years ago

Hi, I did what you suggested and I got that results:

Cloning into 'gcfflasher'... remote: Enumerating objects: 68, done. remote: Counting objects: 100% (68/68), done. remote: Compressing objects: 100% (61/61), done. remote: Total 68 (delta 37), reused 36 (delta 6), pack-reused 0 Receiving objects: 100% (68/68), 26.27 KiB | 2.92 MiB/s, done. Resolving deltas: 100% (37/37), done. ./build_posix.sh: line 26: pkg-config: command not found libftdi1 not found, building without clang -Wall -DPL_MAC -O2 -DNDEBUG

There's something wrong?

rautesamtr commented 2 years ago

No this should be fine, libftdi is only needed to support ConBee I.

ciairmi commented 2 years ago

firmware successful written!!! Thank you so much! Regards Andrea

labactani commented 2 years ago

this was super helpful, but I am still unclear on the command to pass to gcfflasher

I cc the firmaware in the same folder than GCFFlasher and use the following command ./GCFFlasher -t 60 -d dev/ ConBeeII -f deCONZ_ConBeeII_0x26720700.bin.GCF

But this is what I get and goes in loop..

read file success: deCONZ_ConBeeII_0x26720700.bin.GCF (164241 bytes) flash firmware command reset timeout retry connect bootloader /dev/ConBeeII retry connect bootloader /dev/ConBeeII

What am I doing wrongly?

rautesamtr commented 2 years ago

looks like you are not giving a correct path to the device file -d dev/ ConBeeII. Should be something like -d /dev/cu.usbmodemDE.... Check with ls /dev | grep cu.usbmodem on the commandline for a list of available devices.

labactani commented 2 years ago

Yes, thanks - indeed the path of the device was wrong!! I used the correct one and worked like a charm, thanks a lot!!

Lele855 commented 2 years ago

Dears, sorry I am still here.. thank you for your help @rautesamtr ! I tried to use the software but the list command don't show me my conbee 2 connected to the mac (both usb ports)

MacBook-Pro:GCFFlasher Samu$ ./GCFFlasher GCFFlasher v4.0.0-beta copyright dresden elektronik ingenieurtechnik gmbh usage: GCFFlasher options: -r force device reset without programming -f flash firmware file -d device number or path to use, e.g. 0, /dev/ttyUSB0 or RaspBee -c connect and debug serial protocol -t retry until timeout (seconds) is reached -l list devices -h -? print this help MacBook-Pro:GCFFlasher Samu$ ./GCFFlasher -l 0 devices found

what i shold do? i'm confused..

thank you!