-
-
Notifications
You must be signed in to change notification settings - Fork 97
Cannot seem to compile a working version for Wemos Mini #60
Comments
Try using the serial monitor that’s built into platformio on windows. You should see something. If using putty make sure the baud is 115200. Some ESP libraries changed during the week so I’ll try building on my system tomorrow to see if it all still works. Also I would do a ‘pio run -t erase’ to clear the
esp’s memory as I suspect you have Kees’ old settings installed when he tested the board.
…On Fri, 22 Feb 2019 at 21:07, higgers ***@***.***> wrote:
Hi,
I received an interface board and Wemos Mini from bbqkees today so I
immediately set about building the project and flashing it to the Wemos.
I'm using Visual Studio Code v1.31.1 on Windows 10 and installed the
PlatformIO extension v1.60. I cloned the latest version of EMS-ESP
(v1.5.2), copied the example platformio file to platformio.ini and changed
the upload port in the [env:d1_mini] section to COM3. COM3 is listed in
device manager; under the Ports section there's a device called "USB-SERIAL
CH340 (COM3)".
The output of the build task is:
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 > WeMos D1 R2 and mini
HARDWARE: ESP8266 80MHz 80KB RAM (4MB Flash)
Converting ems-esp.ino
Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF MODES: FINDER(chain) COMPATIBILITY(soft)
Collected 35 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <CRC32> 2.0.0
|-- <CircularBuffer> 1.3.0
|-- <JustWifi> 2.0.2
| |-- <ESP8266WiFi> 1.0
|-- <AsyncMqttClient> 0.8.2
| |-- <ESPAsyncTCP> 1.2.0
| | |-- <ESP8266WiFi> 1.0
|-- <ArduinoJson> 5.13.4
|-- <OneWire> 2.3.4
|-- <Ticker> 1.0
|-- <myESP>
| |-- <TelnetSpy>
| | |-- <ESP8266WiFi> 1.0
| |-- <DNSServer> 1.1.1
| | |-- <ESP8266WiFi> 1.0
| |-- <ArduinoJson> 5.13.4
| |-- <JustWifi> 2.0.2
| | |-- <ESP8266WiFi> 1.0
| |-- <AsyncMqttClient> 0.8.2
| | |-- <ESPAsyncTCP> 1.2.0
| | | |-- <ESP8266WiFi> 1.0
| |-- <ESP8266mDNS> 1.2
| | |-- <ESP8266WiFi> 1.0
| |-- <ESPAsyncTCP> 1.2.0
| | |-- <ESP8266WiFi> 1.0
| |-- <ArduinoOTA> 1.0
| | |-- <ESP8266WiFi> 1.0
| | |-- <ESP8266mDNS> 1.2
| | | |-- <ESP8266WiFi> 1.0
Compiling .pioenvs\d1_mini\src\ds18.cpp.o
Compiling .pioenvs\d1_mini\src\ems-esp.ino.cpp.o
Compiling .pioenvs\d1_mini\src\ems.cpp.o
Compiling .pioenvs\d1_mini\src\emsuart.cpp.o
Generating LD script .pioenvs\d1_mini\ld\local.eagle.app.v6.common.ld
Compiling .pioenvs\d1_mini\lib25d\CRC32_ID1202\CRC32.cpp.o
Archiving .pioenvs\d1_mini\libe35\libCircularBuffer_ID1796.a
Compiling .pioenvs\d1_mini\liba6d\ESP8266WiFi\BearSSLHelpers.cpp.o
Compiling .pioenvs\d1_mini\liba6d\ESP8266WiFi\CertStoreBearSSL.cpp.o
Compiling .pioenvs\d1_mini\liba6d\ESP8266WiFi\ESP8266WiFi.cpp.o
Compiling .pioenvs\d1_mini\liba6d\ESP8266WiFi\ESP8266WiFiAP.cpp.o
Archiving .pioenvs\d1_mini\lib25d\libCRC32_ID1202.a
Compiling .pioenvs\d1_mini\liba6d\ESP8266WiFi\ESP8266WiFiGeneric.cpp.o
Compiling .pioenvs\d1_mini\liba6d\ESP8266WiFi\ESP8266WiFiMulti.cpp.o
Compiling .pioenvs\d1_mini\liba6d\ESP8266WiFi\ESP8266WiFiSTA-WPS.cpp.o
Compiling .pioenvs\d1_mini\liba6d\ESP8266WiFi\ESP8266WiFiSTA.cpp.o
Compiling .pioenvs\d1_mini\liba6d\ESP8266WiFi\ESP8266WiFiScan.cpp.o
Compiling .pioenvs\d1_mini\liba6d\ESP8266WiFi\WiFiClient.cpp.o
Compiling .pioenvs\d1_mini\liba6d\ESP8266WiFi\WiFiClientSecureAxTLS.cpp.o
Compiling .pioenvs\d1_mini\liba6d\ESP8266WiFi\WiFiClientSecureBearSSL.cpp.o
Compiling .pioenvs\d1_mini\liba6d\ESP8266WiFi\WiFiServer.cpp.o
Compiling .pioenvs\d1_mini\liba6d\ESP8266WiFi\WiFiServerSecureAxTLS.cpp.o
Compiling .pioenvs\d1_mini\liba6d\ESP8266WiFi\WiFiServerSecureBearSSL.cpp.o
Compiling .pioenvs\d1_mini\liba6d\ESP8266WiFi\WiFiUdp.cpp.o
Compiling .pioenvs\d1_mini\lib385\JustWifi_ID1282\JustWifi.cpp.o
Compiling .pioenvs\d1_mini\libd3e\ESPAsyncTCP_ID305\AsyncPrinter.cpp.o
Compiling .pioenvs\d1_mini\libd3e\ESPAsyncTCP_ID305\ESPAsyncTCP.cpp.o
Compiling .pioenvs\d1_mini\libd3e\ESPAsyncTCP_ID305\ESPAsyncTCPbuffer.cpp.o
Compiling .pioenvs\d1_mini\libd3e\ESPAsyncTCP_ID305\SyncClient.cpp.o
Compiling .pioenvs\d1_mini\libd3e\ESPAsyncTCP_ID305\tcp_axtls.c.o
Compiling .pioenvs\d1_mini\libec3\AsyncMqttClient_ID346\AsyncMqttClient.cpp.o
Compiling .pioenvs\d1_mini\libec3\AsyncMqttClient_ID346\AsyncMqttClient\Packets\ConnAckPacket.cpp.o
Archiving .pioenvs\d1_mini\liba6d\libESP8266WiFi.a
Archiving .pioenvs\d1_mini\lib385\libJustWifi_ID1282.a
Compiling .pioenvs\d1_mini\libec3\AsyncMqttClient_ID346\AsyncMqttClient\Packets\PingRespPacket.cpp.o
Compiling .pioenvs\d1_mini\libec3\AsyncMqttClient_ID346\AsyncMqttClient\Packets\PubAckPacket.cpp.o
Compiling .pioenvs\d1_mini\libec3\AsyncMqttClient_ID346\AsyncMqttClient\Packets\PubCompPacket.cpp.o
Compiling .pioenvs\d1_mini\libec3\AsyncMqttClient_ID346\AsyncMqttClient\Packets\PubRecPacket.cpp.o
Compiling .pioenvs\d1_mini\libec3\AsyncMqttClient_ID346\AsyncMqttClient\Packets\PubRelPacket.cpp.o
Archiving .pioenvs\d1_mini\libd3e\libESPAsyncTCP_ID305.a
Compiling .pioenvs\d1_mini\libec3\AsyncMqttClient_ID346\AsyncMqttClient\Packets\PublishPacket.cpp.o
Compiling .pioenvs\d1_mini\libec3\AsyncMqttClient_ID346\AsyncMqttClient\Packets\SubAckPacket.cpp.o
Compiling .pioenvs\d1_mini\libec3\AsyncMqttClient_ID346\AsyncMqttClient\Packets\UnsubAckPacket.cpp.o
Archiving .pioenvs\d1_mini\lib0ec\libArduinoJson_ID64.a
Compiling .pioenvs\d1_mini\lib493\OneWire_ID1\OneWire.cpp.o
Compiling .pioenvs\d1_mini\lib49a\Ticker\Ticker.cpp.o
Compiling .pioenvs\d1_mini\lib45d\TelnetSpy\TelnetSpy.cpp.o
Compiling .pioenvs\d1_mini\lib4b9\DNSServer\DNSServer.cpp.o
Compiling .pioenvs\d1_mini\libd5e\ESP8266mDNS\ESP8266mDNS.cpp.o
Compiling .pioenvs\d1_mini\libd5e\ESP8266mDNS\ESP8266mDNS_Legacy.cpp.o
Compiling .pioenvs\d1_mini\libd5e\ESP8266mDNS\LEAmDNS.cpp.o
Archiving .pioenvs\d1_mini\lib49a\libTicker.a
Archiving .pioenvs\d1_mini\libec3\libAsyncMqttClient_ID346.a
Archiving .pioenvs\d1_mini\lib493\libOneWire_ID1.a
Compiling .pioenvs\d1_mini\libd5e\ESP8266mDNS\LEAmDNS_Control.cpp.o
Compiling .pioenvs\d1_mini\libd5e\ESP8266mDNS\LEAmDNS_Helpers.cpp.o
Compiling .pioenvs\d1_mini\libd5e\ESP8266mDNS\LEAmDNS_Structs.cpp.o
Archiving .pioenvs\d1_mini\lib4b9\libDNSServer.a
Archiving .pioenvs\d1_mini\lib45d\libTelnetSpy.a
Compiling .pioenvs\d1_mini\libd5e\ESP8266mDNS\LEAmDNS_Transfer.cpp.o
Compiling .pioenvs\d1_mini\lib112\ArduinoOTA\ArduinoOTA.cpp.o
Compiling .pioenvs\d1_mini\lib65d\myESP\MyESP.cpp.o
Archiving .pioenvs\d1_mini\libFrameworkArduinoVariant.a
Compiling .pioenvs\d1_mini\FrameworkArduino\Esp-frag.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\Esp-version.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\Esp.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\FS.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\FunctionalInterrupt.cpp.o
Archiving .pioenvs\d1_mini\libd5e\libESP8266mDNS.a
Archiving .pioenvs\d1_mini\lib112\libArduinoOTA.a
Compiling .pioenvs\d1_mini\FrameworkArduino\HardwareSerial.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\IPAddress.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\MD5Builder.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\Print.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\Schedule.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\ScheduledFunctions.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\StackThunk.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\Stream.cpp.o
Archiving .pioenvs\d1_mini\lib65d\libmyESP.a
Compiling .pioenvs\d1_mini\FrameworkArduino\StreamString.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\Tone.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\Updater.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\WMath.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\WString.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\abi.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\base64.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\cbuf.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\cont.S.o
Compiling .pioenvs\d1_mini\FrameworkArduino\cont_util.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_app_entry_noextra4k.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_eboot_command.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_flash_utils.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_i2s.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_main.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_noniso.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_phy.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_postmortem.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_si2c.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_sigma_delta.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_timer.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_waveform.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_wiring.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_wiring_analog.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_wiring_digital.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_wiring_pulse.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_wiring_pwm.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\core_esp8266_wiring_shift.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\debug.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\gdb_hooks.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\heap.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\libb64\cdecode.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\libb64\cencode.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\libc_replacements.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\sntp-lwip2.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\spiffs\spiffs_cache.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\spiffs\spiffs_check.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\spiffs\spiffs_gc.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\spiffs\spiffs_hydrogen.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\spiffs\spiffs_nucleus.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\spiffs_api.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\spiffs_hal.cpp.o
Compiling .pioenvs\d1_mini\FrameworkArduino\sqrt32.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\time.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\uart.c.o
Compiling .pioenvs\d1_mini\FrameworkArduino\umm_malloc\umm_malloc.c.o
Archiving .pioenvs\d1_mini\libFrameworkArduino.a
Linking .pioenvs\d1_mini\firmware.elf
Building .pioenvs\d1_mini\firmware.bin
Retrieving maximum program size .pioenvs\d1_mini\firmware.elf
Checking size .pioenvs\d1_mini\firmware.elf
Memory Usage -> http://bit.ly/pio-memory-usage
DATA: [====== ] 56.6% (used 46404 bytes from 81920 bytes)
PROGRAM: [===== ] 45.7% (used 477828 bytes from 1044464 bytes)
========================================================================================================================================================================== [SUCCESS] Took 28.30 seconds ==========================================================================================================================================================================
=================================================================================================================================================================================== [SUMMARY] ===================================================================================================================================================================================
Environment nodemcuv2 [SKIP]
Environment d1_mini [SUCCESS]
========================================================================================================================================================================== [SUCCESS] Took 28.31 seconds ==========================================================================================================================================================================
The output of the upload task is:
Processing d1_mini (platform: espressif8266; board: d1_mini; framework: arduino)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PackageManager: Installing tool-mkspiffs @ ~1.200.0
Downloading [####################################] 100%
Unpacking [####################################] 100%
PackageManager: Installing tool-espotapy @ ~1.1.0
Downloading [####################################] 100%
Unpacking [####################################] 100%
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/d1_mini.html
PLATFORM: Espressif 8266 > WeMos D1 R2 and mini
HARDWARE: ESP8266 80MHz 80KB RAM (4MB Flash)
Converting ems-esp.ino
Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF MODES: FINDER(chain) COMPATIBILITY(soft)
Collected 35 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <CRC32> 2.0.0
|-- <CircularBuffer> 1.3.0
|-- <JustWifi> 2.0.2
| |-- <ESP8266WiFi> 1.0
|-- <AsyncMqttClient> 0.8.2
| |-- <ESPAsyncTCP> 1.2.0
| | |-- <ESP8266WiFi> 1.0
|-- <ArduinoJson> 5.13.4
|-- <OneWire> 2.3.4
|-- <Ticker> 1.0
|-- <myESP>
| |-- <TelnetSpy>
| | |-- <ESP8266WiFi> 1.0
| |-- <DNSServer> 1.1.1
| | |-- <ESP8266WiFi> 1.0
| |-- <ArduinoJson> 5.13.4
| |-- <JustWifi> 2.0.2
| | |-- <ESP8266WiFi> 1.0
| |-- <AsyncMqttClient> 0.8.2
| | |-- <ESPAsyncTCP> 1.2.0
| | | |-- <ESP8266WiFi> 1.0
| |-- <ESP8266mDNS> 1.2
| | |-- <ESP8266WiFi> 1.0
| |-- <ESPAsyncTCP> 1.2.0
| | |-- <ESP8266WiFi> 1.0
| |-- <ArduinoOTA> 1.0
| | |-- <ESP8266WiFi> 1.0
| | |-- <ESP8266mDNS> 1.2
| | | |-- <ESP8266WiFi> 1.0
Compiling .pioenvs\d1_mini\src\ems-esp.ino.cpp.o
Retrieving maximum program size .pioenvs\d1_mini\firmware.elf
Checking size .pioenvs\d1_mini\firmware.elf
Memory Usage -> http://bit.ly/pio-memory-usage
DATA: [====== ] 56.6% (used 46404 bytes from 81920 bytes)
PROGRAM: [===== ] 45.7% (used 477828 bytes from 1044464 bytes)
Configuring upload protocol...
Looking for upload port...
Use manually specified: COM3
Uploading .pioenvs\d1_mini\firmware.bin
Uploading 481968 bytes from .pioenvs\d1_mini\firmware.bin to flash at 0x00000000
................................................................................ [ 16% ]
................................................................................ [ 33% ]
................................................................................ [ 50% ]
................................................................................ [ 67% ]
................................................................................ [ 84% ]
....................................................................... [ 100% ]
========================================================================================================================================================================== [SUCCESS] Took 20.61 seconds ==========================================================================================================================================================================
=================================================================================================================================================================================== [SUMMARY] ===================================================================================================================================================================================
Environment nodemcuv2 [SKIP]
Environment d1_mini [SUCCESS]
========================================================================================================================================================================== [SUCCESS] Took 20.62 seconds ==========================================================================================================================================================================
At this point the blue LED on the Wemos was not lit up. I pressed the
reset button on the side of the Wemos after which the blue LED starts
flashing, approximately 4 times a second. However, there is no EMS-ESP AP
to be found by a wifi scan. Next, I tried to connect to COM3 via putty.
Putty connects but then prints a string of garbage in the putty window.
At this point I'm a bit stuck. I've tried building and flashing on my
laptop and my workstation (both Windwos 10), I've tried two different USB
cables. I've tried flashing the firmware manually using esptool.py, the
flashing process worked but the result was the same, no AP and garbage in
the putty window.
The only thing I've not been able to test is using a different Wemos
though hopefully two new ones will arrive in the post tomorrow.
Can anyone suggest anything else I can try?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#60>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABLHeOs7jG9_MQ2y4KxIs_a-yFNxKhRyks5vQE3kgaJpZM4bKTnV>
.
|
ok, I didn't work on my test system either. The problem is the new esp8266 core which was recently upgraded 2.5.0 and platformio from 1.8.0 to 2.0.0. I need to debug why. For now the workaround is to replace the 'platform' in your platformio.ini with |
This is now fixed in the upcoming 1.5.3. Please test. |
Success! Thanks for such a speedy reply! Compiling and flashing the 1.5.3 firmware didn't work until I issued the 'pio run -t erase' command you mentioned yesterday. When I say it didn't work I could see that the blue LED on the Wemos was flashing once every two seconds instead of the very rapid flashing I saw yesterday but my laptop couldn't see an EMS-ESP access point. After running 'pio run -t erase' and flashing again I could connect to EMS-ESP. What changes did you have to make to get the code to work with the newer libraries? Now to try and crack open my Worcester-Bosch and try and get at those EMS pins... |
I had to remove some of the legacy SPIFFs code that used the old SD libraries. Not sure why this kept failing. But don't get too excited, I'm running some tests now and the connection to the UART rx/tx is problematic too. |
Would you recommend sticking with 1.5.2 + |
I've reflashed with 1.5.2 but have yet to hook up the Wemos to my boiler. It's getting late here and I'd rather not run the risk of somehow taking my boiler out of action overnight. :) Reflashing 1.5.2 over 1.5.3 didn't work until I'd run ‘pio run -t erase’ but I can only run ‘pio run -t erase’ from a Visual Studio Code terminal within the 1.5.3 folder, is this what you'd expect? |
the 1.5.3 and 1.5.4 should work. You can run the pio commands from VS Code or just standalone. See the documentation. But I don't think you need to wipe the flash, it should just work. |
A-ha! v1.5.4 works!!! Thanks! I couldn't get the Wemos to connect to the EMS bus with 1.5.1, 1.5.2 or 1.5.3 but after flashing 1.5.4 it worked. Whilst the Wemos was at v1.5.3 I had an oscilloscope hooked up and could see the serial data on the EMS boiler pins at 12v low and 16v high and then on D7 and D8 on the Wemos at 0v and 3.3v. Anyway, the Wemos says it's connected to the bus now. However, the output of info is: The output of the info command is:
A few lines of the verbose log:
The boiler is a Worcester-Bosch Greenstar 550CDi. I spent a few minutes decoding some UBAMonitorSlow datagrams and see the water temperature go up after I'd turned a hot water tap on. I could also see the flow rate go up and down. What should I do to get the info command to show the values from the boiler? |
if you do an |
Output of autodetect with log set to none:
with log set to verbose:
After set boiler_type 8: set boiler_type 8(00:18:40) 0x08 -> 0x13, type 0x05 telegram: 88 13 05 22 00 (CRC=80), #data=1
That looks like it's read the messages now. Output of info:
Awesome!!! Thanks!!! |
strange that nothing gets displayed from the autodetect. what does |
I'm not sure there's any response from boiler read 2:
|
ah, damn. You have the same issue as reported by others. The Tx is not working, i.e. you're not able to send commands to the EMS devices. I haven't been able to fix this, unfortunately. It happens on certain systems (look at the open github issues) and very difficult to debug remotely. You seem to know about electronics seeing you own an oscilloscope - how good are your C++ debugging skills? |
I'm not that great with electronics but I know a man who is an absolute god with anything electrical. The last time I did an C programming was many years ago but I'm sure I can work my way through the code. Did you have a plan in mind for how to approach this? We'd benefit from having some hardware that can talk to the boiler via the EMS bus so we could monitor the comms. I don't have any hardware like that at the moment but if any exists for a reasonable price then I could buy it. |
I've just read through this issue #23 which seems like the same thing I'm seeing here. I'll try and hook up the oscilloscope on the TX line and see if data is making its way to the boiler. |
Is it possible to flash a Wemos with new firmware via the network rather than with it locally connected over USB? The boiler is in the cellar so it would be handy if I could update the code without have to go venturing across the house every time I want to make a change. |
yes, via OTA. It's always been in the code and is the default way for
flashing. The platormio.ini is setup this way, just use the upload_port
'ems-esp.local'
…On Mon, Mar 4, 2019 at 3:59 PM higgers ***@***.***> wrote:
Is it possible to flash a Wemos with new firmware via the network rather
than with it locally connected over USB? The boiler is in the cellar so it
would be handy if I could update the code without have to go venturing
across the house every time I want to make a change.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#60 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABLHeGDOSmahF8bBnCdXJqHt4kULeoxaks5vTTTmgaJpZM4bKTnV>
.
|
I'd tried changing the upload port to the IP I'd assigned to the Wemos, didn't work. Then I tried turning off the windows firewall on my laptop. Success! |
great! |
@higgers you're using a Worcester-Bosch Greenstar 550CDi correct? Can you tell me the Product ID and version of this. Also did you get Tx to work and if so which tx_mode are you using? |
Hi,
I received an interface board and Wemos Mini from bbqkees today so I immediately set about building the project and flashing it to the Wemos.
I'm using Visual Studio Code v1.31.1 on Windows 10 and installed the PlatformIO extension v1.60. I cloned the latest version of EMS-ESP (v1.5.2), copied the example platformio file to platformio.ini and changed the upload port in the [env:d1_mini] section to COM3. COM3 is listed in device manager; under the Ports section there's a device called "USB-SERIAL CH340 (COM3)".
The output of the build task is:
The output of the upload task is:
At this point the blue LED on the Wemos was not lit up. I pressed the reset button on the side of the Wemos after which the blue LED starts flashing, approximately 4 times a second. However, there is no EMS-ESP AP to be found by a wifi scan. Next, I tried to connect to COM3 via putty. Putty connects but then prints a string of garbage in the putty window.
At this point I'm a bit stuck. I've tried building and flashing on my laptop and my workstation (both Windwos 10), I've tried two different USB cables. I've tried flashing the firmware manually using esptool.py, the flashing process worked but the result was the same, no AP and garbage in the putty window.
The only thing I've not been able to test is using a different Wemos though hopefully two new ones will arrive in the post tomorrow.
Can anyone suggest anything else I can try?
The text was updated successfully, but these errors were encountered: