Integration of 3G Wireless Modem Detection - 4.1.2 & 4.2.1

A home for all kinds of Puppy related projects
Message
Author
User avatar
neurino
Posts: 362
Joined: Thu 15 Oct 2009, 13:08

#421 Post by neurino »

zygo wrote:neurino

Could you explain the need to edit /etc/usb_modeswitch.conf and execute the 3 commands?
I come from puppeee that had some troubles with wizard and mode switch so I bypassed and used it directly to get the dongle (correctly?) switched.
On forums and blogs I found plenty of users using usb_modeswitch directly so I did the same.

About Dial Command = ATDT I tried it along with tens others (in my last poast it was Dial Command = ATM1L3DT even not knowing what it's for... :oops: )
____________________________

The wierd thing is taht for some users, in puppeee it works...

Anyway I'm trying again in standard puppy with the wireless modem wizard to see if something changed...
_____________________

EDIT
Using standard puppy 431 and the wireless modem wizard I got pppd to work (God only knows why didn't it work last days and what I touched...)
and I can surf the net hooray!!! 8)

Now I hope I can get a way to make it work in puppeee too!

User avatar
neurino
Posts: 362
Joined: Thu 15 Oct 2009, 13:08

#422 Post by neurino »

01micko wrote:try with the default if it is 9600, I know it seems low but it works ok on my E169.
01micko
You are definitively right, I let 9600 and the results of this broadband speed test are amazin'!
Image

Coolsun9
Posts: 12
Joined: Fri 25 Dec 2009, 05:00

#423 Post by Coolsun9 »

Hi,
here is my wvdial.conf (please replaced QQQQ) working with E1550 on Puppeee. Hope this is useful for test case.

[Dialer Defaults]
Modem = /dev/ttyUSB0
Baud = 57600
Init1 =
Init2 = ATZ
Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Carrier Check = no
Dial Command = ATDT

[Dialer isp1]
Phone = *99#
Username = QQQQ
Password = QQQQ
Auto Reconnect = yes

[Dialer isp1apn]
Init5 = AT+CGDCONT=1,"IP","QQQQ"

User avatar
neurino
Posts: 362
Joined: Thu 15 Oct 2009, 13:08

#424 Post by neurino »

Coolsun9 wrote:Hi,
here is my wvdial.conf (please replaced QQQQ) working with E1550 on Puppeee. Hope this is useful for test case.
Thank you, I'll try it!

(I wonder why you get 57600 Baud while I get 9600 with the same dongle.
Anyway it's not important sinceI can surf about 3Mb/s)

User avatar
Aitch
Posts: 6518
Joined: Wed 04 Apr 2007, 15:57
Location: Chatham, Kent, UK

#425 Post by Aitch »

Hi
Following progress with interest
I have just given puppeee to a friend who's got an eeepc[701?] with an MF627 modem on Three network, Uk based, but also used in Italy
It works OK in Xandros & gives full HSDPA speed 7.2megs!
He got the shop to install & configure it and knows next to nothing about it

I'll probably end up having to do his puppeee install to USB or SD, so will have to update my reading of this thread

He, He, I've just won an E220 on ebay for peanuts, going on my IBM T30

Thanks again, Rich, & Happy New Year, everyone

Aitch :)

User avatar
smokey01
Posts: 2813
Joined: Sat 30 Dec 2006, 23:15
Location: South Australia :-(
Contact:

#426 Post by smokey01 »

rerwin have you any suggestions on how I can get a HUAWEI K3765 wireless modem to work on puppy 4.3.1.

I have tried your 3G pup-dial but unfortunately it didn't work. The modem is not recognised. I uncommented the k3760 .conf file to see if that would work, but no luck either.

It appears the problem may be in the mode switching between storage and the modem as the usb device shows up as a storage device but not as a modem. The modem is used by Vodafone in Australia.

Have you been successful getting this particular modem to work? If so, I would appreciate some advice.

Thanks

Smokey

zygo
Posts: 243
Joined: Sat 08 Apr 2006, 20:15
Location: UK

HUAWEI K3765

#427 Post by zygo »

smokey01,

There was a boxing day update bu the maker that includes your modem. Replace your current usb_modeswitch.conf from here http://www.draisberghof.de/usb_modeswitch/ . Then uncomment the relevant bit.

User avatar
smokey01
Posts: 2813
Joined: Sat 30 Dec 2006, 23:15
Location: South Australia :-(
Contact:

#428 Post by smokey01 »

Thanks zygo I will give it a try.

zygo
Posts: 243
Joined: Sat 08 Apr 2006, 20:15
Location: UK

#429 Post by zygo »

sorry wrong thread

User avatar
smokey01
Posts: 2813
Joined: Sat 30 Dec 2006, 23:15
Location: South Australia :-(
Contact:

#430 Post by smokey01 »

zygo, I updated the usb_modeswitch.conf as you suggested but it made no difference, and yes the modem was listed. I uncommented all of the lines in that section of the .conf file.

Does the /etc/usb_modem.conf file get read from the /usr/sbin/usb_modeswitch file?

If I run the /usr/sbin/usb_modeswitch file from a terminal window it still can't find a device at /dev/ttyUSB0, or any modem for that matter.

I'm sure the problem is in the modeswitching but I just can't seem to make it work.

the device /dev/ttyUSB0 is not detected no matter what I seem to try.

Do you have any other ideas as I have run out?

Thanks
Last edited by smokey01 on Tue 05 Jan 2010, 01:59, edited 1 time in total.

User avatar
smokey01
Posts: 2813
Joined: Sat 30 Dec 2006, 23:15
Location: South Australia :-(
Contact:

HUAWEI K3765

#431 Post by smokey01 »

The other thing that seems a bit wierd is the USB modem thinks it's a CD ROM as sr0.

This is the output from modeswitch:

usb_modeswitch: tool for controlling "flip flop" mode USB devices
* Version 1.0.2 (C) Josua Dietze 2009
* Works with libusb 0.1.12 and probably other versions

Reading config file: /etc/usb_modeswitch.conf
DefaultVendor= 0x12d1
DefaultProduct= 0x1520
TargetVendor= 0x12d1
TargetProduct= 0x1465
TargetClass= not set

DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
MessageEndpoint= not set
MessageContent="55534243123456780000000000000011060000000000000000000000000000"
NeedResponse=0
ResponseEndpoint= not set
Interface=0x00

InquireDevice enabled (default)
Success check disabled


Looking for target devices ...
No devices in target mode or class found
Looking for default devices ...
No default device found. Is it connected? Bye.

zygo
Posts: 243
Joined: Sat 08 Apr 2006, 20:15
Location: UK

#432 Post by zygo »

smokey01,

It's normal for these modems to say they are cd drives at first.

Start hardinfo from the menu (system I think) and look at usb devices. Plug in the modem, wait for its line to appear in the top panel and click on it. The bottom panel will tell you Vendor and Product IDs. usb_modeswitch is looking for a device with these IDs. Maybe re-commenting the modem with the right name and uncommenting the modem with the right IDs will work.

I don't know enough. You could check the usb_modeswitch forum http://www.draisberghof.de/usb_modeswitch/bb/

User avatar
smokey01
Posts: 2813
Joined: Sat 30 Dec 2006, 23:15
Location: South Australia :-(
Contact:

#433 Post by smokey01 »

Thanks zygo but I have already tried what you suggested. I am even using the new usb_modeswitch.conf file that lists my modem. For some reason it won't switch from storage to modem mode. When i get near a computer I will send rerwin my hardinfo and pmodemdiag info to see if he can solve the issue.

thanks

jfdee
Posts: 13
Joined: Sat 24 Oct 2009, 07:34

#434 Post by jfdee »

smokey01:

I too suggest that you come over to usb_modeswitch. Making modems switch is what we do.
We are interested in failures as well as in success reports.

Switching Is Us :lol:

User avatar
smokey01
Posts: 2813
Joined: Sat 30 Dec 2006, 23:15
Location: South Australia :-(
Contact:

#435 Post by smokey01 »

jfdee wrote:smokey01:

I too suggest that you come over to usb_modeswitch. Making modems switch is what we do.
We are interested in failures as well as in success reports.

Switching Is Us :lol:
jfdee, is this where you mean?
http://www.draisberghof.de/usb_modeswit ... =1337#1337

or

http://www.betavine.net/bvportal/resources/datacards

I noticed felix may have had some luck here, more to explore.
http://www.draisberghof.de/usb_modeswit ... =1418#1418

Smokey

jfdee
Posts: 13
Joined: Sat 24 Oct 2009, 07:34

#436 Post by jfdee »

smokey01 wrote:I noticed felix may have had some luck here, more to explore.
This Huawei device is known for quite a while now. It's just that some people have no trouble with switching to modem mode, and some others seem to be unlucky. It might be a problem somewhere else on their systems, though.

But in your USB_ModeSwitch output (previous post), neither the default device (CD mode) nor the target device (modem mode) was found.

Before running the manual command again, make sure you see the device ID "12d1:1520" when you run "lsusb".


User avatar
smokey01
Posts: 2813
Joined: Sat 30 Dec 2006, 23:15
Location: South Australia :-(
Contact:

#437 Post by smokey01 »

jfdee, rerwin and myself have had some luck getting the Huawei k3765 modem to work. At the moment the solution is a bit messy but we are still working on it.

I have had the modem working using GPRS connect. It now recognises the modem when using pupdial but I'm having trouble getting it to connect as it keeps reporting bad modem Init string.

Once I have an initialisation string that works I will post the full workaound although rerwin is working on a full more comprehensive fix for all of the vodafone modems.

If you know of an init string that works I would be thankful.

Thanks

Smokey

jfdee
Posts: 13
Joined: Sat 24 Oct 2009, 07:34

#438 Post by jfdee »

smokey01 wrote:If you know of an init string that works I would be thankful.
Maybe you can find the init strings in Windows (modem settings).

Or you could do it the hard way and try sniffing on the Windows driver what it does to initialize the modem ...


User avatar
smokey01
Posts: 2813
Joined: Sat 30 Dec 2006, 23:15
Location: South Australia :-(
Contact:

#439 Post by smokey01 »

I finally got the modem working with Wvdial. It was working ok with GPRS but then it stopped and I couldn't get it to work again.

What I did:

I deleted the pupsave file and created a new one.

I added the following lines to the /etc/usb_modeswitch.conf

########################################################
# Huawei K3765
#
# Contributor: Felix Schwarz

DefaultVendor= 0x12d1
DefaultProduct= 0x1520

TargetVendor= 0x12d1
TargetProduct= 0x1465

MessageContent="55534243123456780000000000000011060000000000000000000000000000"

########################################################

Then in a terminal window I typed:

modprobe option
echo "0x12d1 0x1465" > /sys/bus/usb-serial/drivers/option1/new_id
usb_modeswitch

I then ran Wvdial, probed and the modem was found.
The APN for vodafone in Australia is VFPREPAYMBB.
The Dial number is *99***1#
I selected stupid mode and unchecked wait for a dial tone.
I then pressed connect and it did.

My results:

--> WvDial: Internet dialer version 1.53
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Sending: AT+CGDCONT=1,"IP","VFPREPAYMBB"
AT+CGDCONT=1,"IP","VFPREPAYMBB"
OK
--> Modem initialized.
--> Sending: ATX1DT*99***1#
--> Waiting for carrier.
ATX1DT*99***1#
CONNECT 7200000
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Tue Jan 12 08:01:46 2010
--> pid of pppd: 16817

rerwin is working on a better solution but for now this works for me.

Good luck

Smokey

jfdee
Posts: 13
Joined: Sat 24 Oct 2009, 07:34

#440 Post by jfdee »

Actually, it does not matter if you do the "modprobe" and "echo" part before or after the call to "usb_modeswitch".

And as I said several posts above, the newer versions of "usb_modeswitch" do the driver binding automatically - they check if the switch succeeded and issue the "echo" line to the target device (unless it's a cdc_acm or a hso type).
They come ready with udev rules and are still rather small.

I suggest to rerwin to consider using it in Puppy. It saves quite a bit of work, and usually the result is a working serial/acm/hso device.


Post Reply