Husarion cloud: device is offline

Once I have been able to upload to ROS2.
Trying another upload fails, because the device is offline.
What is the easiest way to set the device online, sothat I can upload another program.
Thanks,
Fred

Hi Fred, what can you see on connection status LEDs https://husarion.com/core2/manuals/core2/#hardware-status-leds ? Cloud works fine, so you shouldn’t have any problems. Maybe try to connect your CORE2 once more to the cloud using hConfig app?

Hi Dominik2,
The DHCP log says:
ip=192.168.2.16 mac=B8-27-EB-B2-9B-4E name=core2-ros

With SSH I am able to connect to the RPI3.

The blue is blinking right now, since my last upload was the blinking template program

I have done what you have suggested, doing with the hconfig app
Device becomes online, but I am stuck when trying to upload.
Here is the log:
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 cfgHandler()’:
main.cpp:6:50: 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::URL, “/ui.html”});
^
main.cpp:6:50: warning: ‘void hCloudClient::PlatformUi::loadHtml(hCloudClient::Resource)’ is deprecated (declared at /home/worker/hFramework/include/hCloudClient/hCloudClient.h:441) [-Wdeprecated-declarations]
main.cpp: In function ‘void cloudTask()’:
main.cpp:74:44: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
lb1.setText(“uptime %u”, 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)

Hi Dominik2,
The invalid bin file problem disappears after I have updated the RPI3 (apt-get update and apt-get upgrade).
Now every program is uploaded without problem: success at the end.

I have compiled and uploaded the Led-template, but nothing happens on the CORE2. The LED1…LED3 are off and unchanged.

When I try to reach the device from the CLOUD , the display stucks on connecting to server and it doesnot proceed to connecting to device

Advise me what to do next, thanks

Hi Fred,

I just tested “2. LED blink (CORE2)” template, and everything works fine (we UI too). My configuration is CORE2-ROS with RaspberryPi3 . Could you check once more?

Compilation of my project fred2blink is ok ,
see log:
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 onButtonEvent(hCloudClient::hId, hCloudClient::ButtonEventType)’:
main.cpp:35:14: warning: variable ‘b’ set but not used [-Wunused-but-set-variable]
auto b = platform.ui.button(“btn1”);
^
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: success

However the CORE2 status has not been changed at all.
The Blue Led is steady on.
Cloud says :
Connecting to server… marked with green
Connecting to device…waiting forever
Loading user interface.waiting forever

What else can I do?

Please share your robot to HusarionSupport account and we will find out what is going on:

(e-mail address of HusarionSupport is contact@husarion.com)

Here is the link:
https://cloud.husarion.com/bot_link/DnVfs8FJhhwCBMY9LBBtrj/

Fred, you gave me access only to the web UI of your robot (sharing through link). Please share me this robot through e-mail (contact@husarion.com), and I will be able to check more.

We just updated your system on CORE2-ROS. Please reboot your board, and try once more.

I have rebooted my robot, (power off, power on)
Then compiled and upladed the program fred2blink
Problem still persists!!!

Loading servet, waiting for device etc same as before

Hi Dominik2,
Are you still busy with my device looking into the problem?
Please inform me if you have the solution.
I will leave the device powered on and online until 18:00
Best, Fred

The problem that I have right was preceeded by “invalid bin file”
Now while everything seems to be ok, compiling and uploading succesfully,
the Core2, which is online, the leds status remain unchanged.te
Cloud displays: connecting to server ok, there after connecting to device stucks.

I do not know what else to do.
On the offline side I also fail with the latest version of Visual Studio Code + Husarion extension.
I did follow the tube tutorial but I got errors.

Pls help…

Hi Fred, please share us a robot once more (conctact@husarion.com) and make it online. We need to have access to this to find out what is going on. Thanks!

I have flashed another micro SD and started from scratch.
It still fails ro connect to device, after succesfully compilation and upload

Hi Dominik
Email has been sent to you.
Best,
Fred

I have lost assigned device “Tank3Core2Ros”
The CORE2-blue led is flashing
Do i have to reboot my device and to make a new assignment(adding device)?
Are you still busy with my device?
I will wait for your response before taking any steps

We have access to the device. We are still debugging the problem - it turned out be more challenging than expected. If possible, please don’t disconnect it yet.

It appears we have lost access now. Could you reboot the device (unplug and plug) without re-registering it?