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

use with a macbook "for dummies" #6

Open
Lele855 opened this issue Dec 17, 2021 · 9 comments
Open

use with a macbook "for dummies" #6

Lele855 opened this issue Dec 17, 2021 · 9 comments

Comments

@Lele855
Copy link

Lele855 commented Dec 17, 2021

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

@ciairmi
Copy link

ciairmi commented Dec 29, 2021

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

@rautesamtr
Copy link

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
Copy link

ciairmi commented Dec 29, 2021

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
Copy link

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

@ciairmi
Copy link

ciairmi commented Dec 29, 2021

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

@labactani
Copy link

labactani commented Jan 3, 2022

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
Copy link

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
Copy link

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

@Lele855
Copy link
Author

Lele855 commented Jan 17, 2022

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!

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

4 participants