rstrouse / ESPSomfy-RTS

A controller for Somfy RTS shades and blinds
The Unlicense
442 stars 32 forks source link

Strange issue while adding new remotes. #266

Closed nardev closed 5 months ago

nardev commented 5 months ago

Hardware

ESP32

Firmware version

V2.4.0

Application version

V2.4.0

What happened? What did you expect to happen?

Despite all the effort to "migrate" remote settings with the backup, it didn't work out.

After flashing SomfyController.onboard.esp32.bin to ESP32 Wroom, i got the Web Interface, i tried restoring previous backup and after reboot it only created the old remotes.

The wiring of the board is 1:1 same as it was while it was working.

This is what fails:

So, it was evidently paired but for some reason, it can't control it.

In the radio log i ca catch all commands from the remote.

Transceiver settings as below:

Base Freq 433.420 RX Bndw 97.96 Freq Dev 11.43 TX Pow 10dBm -68 dBm

The scan freq does catch frequency, keeping it the same or increasing it a bit, doesn't change anything.

Any clue?

How to reproduce it (setp by step)

Just tried adding new remotes. All wiring same as before while it was working.

Logs

No response

rstrouse commented 5 months ago

Check the rolling code value. Does it match what is in the backup?

nardev commented 5 months ago

Yes it does, timing and rolling code is the same,.

Now i managed to "unpair" two of those and i'm trying to add them as new remotes, but no luck.

rstrouse commented 5 months ago

Try a new address. This sounds like the current address stored in the motor does not match the current rolling code. If the codes don’t match it will not paire or unpair.

nardev commented 5 months ago

I did move +50 in addresses, nothing changes. I'll try one more time with another address.

P.s. yes, once i removed the remotes, new address again took the same number. Moving new remotes makes sense.

nardev commented 5 months ago

:( No luck. Just added new, very high number, pairing went well but commands do not work.

when i say "went well" it means, that shade jogged on both remote and web remote

nardev commented 5 months ago

Shit, somehow i managed to put two in pair now... Too much playing with this :(

rstrouse commented 5 months ago

If you have been pairing up a bunch of remotes you may need to factory reset the motor. I had one that obviously had several remotes paired before it was installed.

nardev commented 5 months ago

@rstrouse thank you.

I'll probably do that tomorrow.

nardev commented 5 months ago

Eventually, the ESP32 board i was using was actually bricked. It was not possible to erase flash or write new FW

rstrouse commented 5 months ago

What is the error message you are getting? If it isn't a chip failure are you sure you are flashing the right firmware? Is the serial port coming alive?

EDIT: Is this an S2 or is it a WROOM chip?

nardev commented 5 months ago

esptool doesn't report any error but flash erase finishes in 0.0, also flashing is very quick. But even arduino IDE upload failed.. it's already in trash. Who cares.

rstrouse commented 5 months ago

That definitely sounds like either a hardware failure or the SPI interface for the comm serial port went bad.

rstrouse commented 5 months ago

@nardev I am closing this for now. Let me know if you need further assistance.