Wireless connection to Pixhawk - Niklas Fehringer #5


 Starting point


As a necessary step to implement path planning, we needed a Wi-Fi connection from topside to the companion computer. A very good starting point is provided through the following Link:


wireless configuration for companion


Although this explanation is very useful, it assumes an existing setup of 192.168.2.1 for the surface/topside computer. We used a different router which reserved this address for itself independently of it’s configuration. If that guide works for you, stick with it. If not, you might want to try the one provided on this blog entry.


Useful commands for debugging and monitoring


The following commands and addresses were used for configuration/monitoring/debugging throughout the Wi-Fi configuration. It’s not necessary for the configuration but likely a good reference in case things go wrong:


My debugging/network monitoring setup:

- 3 powershell/cmd windows with:

ping 192.168.2.2 (connection to companion)

ping google.com (connection to internet)

tracert google.com (way to internet --> shows where it may break)


- Web-browser tab with 192.168.2.2:2770/network
                                                                (shows if companion has internet connection,          assuming topside has internet)

- Web-browser tab with 192.168.2.2:8088
                                                                 (command line of companion to use
                                                                  ping 192.168.2.4
                                                                  traceroute google.com)

Companion default login: username: pi, password: companion


Steps to implement Wi-Fi


For the following steps, you will need a router which will be connected by Ethernet to your companion computer. (Therefore you may not use your home router)


- Go to your routers configuration page and login. (If you don’t know how to login, search your routers default login in the web)

- Find the configuration of “DHCP-lease”. 

- Change it to use 192.168.2.3 as first address (router) with the subnet 255.255.255.0

- You likely will be disconnected from the router. Use the new router address to access the configuration page again.

- You may need to add the companions mac address with the ip 192.168.2.2, but we will ignore this step for now. You might try it, if this explanation don’t work out.

- connect the companion to the router per Ethernet

- on the topside, go to network adapter settings and change the ipv4 address to:

address:     192.168.2.4

subnet:     255.255.255.0

gateway: 192.168.2.3



Your topside computer should now be connected wirelessly to the companion. 

Comments

Popular posts from this blog

How to: Tello drone to micro bit - Victor Alikberov, Blog#1

First USV Test - Jack Pender, Blog #5

OpenCV To RoboRealm - Jack Pender, Blog #7