| |
Automatic Activation, Hotplug and UDEV, Configuration
-
vinnie
- Posts: 4
- Joined: 09 Apr 2011, 08:23
Post
by vinnie » 09 Apr 2011, 08:48
First of all I apologize for my English, I not speak it well and I use gTranslate in help to writing this post.
I have a Mobidata MBD-220HU and after inserting the pen will not switch automatically.
I followed step by step this pdf guide (obviously skipping steps (1) & (2), having installed modeswitch package and using the equivalent file /usr/share/usb_modeswitch/1c9e:f000) and the first time it worked, but I had not tried to connect using wvdial.
After rebooting, all subsequent times instead I get this stationary output:
Code: Select all root@box:~# usb_modeswitch -c /usr/share/usb_modeswitch/1c9e:f000
Looking for target devices ...
No devices in target mode or class found
Looking for default devices ...
Found devices in default mode, class or configuration (1)
Accessing device 008 on bus 001 ...
Getting the current device configuration ...
OK, got current device configuration (1)
Using endpoints 0x01 (out) and 0x81 (in)
Using endpoints 0x01 (out) and 0x81 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
No driver found. Either detached before or never attached
I work three days on this, I humbly beg your help
-
vinnie
- Posts: 4
- Joined: 09 Apr 2011, 08:23
Post
by vinnie » 09 Apr 2011, 14:55
ok, I made some progress.
If I reboot and plug my modem during the startup of linux, this time the modem will automatically switch:
Code: Select all tc@box:/$ lsusb
Bus 001 Device 007: ID 1c9e:9605
I am going to use wvdial, this is my, /etc/wvdial.conf :
Code: Select all [Dialer Defaults]
Phone = *99#
Username = wind
Password = wind
Stupid Mode = 1
Dial Command = ATD
Modem = /dev/ttyUSB2
Baud = 460800
Init1= ATZ
Init2 = AT+CGDCONT=1,"IP","internet.wind"
ISDN = 0
Modem Type = Analog Modem
PPPD = /usr/local/sbin/pppd
Carrier Check = no
but when I start wvdial:
Code: Select all root@box:~# wvdial
--> WvDial: Internet dialer version 1.61
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: AT+CGDCONT=1,"IP","internet.wind"
AT+CGDCONT=1,"IP","internet.wind"
OK
--> Modem initialized.
--> Sending: ATD*99#
--> Waiting for carrier.
ATD*99#
ERROR
--> Invalid dial command.
--> Disconnecting at Sat Apr 9 14:54:15 2011
root@box:~#
-
Josh
- Site Admin
- Posts: 6593
- Joined: 03 Nov 2007, 00:30
Post
by Josh » 09 Apr 2011, 20:30
I would recommend that you use the guide provided on the usb_modeswitch main documentation page instead of that crude PDF.
You don't have to do any manual commands ...
Just install the program package and the data package, make sure that you have the "tcl" package provided by your distribution installed as well, and the mode switching should work right away.
Sorry, I can't help you with the wvdial problem. You should find lots of examples by using Google though. If I were you, I would search for "internet.wind" and "wvdial".
-
vinnie
- Posts: 4
- Joined: 09 Apr 2011, 08:23
Post
by vinnie » 10 Apr 2011, 03:11
You do not know any way to check what is the problem? Maybe with pppd?
Normally I would not be so intrusive, but I'm afraid of having to use windows unless i solve.
my days are counted
-
vinnie
- Posts: 4
- Joined: 09 Apr 2011, 08:23
Post
by vinnie » 10 Apr 2011, 16:25
because yesterday I did lots of tests in this verse, and all have failed, plus, sometimes change error, without any correlation with the change of configuration (start wvdial twice and returns the first error).
Example with first usable configuration in ubuntu forum page:
Code: Select all [Dialer Defaults]
Modem = /dev/ttyUSB2 *fundamental change
Baud = 460800
Init = ATZ0
Init2 = AT Q0 V1 E0 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,"IP","internet.wind","",0,0
Modem Type = Analog Modem
Carrier Check = no
Phone = *99***1#
Username = ininfluente
Password = ininfluente
PPPD = /usr/local/sbin/pppd *fundamental change
Code: Select all root@box:/# wvdial
--> WvDial: Internet dialer version 1.61
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ0
ATZ0
OK
--> Sending: AT Q0 V1 E0 S0=0 &C1 &D2 +FCLASS=0
AT Q0 V1 E0 S0=0 &C1 &D2 +FCLASS=0
OK
--> Sending: AT+CGDCONT=1,"IP","internet.wind","",0,0
OK
--> Modem initialized.
--> Sending: ATDT*99***1#
--> Waiting for carrier.
CONNECT 7200000
--> Carrier detected. Waiting for prompt.
--> Don't know what to do! Starting pppd and hoping for the best.
--> Unable to run /usr/sbin/pppd.
--> Check permissions, or specify a "PPPD Path" option in wvdial.conf.
--> Don't know what to do! Starting pppd and hoping for the best.
--> Unable to run /usr/sbin/pppd.
...countless times...
Second time same configuration:
Code: Select all root@box:/# wvdial
--> WvDial: Internet dialer version 1.61
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ0
OK
--> Sending: AT Q0 V1 E0 S0=0 &C1 &D2 +FCLASS=0
AT Q0 V1 E0 S0=0 &C1 &D2 +FCLASS=0
OK
--> Sending: AT+CGDCONT=1,"IP","internet.wind","",0,0
OK
--> Modem initialized.
--> Sending: ATDT*99***1#
--> Waiting for carrier.
ERROR
--> Invalid dial command.
--> Disconnecting at Sun Apr 10 16:09:40 2011
root@box:/# wvdial
I think that the error may reside somewhere else, however I have tried all the configurations that page and some even give "bad init string", but none of them works
-
Josh
- Site Admin
- Posts: 6593
- Joined: 03 Nov 2007, 00:30
Post
by Josh » 10 Apr 2011, 18:58
Did you check if /usr/sbin/pppd exists and can be started?
Is the name of the parameter "PPPD" or "PPPD Path" ?
Anyway, if you get "CONNECTED", you are a big step further.
|
|