nmaupu / yokis-hack

Some hacking regarding Yokis modules
Apache License 2.0
18 stars 4 forks source link

Compilation issue on Raspberry PI 3, python3.7 #15

Closed lecocotier closed 3 years ago

lecocotier commented 3 years ago

Hi, trying to compile give the following issue on all targets (here is d1_mini): `Processing d1_mini (platform: espressif8266; board: d1_mini; framework: arduino)

Verbose mode can be enabled via -v, --verbose option CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/d1_mini.html PLATFORM: Espressif 8266 (3.0.0) > WeMos D1 R2 and mini HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash PACKAGES:

Environment Status Duration


megaatmega2560 FAILED 00:00:03.508 d1_mini_ota FAILED 00:00:18.594 d1_mini FAILED 00:00:13.685 ============================================================================================================ 3 failed, 0 succeeded in 00:00:35.787 ============================================================================================================`

nmaupu commented 3 years ago

Hi, Platformio seems not to be correctly installed. Why are you trying to compile anyway ?

lecocotier commented 3 years ago

Hi, ok, I don't get what is wrong with platformio. I'm trying to use your firmware to drive MVR500ERP devices, but only toggle command drives the device properly over telnet (ON, OFF, PAUSE) does nothing. In home assistant, device is shown as MTR2000ERX. That's why I wanted to be able to compile and try to find out what is wrong.

To give a bit more details, when I pair the device it goes to default (line 197 of e2bp.cpp), NO_RCPT instead of SHUTTER, so maybe by just changing default to shutter I can test if it's working (I have only shutter devices installed so far). If you like to investigate the issue, here is what I got when pairing: Buffer data: 49 FF 6 Buffer data: BB BB 47 11 6

lecocotier commented 3 years ago

Answering myself. I tried to build on another computer, same issue, it's maybe missing references to _SPI ? To solve my shutter issue, I removed the configuration and imported it again replacing 0002 at the end of the line by 0003, there it's now a SHUTTER in the configuration and appears to work.

lecocotier commented 3 years ago

Issue solved, it's coming with last RF24 library v1.4.0 released some days ago.

Fixed by replacing in platformio.ini:

lib_deps = RF24

by

lib_deps = nrf24/RF24@1.3.11