modem manager anydata adu 635

Bug #569685 reported by mateusz
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
modemmanager (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: modemmanager

modem with version 0.3-0ubuntu2 modemmanager only detects the CDMA modem and the version 0.2.git.20091014t233208.16f3e00-0ubuntu1 is detected both CDMA and HDSPA sorry for my English, I used Google Translation

Tags: patch
Revision history for this message
mateusz (mateusz-drzewiecki) wrote :

both models show lsusb Bus 002 Device 006: ID 16d5:6202 AnyDATA Corporation
Bus 002 Device 005: ID 16d5:6502 AnyDATA Corporation

Revision history for this message
morii (piotr-bliszczyk) wrote :

NetworkManager in 9.10 detects two modems:
-cdma: I couldn't connect
-hsdpa: i could connect without any problems

In 10.04 NetworkManager shows only one modem:
-cdma: still couldn't connect
and thats all.....

Some guys ( http://forum.ubuntu.pl/showthread.php?t=115428) found innitial data that should be send to /dev/ttyUSB2 to initialize CDMA modem(blue diode should fire).
echo -ne "\xD7\x03\x00\xAE\xEF\x7E" > /dev/ttyUSBx
echo -ne "\xCF\x0D\x00\x00\x81\x8A\x7E" > /dev/ttyUSBx

Revision history for this message
Hiroshi Miura (miurahr) wrote :

I use ID 16d5:6202 AnyDATA in Japan with NTT HSDPA network.

There need simple patch to use it with Ubuntu 9.10, that ignore its status, because it returns always MM_MODEM_GSM_NETWORK_REG_STATUS_IDLE

In modemmanager-0.2/src/mm-generic-gsm.c:857:
    case MM_MODEM_GSM_NETWORK_REG_STATUS_IDLE:
        mm_callback_info_schedule (info);
        mm_generic_gsm_pending_registration_stop (self);
        status_done = TRUE;
// info->error = mm_mobile_error_for_code (MM_MOBILE_ERROR_NO_NETWORK);
        break;

There are a plugin for anydata cdma that was included in modemmanager-0.3 which is in Ubuntu 10.04.
It rejects any HSDPA modems(correctly not-cdma modems). It causes Anydata GSM/HSDPA modem are not recognized.

There may be some solutions such that
1. make plugin to support anydata gsm/hsdpa modem
2. fix cdma plugin to handle HSDPA modem gracely.

You can see 'modemmanager-0.3/plugins/mm-modem-anydata-cdma.[ch]

Now I try to enable this modem in my environment, but there is no success yet.

We can use this modem with legacy, old command line 'pon' and /etc/ppp/peers and /etc/chatscripts/ confiburation.

Revision history for this message
Hiroshi Miura (miurahr) wrote :

I said in previous comment as 'It rejects any HSDPA modems(correctly not-cdma modems). It causes Anydata GSM/HSDPA modem are not recognized.'
It is implemented in plugins/mm-modem-anydata.c:
---------------
tatic guint32
get_level_for_capabilities (guint32 capabilities)
{
    /* Only CDMA and QCDM for now */
    if (capabilities & CAP_CDMA)
        return 10;
    if (capabilities & MM_PLUGIN_BASE_PORT_CAP_QCDM)
        return 10;

    return 0;
}
---------------
We can modify it to accept HSDPA modem.

Revision history for this message
Hiroshi Miura (miurahr) wrote :

I made a patch to solve this situation.
A patch is to add mm-modem-anydata-gsm.[ch] that hadles anydata hsdpa modems.
It works well on my NTT A2502 which is OEM of Anydata Inc's adu 635.

It would be good start point.

Known limitations:
  NTT A2502 don't support AT+CREG?: it returns always 0: IDLE.
  To escape A2502 limitation, this plugin is just ignoring registration.
  It may affect other device: original Anydata ADU635 and KT's OEM.

TODO:
  escape registration process only when device is NTT's OEM.
    by seeing 'ATI*' output.

Revision history for this message
Hiroshi Miura (miurahr) wrote :

My previous patch is against modemmanager-0.3 which is distributed for Ubuntu 10.04.

There is a modifications on top of git repository, for upstream, which you can pull from git://github.com/miurahr/ModemMaanger.git
you can see it at http://github.com/miurahr/ModemManager

pls see a2502 branch.

Revision history for this message
morii (piotr-bliszczyk) wrote :

Can I test Your patch? And how? I know how to use git, but I don't know what to do with patch file..... :(

Revision history for this message
Hiroshi Miura (miurahr) wrote :

You can try my PPA package distribution for Ubuntu 10.04
https://launchpad.net/~miurahr/+archive/anydata-modem

Changed in modemmanager (Ubuntu):
assignee: nobody → Modem Manager Team (modemmanager)
assignee: Modem Manager Team (modemmanager) → nobody
Revision history for this message
Hiroshi Miura (miurahr) wrote :

I posted a bug report on upstream bug tracker, too.
https://bugzilla.gnome.org/show_bug.cgi?id=622576

I discussed with Dan Williams, a maintainer.
He asked me about AT+GCREG.

Can you try follows on ADU 635?
I have an OEM of ADU 635, NTT A2502.
It may not have same behavior than ADU 635.

Try connect with 'seyon'
'$ seyon -modems /dev/ttyUSB0'
and then type on the serial terminal
'AT+GCREG?' and 'AT+CREG?'

tags: added: patch
Revision history for this message
Michael Immer (immi) wrote : Re: [Bug 569685] Re: modem manager anydata adu 635

Hello Brian,

thank you for your answer and I excuse my delayed response.

It seems if I understand it well this patch fixes detection of GSM
part. My problem is that I'm not able to make CDMA running with
networkmanager even if it is detected. With chatscripts it works all
fine (cdma&hsdpa), but it drives me crazy because then
networkmanager is not aware of existing connection which affects
other things like firefox is in offline.

Regards,

Michael

> ------------ Původní zpráva ------------
> Od: Brian Murray <email address hidden>
> P�edm�t: [Bug 569685] Re: modem manager anydata adu 635
> Datum: 17.11.2010 19:11:53
> ---------------------------------------------
> ** Tags added: patch

--
modem manager anydata adu 635
/>https://bugs.launchpad.net/bugs/569685
You received this bug > notification because you are a direct
subscriber
of the bug.

/>Status in �odemmanager�ackage in Ubuntu: New

Bug > description:
Binary package hint: modemmanager

modem with > version 0.3-0ubuntu2 modemmanager only detects the CDMA
modem and the version > 0.2.git.20091014t233208.16f3e00-0ubuntu1 is
detected both CDMA and HDSPA sorry > for my English, I used Google
Translation

To unsubscribe from this > bug, go to:
/>https://bugs.launchpad.net/ubuntu/+source/modemmanager/+bug/569685
/+subscribe
/> >

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.