hoylabs / OpenDTU-OnBattery

Software for ESP32 to talk to Hoymiles/TSUN/Solenso Inverters, VE.Direct devices, battery management systems, and related peripherals
GNU General Public License v2.0
301 stars 63 forks source link

HUAWEI funktioniert nicht, wenn NRF und CMT gleichzeitig verwendet werden #1261

Closed woollfi closed 3 weeks ago

woollfi commented 3 weeks ago

What happened?

Huawei Netzteil funktioniert nur wenn ein Chip konfiguriert ist, wenn beide Chips CMT und NRF konfiguriert und aktiv sind wird das Huawei nicht erkannt, keine Werte und Steuerung. IMG_0338

To Reproduce Bug

Beide Sendechips aktivieren und Huawei betreiben

Expected Behavior

Huawei regelt und zeigt Werte an

Install Method

Pre-Compiled binary from GitHub

What git-hash/version of OpenDTU?

2024.09.11

Relevant log/trace output

No response

Anything else?

No response

Please confirm the following

Manos1966 commented 3 weeks ago

This is not a bug.

"Made by design"

Using the Huawei AC charger in combination with the CMT2300A radio board (for HMT- HMS- Inverters) is supported as of the latest Firmware (stand: Sep.2024) Please Note: Due to the fact that the ESP32 has only two SPI available, ONLY TWO OF THREE (NRF24, CMT23000, MC2515) modules can run simultanously. The OpenDTU-OnBattery checks presence of the modules and allocates SPI to them in fixed sequence:

  1. NRF24
  2. CMT2300
  3. HuaweiCAN (MC2515)

If the OpenDTU-OnBattery finds a PIN definition in the config, it assigns one of the two available SPI.
If all three modules are present, the OpenDTU-OnBattery will allocate the first two with an SPI and the third will be denied, without hanging up.

If you have all three modules "present" on your PCB board, you need to disable one of them: Change your Pin-Out configuration and define with -1 the pins of the module you want to have disabled.

schlimmchen commented 3 weeks ago

Da hat Manos den Nagel auf den Kopf getroffen, auch wenn es mir lieber gewesen wäre, er hätte in die Doku verlinkt statt zu kopieren :wink:

Retten kann dich #999, aber da arbeitet gerade niemand dran.

Du kannst dich aufh eine beliebige Drahtlosschnittstelle beschränken, per pin mapping, und dafür das Huawei anschließen mit dem SPI<->CAN Adapter.