Trouble Shooting UI Hang (Cloud Dashboard?)

How can we check to see if a hang is the cloud or the devices. I woke up my bot and the UI is hung. Worked with same set up yesterday so assuming that this is a cloud issue. Is there a cloud status dashboard that I can check? Sample of Hang in Pic

Realizing when I reflashed some changes may have broken my code as I received the below when I went to reflash:

Build console.

Building…
using stable distribution

Not searching for unused variables given on the command line.
– The ASM compiler identification is GNU
– Found assembler: /usr/bin/arm-none-eabi-gcc
– Configuring done
– Generating done
– Build files have been written to: build_dir
Scanning dependencies of target main.elf
[100%] Building CXX object CMakeFiles/main.elf.dir/main.cpp.o
main.cpp: In function ‘void status_task()’:
main.cpp:61:80: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘int32_t {aka long int}’ [-Wformat=]
platform.ui.console(“cl1”).printf("\r\nhMot1 enc = %d", hMot1.getEncoderCnt());
^
main.cpp:62:80: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘int32_t {aka long int}’ [-Wformat=]
platform.ui.console(“cl1”).printf("\r\nhMot2 enc = %d", hMot2.getEncoderCnt());
^
main.cpp: In function ‘void cfgHandler()’:
main.cpp:73:60: warning: ‘hCloudClient::Resource::Resource(hCloudClient::Resource::Type, const char*)’ is deprecated (declared at /home/worker/hFramework/include/hCloudClient/hCloudClient.h:198) [-Wdeprecated-declarations]
platform.ui.loadHtml({Resource::WEBIDE, “/web_ui/ui.html”});
^
main.cpp:73:60: warning: ‘void hCloudClient::PlatformUi::loadHtml(hCloudClient::Resource)’ is deprecated (declared at /home/worker/hFramework/include/hCloudClient/hCloudClient.h:441) [-Wdeprecated-declarations]
main.cpp:69:7: warning: variable ‘l1’ set but not used [-Wunused-but-set-variable]
auto l1 = platform.ui.label(“l1”);
^
main.cpp:70:7: warning: variable ‘g1’ set but not used [-Wunused-but-set-variable]
auto g1 = platform.ui.button(“g1”);
^
main.cpp:71:7: warning: variable ‘g2’ set but not used [-Wunused-but-set-variable]
auto g2 = platform.ui.button(“g2”);
^
main.cpp:72:7: warning: variable ‘g3’ set but not used [-Wunused-but-set-variable]
auto g3 = platform.ui.button(“g3”);
^
main.cpp: In function ‘void onKeyEvent(hCloudClient::KeyEventType, hCloudClient::KeyCode)’:
main.cpp:79:93: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
platform.ui.console(“cl1”).printf("\r\nKE: t:%d, c:%d [%dms]", type, code, sys.getRefTime());
^
main.cpp: In function ‘void onButtonEvent(hCloudClient::hId, hCloudClient::ButtonEventType)’:
main.cpp:98:97: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
platform.ui.console(“cl1”).printf("\r\nBE: t:%d, i:%s [%dms]", type, id.str(), sys.getRefTime());
^
Linking CXX executable main.elf
[100%] Built target main.elf
Scanning dependencies of target main.hex
[100%] Built target main.hex

Build successful. (download HEX ELF)
Programming: error: (invalid bin file)emphasized text

Hi Matt, please let me know what Internet connection status LEDs indicate: https://husarion.com/core2/manuals/hardware/#hardware-status-leds ?

There is no cloud status dashboard right now, but we are going to add this in the near future.

The lights show “Connected” with solid blue on LR2. I re flashed and received a bunch of messages that look like this:

main.cpp: In function ‘void onButtonEvent(hCloudClient::hId, hCloudClient::ButtonEventType)’:
main.cpp:98:97: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
platform.ui.console(“cl1”).printf("\r\nBE: t:%d, i:%s [%dms]", type, id.str(), sys.getRefTime());

Since nothing changed in my code from yesterday I am a little puzzled.

Matt

Matt, now everything should work fine. Please check, and let me know.

1 Like

Perfect - Works now! Thanks for the quick fix. Matt

1 Like