Author Message

<  The PPP Widget Family for Android  ~  PPP widget 3 and a mc7455 raw ip qmi modem

PostPosted: Thu Sep 21, 2017 3:15 am Reply with quote
Posts: 7 Joined: Thu Sep 21, 2017 3:07 am
I'm trying to get my Sierra wireless mc7455 modem working on the ppp widget. It just hangs on "found 3 ports qmi".

This modem is a raw ip modem and from what I understand raw ip in QMI is only supported in kernal 4.9 and up. I've been using this modem on openwrt on a lesser kernal in mbim mode just fine.

Does PPP widget 3 support my modem?


Offline
PostPosted: Thu Sep 21, 2017 3:35 am Reply with quote
Posts: 1175 Joined: Wed Jul 11, 2012 3:14 pm Location: Koh Samui, TH
westrem wrote:

Does PPP widget 3 support my modem?


Maybe..

The MC7455 has its MBIM interface in the same config (cfg #1) as its 2 QMI interfaces and that together with QMI over MBIM support may be what makes pppwidget detect 3 QMI interfaces instead of 2.
Josh will have to add code for choosing the right QMI interface (If #8).

Interface composition for EM/MC7455:

MI_00 Sierra Wireless DM Port
MI_02 Sierra Wireless NMEA Port
MI_03 Sierra Wireless WWAN Modem
MI_08 Sierra Wireless Mobile Broadband Network Adapter (qmi_raw)
MI_10 Sierra Wireless Mobile Broadband Network Adapter (qmi_raw)
MI_12 Sierra Wireless WWAN Network Adapter (cdc_mbim)


Offline
PostPosted: Thu Sep 21, 2017 4:04 am Reply with quote
Posts: 7 Joined: Thu Sep 21, 2017 3:07 am
The exact wording is

Found 3 serial ports
Opening port type QMI
No MAC descriptor found, use made up MAC


but nothing happens. The widget just hangs on setup modem.

I tried mbim and tried to set a ppp connection but dial fails every time. I know this is an odd modem in that it only uses raw ip and in Linux, using uqmi and umbim there are many modifications that need to be made for it to work on any kernel less than 4.9


Offline
PostPosted: Thu Sep 21, 2017 4:51 am Reply with quote
Posts: 1175 Joined: Wed Jul 11, 2012 3:14 pm Location: Koh Samui, TH
westrem wrote:
The exact wording is

Found 3 serial ports
Opening port type QMI
No MAC descriptor found, use made up MAC



Better if you provide a log instead of trying to remember what result you get and don't get...

Josh wrote:
The first step is to enable logging in the PPP Widget configuration (last option at the bottom).

Then insert the modem, and after a moment touch the PPP Widget icon on the left of the widget. Open the configuration again and touch the button "USB Log" which should be active now. Post the displayed log in your reply here (text please, not a screenshot).


Offline
PostPosted: Thu Sep 21, 2017 5:07 am Reply with quote
Posts: 7 Joined: Thu Sep 21, 2017 3:07 am
Code:
    Sep 20, 2017 10:02:23 PM

Device manufacturer string: samsung
Start search for USB devices
 visible on Android OS level ...
  Check device 1199:9071, interface 2, might be a modem
 Found possible 3G USB device 1199:9071
New device on /dev/bus/usb/001/002
 Class of interface 0 is 0xFF
Looking at USB device 1199:9071 with class 255
 Device top dir: /sys/bus/usb/devices/1-1, active cfg: 1
Active configuration ID: 1
Device layout (config 1) - cl:00  sc:00  pr:00
 if:0 as:0 -  cl:ff  sc:ff  pr:ff -  bi:81  bo:01
 if:2 as:0 -  cl:ff  sc:00  pr:00 -  ir:83  bi:82  bo:02
 if:3 as:0 -  cl:ff  sc:00  pr:00 -  ir:85  bi:84  bo:03
 if:8 as:0 -  cl:ff  sc:ff  pr:ff -  ir:87  bi:86  bo:04
 The table says these values define a QMI port

Found 3 serial ports
Opening port type QMI
No MAC descriptor found, use made-up MAC
   


Offline
PostPosted: Thu Sep 21, 2017 7:21 am Reply with quote
Site Admin Posts: 6441 Joined: Sat Nov 03, 2007 12:30 am
Code:
...
 if:8 as:0 -  cl:ff  sc:ff  pr:ff -  ir:87  bi:86  bo:04
 The table says these values define a QMI port
...

It looks like PPP Widget is picking the right port. The problem may be in the set-up phase.

westrem, can you also post the "PPP Log" if it's not empty?


Some background: "The table" is a data file derived by processing the device matching code of the qmi_wwan driver in the Linux kernel:
http://elixir.free-electrons.com/linux/ ... qmi_wwan.c


Offline
PostPosted: Thu Sep 21, 2017 2:42 pm Reply with quote
Posts: 7 Joined: Thu Sep 21, 2017 3:07 am
The ppp log is empty.

If I change the usbcomp of the mc7455 modem to mbim mode I do get a ppp log and no usb log. But the ppp log fails on the dial up no matter if I try cdma or gsm dial ups.

I assume ppp widget 3 uses modem manager and cliqmi and climbim. I know while using modem manager on a Linux machine less than a 4.9 kernal that both mbim and qmi work but it will always set the QMI as a ppp connection. Mbim will work fine and at full speed.


Offline
PostPosted: Thu Sep 21, 2017 4:00 pm Reply with quote
Posts: 1175 Joined: Wed Jul 11, 2012 3:14 pm Location: Koh Samui, TH
What kind of Android device is the 7455 connected to?


Offline
PostPosted: Thu Sep 21, 2017 5:10 pm Reply with quote
Site Admin Posts: 6441 Joined: Sat Nov 03, 2007 12:30 am
westrem wrote:
I assume ppp widget 3 uses modem manager and cliqmi and climbim.

No, since there is no guarantee whatsoever for having the respective kernel drivers available on Android devices, I implemented the most important parts of the protocols myself, in Java.

My QMI code works quite well with Huawei modems, mut maybe there is some additional tweaking required to make Sierra modems talk ... Let's see if I find something by using Google.


Offline
PostPosted: Thu Sep 21, 2017 8:18 pm Reply with quote
Posts: 7 Joined: Thu Sep 21, 2017 3:07 am
LOM wrote:
What kind of Android device is the 7455 connected to?



It's a Samsung note 4. But my goal is to use it on my android box. I'm just using the note to try and see if I can get it working.


Offline
PostPosted: Thu Sep 21, 2017 8:46 pm Reply with quote
Posts: 7 Joined: Thu Sep 21, 2017 3:07 am
Josh wrote:
westrem wrote:
I assume ppp widget 3 uses modem manager and cliqmi and climbim.

No, since there is no guarantee whatsoever for having the respective kernel drivers available on Android devices, I implemented the most important parts of the protocols myself, in Java.

My QMI code works quite well with Huawei modems, mut maybe there is some additional tweaking required to make Sierra modems talk ... Let's see if I find something by using Google.



Would it be an help to show you my modified mbim.sh file to make the connection while using mbim mode on the mc7455. I just don't think 4.4 kernal supports rawip on qmi. But it does on mbim mode.


Offline
PostPosted: Fri Sep 22, 2017 7:05 am Reply with quote
Site Admin Posts: 6441 Joined: Sat Nov 03, 2007 12:30 am
westrem wrote:
I just don't think 4.4 kernal supports rawip on qmi.

Again: I don't use any kernel functions when accessing USB modems with PPP Widget. I talk to raw USB directly. Raw IP works just fine with the QMI modems I have in my collection.

Some questions: I see that the MC7455 comes as a module, not as a stick. How do you connect it to the Note 4?
Also, do you provide any external power to it when testing with the Note 4?


Offline
PostPosted: Fri Sep 22, 2017 2:31 pm Reply with quote
Posts: 7 Joined: Thu Sep 21, 2017 3:07 am
Josh wrote:
westrem wrote:
I just don't think 4.4 kernal supports rawip on qmi.

Again: I don't use any kernel functions when accessing USB modems with PPP Widget. I talk to raw USB directly. Raw IP works just fine with the QMI modems I have in my collection.

Some questions: I see that the MC7455 comes as a module, not as a stick. How do you connect it to the Note 4?
Also, do you provide any external power to it when testing with the Note 4?



Sorry, I'm not as familiar with android as I am openwrt/linux stuff.

I use a pcie wwan usb enclosure with SIM slot. I do provide power to it as well using a y cable.


Offline

Display posts from previous:  Sort by:

All times are UTC+02:00
Page 1 of 1
13 posts
Users browsing this forum: Baidu [Spider] and 1 guest
Search for:
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum