Skip to content
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

Ask for WiFi connection #480

Open
Lynn-hh opened this issue Oct 4, 2024 · 5 comments
Open

Ask for WiFi connection #480

Lynn-hh opened this issue Oct 4, 2024 · 5 comments
Assignees
Labels
troubleshooting System not working as expected, may be user error.

Comments

@Lynn-hh
Copy link

Lynn-hh commented Oct 4, 2024

Robot Model

Turtlebot4 Lite

ROS distro

Humble

Networking Configuration

I do not know

OS

Ubuntu 22.04

Built from source or installed?

Installed

Package version

22.04

Type of issue

Networking

Expected behaviour

After the boot, the wifi can be retrieved and successfully connected to the wifi

Actual behaviour

Now I can only use the internet cable to ssh the turtlebot4.
Then I check with it, the first problem is the time error. It's still in 2023, but now is 2024.
When I use the "iwconfig" command to see the current status of the wireless card, it is not AP mode, it shows "managed". Maybe the current wireless NIC is in Managed mode
Then I disconnected the wifi connection, modified hostapd and started it. At this time, the wifi could be retrieved, but my computer could not connect to it.

Error messages

No response

To Reproduce

iwconfig wlan0
the current wireless NIC is in Managed mode
sudo nmcli device disconnect wlan0
sudo nano /etc/hostapd/hostapd.conf
sudo systemctl restart hostapd

Other notes

No response

@Lynn-hh Lynn-hh added the troubleshooting System not working as expected, may be user error. label Oct 4, 2024
@smatarCPR
Copy link

Hello @Lynn-hh ,
Thank you for reaching out on the Turtlebot 4 github. APologies for the late reply on this.

After SSH'ing into the Turtlebot. are you able to make the necessary changes in the Turtlebot Setup Utility to connect to wi-fi (https://turtlebot.github.io/turtlebot4-user-manual/setup/basic.html#connect-the-raspberry-pi-to-your-network)? To do so:

  1. Run the command turtlebot4-setup
  2. Scroll to Wi-Fi Settings and enter the W-fi settings sub menu.
  3. Change Wi-Fi Mode from [Access Point] to [Client]
  4. Enter the details of the network, SSID is the network name, the option below that should be password.
  5. Select the bandwidth of the wi-fi network: 5.0 GHz or 2.4 GHz.
  6. Scroll down and select the Save option, you should be brought back to the main menu. Scroll down and select the Apply Settings.
  7. Exit the setup utility, the Raspberry Pi should reboot with the new network settings applied.

If the above process fails would it be possible to verify the following:

  • Please provide the turtlebot logs using journalctl -b > turtlebot4_log.txt
  • Verify that the network you are connecting to does not have additional security settings such as MAC address white listing or security beyond a password.

With regards to the date and time being out of sync, once the Turtlebot connects to a network it should sync. If it does not try the instructions found here to force a sync - https://ubuntu.com/server/docs/use-timedatectl-and-timesyncd

Let me know how these recommendations work for you. Looking forward to hearing from you soon.
Best Regards,
Saif

@Lynn-hh
Copy link
Author

Lynn-hh commented Oct 16, 2024 via email

@smatarCPR
Copy link

Hello @Lynn-hh
Were you able to follow the process outlined and were you successfully able to connect to wi-fi? Looking forward to hearing from you soon.
Best Regards,
Saif

@Lynn-hh
Copy link
Author

Lynn-hh commented Nov 18, 2024 via email

@smatarCPR
Copy link

Hello Lin,
In this case I would do the following:

  1. In the /etc/netplan folder create a yaml folder with a higher priority (i.e. lower number at the start of the file name) with the details of the network.
  2. Follow the netplan documentation - https://netplan.readthedocs.io/en/stable to create the netplan yaml file for the network with a username and password
  3. Following this run the command sudo netplan apply

Let me know how this recommendation works for you. Looking forward to hearing from you soon.
Best Regards,
Saif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
troubleshooting System not working as expected, may be user error.
Projects
None yet
Development

No branches or pull requests

3 participants