ros2arduino esp32 serial communication
Hi Firstly I try work this communication repo https://github.com/ROBOTIS-GIT/ros2arduino/. I am trying serial communication with esp32 however it is not publishing any thing at serial motinor.
I checked it from Serial Monitor I saw nothing was shared. after the first reset just a few lines of characters appear to be shared
If you have different repo or pack to communicate with esp32 can you share me?
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:8896
load:0x40080400,len:5828
entry 0x400806ac
~␀␀␘␀�␀␀␀␀␁␐␀XRCE␁␀␁␏���݁␀�␇��~␀␀␘␀�␀␀␀␀␁␐␀XRCE␁␀␁␏���݁␀�␇��~␀␀␘␀�␀␀␀␀␁␐␀XRCE␁␀␁␏���݁␀�␇��~␀␀␘␀�␀␀␀␀␁␐␀XRCE␁␀␁␏���݁␀�␇��~␀␀␘␀�␀␀␀␀␁␐␀XRCE␁␀␁␏���݁␀�␇��~␀␀␘␀�␀␀␀␀␁␐␀XRCE␁␀␁␏���݁␀�␇��~␀␀␘␀�␀␀␀�X�␀␀XXa␀��~␀�␀␀␀␇��~␀␀␘␀�␀␀␀␀␁␐␀XRCE␁␀␁␏���݁␀�␇��~␀␀␘␀�␀␀␀␀␁␐␀XRCE␁␀␁␏���݁␀�␇��~␀␀␘␀�␀␀␀␀␁␐␀XRCE␁␀␁␏���݁␀�␇��da�␀␀ce></␀pk␀t␀v::x␇�␌���:_
␁␅␀␂␀␀
Asked by bekirbostanci on 2021-01-24 11:33:37 UTC
Answers
Your ESP32 board is trying to communicate with the micro-ROS agent via serial port. These binary traces you are seeing are the "init session" message of the micro-ROS underlying middleware, have you tried to open a micro-ROS agent that listen in the this serial port?
ros2 run micro_ros_agent micro_ros_agent serial --dev [device]
Check out tutorials for more details and do not hesitate to open an issue if you find more problems.
Asked by Pablogs on 2021-01-25 01:20:59 UTC
Comments
Thank you for answer. I downloaded this micro-xrce-dds-agent and I tried plugged esp32 and than run
ieu@ieu-ABRA-A5-V15-8:~/Desktop/Micro-XRCE-DDS-Agent/build$ ./MicroXRCEAgent serial --dev /dev/ttyUSB0 -b 115200
Press CTRL+C to exit
[1611559812.209639] info | TermiosAgentLinux.cpp | init | running... | fd: 3
this line and than I pressed reset button of esp32.
ieu@ieu-ABRA-A5-V15-8:~/Desktop/Micro-XRCE-DDS-Agent/build$ ./MicroXRCEAgent serial --dev /dev/ttyUSB0 -b 115200
Press CTRL+C to exit
[1611559909.050763] info | TermiosAgentLinux.cpp | init | running... | fd: 3
[1611559930.608405] info | Root.cpp | create_client | create | client_key: 0xAABBCCDD, session_id: 0x81
[1611559930.608436] info | SessionManager.hpp | establish_session | session established | client_key: 0x2864434397, address: 0
[1611559930.613271] inf
Asked by bekirbostanci on 2021-01-25 02:33:00 UTC
./MicroXRCEAgent serial --dev /dev/ttyUSB0 -b 115200
ros2 run micro_ros_agent micro_ros_agent serial --dev [device]
are these same or different
Asked by bekirbostanci on 2021-01-25 02:33:51 UTC
Try to use the flag -v6 to get a verbose output and show me what does it say
Asked by Pablogs on 2021-01-25 04:19:44 UTC
I added and pressed restart button but it is not showing any thing
ieu@ieu-ABRA-A5-V15-8:~/Desktop/Micro-XRCE-DDS-Agent/build$ ./MicroXRCEAgent serial --dev /dev/ttyUSB0 -b 115200 -v6
Press CTRL+C to exit
[1611571144.557174] info | TermiosAgentLinux.cpp | init | running... | fd: 3
[1611571144.557344] info | Root.cpp | set_verbose_level | logger setup | verbose_level: 6
Asked by bekirbostanci on 2021-01-25 05:40:23 UTC
Can you open an issue in our micro_ros_setup github repo?
Asked by Pablogs on 2021-01-25 05:46:26 UTC
of course I will open an issue
Asked by bekirbostanci on 2021-01-25 05:49:39 UTC
Comments