This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problems with USB tethering
#2
I've been researching this problem. Looking at wifi_server.py, I see these lines

Code:
data += 'allow-hotplug usb0\n'
data += 'iface usb0 inet static\n'
data += 'address 192.168.42.100\n'
data += 'netmask 255.255.255.0\n'
The other interfaces, like eth, are set with "iface eth0 inet dhcp".

Is there a reason why the usb interface is declared as static?

Okay, this fixed it for me. In wifi_server.py

change:
data += 'allow-hotplug usb0\n'
data += 'iface usb0 inet static\n'
data += 'address 192.168.42.100\n'
data += 'netmask 255.255.255.0\n'

to:
data += 'allow-hotplug usb0\n'
data += 'iface usb0 inet dhcp\n'
#data += 'iface usb0 inet static\n'
#data += 'address 192.168.42.100\n'
#data += 'netmask 255.255.255.0\n'
data += 'dns-nameservers 8.8.8.8 8.8.4.4\n'

Then reboot. You'll have to set your phone to USB tethering in order for the Openplotter AP page to recognize it as a valid internet interface.
Reply


Messages In This Thread
Problems with USB tethering - by abarrow - 2018-01-05, 07:11 PM
RE: Problems with USB tethering - by abarrow - 2018-01-07, 11:04 PM
RE: Problems with USB tethering - by e-sailing - 2018-01-08, 11:20 PM
RE: Problems with USB tethering - by abarrow - 2018-01-09, 12:09 AM
[SOLVED] Problems with USB tethering - by abarrow - 2018-02-08, 04:30 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)