Re: MC 7304 ipv4v6





On November 27, 2015 10:35:26 PM CET, "Thomas Schäfer" <tschaefer t-online de> wrote:
Bjørn Mork <bjorn mork no> writes:


Works for me(tm).  Only tested on an E392 for now:


nemi:/tmp# ifconfig wwan1
wwan1     Link encap:Ethernet  HWaddr 92:b9:2a:c0:4f:96
          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)
nemi:/tmp# cat /sys/class/net/wwan1/qmi/raw_ip
N
nemi:/tmp# echo 1 >/sys/class/net/wwan1/qmi/raw_ip
nemi:/tmp# ifconfig wwan1
wwan1     Link encap:UNSPEC  HWaddr
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 POINTOPOINT NOARP
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)

nemi:/tmp# cat /sys/class/net/wwan1/qmi/raw_ip
Y

bjorn nemi:~$ qmicli -d /dev/cdc-wdm1 
--device-open-net='net-raw-ip|net-no-qos-header'
--wds-start-network=apn=telenor --wds-follow-network 
[/dev/cdc-wdm1] Network started
        Packet data handle: '34967784'

Ctrl+C will stop the network
[/dev/cdc-wdm1] Connection status: 'connected'


Did you leave this terminal and opened a second one?

A second one. 


bjorn nemi:~$ qmicli -d /dev/cdc-wdm1  --client-cid=1
--client-no-release-cid --wds-get-current-settings [/dev/cdc-wdm1]
Current
settings retrieved:
           IP Family: IPv4
        IPv4 address: 46.157.38.113
    IPv4 subnet mask: 255.255.255.252
IPv4 gateway address: 46.157.38.114
    IPv4 primary DNS: 193.213.112.4
  IPv4 secondary DNS: 130.67.15.198
                 MTU: 1500
             Domains: none
[/dev/cdc-wdm1] Client ID not released:
        Service: 'wds'
            CID: '1'

qmicli  -d /dev/cdc-wdm0
--device-open-net="net-raw-ip|net-no-qos-header" --
wds-start-network=apn=internet.t-mobile --wds-follow-network
[/dev/cdc-wdm0] Network started
       Packet data handle: '38972872'

Ctrl+C will stop the network
[/dev/cdc-wdm0] Connection status: 'connected'
[/dev/cdc-wdm0] Connection status: 'connected'
[/dev/cdc-wdm0] Connection status: 'connected'



I do not get the data:

hpmini:~ # qmicli  -d /dev/cdc-wdm0 --client-cid=1
--client-no-release-cid --
wds-get-current-settings
[27 Nov 2015, 21:38:18] -Warning ** Error reading from istream:
Resource 
temporarily unavailable
error: operation failed: Transaction timed out
[/dev/cdc-wdm0] Client ID not released:
       Service: 'wds'
           CID: '1'


I cheated and left out some details.  Like assuming that the allocated wds cid was 1. If your modem has made 
other allocations earlier, for example a previous connection attempt, then this won't hold. And you get 
results like yours.

You could continue guessing until gou hit the correct cid, or you could do it properly: allocate a wds cid 
manually, connect using this cid, then check the settings using the same cid.

For ipv4v6 you'll probably want to do this it this way since you have to juggle two cids. 


Bjørn



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]