Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 31 Jul 2014, 10:10
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
Integration of 3G Wireless Modem Detection - 4.1.2 & 4.2.1
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 19 of 37 [543 Posts]   Goto page: Previous 1, 2, 3, ..., 17, 18, 19, 20, 21, ..., 35, 36, 37 Next
Author Message
kultex

Joined: 17 Nov 2007
Posts: 39

PostPosted: Wed 19 Aug 2009, 15:02    Post subject:  

rerwin,

I am also a bit confused:

there is no file: /etc/init.d/Option

There is an entry: option:option.ko, but without # - so there is nothing to do

in which script I shall change the time?

I erased the Modem - and it is not found by the system - even with probe, it does not found.

But it is present - here dmesg.

Code:
usbcore: registered new interface driver usbserial
drivers/usb/serial/usb-serial.c: USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
drivers/usb/serial/usb-serial.c: USB Serial Driver core
drivers/usb/serial/usb-serial.c: USB Serial support registered for GSM modem (1-port)
option 1-2:1.0: GSM modem (1-port) converter detected
usb 1-2: GSM modem (1-port) converter now attached to ttyUSB0
option 1-2:1.1: GSM modem (1-port) converter detected
usb 1-2: GSM modem (1-port) converter now attached to ttyUSB1
usbcore: registered new interface driver option
drivers/usb/serial/option.c: USB Driver for GSM modems: v0.7.1


only if I edit by hand wvdial.conf the modem to /dev/ttyUSB0 it is detected and I can connect.

I hope this helps a little bit .....
huawei-E220-6.tar.gz
Description 
gz

 Download 
Filename  huawei-E220-6.tar.gz 
Filesize  3.36 KB 
Downloaded  268 Time(s) 
Back to top
View user's profile Send private message 
rerwin


Joined: 24 Aug 2005
Posts: 1504
Location: Maine, USA

PostPosted: Wed 19 Aug 2009, 17:06    Post subject:  

kultex,
Thanks for running that test. It confirms my fear that we have not actually mastered the startup timing. The logs show that the mode-switch took place and that the option driver was probably loaded by our second modprobe. It might be that a second bootup would take, without touching wvdial.conf.

I am concerned that we don't see confirmation that the original modprobe of the option driver was actually done, although the script probably got placed where it should be. (because that happens before the actual modprobe). That's been nagging me for a while.

I know it is late for you tonight, so I will later add suggestions and maybe an updated patch5 for you to try at your convenience. But I will go ahead and submit something for the pending 4.3 beta and hope to update that once we figure this out.

Thanks for continuing with this. I know you are going to be busy for awhile, so please work this only when you can spare the time. There is no deadline for getting it right.
Richard
Back to top
View user's profile Send private message 
divisionmd


Joined: 14 Jul 2007
Posts: 606

PostPosted: Fri 21 Aug 2009, 04:04    Post subject:  Option Icon 225
Subject description: Option Icon 225
 

Hello,

- Going bananas over my 3G device - spent alot of hours and now i am stuck.

- I have a 3G modem "Option Icon 225".

- And i have gotten so far that when i try to connect this happens:

--> WvDial: Internet dialer version 1.53
--> Initializing modem.
--> Sending: AT+CPIN=1234
AT+CPIN=1234
OK
--> Sending: ATZ
ATZ
OK
--> Modem initialized.
--> Sending: ATX1DT*99***1#
--> Waiting for carrier.


But nothing more happens... ?


- This is the log:

- /tmp/pup_event_module_devpath_log:

ODULE=hso DEVPATH=/devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1:1.0
# MODULE=fan DEVPATH=/devices/LNXSYSTM:00/LNXTHERM:00/PNP0C0B:00
# MODULE=usbhid DEVPATH=/devices/pci0000:00/0000:00:1d.0/usb3/3-2/3-2:1.0
# MODULE=usbhid DEVPATH=/devices/pci0000:00/0000:00:1d.0/usb3/3-2/3-2:1.1
# MODULE=evdev DEVPATH=/devices/platform/pcspkr/input/input2
# MODULE=evdev DEVPATH=/devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input4
# MODULE=evdev DEVPATH=/devices/LNXSYSTM:00/LNXPWRBN:00/input/input3
# MODULE=hso DEVPATH=/devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1:1.0


- /tmp/udevtrace-modem.log:

usb_v0af0_p6971_d0000_dcff_icff_usb_interface_Option N.V._Globetrotter HSDPA Modem_
tty__Add_device_node_link_for_HSOTYPE_Diagnostic
usb_v0af0_p6971_d0000_dcff_icff_usb_interface_Option N.V._Globetrotter HSDPA Modem_
tty_ttyHS2
tty__Add_device_node_link_for_HSOTYPE_Control
tty__Add_device_node_link_for_HSOTYPE_Application
tty_ttyHS1
tty_ttyHS0


- /tmp/udevtrace.log:

add_ttyHS2_tty_0x8086_3-1:1.1_usb:v0AF0p6971d0000dcFFdscFFdpFFicFFiscFFipFF
add_hso0_net_0x8086_3-1:1.0_usb:v0AF0p6971d0000dcFFdscFFdpFFicFFiscFFipFF
add_ttyHS1_tty_0x8086_3-1:1.0_usb:v0AF0p6971d0000dcFFdscFFdpFFicFFiscFFipFF
add_ttyHS0_tty_0x8086_3-1:1.0_usb:v0AF0p6971d0000dcFFdscFFdpFFicFFiscFFipFF
add_usbdev3.4_ep03_usb_endpoint_0x8086_3-1:1.0_usb:v0AF0p6971d0000dcFFdscFFdpFFicFFiscFFipFF
add_usbdev3.4_ep85_usb_endpoint_0x8086_3-1:1.0_usb:v0AF0p6971d0000dcFFdscFFdpFFicFFiscFFipFF
add_usbdev3.4_ep83_usb_endpoint_0x8086_3-1:1.0_usb:v0AF0p6971d0000dcFFdscFFdpFFicFFiscFFipFF


- /tmp/ozerocdoff.log:

/usr/sbin/ozerocdoff -wi 0x6971 -l /tmp/ozerocdoff.log
Successfully ZERO-CD disabled


- Before i connect i execute this:


modprobe hso
modprobe option
modprobe usbserial vendor=0x0af0 product=0x6971

echo "Echo PIN code ttyHS0"
echo AT+CPIN=1234 > /dev/ttyHS0
sleep 1
echo "AT+CPIN=1234" > /dev/ttyHS0
sleep 1

echo "Echo PIN code ttyHS2"
echo AT+CPIN=1234> /dev/ttyHS2
sleep 1
echo "AT+CPIN=1234" > /dev/ttyHS2
sleep 1

usb_modeswitch

then i get the message that the modem is switched.


- Modem works fine on Windows.

- Also tested to type "ATZ" to init string "2" but that did not help.


Thanks for all help,

Best regards,
Johan
Back to top
View user's profile Send private message MSN Messenger 
alix_board

Joined: 14 Aug 2009
Posts: 64
Location: Austria

PostPosted: Fri 21 Aug 2009, 06:24    Post subject:  

Hi @ all,

i have a Huawei E170 Wireless Modem and have already install the 3G pupdial wireless patch4. I do not have many experience with puppy, still Smile !

How i can install now the modem? I have already try the Network Wizard (Autoload USB) - but it does not work. Maybe someone can give me an instruction?

Thanks a lot!

greets,
alix_board
Back to top
View user's profile Send private message 
rerwin


Joined: 24 Aug 2005
Posts: 1504
Location: Maine, USA

PostPosted: Fri 21 Aug 2009, 12:49    Post subject:  

alix_board,
You have come to the right place to request help. I see that you earlier posted your information here: http://www.murga-linux.com/puppy/viewtopic.php?p=332131&search_id=201776527#332131
That gives me something to work with.

The first problem is that the wireless modem support began on kernel 2.6.25.16. I have not tested on the "retro" 2.6.21.7 kernel and suspect that there is no "option" driver there. I have compiled updated drivers for the 2.6.25.16 kernel, but they won't help you until you upgrade to the "standard" 2.6.25.16 kernel.

Once you are on Puppy 4.1.2 or 4.2.1 "standard", please review the first post in this thread, to understand what to do. To summarize that, you need to download the "3G pupdial", "usb_modeswitch", patched option driver, patched usb-storage driver and 3G...patch4 dotpets mentioned there.

But be warned: we are having difficulties with the Huawei modems being recognized. Please reboot twice after installation, to give it a chance. If it doesn't work after you have done everything right, I will need your help/feedback to get the problem corrected. Be sure to have the modem plugged in when you boot up. You may need to unplug and replug it after you are up and running after two bootups.

Thanks for joining us.
Richard
Back to top
View user's profile Send private message 
rerwin


Joined: 24 Aug 2005
Posts: 1504
Location: Maine, USA

PostPosted: Fri 21 Aug 2009, 13:16    Post subject: Re: Option Icon 225
Subject description: Option Icon 225
 

divisionmd,
Thanks for moving our discussion of this subject from our PM exchanges to this thread, fo all to see. Because you began by attempting to use your modem in a non-puppy kernel, I requested you to start with this project on Puppy 4.1.2 and install the dotpets appropriate to your "HSO" modem (3G_pupdial-11, hso, hso-udev, and 3G...patch4). I also requested that you avoid confusing me by your entering your own modprobe and other commands.

Your posting shows that you are going in that direction, but I really cannot help you once you start improvising with your own script or commands. My goal is to help you and others to get the HSO modems working in Puppy without your having to do anything but tell PupDial what you need and let it try to do it. I need to know where that process fails, so I can solve it for everyone.

Please make a clean test run and attach a tarball containing the log files requested in the first post of the thread, the files you have listed parts of in your posting. Remember, you may be the first to try this, so there may still be a bug that gets in the way and needs to be squashed. The issue of the appropriate way to start the (hso, option) driver is still a "work in progress", as you can see in my dialog with kultex.

Thanks for helping us get this right.
Richard
Back to top
View user's profile Send private message 
mcalex

Joined: 23 Apr 2006
Posts: 78
Location: Perth, WA

PostPosted: Sat 22 Aug 2009, 07:54    Post subject: huawei e169  

Hi rerwin / all

just checking whether I should post problems with the above modem here or start a new thread?

I've installed the 3G wireless 11 pet, and just downloaded patch 5 to see if that works, but up til now the best I can do is get my modem recognised (on tty/usb2) but only at a speed of 9600. Obviously, I'm not posting from puppy, so I'll finish this, log on to puppy and test the patch 5. If it still doesn't work, like I said, do i post here or in a new thread, and can I get an idea of the log file entries I should copy to the post?

cheers
mcalex
Back to top
View user's profile Send private message 
rerwin


Joined: 24 Aug 2005
Posts: 1504
Location: Maine, USA

PostPosted: Sat 22 Aug 2009, 13:06    Post subject:  

mcalex,
Thanks for joining this thread. I assume you refer to the Icon 225, which uses the hso driver. I am impressed that you do connect. Yes, this is the place to discuss problems with any of the wireless modems, so that I can perfect the support for them, to get you and others going.

From what I see in this thread and elsewhere, the indicated modem speed is of no consequence. The modems work fine even if the value is 9600. You might try a probe>PROBE to watch how the value is determined, but you may well end up with a different value, probably larger.

Could you attach the /tmp/udevtrace files and /tmp/ozerocdoff.log file, so I can see what happened to allow you some success? Keep in mind that I depend on others for feedback, because I cannot test any modem of my own (because I don't have any). Thanks.
Richard
Back to top
View user's profile Send private message 
rerwin


Joined: 24 Aug 2005
Posts: 1504
Location: Maine, USA

PostPosted: Sat 22 Aug 2009, 15:03    Post subject: 3G_pupdial-wireless-12 uploaded
Subject description: Matches submission for puppy 4.3 beta2
 

I have consolidated the patches (except patch5) into an updated "-12" dotpet. It uses approximately the same mode-switching delay times as earlier; patch5 shortened them, but may have made things worse. Here is my update to the download posting:

UPDATE 8/22/09: I have replaced the main dotpet with 3G_pupdial-wireless-12. This includes the improvements in the "-11" patches and the 4.3 beta2 release (assuming they are accepted), plus support of a few additional modems. (I will remove the "-11" verson shortly.) This new version changes support of PINs and APNs, so that the PIN is issued only once per session and APNs are now associated with each dialup account. A pulse-dial (ATDP) setting is now retained. Certain Huawei modems may now be detected.
NOTE: I have not upgraded to usb_modeswitch-1.0.3 because it no longer appears to support command-line parameters, which Puppy uses. It stops with a segmentation fault.

This gives us a new baseline for trying debug patches to better understand the issues with detection of the Huawei modems that do not change IDs when mode-switching. I need to do some investigation of the loading process, because the option driver does not appear to be loaded when I think it ought to be, which impacts detection.

As usual, please report any problems you have with the updated package, but only if you do not interfere with the startup process by interjecting other commands. I need your cooperation, to make wireless-modem support better. Thanks.
Richard
Back to top
View user's profile Send private message 
mcalex

Joined: 23 Apr 2006
Posts: 78
Location: Perth, WA

PostPosted: Mon 24 Aug 2009, 05:33    Post subject:  

hi rerwin, no, I've got a huawei e169 (I typed it in the subject, but it's very non-prominent - will remember to include all details in the body hence Smile

Puppy can see my modem (with your -11.pet, it was on tty/USB2, but with the -12.pet it's now on tty/USB0), but when it tries to connect, I get a 'no carrier detected' error. I've switched the Carrier Detect option on and off, both in the pupdial gui and the wvconf file, but to no effect. Also, I'm not sure what to do with the PIN. When I add the 6-digit code I was given (which was called the pin by the virgin ppl), I get 'invalid connection string' (or similar) error messages. Am typing from memory at work, so not 100% sure of the error syntax.

I have been playing with settings, so I'll boot up a clean puppy, and install the latest pets. As I understand it, I want 3G_pupdial-wireless-12.pet, usb_modeswitch-1.0.2.pet but not the patch 5 that I had installed (against the -11.pet). Is this right?

cheers
mcalex
Back to top
View user's profile Send private message 
rerwin


Joined: 24 Aug 2005
Posts: 1504
Location: Maine, USA

PostPosted: Mon 24 Aug 2009, 07:12    Post subject:  

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:
Quote:
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.
Back to top
View user's profile Send private message 
mcalex

Joined: 23 Apr 2006
Posts: 78
Location: Perth, WA

PostPosted: Tue 25 Aug 2009, 11:10    Post subject:  

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
puppyLogs.zip
Description  Log files
zip

 Download 
Filename  puppyLogs.zip 
Filesize  3.11 KB 
Downloaded  229 Time(s) 
Back to top
View user's profile Send private message 
rerwin


Joined: 24 Aug 2005
Posts: 1504
Location: Maine, USA

PostPosted: Tue 25 Aug 2009, 13:01    Post subject:  

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!
Quote:
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
Back to top
View user's profile Send private message 
mimeini

Joined: 04 Dec 2008
Posts: 36

PostPosted: Wed 26 Aug 2009, 10:00    Post subject: HUAWEI E169 and denmark calling (solved)  

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
Back to top
View user's profile Send private message 
mcalex

Joined: 23 Apr 2006
Posts: 78
Location: Perth, WA

PostPosted: Wed 26 Aug 2009, 10:50    Post subject:  

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 Smile and my modem is back to 9600 Sad

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
puppyLogs2.zip
Description  more logs
zip

 Download 
Filename  puppyLogs2.zip 
Filesize  8.46 KB 
Downloaded  251 Time(s) 
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 19 of 37 [543 Posts]   Goto page: Previous 1, 2, 3, ..., 17, 18, 19, 20, 21, ..., 35, 36, 37 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects
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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1190s ][ Queries: 12 (0.0084s) ][ GZIP on ]