WIFI issues with my turtlebot3 burger [closed]
Hello!
I have a turtlebot 3 burger with a raspberry pi 4 model B on it. Please note that I use the ubuntu image for raspberry pi 4 4GB with ROS noetic given in the turtlebot documentation (https://emanual.robotis.com/docs/en/pla ... #sbc-setup).
To give you the context of my project, I have two turtlebot3 burger and I want to connect them on a same specific and reserved network. With this configuration the master ROS node on my remote computer can get the information of the 2 robots and so apply a group regulation. I bought a WiFi router (https://www.conrad.de/de/p/netgear-ac12 ... wE%3AG%3As) to create a reserved and portable network for my turtlebots. I did that to have a portable network and to be able to define static IP addresses for my robots and my computer so I will not have to change the ROS configuration every time. I setted up the router (just define the ip address range to 192.168.0.X/24 and the ssid/password) and try to connect the raspberry pi but it didn't work.
There is no problem to connect my computer and my phone on the router, but it doesn't work with the raspberry, and there is no problem to connect the raspberry on my phone AP and on my office WIFI. My first idea was that i didn't set up properly the router (for the raspberry because every others computers connect without troubles) so i tried to check everything but nothing changed.
I finally found a trick, if I activate my phone AP and the router at the same time, with the same SSID and password, the raspberry connect to my phone. When its connected to my phone, I turn off the phone AP and the raspberry switch on my router network and after that everything work well (can define static ip, can ping other computers and launch ROS node). I do that every time I turn on the raspberry so I want to find a true solution to this problem.
Do you have any idea or do you need more info ?
As stated above, I use a specific image given by the turtlebot documentation (look like the server version,only a terminal, and raspi-config is not available). So to connect to a Wifi network, i have to go in etc/netplan and write the SSiD/password in the 50-cloud-init.yaml file before to reboot. It works well to connect on my phone AP and my office WIFI but i prefer to precise it because it might be the problem.
Thank you very much for any help provided !
Edit: I may be understood something. When turned on the Turtlebot try to connect to internet to set the date/time so it don't connect to my router because there is no internet but to my phone AP. I don't always have internet access with my phone AP but when I ...
you can set the time and date using the
sudo timedatectl <command>
can you add the
50-cloud-init.yaml
in your question? You can remove the password. But your password in the file should be inside this :" "
You might also need to dosudo netplan generate
andsudo netplan apply
.Thank you for your answer!
The 50-cloud-init.yaml :
I used the two netplan command and reboot and nothing change, it always refuse to connect directly to the router, it needs the phone AP
Unfortunately, I did not had the
50-cloud-init.yaml
So I added my wifi details in the/etc/wpa_supplicant/wpa_supplicant.conf
It looks like this, You can also try with this method.
Could this be the issue?
As for how to fix this. Simply said, this isn't a ROS problem. I get why you posted it here, don't get me wrong. However, your actual question is "I want to connect a Raspberry PI running Ubuntu 20.04 server to my router". It might be easier to simply google "raspberry pi ubuntu 20.04 server connect to wifi" and find a tutorial to follow. As I said, I get why you posted it here, but googling it as a problem that's separated from ROS might give you a better answer.
Unfortunately, I tried to add
/etc/wpa_supplicant/wpa_supplicant.conf
file but it didn't change anything and I also tried to create the/etc/cloud/cloud.cfg.d/99-disable-network-config.cfg
file and it didn't works too.In fact Joe, I first posted this question on the raspberry forum and didn't find answer. But I will follow your advice and try on ubuntu forum too. I followed differents tutorials but didn't change anything, it works but only if i use my phone AP as a relay to my router
I asked on this forum : French Ubuntu Forum: My topic Sorry it's in French but just follow the step of this link (in english):
hello, did you managed to solve this problem? mind share it with me?
I did all below, it still didn't work for me.
highly appreciated if someone could help me urgent!
Hello,
I managed to connect my Tb3 to the network by changing the region but it seems that you already tried so I don't know the solution ...
Which OS did you install ?