gcfflasher icon indicating copy to clipboard operation
gcfflasher copied to clipboard

use with a macbook "for dummies"

Open Lele855 opened this issue 3 years ago • 9 comments

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 ./build_posix.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

Lele855 avatar Dec 17 '21 13:12 Lele855

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

ciairmi avatar Dec 29 '21 08:12 ciairmi

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.

rautesamtr avatar Dec 29 '21 11:12 rautesamtr

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?

ciairmi avatar Dec 29 '21 17:12 ciairmi

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

rautesamtr avatar Dec 29 '21 17:12 rautesamtr

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

ciairmi avatar Dec 29 '21 17:12 ciairmi

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?

labactani avatar Jan 03 '22 17:01 labactani

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.

rautesamtr avatar Jan 04 '22 08:01 rautesamtr

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

labactani avatar Jan 04 '22 17:01 labactani

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!

Lele855 avatar Jan 17 '22 21:01 Lele855