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)
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?