Open skyladle opened 6 years ago
We use HTTP FOTA to help the gateway to get new firmware from MQTT message. Not working yet.
Option 1: You can try to get the latest library from https://github.com/nhatuan84/esp32-http-fota Wiki: https://github.com/IoTThinks/EasyLoraGateway/wiki/Compile-Easy-LoRa-Gateway#1-install-third-party-library
Option 2: You can simply remove it in line 55 as we are not using it yet. https://github.com/IoTThinks/EasyLoraGateway/blob/master/EasyLoraGateway/EasyLoraGateway.h
Option 3: You can ignore those warnings now if you can still compile it. We will fix it later.
Thanks a lot.
Hi IoTthink hardware : https://www.aliexpress.com/item/1-Pcs-TTGO-LORA32-V2-0-433-868Mhz-ESP32-LoRa-OLED-0-96-Inch-Blue-Display/32847499968.html?
but there is a core 1 panic while run the easyloragateway. something I do wrong? please advise,thanks
console information:
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 188777542, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:956
load:0x40078000,len:0
load:0x40078000,len:13076
entry 0x40078a58
Guru Meditation Error: Core 1 panic'ed (IllegalInstruction)
. Exception was unhandled.
Register dump:
Guru Meditation Error: Core 1 panic'ed (Guru Meditation Error: Core 1 panic'ed (Double exception)
Register dump:
PC : 0x400803c0 PS : 0x00050036 A0 : 0x00040025 A1 : 0x4000001c
A2 : 0x3ff48da0 A3 : 0x00000000 A4 : 0x400870c1 A5 : 0x3ff48db0
A6 : 0x00000021 A7 : 0x0000000f A8 : 0x00000000 A9 : 0x4008149c
A10 : 0x00000022 A11 : 0x0000000f A12 : 0x00000000 A13 : 0x00000000
A14 : 0x00000023 A15 : 0x00000010 SAR : 0x00000010 EXCCAUSE: 0x00000002
EXCVADDR: 0x40000010 LBEG : 0x4000c2e0 LEND : 0x4000c2f6 LCOUNT : 0x00000000
Backtrace: 0x400803c0:0x4000001c
We official support this board. You may want to order the board at info@cloudfermi.com https://github.com/IoTThinks/EasyLoraGateway/wiki/Hardware-guide-for-Easy-Lora-Gateway#11-cloudfermi-som-esp32-3-lora-sx1278-433mhz---recommended
For Heltec board, we haven't tested the source code yet. We might start to support Heltec/TTGO board next week. Stay tuned.
Mostly likely is the PIN mapping difference. You can check the PIN mapping in https://github.com/IoTThinks/EasyLoraGateway/blob/master/EasyLoraGateway/EasyLoraGateway.h
And change it to your board.
If you comment the setupLoRa() method and the problem goes away, then the issue may be with the LoRa library from Sandeep Mistry. You can try to install his LoRa lib version 0.3.0 instead.
BTW, the pin mapping issue for Heltec/TTGO is not supported yet.
One of our own board seems to hit similar issue below.
Hi Iotthink,
comment the setupLoRa and install Sandeep Mistry 0.3.0 , the panic is still there
i aslo copy below TTGO pin mapping to easyloragateway.h
waiting for good news of support on TTGO. hardware suppose not far to cloudfermi.
keep look into how come the panic there on TTGO.
Hi, We will try to test the source code in Heltec (similar to TTGO) over the weekend. It should be related to the PIn or WIFi/ETH difference.
We expect to have something for you early next week. Stay tuned.
hi all, hereinafter a compiler warning while I compile EasyLoraGateway , is it ok ? how to fix and clean the warning.
C:\Users\Myfamily\Documents\Arduino\libraries\HttpFOTA\src\HttpFOTA.cpp: In member function 'int HttpFOTA::start(DlInfo&)':
C:\Users\Myfamily\Documents\Arduino\libraries\HttpFOTA\src\HttpFOTA.cpp:65:90: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] info.errorCallback("Flashing chunk not full ... warning!"); ^
C:\Users\Myfamily\Documents\Arduino\libraries\HttpFOTA\src\HttpFOTA.cpp:70:70: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
C:\Users\Myfamily\Documents\Arduino\libraries\HttpFOTA\src\HttpFOTA.cpp:83:59: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
C:\Users\Myfamily\Documents\Arduino\libraries\HttpFOTA\src\HttpFOTA.cpp:88:51: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
C:\Users\Myfamily\Documents\Arduino\libraries\HttpFOTA\src\HttpFOTA.cpp:95:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
C:\Users\Myfamily\Documents\Arduino\libraries\HttpFOTA\src\HttpFOTA.cpp:99:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
C:\Users\Myfamily\Documents\Arduino\libraries\HttpFOTA\src\HttpFOTA.cpp:103:59: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]