TRADFRI-Hacking icon indicating copy to clipboard operation
TRADFRI-Hacking copied to clipboard

new module as remote

Open boelle opened this issue 4 years ago • 158 comments

hi

this project on thingiverse https://www.thingiverse.com/thing:3655354 has been much fun to me

it was easy to remove a zigbee module from their light bulbs and then reprogramm it to work as a 5 button remote

but now ikea is slowly replacing their zigbee modules with a new one that for the bulbs concern are far more power hungry and why should ikea bother as they are intended to be always on mains power

and their new 5 button remote do not have a module at all but is one complete pcb and to top it off they now use 2 AAA batteries

that makes it impossible to install it in the danish LK Fuga design, it will simply be to big to sit flush with the other switches

anyone that have started to look in to if the new modules can be reprogrammed to work as a remote and be energy efficient so that it can run on coin cells?

i emagine that the firmware needs to be taken from the new 5 botton remote and changed so that its as efficent as possible

of course the chip on the new module an the new 5 botton remote needs to be the same

and the pcb in the new remote is way to be to be but in a LK switch, from what i have seen online its 2 cm to big in each direction

boelle avatar Aug 12 '21 18:08 boelle

The 3 gen devices is having one very good original Silabs module that is not battery hungry. And its also possible making custom boards for the new 4 button remote (E2001/E2002) and not using the IKEA PCB if you like but its little more tricky to flashing then its having one newer CPU (need one real J-Tag probe).

And you can using the module from other 3 gen devices if you can flashing it (the E2001/E2002 is not debug locked so its possible dumping and flashing it). IMG_20210505_143614 (Dumped and its have 5 buttons if counting the reset button.)

PS tuya is running 730 days on one CR2430 with one nearly the same module (ZS3L) with more LEDs on the PCB.

MattWestb avatar Aug 12 '21 19:08 MattWestb

is that the new 5 botton remote?

image

in denmark i can only get it as a set with a bulb, but i think that will change

boelle avatar Aug 12 '21 19:08 boelle

btw... i get the modules from 904.087.97

image

boelle avatar Aug 12 '21 19:08 boelle

No its not the new 5 button remote then its one 4 button remote if not counting the reset button. Its the new E2001/E2002 remote "styrbar" and the PCB is looking like this with one Silabs MG21 module. IMG_20210503_113654 IMG_20210503_113557

Its very "clean" and shall being easy for the Danes making one updated PCB for that is fitting in the original deigned switch.

Your module is one ICC-A-1 = the normal 2 gen module.

MattWestb avatar Aug 12 '21 19:08 MattWestb

ahh

i wonder why they changed it to 2 AAA then? ie if the power consumption is the same

boelle avatar Aug 12 '21 19:08 boelle

I was told the new module would spend too much power. Why else is it using 2xAAA... Maybee I sould give it a try. image

PerMejdal avatar Aug 12 '21 19:08 PerMejdal

I can being that IKEA devs have not maximizing the sleep current but the module / chip is very low power.

The reason for the 2 AAA shall being re chargeable and is the new green way IKEA have starting and also all new device having only recycles repairer packing (all plastic is gone).

If its little hungry put 2 CR4530 in parallel on the new PCB (some tuya is having 2 CR2032 and was having one old MG1B module).

Thanks for the PCB layout !!

MattWestb avatar Aug 12 '21 20:08 MattWestb

If its little hungry put 2 CR4530 in parallel on the new PCB

remember that space is VERY limited

image

40x40mm and barely space for the coincell

boelle avatar Aug 12 '21 20:08 boelle

currently we use OpenOCD on a pi to flash firmware

can that be used with the new remote too?

boelle avatar Aug 12 '21 20:08 boelle

If they have adding support for ARM Cortex®-M33 the last half year but i have not reading that have being done.

The module datasheet https://www.silabs.com/documents/public/data-sheets/mgm210l-datasheet.pdf

MattWestb avatar Aug 12 '21 20:08 MattWestb

i just saw that you had wires soldered to the programming header and wondered how you dumped/flashed firmware

boelle avatar Aug 12 '21 20:08 boelle

Main flash and data is dumped without problem with Silabs WSTK (it have integrated OBD J-Tag) and Segger J-flasher and the same made with tuya ZS3L modules on LIDL device but have loading the LIDL LED stripe controller with EZSP 6.1.0.0 and is using it as one coordinator in ZHA. IMG_20201204_140319 (before sounding my SWD and com cables) Its haveing the same chip and is also good calibrated and have one good implemented RF part (for being one Chinese module).

MattWestb avatar Aug 12 '21 20:08 MattWestb

sorry for "stepping in a turd" here, but are there other ways to dumb the firmware?

using a raspberry pi right now with the current modules it seems costly to get a new programmer, but on the other hand i bet the one from silabs uses windows software, not that i mind linux but it could be nice to have everything on the same machine

so its a bit up in the air, nice to use the setup i have, but that means a different machine just to flash firmware, with a new setup i can use my main pc

boelle avatar Aug 15 '21 11:08 boelle

being not so tech savy, i assume you use the debug connector

image

we use the same currently

image

but not sure if that would work, i do not have a one of the new modules, but @CableCatDK does

boelle avatar Aug 15 '21 11:08 boelle

With one J-Link (every original version is working also the EDU) and you can building one "OBD clone" from one STM32 board and using it in windows but dont letting Segger updating the firmware on it then its being soft broken. Using Segger flasher and commands programs is working OK for dumping but can being it dont like flashing if having one clone or ST-Link flasher (that is ST OBD flasher only allowed flashing ST chips). But flashing can being made with Silabs Commander that dont care if its one clone or not (its free downloading it from Silabs web).

The pins used for flashing is the same SWD for both 1 and 2 gen modules only changed is the CPU that must being supported by the probe and / or flashing software.

MattWestb avatar Aug 15 '21 12:08 MattWestb

So for the danish dummie here it would make more sense to just get the WSTK programmer?

all i'm after is being able to dumb firmware from the 4 button remote and then flash it again to the same module. Thoase module i can get from mouser.

boelle avatar Aug 15 '21 13:08 boelle

The WSTK is expensive but then you also is getting access to Silabs Zigbee stack SDK and one good thing is that with the WSTK you can also unbrick "hard software bricked devices" (boot loader flashed at wrong address with Silabs commander) that is not possible dong with other probes (i have bricking 3 IKEA modules and recovering them with my WSTK).

The cheapest is one Chinese ODB clone but dont have any grantee that is working so long (then Segger is blocking the serial numbers of them) but one Segger EDU is not so expensive and working very well and is much smaller then one WSTK.

Then dumping the flash is the main flash and also the user data that is needed then its can (but not always) having configuration for the firmware that making it working in one different way.

MattWestb avatar Aug 15 '21 13:08 MattWestb

First release of STYRBAR to Danish wall switch is now released: https://www.thingiverse.com/thing:4938961 The idle power consumption is the same. IMG_4337

PerMejdal avatar Sep 30 '21 15:09 PerMejdal

Diagram image

PerMejdal avatar Sep 30 '21 15:09 PerMejdal

Very nice !!!

I think the Zigbee module is not so easy getting in the open market the IKEA, tuya Philips and many more is having high demand for it and Silabs cant producing enough of it but the have opening and certifying more productions cites the last year (if reading they internal company PM that is also distributed to devs).

Our (community) firmware cooker Gary R have ordering some hundred modules for nearly one year go and cant getting them shipped then they is out of stock before the shipping is arriving to the seller.

The cheapest device i can getting in Wien is the same new E14 or E27 you have used for 8€ and need reprogramming the module.

But i was 2 week in southern Spain for holiday and doing one "pi stop" at IKEA in Montpelier and was baying 2 stainless steel version Styrbar for only 10€ and in most countries they is costing 15€.

Great that the power consumption is OK and not killing the battery and also possible putting one large inside if needed.

Thanks for the schematics it great to having if doing one other version of one wall switch.

For dumping the firmware you can finding one version with GDB in my git but is also possible using Sergger Commander and also Silabs Commander but the last is not so easy like using the GUI from Segger Commander for normal users.

One more time great work done Per !!!

MattWestb avatar Sep 30 '21 16:09 MattWestb

In Denmark STYRBAR is 69 DKK, whis is 9,28 euro. The nye E14 is 59 DKK, which includes the new module. The module alone is about 100 DKK.

Reprogramming the module (in Danish with nice pictures): https://rbx.dk/w/smart-home-knapper-og-paneler/flash-ikea-zigbee-j-link.html

PerMejdal avatar Oct 01 '21 07:10 PerMejdal

For my "Billy EZSP" project i was baying the cheapest "family pack" for 10€ with one E27 WW (for the module) and E1744 remote and its was very useful.

So better baying the nye clear E14 and getting little spare parts for the lab ;-))

I think IKEA was having one very hard to getting the good deal with Silabs (or it was Silabs that was having the problem getting the deal) then some FCC papers is over 2 year old with the MG21 module and they was having them on hold then was not getting one good price from Silabs but its very normal for IKEA if not getting one good deal then is normally leaving the project and taking the costs (and some time the manufacturing company is going bankruptcy then not having any large customer like one Swedish bed manufacture).

Its also looks like the SYMFONISK shall have getting one MG21 module but was getting one ICC-1-A in the end.

So very likely many Zigbee modules from IKEA lights is going to the DIY and professional projects but is not so bad !!

The latest is IKEA have ordering containers then they cant getting the products to the market then its shortages of them (Maersk ?) and is also looking baying own ships for going around the time and price of the shipping from China.

One question can you reusing the 5 switches from the Styrbar PCB to your custom PCB ? Then its not so bad baying one Styrbar then can reusing most of the components.

MattWestb avatar Oct 01 '21 08:10 MattWestb

The TACH switches are different on my PCB.

PerMejdal avatar Oct 01 '21 08:10 PerMejdal

The SONOS gen2 is very similar to STYRBAR. IT has 3 more buttons, connected to PC02, PC03 and PC04. image

PerMejdal avatar Feb 24 '23 19:02 PerMejdal

Is it Synfonisk 2 ?? One user have getting one in thee Netherlands and in Vienna it shall coming the next week. I dint knowing what commands is suing but its having very normal cluster for one light controller but we is knowing mor in some days :-))

MattWestb avatar Feb 24 '23 20:02 MattWestb

You should watch this video I made: https://youtu.be/msPRU2MsIXY

Here are the functions, when pair directly with a lightbulb: image

PerMejdal avatar Feb 24 '23 20:02 PerMejdal

Nice !!

So normal OnOff and Level commands plus 4 more functions IKEA have cocked in the firmware. New version with one AAA of OnOff, ShirtCut and OpenClose is in the pipe (FCC certed).

The reset / sync of light is long press right or left button on Styrbar.

MattWestb avatar Feb 24 '23 20:02 MattWestb

By the way OnOff and OpenClose is using the same firmware and you can dumping the flash aria "user data" and flashing it on the other and you have transforming it.

MattWestb avatar Feb 24 '23 20:02 MattWestb

By the way OnOff and OpenClose is using the same firmware

Very interesting. Can one change the user data over the air?

PerMejdal avatar Feb 24 '23 20:02 PerMejdal

By the way OnOff and OpenClose is using the same firmware and you can dumping the flash aria "user data" and flashing it on the other and you have transforming it.

you mean this?

CleanShot 2023-02-24 at 22 08 21@2x

HexDK avatar Feb 24 '23 21:02 HexDK