Author Message

<  Device Information  ~  huawei E398 / Telekom Speedstick LTE /Vodafone K5005

PostPosted: Thu Aug 18, 2011 7:12 pm
Site AdminPosts: 4839Joined: Sat Nov 03, 2007 12:30 am
Maybe you are lucky ...

See if this helps:
viewtopic.php?p=4995#4995


Offline Profile
PostPosted: Thu Aug 18, 2011 9:01 pm
Posts: 64Joined: Sun Jul 17, 2011 12:08 pm
Josh wrote:
Maybe you are lucky ...

See if this helps:
viewtopic.php?p=4995#4995



zte and huawei... are different.

"COMMAND NOT SUPPORT"

I have to be more carefully using rarely at-commands. Recently I "destroyed" my modem with wrong at+cfun values, and the modem did not work, under windows too.

Also an old driver-package from huawei (self extracting(twice!) shit, but wants to be run as root) disturbs the whole system. (deprecated udev-rules)

New mobile-modems (zte, huawei ...) and linux, that is not very funny sometimes.

Regards,

Thomas


Offline Profile
PostPosted: Fri Sep 09, 2011 12:26 pm
Posts: 3Joined: Thu Feb 24, 2011 5:09 pm
Huawei has a linux library (libNDIS.so) and a header file to implement 3rd party connect utilities. This library I was able to obtain but it is confidential.

From all that I am aware of the NDIS variant is to be used for speed >17/18MBit. The usbserial/option approach does have its limit there (at least from my experiences with testplants that use HSPA (dual channel) and LTE yet. I do not know about the ipv6 stuff yet.

I have implemented a small utility to connect with NDIS and it works well. It seems that the library mentioned does use Qualcomm QMI protocol to communicate with the device. I am able to set user/pass/apn and PAP/CHAP/NONE. Connection works and the new ethernet device eth2 (I named it ndis in my persistent network rules) uses dhcp to get an IP address. After setting proper routing (or default route over eth2) the connection is established and working.

My goal is to develop my own connection utility not using the libNDIS.so from huwaei. Therefore I must sniff and understand the QMI traffic, can anybody help? (Josh?)

Thanks


Offline Profile ICQ
PostPosted: Wed Dec 21, 2011 11:06 am
Posts: 3Joined: Thu Feb 24, 2011 5:09 pm
Hello All,

we were using the Gobi 2000/3000 sources and adapted them to work with the E398. NDIS connection/dsiconnection works.

The procedure to connect:

a) the driver/udev creates an ethernet device along with 3 usb device nodes (ifconfig -a)
b) start_data_session with apn, user, pass (using qmi protocol)
c) fire up dhclient (or similar) to obtain an IP address, the gateway, default route etc.

Thats it.


Offline Profile ICQ
PostPosted: Wed Dec 21, 2011 9:33 pm
Posts: 64Joined: Sun Jul 17, 2011 12:08 pm
olga2323 wrote:
Hello All,

The procedure to connect:

a) the driver/udev creates an ethernet device along with 3 usb device nodes (ifconfig -a)
b) start_data_session with apn, user, pass (using qmi protocol)
c) fire up dhclient (or similar) to obtain an IP address, the gateway, default route etc.

Thats it.


That sounds good and a little bit to nice to be true. Have you published your code?
Are there special dependencies? Do you know if SLAAC(ipv6-autoconfiguration) would also work, the right apn provided?

Regards,
Thomas Schäfer


PS: There some good news from kernel developers:
http://www.spinics.net/lists/linux-usb/msg55323.html


Last edited by thomasschaefer on Mon Jan 02, 2012 10:39 pm, edited 1 time in total.

Offline Profile
PostPosted: Mon Dec 26, 2011 6:28 pm
Posts: 1Joined: Mon Dec 26, 2011 6:21 pm
as i know this mobile dongle is the latest and fastest one by huawei, i'm in using and HUAWEI E160 for my family through the Netgear router, following the networks update, HUAWEI E160 cant be experience the speeds, i gonna to buy this HUAWEI E398 to replace the E160, but i dont know whether it is works for my router, any one has been use or know the result? many info. should be appreciated.


Offline Profile
PostPosted: Fri Feb 24, 2012 11:35 pm
Posts: 64Joined: Sun Jul 17, 2011 12:08 pm
In the kernel "linux-next" (around 20120220)

the modules cdc_wdm and qmi_wwan support the Huawei E398 in "ethernet-mode".

Instead of at-commands qmi-commands are needed.

The author of the driver has also written as small perl script for that:

http://www.spinics.net/lists/linux-usb/msg58092.html


you get in three steps online:

usb_modeswitch -v 12d1 -p 1505 -M "55534243123456780000000000000011062000000100000000000000000000"

export IFACE=wwan0
export PHASE=pre-up
export IF_WWAN_APN=*your.apn*
export VERBOSITY=true
./qmi-ifupdown

dhcpcd wwan0

For IPv4 it works so far.

Regards,
Thomas


PS: The new driver also works with a lot of different other surfsticks based on the qualcomm-chips.
I can confirm the function for the ZTE K3565-Z


Last edited by thomasschaefer on Sun Apr 01, 2012 11:17 pm, edited 1 time in total.

Offline Profile
PostPosted: Sat Feb 25, 2012 1:07 am
Site AdminPosts: 4839Joined: Sat Nov 03, 2007 12:30 am
Thanks for the confirmation.

I am following the proceedings of the driver creation with interest (via the "linux-usb" mailing list).

It may take a while until the whole thing (including a user-space helper for the QMI protocol) will be ready for the mainstream distributions. Right now it's real cutting edge hacking ...



Offline Profile
PostPosted: Fri Jul 06, 2012 4:19 am
Posts: 1Joined: Fri Jul 06, 2012 4:16 am

Offline Profile
PostPosted: Fri Jul 06, 2012 8:19 am
Posts: 64Joined: Sun Jul 17, 2011 12:08 pm
old_man wrote:


Access restricted


It is the updated qmi.zip (Qualcomm MSM Interface (QMI) Architecture Documents)

Thanks for the hint.



qualcomm could be little bit more open, also to unregistered developers/users.

Regards,
Thomas


Offline Profile
PostPosted: Sun Jul 08, 2012 9:28 pm
Site AdminPosts: 4839Joined: Sat Nov 03, 2007 12:30 am
Take care - when registering, you are consenting to a very strict non-disclosure agreement ...


Offline Profile
PostPosted: Tue Jul 10, 2012 11:37 am
Posts: 142Location: Oslo, NorwayJoined: Thu Mar 15, 2012 10:47 pm
Josh wrote:
Take care - when registering, you are consenting to a very strict non-disclosure agreement ...


I fully agree that you should be careful wrt what you agree to, and what the received documentation can be used for.

The TOU in this case is available from http://www.qualcomm.com/site/terms-of-use I cannot see any NDA restrictions there? Where exactly did you see those?

What I can see, and which might be important to many users, is the restriction that the documents can only be used for personal, non-commercial use. That's important to keep in mind.


Offline Profile
PostPosted: Tue Jul 10, 2012 11:22 pm
Site AdminPosts: 4839Joined: Sat Nov 03, 2007 12:30 am
These "Terms of Use" are different from what you have to confirm before downloading the QMI lib and doc.

Here is the other one ...


Offline Profile
PostPosted: Wed Jul 11, 2012 10:27 am
Posts: 142Location: Oslo, NorwayJoined: Thu Mar 15, 2012 10:47 pm
Josh wrote:
These "Terms of Use" are different from what you have to confirm before downloading the QMI lib and doc.


Thanks. Yes, those restrictions are a lot more limiting.

I find the whole thing strange, given that they provide the Gobi Linux SDK under an extremely permissive 3-clause BSD license on https://www.codeaurora.org/patches/quic/gobi/

But I'll probably never understand big company licensing decisions....


Offline Profile
PostPosted: Sun Aug 26, 2012 11:02 pm
Posts: 4Joined: Fri Aug 24, 2012 4:20 am
thomasschaefer wrote:
In the kernel "linux-next" (around 20120220)

the modules cdc_wdm and qmi_wwan support the Huawei E398 in "ethernet-mode".

Instead of at-commands qmi-commands are needed.

The author of the driver has also written as small perl script for that:

http://www.spinics.net/lists/linux-usb/msg58092.html


you get in three steps online:

usb_modeswitch -v 12d1 -p 1505 -M "55534243123456780000000000000011062000000100000000000000000000"

export IFACE=wwan0
export PHASE=pre-up
export IF_WWAN_APN=*your.apn*
export VERBOSITY=true
./qmi-ifupdown

dhcpcd wwan0

For IPv4 it works so far.

Regards,
Thomas


PS: The new driver also works with a lot of different other surfsticks based on the qualcomm-chips.
I can confirm the function for the ZTE K3565-Z


I get this error when I'm using the script.

Code:
root@ubuntu-router:/etc/network/if-pre-up.d# ./qmi                                               
wwan0: will use /dev/cdc-wdm0 for management
Can't locate object method "autoflush" via package "IO::File" at ./qmi line 467.


Offline Profile

Display posts from previous:  Sort by:

All times are UTC + 1 hour [ DST ]
Page 2 of 4
59 posts
Go to page Previous  1, 2, 3, 4  Next
Users browsing this forum: No registered users and 4 guests
Search for:
Post new topic  Reply to topic
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