Activation Codes and Methods, Hardware Details, Sniffing
Post Reply
justincase
Posts: 11
Joined: Thu May 06, 2010 1:27 pm

Vodafone Huawei Model K4511

Post by justincase » Mon Apr 25, 2016 1:43 pm

Hello,

I am trying to get the Vodafone Huawei Model K4511 working under CentOS 7 x86_64 (1511).

I used SniffUSB-x86-2.0.0006 under Windows XP to then build a config file.

Here is a screenshot of SniffUSB and all the USB devices it sees for K4511(they have a VID of 12d1):
Image

I installed a filter for VID 12d1 PID 14b7 and then removed and reinserted the K4511 and this is the SniffUSB log file:
http://pastebin.com/uLEgHSkb

I then removed that filter and installed a filter for VID 12d1 PID 14cc and then removed and reinserted the K4511 and this is the SniffUSB log file:
http://pastebin.com/kkeV6zLm

I then edited this file /etc/usb_modeswitch.d/12d1:14b7 based on the information from the first SniffUSB log file:
http://pastebin.com/3JDG3Bsm


I run put in the K4511 into a USB port and this is a snippet of /var/log/messages
http://pastebin.com/LAmdFNzN


Based on a quick google search people were suggesting to reinstall the ModemManager so I reinstalled all the following packages:

Code: Select all

[root@lenovopc1 laptopuser]# rpm -qa | grep -i qmi
libqmi-1.6.0-4.el7.x86_64
libqmi-utils-1.6.0-4.el7.x86_64
libqmi-devel-1.6.0-4.el7.x86_64
[root@lenovopc1 laptopuser]# rpm -qa | grep -i modemmanager
ModemManager-1.1.0-8.git20130913.el7.x86_64
ModemManager-glib-1.1.0-8.git20130913.el7.x86_64
ModemManager-devel-1.1.0-8.git20130913.el7.x86_64
ModemManager-glib-devel-1.1.0-8.git20130913.el7.x86_64
ModemManager-vala-1.1.0-8.git20130913.el7.x86_64
[root@lenovopc1 laptopuser]# 

But still no luck getting this going. Any help would be greatly appreciated.

Josh
Site Admin
Posts: 6534
Joined: Sat Nov 03, 2007 12:30 am

Re: Vodafone Huawei Model K4511

Post by Josh » Mon Apr 25, 2016 4:33 pm

It's not really necessary to sniff Huawei modems anymore.

There are three well-known sequences which bring the modem into three respective modes.
The one you found is specific for Windows. There is annother one for Linux (as strongly suggested by Huawei engineers), and a third one which up to recently provided a 'fallback' mode with pure serial (PPP) modem ports.

Very recent modems do no longer provide any serial ports, so the result of the third sequence is somewhat of a surprise package ...

The second sequence usually leads to serial and/or ethernet ports. A very good list of modes and protocols is avaliable at the site of the fine dd-wrt project:
https://www.dd-wrt.com/wiki/index.php/3G_/_3.5G

It lists the K4511 with the protocols "serial & qmi", so you should be able to build a traditional PPP connection.

This is the standard switching sequence for Huawei on Linux:

Code: Select all

MessageContent="55534243123456780000000000000011062000000100000000000000000000"
For the possible 'fallback' mode, use this:

Code: Select all

MessageContent="55534243123456780000000000000011063000000100010000000000000000"

justincase
Posts: 11
Joined: Thu May 06, 2010 1:27 pm

Re: Vodafone Huawei Model K4511

Post by justincase » Thu Apr 28, 2016 1:45 pm

Using the switching sequence for Windows:

Code: Select all

# Vodafone (Huawei) Model K4511 (Windows)
MessageContent="55534243000000000000000000000011060000000100000000000000000000"
Does not work and gives warnings and errors such as these:
Apr 28 21:22:55 lenovopc1 ModemManager[665]: <info> Modem: state changed (unknown -> locked)
Apr 28 21:22:55 lenovopc1 ModemManager[665]: <warn> couldn't load SIM identifier: 'QMI operation failed: Cannot send message: QMI service 'dms' version '1.3' required, got version '1.2''
Apr 28 21:22:55 lenovopc1 ModemManager[665]: <warn> couldn't load IMSI: 'QMI operation failed: Cannot send message: QMI service 'dms' version '1.3' required, got version '1.2''
Apr 28 21:22:55 lenovopc1 ModemManager[665]: <warn> couldn't load list of Own Numbers: 'Couldn't get MSISDN: QMI protocol error (16): 'NotProvisioned''
Apr 28 21:22:55 lenovopc1 ModemManager[665]: <warn> couldn't load current allowed/preferred modes: 'Loading current modes is not supported by this device'
Apr 28 21:22:55 lenovopc1 ModemManager[665]: <warn> couldn't load current Bands: 'QMI operation failed: Cannot send message: QMI service 'nas' version '1.1' required, got version '1.0''
Apr 28 21:22:55 lenovopc1 NetworkManager[796]: <warn> (cdc-wdm0): cannot enable/disable modem: locked
Apr 28 21:22:55 lenovopc1 NetworkManager[796]: <info> (cdc-wdm0): new Broadband device (carrier: UNKNOWN, driver: 'option1, qmi_wwan', ifindex: 0)
Apr 28 21:22:55 lenovopc1 NetworkManager[796]: <info> (cdc-wdm0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Apr 28 21:22:55 lenovopc1 NetworkManager[796]: <info> (cdc-wdm0): modem state 'locked'
Apr 28 21:22:55 lenovopc1 NetworkManager[796]: <info> (cdc-wdm0): device state change: unavailable -> disconnected (reason 'none') [20 30 0]
Apr 28 21:22:55 lenovopc1 gnome-session: ** (gnome-shell:3135): CRITICAL **: nma_mobile_providers_database_lookup_cdma_sid: assertion 'sid > 0' failed
Apr 28 21:23:37 lenovopc1 gnome-session: (gnome-shell:3135): libnm-glib-WARNING **: Device activation failed: (32) Connection 'Vodafone Vodafone Internet' is not available on the device cdc-wdm0 at this time.



Using the switching sequence for Linux:

Code: Select all

# Vodafone (Huawei) Model K4511 (Linux)
MessageContent="55534243123456780000000000000011062000000100000000000000000000"
Also did not work and gave warnings and errors such as these:
Apr 28 21:25:58 lenovopc1 ModemManager[665]: <info> Modem: state changed (unknown -> locked)
Apr 28 21:25:58 lenovopc1 ModemManager[665]: <warn> couldn't load SIM identifier: 'QMI operation failed: Cannot send message: QMI service 'dms' version '1.3' required, got version '1.2''
Apr 28 21:25:58 lenovopc1 ModemManager[665]: <warn> couldn't load IMSI: 'QMI operation failed: Cannot send message: QMI service 'dms' version '1.3' required, got version '1.2''
Apr 28 21:25:58 lenovopc1 ModemManager[665]: <warn> couldn't load list of Own Numbers: 'Couldn't get MSISDN: QMI protocol error (16): 'NotProvisioned''
Apr 28 21:25:58 lenovopc1 ModemManager[665]: <warn> couldn't load current allowed/preferred modes: 'Loading current modes is not supported by this device'
Apr 28 21:25:58 lenovopc1 ModemManager[665]: <warn> couldn't load current Bands: 'QMI operation failed: Cannot send message: QMI service 'nas' version '1.1' required, got version '1.0''
Apr 28 21:25:58 lenovopc1 NetworkManager[796]: <warn> (cdc-wdm0): cannot enable/disable modem: locked
Apr 28 21:25:58 lenovopc1 NetworkManager[796]: <info> (cdc-wdm0): new Broadband device (carrier: UNKNOWN, driver: 'qmi_wwan, option1', ifindex: 0)
Apr 28 21:25:58 lenovopc1 NetworkManager[796]: <info> (cdc-wdm0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Apr 28 21:25:58 lenovopc1 NetworkManager[796]: <info> (cdc-wdm0): modem state 'locked'
Apr 28 21:25:58 lenovopc1 NetworkManager[796]: <info> (cdc-wdm0): device state change: unavailable -> disconnected (reason 'none') [20 30 0]
Apr 28 21:25:58 lenovopc1 gnome-session: ** (gnome-shell:3135): CRITICAL **: nma_mobile_providers_database_lookup_cdma_sid: assertion 'sid > 0' failed
Apr 28 21:26:30 lenovopc1 gnome-session: (gnome-shell:3135): libnm-glib-WARNING **: Device activation failed: (32) Connection 'Vodafone Vodafone Internet' is not available on the device cdc-wdm0 at this time.



Using the switching sequence for fallback mode:

Code: Select all

# Vodafone (Huawei) Model K4511 (Fallback)
MessageContent="55534243123456780000000000000011063000000100010000000000000000"
Works successfully thanks:
Apr 28 21:27:59 lenovopc1 ModemManager[665]: <info> Modem: state changed (unknown -> disabled)
Apr 28 21:27:59 lenovopc1 NetworkManager[796]: <info> (ttyUSB2): modem state changed, 'disabled' --> 'enabling' (reason: user preference)
Apr 28 21:27:59 lenovopc1 ModemManager[665]: <info> Modem /org/freedesktop/ModemManager1/Modem/3: state changed (disabled -> enabling)
Apr 28 21:27:59 lenovopc1 NetworkManager[796]: <info> (ttyUSB2): new Broadband device (carrier: UNKNOWN, driver: 'option1', ifindex: 0)
Apr 28 21:27:59 lenovopc1 NetworkManager[796]: <info> (ttyUSB2): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Apr 28 21:27:59 lenovopc1 ModemManager[665]: <warn> (ttyUSB2): port attributes not fully set
Apr 28 21:27:59 lenovopc1 NetworkManager[796]: <info> (ttyUSB2): modem state 'enabling'
Apr 28 21:27:59 lenovopc1 NetworkManager[796]: <info> (ttyUSB2): device state change: unavailable -> disconnected (reason 'none') [20 30 0]
Apr 28 21:27:59 lenovopc1 gnome-session: ** (gnome-shell:3135): CRITICAL **: nma_mobile_providers_database_lookup_cdma_sid: assertion 'sid > 0' failed
Apr 28 21:27:59 lenovopc1 ModemManager[665]: <info> Modem /org/freedesktop/ModemManager1/Modem/3: 3GPP Registration state changed (unknown -> registering)
Apr 28 21:27:59 lenovopc1 ModemManager[665]: <info> Modem /org/freedesktop/ModemManager1/Modem/3: 3GPP Registration state changed (registering -> home)
Apr 28 21:27:59 lenovopc1 ModemManager[665]: <info> Modem /org/freedesktop/ModemManager1/Modem/3: 3GPP location updated (MCC: '0', MNC: '0', Location area code: '126', Cell ID: '4DB2C5A')
Apr 28 21:27:59 lenovopc1 ModemManager[665]: <info> Modem /org/freedesktop/ModemManager1/Modem/3: 3GPP location updated (MCC: '505', MNC: '3', Location area code: '126', Cell ID: '4DB2C5A')
Apr 28 21:27:59 lenovopc1 ModemManager[665]: <info> Modem /org/freedesktop/ModemManager1/Modem/3: state changed (enabling -> registered)
Apr 28 21:27:59 lenovopc1 NetworkManager[796]: <info> (ttyUSB2): modem state changed, 'enabling' --> 'registered' (reason: user-requested)
Apr 28 21:27:59 lenovopc1 ModemManager[665]: <info> Modem /org/freedesktop/ModemManager1/Modem/3: signal quality updated (40)

Can you please update the included configuration file to use the fallback mode for the Vodafone (Huawei) Model K4511.

LOM
Posts: 1292
Joined: Wed Jul 11, 2012 3:14 pm
Location: Koh Samui, TH

Re: Vodafone Huawei Model K4511

Post by LOM » Thu Apr 28, 2016 6:33 pm

justincase wrote:Can you please update the included configuration file to use the fallback mode for the Vodafone (Huawei) Model K4511.
The current K4511 config file has the correct switch method, if qmi doesn't work then it should be fixed in modemmanager.
I suspect that your problems with qmi is because you are using both an outdated modemmanager and an outdated libqmi.

Josh
Site Admin
Posts: 6534
Joined: Sat Nov 03, 2007 12:30 am

Re: Vodafone Huawei Model K4511

Post by Josh » Thu Apr 28, 2016 6:36 pm

This modem usually works on Linux systems; it's not even particularly new. So I can't really change the general configuration.

See here for instance:
http://henleyregatta.blogspot.de/2011/0 ... le-on.html

justincase
Posts: 11
Joined: Thu May 06, 2010 1:27 pm

Re: Vodafone Huawei Model K4511

Post by justincase » Tue May 17, 2016 3:36 am

LOM wrote:
justincase wrote:Can you please update the included configuration file to use the fallback mode for the Vodafone (Huawei) Model K4511.
The current K4511 config file has the correct switch method, if qmi doesn't work then it should be fixed in modemmanager.
I suspect that your problems with qmi is because you are using both an outdated modemmanager and an outdated libqmi.
I just tried updating/upgrading all the qmi and modemmanager packages but they were already up to date as I am using the very latest CentOS 7 x86_64 (1511).

LOM
Posts: 1292
Joined: Wed Jul 11, 2012 3:14 pm
Location: Koh Samui, TH

Re: Vodafone Huawei Model K4511

Post by LOM » Tue May 17, 2016 5:08 am

justincase wrote:
LOM wrote:
justincase wrote:Can you please update the included configuration file to use the fallback mode for the Vodafone (Huawei) Model K4511.
The current K4511 config file has the correct switch method, if qmi doesn't work then it should be fixed in modemmanager.
I suspect that your problems with qmi is because you are using both an outdated modemmanager and an outdated libqmi.
I just tried updating/upgrading all the qmi and modemmanager packages but they were already up to date as I am using the very latest CentOS 7 x86_64 (1511).
Your log a few posts up says the opposite and that's why I said you are using outdated software.
20130913 is soon 3 years ago and very much has happened since then..
You can easily google current software versions, whatever versions CentOS offer through their update service is irrelevant, they are way behind.

bmork
Posts: 167
Joined: Thu Mar 15, 2012 10:47 pm
Location: Oslo, Norway

Re: Vodafone Huawei Model K4511

Post by bmork » Mon May 23, 2016 8:08 pm

justincase wrote:I just tried updating/upgrading all the qmi and modemmanager packages but they were already up to date as I am using the very latest CentOS 7 x86_64 (1511).
CentOS will never be "up to date" wrt packaged software versions. It is based on RHEL. The major versions of all packages are frozen months before each major release. It's a great distro for some use cases. But using recent non-server hardware is not one of them.

See https://en.wikipedia.org/wiki/Red_Hat_Enterprise_Linux for some background on the distro you are using. Notice that RHEL 7.0 was released almost 2 years ago, making all packages outdated by more than 2 years.

Yes, RHEL and CentOS are "updated". This is mainly bug fixing, security support and enabling newer server hardware. I don't think you'll see such things as a newer ModemManager or even an uptodate kernel.

Post Reply