Closed Muhammadchughtai closed 1 year ago
Please provide the following information:
OS: (Ubuntu 22.04) ROS Distro: (humble) Built from source or installed: Source Package version: (if from repository, give version from sudo dpkg -s ros-$ROS_VERSION-turtlebot4-PACKAGE_WITH_ISSUE, if from source, give commit hash) Expected behaviour RPi4 to connect as shown in tutorials
Actual behaviour Not connecting with home (office) wifi at all. Despite using 5Ghz.
Add anything else you thing is important. Tried all tutorials and online instructions.
Hello, thanks for reaching out. Unfortunately I need more information to try and help.
build the ROS2 package as per instructions from the following tutorial https://turtlebot.github.io/turtlebot4-user-manual/setup/basic.html & https://docs.ros.org/en/humble/Installation/Ubuntu-Install-Debians.html
It is a brand new robot and we are trying to connect it to the wifi for the first time.
Turtlebot 4 Standard.
We followed this tutorial https://turtlebot.github.io/turtlebot4-user-manual/setup/basic.html and the official getting started video and it works until we need to connect the raspberry pi to the network. SSH into the Pi works just fine.
Two things happen depending on the method used:
if we follow the video and do "sudo wifi.sh ...." - the command prompt freezes after some time and the Pi doesn't reboot or if it does reboot, the IP address shown on the robot's screen stays the same (10.42.0.1). Turtlebot4 wifi is still on.
if we follow the GitHub tutorial with "turtlebot4-setup" it changes the IP address to Unknown and the turtlebot4 wifi disappears.
In both results, when we check the devices connected to the chosen network, the Pi doesn't appear.
We also tried ssh into it with the Ethernet cable but it wouldn't help setting up the wifi. We also flashed a new SD card as per the instructions in the troubleshooting guide but we still get stuck connecting the Pi to the network.
Thank you for sharing those details. Have you tried doing a full reboot after setting those credentials?
These results sound consistent with incorrect wifi credentials, have you verified these credentials with another device to ensure they work? Additionally, these instructions for connecting to wifi are for wifi systems with basic password authentication. Does your wifi use more advanced authentication? (requiring a username and password or certificate?).
Yes, we have tried connecting with these credentials using other devices. We tried rebooting several times. Our wifi does not require any advance or second authentication.
We have also tried:
Hello, Is there any ways you are looking forward to help?
Hi Muhammad,
Please ssh into the robot and verify the contents of /etc/netplan/50-wifis.yaml to ensure that it matches the intended SSID and password. If everything there looks good to you then please share the contents of that file other than the password.
Also, ensure that you do not have a file /etc/netplan/50-cloud-init.yaml
Please note that with the Humble Turtlebot4 packages, only the turtlebot4-setup tool should be used to update the wifi connection. The other script you mentioned is for the galactic packages. Using both tools may have caused conflicting netplan files.
This issue is being closed due to inactivity. If you are still experiencing the issue, feel free to reopen this ticket when you are ready to continue the troubleshooting process.
Thank you for sharing those details. Have you tried doing a full reboot after setting those credentials?
These results sound consistent with incorrect wifi credentials, have you verified these credentials with another device to ensure they work? Additionally, these instructions for connecting to wifi are for wifi systems with basic password authentication. Does your wifi use more advanced authentication? (requiring a username and password or certificate?).
@hilary-luo what if the wifi has more advanced authentication? what should we do in this case
@judyakl If the wifi has more advanced authentication then you need to use discovery server to route all communication through the raspberry pi and then you will need to modify the netplan files manually to connect the raspberry pi for that given authentication method. You should be able to find documentation online about netplan and/or connect with your IT group for specific instructions on how to configure devices.
Please provide the following information:
Package version: (if from repository, give version from
sudo dpkg -s ros-$ROS_VERSION-turtlebot4-PACKAGE_WITH_ISSUE
, if from source, give commit hash)Expected behaviour A clear and concise description of what you expected to happen.
Actual behaviour A clear and concise description of what you encountered.
To Reproduce Provide the steps to reproduce:
Other notes Add anything else you thing is important.