Automatic Activation, Hotplug and UDEV, Configuration
Post Reply
thomasschaefer
Posts: 114
Joined: 17 Jul 2011, 12:08

modem/ppp-mode versus cdc_ether/ndis-mode(huawei) linux

Post by thomasschaefer » 23 Aug 2011, 21:44

Hi,

Has somebody experience with cdc_ether/ndis-mode under Linux, with 3G/4G-datacards, precise huawei E398?

The HUAWEI UMTS Datacard Modem AT Command Interface Specification_V2.3.pdfhas no example. (only some small explanation to ^dialmode)

The driver hw_cdc_driver.c (module hw_cdc_driver )Version "v2.07.00.00" from December 2010 is supplied as src (GPL). It also compiles but I found no hints to the right use.

Of course I could wait until a new "mobile partner"-software is available.
But I would like to know how it works in simple words and steps, not with sophisticated graphical user interfaces hiding the interesting parts. A small script should be enough.

Regards,
Thomas Schäfer

wzab
Posts: 3
Joined: 17 Sep 2011, 15:47

I've got NDIS mode working in e173-u2 in Debian/Linux

Post by wzab » 17 Sep 2011, 15:52

More details are available here: http://groups.google.com/group/comp.os. ... 6c06587d80
There is also a thread in jdtech.pl describing all the way to the solution (however it is in Polish): http://jdtech.pl/2011/09/aero2-zmiany-n ... t193291386
--
Regards, WZab

thomasschaefer
Posts: 114
Joined: 17 Jul 2011, 12:08

Re: I've got NDIS mode working in e173-u2 in Debian/Linux

Post by thomasschaefer » 18 Sep 2011, 00:29

Thank you for the hint.

AT^NDISDUP=1,1,"my_apn_name"

sets the modem online. (LED)

In my case unfortunately nothing more happens.

But now I have new keywords for further searches.

Regards,
Thomas

wzab
Posts: 3
Joined: 17 Sep 2011, 15:47

Post by wzab » 19 Sep 2011, 21:45

Which version of kernel do you use?
If the version is 2.6.39 or above, you should
have the ethernet device wwan0, and you should
be able to configure it via e.g. "dhclient wwan0"
(however there are problems with the destination
address of incoming packets, which I have mentioned
in the referenced post.

thomasschaefer
Posts: 114
Joined: 17 Jul 2011, 12:08

ndis-driver

Post by thomasschaefer » 19 Sep 2011, 22:35

wzab wrote:Which version of kernel do you use?
2.6.34.10-0.2-desktop with huawei-driver DRIVER_VERSION "v2.07.00.00"

At systems with higher kernel versions I was not able to compile.
The problem-code-line was this:

Code: Select all

#include <linux/usb/ncm.h>
wzab wrote:If the version is 2.6.39 or above, you should...
Do you have a newer version of the driver, compatible also with kernel 3.x?


Franko Fang has answered: " For newer kernel, we are developing for it now, and will release the compatible driver some time later." ( 2011-09-08 )

Regards,
Thomas Schäfer

wzab
Posts: 3
Joined: 17 Sep 2011, 15:47

Post by wzab » 20 Sep 2011, 00:14

Do you have a newer version of the driver, compatible also with kernel 3.x?
I use the standard cdc_ether driver, and kernel 3.0.1 or 3.0.3
Starting from 2.6.39 it supports huawei modems.
However my modem is e173, not e398, and this may be a difference...
--
Regards,
WZab

Post Reply