Haier CE81B is not detected on 12.04

Bug #1057834 reported by Airlangga Cahya Utama
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
ModemManager
Fix Released
Medium
modemmanager (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

I have reported this bug under https://bugzilla.gnome.org/show_bug.cgi?id=685011
However, I'm not sure to report only to gnome people.
I hope this problem will be fixed on upcoming 12.10.

Problem:
Modem Haier CE81B EVDO is not working.
ModemManager failed to scan the right TTYUSB.

Solution:
1. Add udev blacklist for modem manager rule (attached)
2. Type command: sudo modprobe usbserial vendor=0x201e product=0x10f8

Revision history for this message
Airlangga Cahya Utama (airlangga.cahya) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in modemmanager (Ubuntu):
status: New → Confirmed
Changed in modemmanager:
importance: Unknown → Medium
status: Unknown → New
Changed in modemmanager:
status: New → Incomplete
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Awaiting upstream fix...

Changed in modemmanager (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → Medium
Revision history for this message
gandhi (ghemoex) wrote :

Has it been fixed yet? I've had this issue for three months now, maybe this modem would only be fully function on its own dashboard of which there's no linux version for this modem to date.
The workaround works great and thank you for the added udev rule, normally with just 'sudo modprobe usbserial vendor=0x201e product=0x10f8' on console and connect it through Network-Manager, problem's solved.

Changed in modemmanager:
status: Incomplete → New
Revision history for this message
In , Aleksander Morgado (aleksander-m) wrote :

Originally reported at:
  https://bugzilla.gnome.org/show_bug.cgi?id=685011
Please refer to the original bug report if more details are needed.

The Haier CE81B CDMA modem (VID 0x201e, PID 0x10f8) exposes several TTYs, but only one of them can be used for data connections. If other interface is used, the modem will report a successful connection, but pppd won't be able to setup the IP session:

  NetworkManager[3242]: <info> Activation (ttyUSB2) Stage 4 of 5 (IPv4 Configure Timeout) started...
  NetworkManager[3242]: <info> (ttyUSB2): device state change: ip-config -> failed (reason 'ip-config-unavailable') [70 120 5]
  NetworkManager[3242]: <warn> Activation (ttyUSB2) failed.
  NetworkManager[3242]: <info> Activation (ttyUSB2) Stage 4 of 5 (IPv4 Configure Timeout) complete.
  NetworkManager[3242]: <info> (ttyUSB2): device state change: failed -> disconnected (reason 'none') [120 30 0]

The original reporter made it work by blacklisting if#0 to if#2, while leaving if#3 as the only TTY allowed to be used by ModemManager:

  # Haier CE81B
  ATTRS{idProduct}=="10f8", ENV{.MM_USBIFNUM}=="02", ENV{ID_MM_CANDIDATE}="0"
  ATTRS{idProduct}=="10f8", ENV{.MM_USBIFNUM}=="01", ENV{ID_MM_CANDIDATE}="0"
  ATTRS{idProduct}=="10f8", ENV{.MM_USBIFNUM}=="00", ENV{ID_MM_CANDIDATE}="0"

The contents of the mounted CD drive are also available:
http://www.mediafire.com/download/l39t0qk2kad9l02/setup_package.tar

The suggested fix is to prepare a new "haier" plugin that flags #if3 as 'data'.

Revision history for this message
In , Aleksander Morgado (aleksander-m) wrote :

Created attachment 107829
Patch.

This new plugin just creates a generic broadband modem but tags #if3 as being the primary+data port, so that it takes predenced over any other tty grabbed.

Revision history for this message
In , Aleksander Morgado (aleksander-m) wrote :

Dan; you requested the mounted CD contents as well to the reporter, is there anything else from there that can be included in the plugin?

Revision history for this message
In , Dcbw-y (dcbw-y) wrote :

INF files say:

%VENDORMDM% = Modem2, USB\VID_201E&PID_10F8&MI_03
%VENDORDIAG% = QportInstall00, USB\VID_201E&PID_10F8&MI_00
%VENDORAT% = QportInstall00, USB\VID_201E&PID_10F8&MI_02
%VENDORNMEA% = QportInstall00, USB\VID_201E&PID_10F8&MI_01

so yeah #3 should be primary + data like you say.

Changed in modemmanager:
status: New → Unknown
Revision history for this message
In , Dcbw-y (dcbw-y) wrote :

Trawling through the connection manager, we get some interesting stuff. BM == BROADMOBI I thnk.

AT+BMSPN?
+BMSPN:
AT+CIMI
%02X
AT^SYSINFO
^SYSINFO:
%i,%i,%i,%i,%i,%i,%i
AT+COPS=?
+COPS:
AT+COPS=
no network service
AT+BMMODPREF
+BMMODPREF:
AT+BMMODPREF=%d
AT+CSQ
AT^HDRCSQ
^HDRCSQ:
AT+CREG?
+CREG:
+CREG: %d,%d
AT+CGREG?
+BMMODPREF:
at+bmbtt
+BMBTT:
AT+BMCGMR=%s
+BMSWVER:
AT+BMSWVER
AT+CIMI
AT+BMDEVMEID
+BMDEVMEID:
AT+CGMM
AT+BMCGMR
+BMCGMR:
AT+CGDCONT=1,"IP","%s"
-%d dBm
not known or not detectable
AT+BMDEVESN
+BMDEVESN:
AT+BMUIMID
+BMUIMID:
AT+BMEUIMID
+BMEUIMID:
AT+CPIN?
RUIM
AT^PREFMODE?
^PREFMODE:
AT+CSQ
AT^HDRCSQ
^HDRCSQ:
AT+BMREST
AT+BMRFINFO
00000000
(A)(dB)
(N)(dB)
255.00
 dBm

Messaging seems to be done with the proprietary Qualcomm messaging commands like AT$QCPMS, AT$QCNMI, AT$QCMGD, AT$QCMGR, AT$QCMGL, but we also have AT+BMCGMR.

There might be some PIN operation support too with the regular 3GPP PIN commands.

So if the modem works fine with regular CDMA commands and DIAG then great, otherwise if somebody cares enough some other support could be added later.

Revision history for this message
In , Dcbw-y (dcbw-y) wrote :

Send a kernel patch to add the device IDs to option too.

Changed in modemmanager:
importance: Medium → Unknown
Revision history for this message
In , Aleksander Morgado (aleksander-m) wrote :

(In reply to Dan Williams from comment #5)
> Send a kernel patch to add the device IDs to option too.

For reference, this is the patch in the option driver:
http://permalink.gmane.org/gmane.linux.usb.general/116296

Changed in modemmanager:
importance: Unknown → Medium
status: Unknown → In Progress
Revision history for this message
In , Dcbw-y (dcbw-y) wrote :

aleksander/haier-plugin looks good to me.

Revision history for this message
In , Aleksander Morgado (aleksander-m) wrote :

(In reply to Dan Williams from comment #7)
> aleksander/haier-plugin looks good to me.

I tried to ping the original reporter to see if he can test the patch; it's pretty much very low risk I would say anyway, so if we don't get tests back I'll just merge it.

Revision history for this message
In , Airlangga Cahya Utama (airlangga.cahya) wrote : Re: [Bug 1057834]

On Oct 17, 2014 9:01 PM, "Aleksander Morgado" <email address hidden>
wrote:
>
> (In reply to Dan Williams from comment #7)
> > aleksander/haier-plugin looks good to me.
>
> I tried to ping the original reporter to see if he can test the patch;
> it's pretty much very low risk I would say anyway, so if we don't get
> tests back I'll just merge it.
>

Hello Aleksander,

Thank you for your patch.
I'm a bit busy atm. I'll try to look out for fedora source build this
weekend.

When is the merge window?

Revision history for this message
In , Airlangga Cahya Utama (airlangga.cahya) wrote :

Hello Aleksander,

Thank you for your patch.
I'm a bit busy atm.
I'll try to look out for fedora source build this
weekend.

When does the merge window happen?

Revision history for this message
In , Aleksander Morgado (aleksander-m) wrote :

(In reply to Airlangga Cahya Utama from comment #9)
> Hello Aleksander,
>
> Thank you for your patch.
> I'm a bit busy atm.
> I'll try to look out for fedora source build this
> weekend.
>
> When does the merge window happen?

There's no merge window; as soon as you test it, if it works OK, I'll merge :)

Revision history for this message
In , Lars Melin (larsm17) wrote :

Created attachment 108963
detailed interface description

Revision history for this message
In , Aleksander Morgado (aleksander-m) wrote :

Merged branch to git master.

Changed in modemmanager:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.