Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Connect ethwan cable - erouter0 is coming up with v4/v6
  • Remove ethwan and connect Android phone to USB port of BPi device using USB to C-type cable and enabled USB Tethering on Android phone.
  • Once USB Tethering in enabled below lines are observed on serial console.
    root@Filogic-GW:~# [  370.758874] usb 1-1.4: new high-speed USB device number 4 using xhci-mtk
    [  370.946456] cdc_acm 1-1.4:1.1: ttyACM0: USB ACM device
    [  382.185096] usb 1-1.4: USB disconnect, device number 4
    [  382.748876] usb 1-1.4: new high-speed USB device number 5 using xhci-mtk
    [  382.949809] rndis_host 1-1.4:1.0 usb0: register 'rndis_host' at usb-11200000.usb-1.4, RNDIS device, 02:26:0a:15:62:0c
    [  385.990274] cellularmanager[10486]: Cannot find device "wwan0"
  • usb0 interface comes UP. 
    root@Filogic-GW:~# ifconfig usb0
    usb0      Link encap:Ethernet  HWaddr 02:26:0A:15:62:0C  
              inet6 addr: fe80::26:aff:fe15:620c/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:7 errors:0 dropped:0 overruns:0 frame:0
              TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:668 (668.0 B)  TX bytes:1464 (1.4 KiB)
  • Reboot device to start dhcp on new selected interface
    root@Filogic-GW:~# ifconfig usb0
    usb0      Link encap:Ethernet  HWaddr 02:26:0A:15:62:0C  
              inet addr:192.168.113.181  Bcast:192.168.113.255  Mask:255.255.255.0
              inet6 addr: fe80::26:aff:fe15:620c/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:44 errors:0 dropped:0 overruns:0 frame:0
              TX packets:70 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:14906 (14.5 KiB)  TX bytes:19903 (19.4 KiB)

Basic info with RNDIS set up

Code Block
root@Filogic-GW:~# ifconfig usb0

...


usb0      Link encap:Ethernet  HWaddr 02:26:0A:15:62:0C  

...


          inet addr:192.168.113.181  Bcast:192.168.113.255  Mask:255.255.255.0

...


          inet6 addr: fe80::26:aff:fe15:620c/64 Scope:Link

...


          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

...


          RX packets:419 errors:0 dropped:0 overruns:0 frame:0

...


          TX packets:600 errors:0 dropped:0 overruns:0 carrier:0

...


          collisions:0 txqueuelen:1000 

...


          RX bytes:189632 (185.1 KiB)  TX bytes:162761 (158.9 KiB)

...



root@Filogic-GW:~# 

...


root@Filogic-GW:~# 

...


root@Filogic-GW:~# ifconfig erouter0

...


erouter0  Link encap:Ethernet  HWaddr 02:01:00:7B:5E:88  

...


          UP BROADCAST MULTICAST  MTU:1500  Metric:1

...


          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

...


          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

...


          collisions:0 txqueuelen:1000 

...


          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

...



root@Filogic-GW:~# 

...


root@Filogic-GW:~# 

...


root@Filogic-GW:~# ping www.google.com

...


PING www.google.com (142.250.66.4): 56 data bytes

...


64 bytes from 142.250.66.4: seq=0 ttl=114 time=28.445 ms

...


64 bytes from 142.250.66.4: seq=1 ttl=114 time=37.527 ms

...


64 bytes from 142.250.66.4: seq=2 ttl=114 time=36.626 ms

...


64 bytes from 142.250.66.4: seq=3 ttl=114 time=42.642 ms

...


64 bytes from 142.250.66.4: seq=4 ttl=114 time=20.625 ms

...


64 bytes from 142.250.66.4: seq=5 ttl=114 time=56.432 ms

...


64 bytes from 142.250.66.4: seq=6 ttl=114 time=34.281 ms

...


^C

...


--- www.google.com ping statistics ---

...


7 packets transmitted, 7 packets received, 0% packet loss

...


round-trip min/avg/max/mdev = 20.625/36.654/56.432/10.404 ms



Switch over form RNDIS Mode to Ethernet Mode

...