#Flashing Sonoff router IEEE address

1 messages · Page 1 of 1 (latest)

drifting radish
#

Let's move this discussion into a thread

agile idol
#

sure

#

I'm kidna lost sorry

drifting radish
#

What OS? How'd you install Python?

agile idol
#

do i have to put the hex router file in the same folder?

#

Raspberry pi 4 with ubuntu

drifting radish
#

Does python3 run?

agile idol
#

it ran at first using the -h flag

#

I'll have to reboot the pi now I can't even ssh

#

I was reading that the IEEE that changes is a secondary one

#

and z2m just takes the first one, will this work in ZHA?

drifting radish
#

The IEEE is sent by the device, it has nothing to do with the integration itself

agile idol
#

i think i have lost my server...

#

i rebooted and now is not even pinging

drifting radish
#

Input/output error sounds like an SD card failure

#

Especially since you mention it's a pi

agile idol
#

that gives me an idea

#

maybe i messed with the USB adapter of the argon one case

#

indeed!

drifting radish
#

Did you use a /dev/serial/by-id symlink?

#

Or just /dev/ttyUSB0 or something?

agile idol
#

none of those

#

i thaough it will get the first com port available

drifting radish
#

Oh, you let it pick. Yeah, that's probably not a good idea

agile idol
#

ok i have plugged the sonoff (without pusshing any of the 2 buttons)

#

it's on /ttyUSB0

#

do i have to have the hex firmware in the same folder?

drifting radish
#

I don't think you need firmware

#

Just don't pass -e. Or re-flash firmware, it won't hurt

agile idol
#

so i can try again ?

python3 cc2538-bsl.py --ieee-address 04:12:4b:00:24:c2:c0:04

drifting radish
#

I think so. To be safe, just re-flash the firmware too, I think the device stores its old IEEE address in a few other places and might get confused if it changes

agile idol
#

./cc2538-bsl.py -e -w -v --ieee-address 04:12:4b:00:24:c2:c0:04

#

lik this?

#

(copied and pasted from the repo)

#

oh.. without the -e flag right?

drifting radish
#

Make sure to specify the serial port as well

agile idol
#

The command was:

./cc2538-bsl.py /dev/ttyUSB0 --bootloader-sonoff-usb --ieee-address 04:12:4b:00:24:c2:c0:04

#

ERROR: [Errno 13] could not open port /dev/ttyUSB0: [Errno 13] Permission denied: '/dev/ttyUSB0'

#

well somethin happened

#

it reads

CC1350 PG2.0 (7x7mm): 352KB Flash, 20KB SRAM, CCFG.BL_CONFIG at 0x00057FD8
Primary IEEE Address: 00:12:4B:00:24:C2:C0:03

#

Oh boy it worked!!