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

#281 Post by rerwin »

mcalex,
Sorry for missing the modem type in the subject. You seem to be doing the right things, but left out this from the first posting here:
6. Tips for some special situations:
a. To override the default number for ttyUSB0, change the number in /etc/modemttyUSBnum; some modems use ttyUSB2.
That is an issue yet to be automated. Maybe the modem info extracted by usb_modeswitch can be used to determine which modems need the USB2.

You are correct in not using any of the old patches. (I need to update the first posting to take out all references to them.) If you have needed the special versions of the option and usb_storage drivers (also on the first post) before, you will continue to need them with 4.1.2 or 4.2.1.

The PIN issue depends on your situation. If you have disabled it in Windows, you should not use the PIN in Puppy. Otherwise I would think you need it. But now, it will be sent only on the first connection attempt. So, if it fails, simply disconnect and reconnect in pupdial.

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

#282 Post by mcalex »

hi rerwin

ok, clean booted puppy, installed 3G_pupdial-wireless-12.pet, and rebooted.

hit connect, told the connect dlg that I wanted to run PupDial when i clicked it next time.
hit connect again, when the PupDial window came up, I changed the phone number (as given when the modem was bought), user/pass to ppp/ppp and apn to virgininternet *

* ISP is pre-paid through Virgin Broadband. The modem came in a dvd box with a label on the back saying 'Your new number is:' and then gave a mobile-type phone number (xxxx xxx xxx) which I'm using. What is the *99# that I've seen used in threads, and should I try that? I needed a name for the account login, but don't think there is one just to get online and the ppp/ppp combination seems commonly used, so i put that in. A local techy forum (whirlpool.net.au from memory) said their apn was virgininternet. I've tried virginbroadband previously with no difference to any results.

PupDial responded with No Carrier! Trying again.

I've attached two udev* files from /tmp, but could not find /tmp/ozerocdoff.log. I've also copied the connection status log from PupDial.

Next: I haven't yet installed the usb_modeswitch. That's my next step, and i'll post the logs when i try to connect after that. Atm, I'm not expecting it to make any difference as it was installed on previous attempts with the same end result. Wanted clean logs to upload, so you can see diffs (assuming that'll help).

Also, not sure about the USB0 vs USB2 issue. Had changed /etc/modemttyUSBnum from 0 to 2 previously, but think the probe in PupDial still saw it in USB0. Not 100% sure, maybe I just didn't reboot. Plan now is to try everything in USB0, then when/if that fails, try everything again after changing the /etc file to USB2.

hth with yr diagnostics
excellent work, btw.

cheers


--------------
AMD Athlon XP 1700+
1.48 GHz
256 MB Ram
wireless USB Mouse
'purple-plug' keyboard
Huawei E169 wireless b/band modem
Using Puppy 4.2.1
Attachments
puppyLogs.zip
Log files
(3.11 KiB) Downloaded 369 times

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

#283 Post by rerwin »

mcalex,
Thanks for the logs. They are my first look at the debug info I added to the init script and confirm my suspicion that the events with "icff" are not indications that the switch occurred -- that is important (to me) to establish!
ok, clean booted puppy, installed 3G_pupdial-wireless-12.pet, and rebooted.
. . .
Next: I haven't yet installed the usb_modeswitch. That's my next step,
You need to install both if you expect any good results. Even though the modem side of the device appears in the trace logs, I suspect that does not mean the device switched into modem mode, especially since you left out the switcher.

Re the phone number: I suspect the normal-looking number you used is your phone's number, that others would call you by on a cell phone on the same account. For the modem, I would try the phone number *99# and VirginInternet (upper-case V and I) for the APN. Or try leaving out the APN altogether, since it might already be stored in the modem.

Re probing not trying USB2: That's interesting. It always tries ttyUSB0 and ttyUSB1, which are predefined in Puppy. My guess is that there is no /dev/ttyUSB2 -- please verify that. My understanding is that ttyUSB2 may get created as part of the mode-switch operation, which is not getting done. Also see if /dev/ttyUSB2 exists after the mode switching.

One more time...
Richard

mimeini
Posts: 37
Joined: Thu 04 Dec 2008, 10:49

HUAWEI E169 and denmark calling (solved)

#284 Post by mimeini »

hi

In 24 May 2009 i Post subject: HUAWEI E169 and Denmark calling. By the time I could not get modem detected. To day I downloaded the latest packages (12) and tried again on my asus eee and now i got it working. After half an our I could not get any pages down. I had to reboot and this time I activate the "stupid man" option and deactivate the "automate". I don't know if that was the reason but now it worked again. Thanks for all the work rerwin now I can go back to using puppy linux in my everyday life... puppy Linux is so much faster and nicer than ubuntu.

thanks
Mikkel

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

#285 Post by mcalex »

hi Richard

okies, installed usb_modeswitch-1.0.2.pet

hit connect, changed phone number to *99#, camel capped VirginInternet
hit connect to internet.
got further this time, as you can see from the logs. same files as last time, still no (/tmp/ozerocdoff.log), but name appended with '2'
tried adding the pin got bad connect string again. copied log from PupDial's connection status log window to connectionStatusWithPinLog.txt (Note, changed digits in PIN to '*'s)
removed 'VirginInternet' from apn field and tried to connect again
Same deal as with the apn. Carrier detected, don't know what to do, starting pppd, PPP daemon died: hang up (exit code = 16)

Shut down PupDial
checked for /dev/ttyUSB2: it exists.
opened /etc/modemttyUSBnum changed this to 2.
rebooted

opened PupDial
checked for /dev/ttyUSB2: it exists
PupDial still had ttyUSB0 in the 'test' box near top right of PupDial
clicked 'probe' button. output copied from connection status log window to connectionStatusProbeLog.txt, but basically it's got ttyUSB2 :) and my modem is back to 9600 :(

clicked connect to internet
same same - carrier detected, waiting; kicking off pppd, then hanging up with exit code = 16.

This time however on automatic reconnect, it was back to no carrier detected.
copied the two udev files in /tmp as udev*3.log also copied /tmp/usb_modeswitch.log coz i thought it might help

anything else I can try ... files I can send ....

cheers
mcalex
Attachments
puppyLogs2.zip
more logs
(8.46 KiB) Downloaded 392 times

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

#286 Post by rerwin »

mcalex,
This is looking good! All is well up to the point of actually connecting:
--> Waiting for carrier.
ATDT*99#
CONNECT
--> Carrier detected. Waiting for prompt.
--> Don't know what to do! Starting pppd and hoping for the best.
I get this if I mistype my Username. I understand that Virgin does not need a username and password, but wvdial does, I have seen examples of "username", "password", and "1234" in both. Apparently you are receiving a prompt that PupDial is not expecting. You did not say you selected "Stupid mode", but I think you really need that; so try that before anything else.

About the PIN: If it was rejected, either it isthe wrong value or the PIN was disabled, at some point, probably in Windows. Anyway, pupdial is handling that as I expect.

About files to send me: The mode-switch log is /tmp/usb_modeswitch.log; ozerocdoff.log is for the HSDPA (hso driver) modems. A possible clue as to what is wrong might be found in /etc/ppp/connect-errors, so please include that file.

It is probably unnecessary, but I ran across an example where the "solution was an APN of "VIRGININTERNET" in all caps. My guess, though, is that he previously had no APN, and that VI tolerates several combinations of upper/lower cases. You might verify that.

BTW, the udevtrace.log hints at a way to determine the correct ttyUSB number. The interesting uevents are:
add_ttyUSB2_usb-serial_0x1106_0x3038_usb:v12D1p1001d0000dc00dsc00dp00icFFiscFFipFF
add_usbdev1.10_ep85_usb_endpoint_0x1106_1-2.2:1.2_usb:v12D1p1001d0000dc00dsc00dp00icFFiscFFipFF
add_usbdev1.10_ep05_usb_endpoint_0x1106_1-2.2:1.2_usb:v12D1p1001d0000dc00dsc00dp00icFFiscFFipFF
Maybe the "ep85" and "ep05" are indicators. I will check some logs for other modems to see if those "eps" associate with whichever ttyUSB number works for them.

I think you are close to success. We just need to determine how to talk to Virgin Internet.
Richard

kultex
Posts: 39
Joined: Sat 17 Nov 2007, 19:46

#287 Post by kultex »

installed 3G_pupdial-wireless-12.pet - but the situation is like before - dmesg is fine, but the modem is not recogniced - only if I edit by hand wvdial.conf the modem to /dev/ttyUSB0 it is detected and I can connect.
Attachments
huawei-E220-7.tar.gz
(2.91 KiB) Downloaded 500 times

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

#288 Post by mcalex »

next round

Stupid Mode: no I didn't have this set. I've pretty much left PupDial as it came out of the box, except for the changes I've mentioned. Currently carrier detect is off, busy signal and the other one in the top left are on (i'm in windows again and working from memory). Stupid mode is off, auto-reconnect is on. I have been using ppp/ppp as user/pass, but tried username/password tonight

okies: Turned on stupid mode, changed user/pass, hit connect to internet. copied results from PupDial's status connection log window in to the attached statusConnectionStupidLog.txt. Also attached are the /tmp/udev*.log files and /tmp/usb_modeswitch.log. /etc/ppp/connect-errors is empty.

Basically it turned pppd on straight away, and about 30 seconds later fell over with hangup exit = 16. As per yesterday, the auto-reconnect fell over with no carrier detected. Both times, when I've rebooted into windows, i've had to disconnect/reconnect the modem from the USB hub before i can get past: Error 678, the remote computer did not respond (again, from memory). I don't know how significant this is.

Also, once i hit the 'no carrier detected' error, no other attempts to connect could get past that, so when I went back into PupDial and tried VIRGININTERNET as apn, all I got was no carrier detected.

cool with the pin. I thought 'bad connection string' indicated some sort of syntax error rather than a rejected key, but if you're happy, i'm happy.

Re: getting to talk to VI. The modem box says works with Win & Mac, but do you think it might be worth it for me to actually try to talk to their tech support, & see if there's a penguin-head in the bunch. Account support isn't exactly merit-worthy and now I think about it, their web site doesn't scream technical brilliance, so I think i'm answering my own question. I might fire off an email and continue if i get better than: 'We're sorry, VI only supports Vista, XP & Mac OS. Please see the terms of service at ..." as a reply :)

Next. Will try the full CAPS in the apn, and do the disconnect/reconnect thing to see if that gets the modem to detect carriers again. It still likes ttyUSB2, do i try USB0 again (or even USB1) or are we happy that USB2 is where it should be found?
Attachments
puppyLogs3.zip
(8.71 KiB) Downloaded 399 times

Boneo
Posts: 44
Joined: Thu 06 Jul 2006, 23:48
Location: UK

Problem getting onto the internet

#289 Post by Boneo »

I'm running Puppy 4.2 from a USB stick on my Acer A0 and did manage a couple of weeks back to configure my unlock Huawei e272 and connect to the internet with 3G. I then played around with MWconn under Wine because I want to send SMS text messages. I then lost 3G so removed and re-installed the packages needed for 3G.

I appear to connect with 3G using Desktop's "Connect" this is also confirmed by the blue light going solid on the e272. However when I open a browser there's no internet. (I haven't sellected to work off-line.)

What's happened? Why can't I connect to the internet? Have I forgotten something.

I didn't find tmp/ozerocdoff.log is this significant?
Attachments
Huawei_e272.zip
(5.73 KiB) Downloaded 488 times

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

#290 Post by Aitch »

Rich
I think you are close to success. We just need to determine how to talk to Virgin Internet.
As a Virgin user, I often find people need help getting Virgin to connect with both wired and wireless
The problem seems to be that they/Virgin have specific DNS IPs which if not entered, cause a 'You are connected to the gateway/router but the internet cannot be found' response

I manually add 194.168.4.100 & 194.168.8.100 in advanced settings & it works

Another option is to use OpenDNS, which reportedly is faster anyway

https://www.opendns.com/start/

Hope this helps

Aitch :)

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

#291 Post by rerwin »

Aitch,
Thank you for adding information about which I am clueless.
I manually add 194.168.4.100 & 194.168.8.100 in advanced settings & it works
Where would I find the "advanced settings" fields? This might be a reason to add a "special cases" piece to pupdial. And how does opendns help here? How do you use it in this case?

Boneo,
Beyond installing puppy 4.2(.1?), have you done anything to install the wireless modem support provided in this thread? You need the dotpets:
3G_pupdial-wireless-12.pet
usb_modeswitch-1.0.2.pet
and maybe special versions of some drivers, but wait for those until you have tried these. If you still have problems, please attach the requested logs to a posting. BTW, ozerocdoff.log is for modems that use the HSO driver; yours uses the OPTION driver and generates usb_modeswitch.log. Be sure to use the Connect option "Internet by analog dialup modem" (which is being re-labeled as "Internet by dialup analog or wireless modem").

mcalex,
Sorry to be neglecting you. I have been concentrating on modem drivers for the 4.3beta2. I am also short on ideas on how to advise you. I hope Aitch's info is helpful.

kultex,
Thanks for the feedback. I do not expect any improvement over -11 and patch 4, but it is good to hear I didn't damage anything in -12. I am now preoccupied with modem drivers for 4.3beta2, but expect soon to research why the driver does not load when the modem device is first detected. I will have a debug-patch for you to try, when I am able to devise one.
Richard

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

#292 Post by Aitch »

Hi Rich

mmmm - maybe it's getting confusing, because I spend a lot of time answering noobie posts on not getting on the net/no connection, most of which is to do with wired/wireless connections
AFAIK, most 3G devices also double as wifi devices [correct me if I'm wrong....???] and I was thinking it may be related...?

hence, also ....I'm used to dealing with the network wizard...which is where advanced settings is found - setting up IP addresses

DNS issues are about converting browser text strings into IP addresses, and Virgin DNS fails more often than not, I don't know why
Open DNS is a substitute for Virgin's IP addresses I listed
A cache is created once a textstring is converted so the DNS doesn't get called so often, to speed up the process

I'm not clear in my mind the difference between what you're doing, which is more modem call related, I think, and problems people are reporting and what I'm referring to......so I could be off-beam......hope I haven't misled anyone

oops, nearly forgot.... you must remember to top-up your 3G sim account or you can't get on the net, either... :wink:

good luck

Aitch :)

Boneo
Posts: 44
Joined: Thu 06 Jul 2006, 23:48
Location: UK

3G connected but no internet

#293 Post by Boneo »

Thanks rerwin for the reply.

As far as I am aware I am doing what is needed to connect with 3G. I have installed the usual packages for my Huawei e272, the main 3G wireless pet, the usb mode switch and the lastest patch. I can get a dialogue box saying something like-

Carrier detected, waiting for prompt
Dont know what to do and hoping for the best
starting pppd
pid of ppd: 9646

but nothing happens when I open a browser, no internet.

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

#294 Post by rerwin »

Boneo,
Please note that the patches are for the old "-11" version of 3G_pupdial, although I don't think it should cause a problem if you apply it to "-12", which already contains patch4. Patch5 might cause trouble because it shortens some wait times that may be too "tight". So just use "-12" without any patch.

Out of desperation, you might try a workaround that was necessary for connecting to VirginBroadband:
One final important step was necessary--

edit /etc/ppp/options, and add the line
-chap
The dialog about the issue starts here, in case it might also apply to your flavor of Virgin: http://www.murga-linux.com/puppy/viewto ... 053#315053
Richard

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

#295 Post by mcalex »

hi richard

np about the neglect, lol. i'm happy to stay low priority, i'm only playing.

have been trying different versions of the apn, including VirginBroadband; same results

will have a look at Aitch's suggestions and see if i can muck around in the network area.

will post logs & stuff when I remember to copy 'em to my thumb drive, or mnted windows.

cheers

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

Huawei E170 works

#296 Post by alix_board »

Hi Richard,

thanks a lot!

Now my Huawei Model E170 was located in Puppy and i can make a connection! I have install 3G_pupdial-wireless-12.pet and usb_modeswitch-1.0.2.pet from your thread, nothing else!

When i make a connection with PupDial, i will become the followin message:

Code: Select all

--> 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","a1.net"
AT+CGDCONT=1,"IP","a1.net"
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
--> Carrier detected.  Waiting for prompt.
--> Don't know what to do!  Starting pppd and hoping for the best.
--> Starting pppd at Wed Sep  2 08:36:20 2009
--> pid of pppd: 23503
What does this mean in detail? Because, i can not open any HTML Site via seamonkey!?!? So, when i connect with eth0 (ethernet) i can now also not connect any HTML Site. Maybe some configurations are changed by installing the two module?

greets,
alix_board

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

#297 Post by rerwin »

alix_board,
Good going. At least the latest dotpets do what I intended, in that they got a carrier. Now we need to know what to expect from your provider and what they expect from you.

First, I wonder if you are using a valid APN. Maybe we can find out what your modem has already stored in it, by editing the wvdial.conf file. Find near the end of it the line beginning with "#Init8" and remove the "#". You can do the same to the next line, "#Init9". Then try to connect again. The log should show a response to those queries. I am hoping it shows your APN as something other than "a1.net", although that looks reasonable.

Second, be sure you are using correct username and password, if they are required, or maybe "internet" in both. If that reveals nothing, can you get the correct values from your provider? If you use the modem with Windows, can you see what that system uses?

Is there someone near you familiar with your provider who can help us? Is there anything specific to your provider that could affect your ability to connect? As you might guess, I am "running on empty" here.
Richard

User avatar
dejan555
Posts: 2798
Joined: Sun 30 Nov 2008, 11:57
Location: Montenegro
Contact:

#298 Post by dejan555 »

Sorry I wasn't following, did you figure out ZTE 626 modem problem?
puppy.b0x.me stuff mirrored [url=https://drive.google.com/open?id=0B_Mb589v0iCXNnhSZWRwd3R2UWs]HERE[/url] or [url=http://archive.org/details/Puppy_Linux_puppy.b0x.me_mirror]HERE[/url]

kultex
Posts: 39
Joined: Sat 17 Nov 2007, 19:46

#299 Post by kultex »

alixboard,

the output looks fine - you should be connected already to Internet

try to boot from usb-stick without saving - no problem for the the alix board - so you are sure you have nothing changed - and perhaps it is better to use boxpuphttp://www.murga-linux.com/puppy/viewto ... 98&t=41378 with Opera

I continue in German:

hier sind zur Sicherheit die Zugangsdaten Zugangsdaten für A1
APN= A1.net - hast eh verwendet - aber eventuell A1.net und nicht a1.net
User: ppp@aplus.at User: ppp@a1plus.at funktioniert nicht - zumindest bei mir
Pass: ppp
Nummer: *99#
DNS: 194.48.124.200 und 194.48.139.254 wird aber im Prinzip nicht gebraucht

ich habe festgestellt, dass seamonkey manchmal spinnt und abstürzt - Opera ist da zuverlässiger - zumindest zum Testen

kultex
Posts: 39
Joined: Sat 17 Nov 2007, 19:46

#300 Post by kultex »

rerwin,

perhaps you can put following links to your first post:

all the nedded data can be found heer:

Austria, Germany,Switzerland: http://linux.frankenberger.at/Huawei_E220_Daten.html

rest of the World:
http://www.flexispy.com/Mobile%20APN%20 ... 20GPRS.htm

Post Reply