Re: Huawei E398 cdc/serialmodem-ppp 3G/4G

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

 



Dan Williams <dcbw@xxxxxxxxxx> writes:

> Try setting the data format then to make sure it's in 802.3 mode.  See
> the CTL/Set Data Format command:
>
> 26 00 09 00 01 01 00 00 10 02 00 01 00
>
> Cmd: 0x0026  (SET_DATA_FORMAT)
> Size: 0x0009
>
> TLV: 0x01 (Format)
> Size: 0x0001
> Data: 0x00  (0 = no QoS Header, 1 = include QoS header)
>
> TLV: 0x10 (Protocol)
> Size: 0x0002
> Data[0]: 0x01 (1 = 802.3, 2 = raw IP mode)
> Data[1]: 0x00


OK, tried changing it while the connection was up.  That had no effect.
Note how I get a SUCCESS reply with Protocol == 1 even though I asked
for Protocol == 2:


read 21 bytes

QMUX Header:
  len:    0x0014
  sender: 0x00 (client)
  svc:    0x00 (ctl)
  cid:    0x00 

QMI Header:
  Flags:  0x00 (request)
  TXN:    0x000d
  Cmd:    0x0026 (SET_DATA_FORMAT)
  Size:   0x0009

  TLV:    0x01 (CTL/Set Data Format Request/Format)
  Size:   0x0001
  Data:   00

  TLV:    0x10 (CTL/Set Data Format Request/Protocol)
  Size:   0x0002
  Data:   02 00


read 24 bytes

QMUX Header:
  len:    0x0017
  sender: 0x80 (service)
  svc:    0x00 (ctl)
  cid:    0x00 

QMI Header:
  Flags:  0x02 (response)
  TXN:    0x000d
  Cmd:    0x0026 (SET_DATA_FORMAT)
  Size:   0x000c

  TLV:    0x02 (CTL/Set Data Format Response/Result Code)
  Size:   0x0004
  Status: 0 (SUCCESS)
  Error:  0

  TLV:    0x10 (CTL/Set Data Format Response/Protocol)
  Size:   0x0002
  Data:   01 00


Changing it while offline worked:

read 21 bytes

QMUX Header:
  len:    0x0014
  sender: 0x00 (client)
  svc:    0x00 (ctl)
  cid:    0x00 

QMI Header:
  Flags:  0x00 (request)
  TXN:    0x000d
  Cmd:    0x0026 (SET_DATA_FORMAT)
  Size:   0x0009

  TLV:    0x01 (CTL/Set Data Format Request/Format)
  Size:   0x0001
  Data:   00

  TLV:    0x10 (CTL/Set Data Format Request/Protocol)
  Size:   0x0002
  Data:   02 00


read 24 bytes

QMUX Header:
  len:    0x0017
  sender: 0x80 (service)
  svc:    0x00 (ctl)
  cid:    0x00 

QMI Header:
  Flags:  0x02 (response)
  TXN:    0x000d
  Cmd:    0x0026 (SET_DATA_FORMAT)
  Size:   0x000c

  TLV:    0x02 (CTL/Set Data Format Response/Result Code)
  Size:   0x0004
  Status: 0 (SUCCESS)
  Error:  0

  TLV:    0x10 (CTL/Set Data Format Response/Protocol)
  Size:   0x0002
  Data:   02 00


However, I was unable to verify the mode.  Can connect, but cannot see
any data.  And now I cannot get anything through at all even after
switching back.  Oh well...  That's for experimenting.  Don't think this
command is ready for inclusion anywhere yet.  We need to understand it
better first.  From your docs it seems obvious, but there are some finer
details here.


Bjørn
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux