UofSSpaceTeam / rover-processes

Miscellaneous software for the rover.
0 stars 2 forks source link

Connect to Wifi network from the rover #42

Closed ottopasuuna closed 6 years ago

ottopasuuna commented 6 years ago

For the Equipment servicing task we need the rover to connecte to a wifi router and access the diagnostic system. According to the rules, CSTAG will provide an online example for the diagnostic system before hand.

For connecting to the router, I'm thinking just a wifi dongle on the raspberry pi should do the trick (not much room for much else).

Update

Connecting is simple enough, just need to test signal reception from inside the electrical tray.

ottopasuuna commented 6 years ago

Getting this to work was a tad anoying on a RPi compared to most linux machines.

  1. Edit /etc/NetworkManager/NetworkManager.conf and change managed=false to managed=true.
  2. Edit /etc/dhcpcd.conf and add denyinterfaces wlan0 (and/or wlan1) to the bottom.
  3. systemctl restart dhcpcd and systemctl restart NetworkManager

Should be able to then use nmcli and nmtui to create connections.

ottopasuuna commented 6 years ago

Just tested this on the rover, and it works great with the raspberry pi 3's built in wifi, can connect to a router on the other side of the room from inside the electrical enclosure.