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
rerwin
Posts: 2017
Joined: Wed 24 Aug 2005, 22:50
Location: Maine, USA

#316 Post by rerwin »

01micko,
Thanks for your positive report on a device that was tricky to get going. Although my first thought was that I did not need them, since you succeeded, but I would like to see how it all worked, because of that trickiness. Thanks for offering.

kultex: Thanks for that gem of a chart, and the details for part of Europe. I have added a pointer to your posting from a new item 7 in the main page.
Richard

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#317 Post by 01micko »

hello Richard

here is what I did (much the same as previous)

-Modem was detected at boot and recognised as /dev/ttyUSB0
-Carrier check, Dialtone check, Busy check All unchecked
-Stupid mode, Auto Reconnect Both checked
-left Initialisation strings and Max speed alone
-I have no SIM PIN, so left it blank
-inserted ISP phone number *99#
-my username
-left password but I think any old thing should be there
-Inserted Wireless APN "VirginBroadband" (without quotes)
-added "-chap" option to /etc/ppp/options

Here's /tmp/pup_event_module_devpath_log

Code: Select all

MODULE=processor DEVPATH=/devices/LNXSYSTM:00/ACPI_CPU:00
MODULE=ac DEVPATH=/devices/LNXSYSTM:00/device:00/PNP0A08:00/ACPI0003:00
MODULE=button DEVPATH=/devices/LNXSYSTM:00/LNXPWRBN:00
MODULE=eeepc_laptop DEVPATH=/devices/LNXSYSTM:00/device:00/ASUS010:00
MODULE=evdev DEVPATH=/devices/virtual/input/input6
MODULE=thermal DEVPATH=/devices/LNXSYSTM:00/LNXTHERM:00
MODULE=battery DEVPATH=/devices/LNXSYSTM:00/device:00/PNP0A08:00/PNP0C0A:00
MODULE=video DEVPATH=/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:16
MODULE=intel_agp DEVPATH=/devices/pci0000:00/0000:00:00.0
MODULE=shpchp DEVPATH=/devices/pci0000:00/0000:00:1c.0
MODULE=snd_hda_intel DEVPATH=/devices/pci0000:00/0000:00:1b.0
MODULE=shpchp DEVPATH=/devices/pci0000:00/0000:00:1c.1
MODULE=shpchp DEVPATH=/devices/pci0000:00/0000:00:1c.2
MODULE=uhci_hcd DEVPATH=/devices/pci0000:00/0000:00:1d.0
MODULE=uhci_hcd DEVPATH=/devices/pci0000:00/0000:00:1d.1
MODULE=uhci_hcd DEVPATH=/devices/pci0000:00/0000:00:1d.2
MODULE=uhci_hcd DEVPATH=/devices/pci0000:00/0000:00:1d.3
MODULE=ehci_hcd DEVPATH=/devices/pci0000:00/0000:00:1d.7
MODULE=i2c_i801 DEVPATH=/devices/pci0000:00/0000:00:1f.3
MODULE=atl1e DEVPATH=/devices/pci0000:00/0000:00:1c.1/0000:03:00.0
MODULE=pcspkr DEVPATH=/devices/platform/pcspkr
MODULE=serio_raw DEVPATH=/devices/platform/i8042/serio0
MODULE=serio_raw DEVPATH=/devices/platform/i8042/serio1
MODULE=usbcore DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-0:1.0
MODULE=usb_storage DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5:1.0
MODULE=option DEVPATH=/devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.0
MODULE=option DEVPATH=/devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.1
MODULE=option DEVPATH=/devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.2
/tmp/udevtrace-modem.log

Code: Select all

usb_v1d6b_p0002_d0206_dc09_ic09_usb_interface_Linux 2.6.30.5 ehci_hcd_EHCI Host Controller_
usb_v1d6b_p0001_d0206_dc09_ic09_usb_interface_Linux 2.6.30.5 uhci_hcd_UHCI Host Controller_
usb_v058f_p6335_d0105_dc00_ic08_usb_interface_Generic_Mass Storage Device_
usb_v12d1_p1001_d0000_dc00_ic08_usb_interface_____________________HUAWEI Mobile_
module_usbserial
usb_v1d6b_p0001_d0206_dc09_ic09_usb_interface_Linux 2.6.30.5 uhci_hcd_UHCI Host Controller_
usb_v1d6b_p0001_d0206_dc09_ic09_usb_interface_Linux 2.6.30.5 uhci_hcd_UHCI Host Controller_
module_option
usb_v1d6b_p0001_d0206_dc09_ic09_usb_interface_Linux 2.6.30.5 uhci_hcd_UHCI Host Controller_
usb_v12d1_p1001_d0000_dc00_icff_usb_interface_____________________HUAWEI Mobile_
usb_v12d1_p1001_d0000_dc00_icff_usb_interface_____________________HUAWEI Mobile_
usb_v12d1_p1001_d0000_dc00_icff_usb_interface_____________________HUAWEI Mobile_
usb_v1d6b_p0002_d0206_dc09_ic09_usb_interface_Linux 2.6.30.5 ehci_hcd_EHCI Host Controller_
usb_v058f_p6335_d0105_dc00_ic08_usb_interface_Generic_Mass Storage Device_
usb_v1d6b_p0001_d0206_dc09_ic09_usb_interface_Linux 2.6.30.5 uhci_hcd_UHCI Host Controller_
usb_v12d1_p1001_d0000_dc00_icff_usb_interface_____________________HUAWEI Mobile_
usb_v12d1_p1001_d0000_dc00_icff_usb_interface_____________________HUAWEI Mobile_
usb_v12d1_p1001_d0000_dc00_icff_usb_interface_____________________HUAWEI Mobile_
usb_v1d6b_p0001_d0206_dc09_ic09_usb_interface_Linux 2.6.30.5 uhci_hcd_UHCI Host Controller_
usb_v12d1_p1001_d0000_dc00_ic08_usb_interface_____________________HUAWEI Mobile_
usb_v1d6b_p0001_d0206_dc09_ic09_usb_interface_Linux 2.6.30.5 uhci_hcd_UHCI Host Controller_
usb_v1d6b_p0001_d0206_dc09_ic09_usb_interface_Linux 2.6.30.5 uhci_hcd_UHCI Host Controller_
Other logs as attached

Thanks :)

Mick
Attachments
logs.tar.gz
(3.14 KiB) Downloaded 561 times
Puppy Linux Blog - contact me for access

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#318 Post by 01micko »

Hello again Richard

Working great on my main box too in 4.3 8) . Just as well too because I've blown my download limit for the month... still 10 days to go!

Two minor niggles.

1. I always check 'stupid mode' but pupdial does not remember my choice. Is that possible to implement?

2. I definitely need the '-chap' option in /etc/ppp/options (just inadvertantly tried without it :lol: ) or else the modem will not negotiate a connection. I recall you said you might try to squeeze that checkbox in the pupdial gui.

Are there other ISPees needing that option?

Cheers

Mick
Puppy Linux Blog - contact me for access

alix_board
Posts: 64
Joined: Fri 14 Aug 2009, 06:35
Location: Austria

Re: Pupdial correction to retain edited wvdial.conf Init6-9

#319 Post by alix_board »

rerwin wrote:kultex,
And alix_board,
I have now fixed pupdial so you can edit the wvdial.conf Init6-9 lines and have them be retained by pupdial. The patch is in the 4.3beta2 Bugs thread here: http://www.murga-linux.com/puppy/viewto ... 321#340321
I am also updating 3G_pupdial...-12 with it, for new downloaders.
Richard
Allright! Now i am back from holiday and i will try the new one a soon as possible!

User avatar
rerwin
Posts: 2017
Joined: Wed 24 Aug 2005, 22:50
Location: Maine, USA

#320 Post by rerwin »

01micko,
Thanks for reporting that the Stupid Mode setting is not retained. I will try to have it fixed for 4.3.1. Regarding "-chap", I have not seen any report of it being needed elsewhere. But I would like to request that Barry add a line: "#-chap" to the /etc/ppp/options file, to make it simpler for users (or pupdial) to edit.

I am not ruling out building such an option into pupdial, but I want to hear of more such options being required, so I can implement a comprehensive "fine-tuning" technique.

UPDATE 10/4/09: I withdraw my request to Barry, above in this posting, to edit the /etc/ppp/options file. I have implemented the "fine tuning" technique, so the edit is not desired. The implementation accomplishes the solution in a different way. See the posting in the 4.3 Bugs thread.
Richard
Last edited by rerwin on Sun 04 Oct 2009, 16:05, edited 1 time in total.

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

#321 Post by gyro »

rerwin wrote:But I would like to request that Barry add a line: "#-chap" to the /etc/ppp/options file
Could you also ask that the "115200" line in /etc/ppp/options be commented out, please.

This would remove any possibility of it interfering with the speed set in wvdial.conf by the current pupdial (as per puppy 4.3 final.)

gyro

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

pupdial (4.3) + 3G mobile phone = easy connection

#322 Post by gyro »

rerwin,

Thanks for the new pupdial with the wireless extension. With it, connecting to Telstra's NextG network using my SAMSUNG 411 mobile phone as a USB modem, just works.

The probe function found my phone at /dev/ttyACM0.
Then enter the appropriate phone number and APN and click "Stupid mode" on, and "Auto reconnect" off.
Then click on "Connect to Internet", and it works, quite quickly.

Now that I have installed your latest fixed version into puppy 4.3, it works the next time as well, even after a reboot.

gyro

mcalex
Posts: 78
Joined: Sun 23 Apr 2006, 14:52
Location: Perth, WA

#323 Post by mcalex »

hi rerwin,

you helped earlier, and I had meant to post feedback, but obviously didn't :oops:
01micko wrote:1. I always check 'stupid mode' but pupdial does not remember my choice. Is that possible to implement?

2. I definitely need the '-chap' option in /etc/ppp/options (just inadvertantly tried without it :lol: ) or else the modem will not negotiate a connection. I recall you said you might try to squeeze that checkbox in the pupdial gui.
ditto on both for me. without stupid mode, the modem eventually gets going (~5secs), but the setting isn't retained, and (also using Virgin) without -chap there is no connection.

cheers

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#324 Post by 01micko »

Hi mcalex,

rerwin posted an updated pupdial on page 10 of the "4.3 final bugs and suggestions" thread which solves the checkbox issue.

Cheers
Puppy Linux Blog - contact me for access

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#325 Post by 01micko »

rerwin

It just occured to me to test your new "-chap" solution for VirginBroadband, so I deleted the "-chap" option in /etc/ppp/options and it connected without a hitch. :) (more good news for us mcalex :wink: )

Cheers
Puppy Linux Blog - contact me for access

mcalex
Posts: 78
Joined: Sun 23 Apr 2006, 14:52
Location: Perth, WA

#326 Post by mcalex »

hi rerwin, 01micko

new pet installed. wvdial remembers settings and /etc/ppp/options is now free of -chap settings. good stuff.

PS: remembering earlier problems with ppl being connected, but unable to access the web with seamonkey until changing resolv.conf or other dns issues, i had similar when i did a clean reinstall of puppy to 4.3. modem light was solid, but was getting 403s in SM until I changed "Configure proxies to access the internet' (Edit/Preferences/Advanced/Proxies) from 'Direct connection to the internet' to 'Automatically discover the proxy configuration'. After I shut down SM and wvdial and reconnected, all good. Apologies if the reaction to all that is 'well duh' :)

gyro
Posts: 1798
Joined: Tue 28 Oct 2008, 21:35
Location: Brisbane, Australia

#327 Post by gyro »

eleanori,

What type of "wired modem" do you have, that it connects with Ethernet?

gyro

User avatar
mrbulldog
Posts: 15
Joined: Tue 15 Apr 2008, 12:14
Location: South Australia

#328 Post by mrbulldog »

Can anyone help me regarding making HUAWEI Mobile Connect - 3G Modem (3 mobile broadband) work on hard drive install of Puppy Linux 3.01.
It is not hard to set up this thing using a dial up account...that is dead easy in Windoze.
I realize that I need to make puppy recognize the device as a modem, but everything I have seen so far seems to be for puppy 4.2. I do not wish to use puppy 4.2 (no offence meant, but I just don't like puppy 4.2).
I have spent a very long time working on puppy 3, as I have no programming experience or anything like that. I am just a stubborn old man who hates windows and am willing to spend time making things work in Linux.
Too many things do not work for me in puppy 4.2, & I wish to persevere with puppy 3.
Here is some info:
Manufacturer=HUAWEI Technology
Product=HUAWEI Mobile
VendorID=12d1 ProductID=1001 KERNEL-MODULE=usb-storage
If anyone replies to this, and needs more info, I will provide it.

darwinev0lved
Posts: 83
Joined: Tue 29 Jul 2008, 12:19

#329 Post by darwinev0lved »

OK, this has just taken me the best part of the day but in the end was ridiculously easy, so I'm posting it here in case anybody else wants to do what I've done.

Running Puppy 4.30, frugal install.

I'm using a Vodafone K3565 (Huawei E160) PAYG 3G dongle

What took me absolutely ages to work out was what to enter into the PupDial. So here it is:
Phone number *99#
User Name wap
password wap
Wireless APN pp.internet

Ticked Stupid Mode and was good to go.
If anybody's interested, I found the relevant info by plugging the dongle into my Ubuntu desktop - a couple of clicks later and I was online - it either know or auto-detected "magically" that APN wa pp.internet as I haven't seen that anywhere else.

So, hopefully this will save somebody else a lot of time.
Puppy rocks, and I'm very pleased - just wish it hadn't taken quite this long to find out!

Regards,
Jon

User avatar
rerwin
Posts: 2017
Joined: Wed 24 Aug 2005, 22:50
Location: Maine, USA

#330 Post by rerwin »

darwinev0lved,
Thanks for your straightforward how-to for you modem and provider. I am taken by your mention that ubuntu figures out the APN. I have a hunch how it might do that, and I think we can do that at least manually. There is a command to display the APN stored in the phone/modem's memory. I have provided the command in wvdial.conf as a comment that a user can edit to remove the "#":

Code: Select all

#Init8 = AT+CGDCONT?
Try doing that before running pupdial (because it overwrites during its operation), then try to connect. The APN should appear in the pupdial log of the connection. I am open to ideas on using that info to make pupdial smarter.

Assuming the APN is in the modem, you might try changing the phone number to *99***1# (I think that's the right number of asterisks). That says to use the first number in the internal list of APNs. If yours is second in the list, use "2" instead of "1".

Idea: How about pupdial activating the Init8 line for a connection if no APN is entered? Your experimentation with Init8 would move that idea along. Thanks.
Richard

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

#331 Post by Aitch »

Rich - just found
Wpa_Gui: Finally a real network manager for puppy
http://www.murga-linux.com/puppy/viewtopic.php?t=47838

Maybe some people here can test this?

Also wikihow Wifi setup

http://www.wikihow.com/Set-up-a-Wireles ... uppy-Linux

found in this thread

http://www.murga-linux.com/puppy/viewto ... 599#351599

HTH

Aitch :)

darwinev0lved
Posts: 83
Joined: Tue 29 Jul 2008, 12:19

#332 Post by darwinev0lved »

rerwin wrote:darwinev0lved,
Thanks for your straightforward how-to for you modem and provider. I am taken by your mention that ubuntu figures out the APN. I have a hunch how it might do that, and I think we can do that at least manually. There is a command to display the APN stored in the phone/modem's memory. I have provided the command in wvdial.conf as a comment that a user can edit to remove the "#":

Code: Select all

#Init8 = AT+CGDCONT?
Try doing that before running pupdial (because it overwrites during its operation), then try to connect. The APN should appear in the pupdial log of the connection. I am open to ideas on using that info to make pupdial smarter.

Assuming the APN is in the modem, you might try changing the phone number to *99***1# (I think that's the right number of asterisks). That says to use the first number in the internal list of APNs. If yours is second in the list, use "2" instead of "1".

Idea: How about pupdial activating the Init8 line for a connection if no APN is entered? Your experimentation with Init8 would move that idea along. Thanks.
Richard


Hi Richard, I'm happy to try to help. Emphasis should probably be on the 'try' :D

OK. I deleted wvdial.conf, then ran wvdialshell (hope this is right, I'm really only a linux user).
wvdial.conf then looked like this

[Dialer Defaults]
Modem = /dev/ttyUSB0
Baud = 9600
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0

ISDN = 0
Modem Type = Analog Modem
; Phone = <Target Phone Number>
; Username = <Your Login Name>
; Password = <Your Password>


So I added the Init8 = AT+CGDCONT? line

Ran PupDial. Used the *99***1# phone number and wap for user and password again. Left the APN blank.

PupDial connected just fine. :D

Save pupdial.log to see if that would help

--> 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
--> Modem initialized.
--> Sending: ATDT*99***1#
--> Waiting for carrier.
ATDT*99***1#
CONNECT
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Fri Oct 16 11:04:47 2009
--> pid of pppd: 22494

So it doesn't look like the APN does appear in the pupdial.log

However, my wvdial.conf does have this line in it

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

is that what's doing the trick?

Happy to try something else if that would help.

Regards,
Jon

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

#333 Post by zygo »

Rerwin,

I have a Huawei E1550 (vendor 12d1 product 1446). USB mode switch does not work with or without the -H parameter -- the device remains mass storage. Do I have to permanently switch it through ms (AT+ZCDRUN=8 )? (If so I'll wait a couple of weeks when my 30 day voucher will be almost expired)

Thanks for leading this project. I'd be gratefull for any advice.

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

Optus Wireless Broadband

#334 Post by smokey01 »

I'm having some problems getting the Blink modem to work with Optus Wireless Broadband. The modem is a HUAEWEI E169 HSDPA USB Stick. I see other people in this forum have managed to get it to work in Puppy 4.3.1. I haven't been so lucky, not yet anyway.

When using wvDial it requires 4 bits of information:
The dial number. Optus tell me this is *99#
UserName: Optus tell me this is not required since August 09
Password: Optus tell me this is not required since August 09
APN: Optus tell me this is splns888a1

I select stupid mode.
Uncheck the three check boxes carrier etc.
When I press connect it complains there is no UserName or Password.

When I look at Hardinfo the modem can be seen and the probe works from wvdial.

Any suggestions welcomed.

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

#335 Post by zygo »

rerwin,

Thanks, for this thread I got my e1550 working with three in Puppy 431. No additional software just the switch command from http://www.draisberghof.de/usb_modeswitch/bb/ -- the forum of the maker of usb_modeswitch.

smokey01,

I don't need username and password either. Put anything for them eg anything and anything. Wvdial waits about a minute for the isp to ask for these details. When it doesn't it simply starts the connection and blinky pipes up. All is well. :o :lol: :D

Post Reply