-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to assign IP address manually? #4
Comments
Hi ken551, thank you for reporting this. That is a mistake in the Readme. You have to manually assign an IP address to your Ubuntu machine (for example: IP:192.168.0.1, subnet: 255.255.255.0), not the STM32 (the STM32 default IP address is 192.168.0.47). Can you please try that and come back to me? Best regards |
Hello, Alex. Thank you for your comment.
and nothing happened after that With
I also confiemed that
Could you let me know if there are any solutions? |
Hi ken551, Ive been on leave and will be back in the office tomorrow. I will look into this and come back to you. Could you provide a Wireshark recording? Best regards |
Hello, Alex. Thank you for your reply. As you told, I upload the wireshark recording. the stm has address 192.168.11.7, and the host PC has address 192.168.11.3. When capturing packets, first I launched the stm32 app, then I started capturing, and finally I executed the linux participant. Thank you. |
Hi ken551, I don't have access to an STM32 just yet but I spotted (at least one) problem in your setup. embeddedRTPS still uses the default IP address (192.168.0.47) as its Unicast locator during participant discovery, but the actual IP address of the STM is 192.168.11.7. Participant discovery will not work this way, as the Ubuntu machine will try to contact the STM using the wrong IP address. Can you please double check if you changed the IP address in include/rtps/config.h to 192.168.11.7?
If this is the case, could you please try to checkout the code again and use 192.168.0.1 as the IP address for the Ubuntu machine? Best regards |
Hello, Alex. As you told me, I set back the IP on the STM and the PC to the default value (192.168.0.47 and 192.168.0.1), and then it worked perfectly! However, when I checked the files before that, the IP addr was ceertainly set to 192.168.11.7 as follows: config.h (copied from config_stm.h) L35~
lwipcfg.h L23~
lwip.c L55~
I also found that the IP addr specified in Thank you. |
According to my observation, So the files that need to be modified for IP assignment are My opinion is this issue has been fixed! and could be closed :D |
Hello.
I'm very interested in this project and trying to run this example app on stm32.
I managed to build both the Linux program (on Ubuntu 18) and the stm program.
However, they didn't start communication.
I couldn't understand what I have to do with the step3 "Manually assign an IP address (and subnet mask) to the STM32."
I tried some methods ( code generation from cubeMX, DHCP with the router, etc.) but none of them worked.
Could you tell me how to set the IP address manually?
Or, would you tell me if there's some other solution?
Thank you.
The text was updated successfully, but these errors were encountered: