rstrouse / ESPSomfy-RTS

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

Thanks for your excellent project. #383

Closed paul-nzl closed 1 month ago

paul-nzl commented 1 month ago

Thank you for the excellent project and the detailed information provided. I have used the Olimex ESP32 POE ISO and the EO7-M1101D-SMA transceiver. I have used the UEXT connector to connect to the Transceiver.

My Olimex ESP32 connects on either WiFi or Ethernet. However I can’t get my Radio to work. When i press Save Radio button I get: 500:Service Error Service:PUT /setNetwork Internal Server Error

This same error occurs when I remove the cable between the Olimex and the Transceiver.

Units Wired as follows:

E07-M1101D-SMA Olimex Wire Color
Pin Pin
1 GND 2 GND White 2 VCC 1 3v3 Black 3 GDO0 Tx 3 GPIO 04 Gray 4 CSN 6 GPIO 13 Green 5 SCK 9 GPIO 14 Red 6 MOSI 7 GPIO 15 Yellow 7 MISO 5 GPIO 16 Blue 8 GDO2 Rx 4 GPIO 36 Purple

20240519_144941 20240525_131441 20240525_131537 20240525_131635 20240525_131704 20240525_133454

rstrouse commented 1 month ago

The error message in your first screenshot is from saving the Ethernet adapter not the radio. So lets first get your network adapter sorted. I can tell from your screenshot that you are connected via wifi. However, in the first screenshot it appears that you are attempting to connect via network cable with a wifi fallback. My guess with the error message above is that the wired connection closed the connection and fell back to wifi momentarily which caused the first error message.

This means that the ethernet adapter is not properly initializing. Remove your ribbon cable from UEXT for now to ensure it is capable of connecting via the ethernet adapter. When ESPSomfy RTS is connected via ethernet the screen will appear like below.

image

Don't start troubleshooting the transceiver you get the ethernet working properly. The reason for this is because the Olimex board is extremely complex and the documentation is overly simplified. For instance I can no longer find the documentation related to the pin settings for the LAN87x0 configuration. It is infuriating that they removed the original link describing the ethernet settings. I looked everywhere and cannot seem to find it. And their example now points to a generic comment.

However, I found this post by others trying to get around the revision changes on the board. https://github.com/emsesp/EMS-ESP32/issues/438

Try the following settings for the adapter to see if the ethernet comes alive.

image

After we get the Ethernet connected properly

Once the ethernet is connected properly we can now troubleshoot the wiring for the the transceiver. Let me start out by saying that custom ribbon cables can be difficult to get right. You really need to inspect the alignment of the ribbon to ensure the proper conductor is attached to the proper pin. Then you need to test the continuity for each side of the connector.

The radio not initialized message is because one or more of the top row pins on the configuration has either the wrong selection or more likely the connector is not making connection to the pin you intended.

https://github.com/rstrouse/ESPSomfy-RTS/wiki/User-Interface-Reference#transceiver-tab

paul-nzl commented 1 month ago

Hi

Thanks for your help, i have isolated the problem to the wiring of the connector to the Transceiver. After replacing the connector everything is now working. I'm extremely happy, many thanks for your excellent project.

I have included a screen of how my Olimex ESP32-POE shows up in my router.

Manufacturer: Konnected Model: Konnected Alarm System Retrofit

Many Thanks

Paul

On 26/05/2024 03:33 NZST rstrouse @.***> wrote:

The error message in your first screenshot is from saving the Ethernet adapter not the radio. So lets first get your network adapter sorted. I can tell from your screenshot that you are connected via wifi. However, in the first screenshot it appears that you are attempting to connect via network cable with a wifi fallback. My guess with the error message above is that the wired connection closed the connection and fell back to wifi momentarily which caused the first error message.

This means that the ethernet adapter is not properly initializing. Remove your ribbon cable from UEXT for now to ensure it is capable of connecting via the ethernet adapter. When ESPSomfy RTS is connected via ethernet the screen will appear like below.

image.png (view on web) https://github.com/rstrouse/ESPSomfy-RTS/assets/47839015/0388176d-0f06-4e05-a204-ceda8a3a93a3

Don't start troubleshooting the transceiver you get the ethernet working properly. The reason for this is because the Olimex board is extremely complex and the documentation is overly simplified. For instance I can no longer find the documentation related to the pin settings for the LAN87x0 configuration. It is infuriating that they removed the original link describing the ethernet settings. I looked everywhere and cannot seem to find it. And their example now points to a generic comment.

However, I found this post by others trying to get around the revision changes on the board. emsesp/EMS-ESP32#438 https://github.com/emsesp/EMS-ESP32/issues/438

Try the following settings for the adapter to see if the ethernet comes alive.

image.png (view on web) https://github.com/rstrouse/ESPSomfy-RTS/assets/47839015/dae2e1b3-d262-4555-961a-442b96a77624

After we get the Ethernet connected properly

Once the ethernet is connected properly we can now troubleshoot the wiring for the the transceiver. Let me start out by saying that custom ribbon cables can be difficult to get right. You really need to inspect the alignment of the ribbon to ensure the proper conductor is attached to the proper pin. Then you need to test the continuity for each side of the connector.

The radio not initialized message is because one or more of the top row pins on the configuration has either the wrong selection or more likely the connector is not making connection to the pin you intended.

https://github.com/rstrouse/ESPSomfy-RTS/wiki/User-Interface-Reference#transceiver-tab

— Reply to this email directly, view it on GitHub https://github.com/rstrouse/ESPSomfy-RTS/issues/383#issuecomment-2131310173, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZYZRUYNBBC5P2CQHGXLXB3ZECVMXAVCNFSM6AAAAABIIPQDY2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZRGMYTAMJXGM. You are receiving this because you authored the thread.Message ID: @.***>

rstrouse commented 1 month ago

Awesome! Closing this.