Page 1 of 8 123 ... LastLast
Results 1 to 10 of 80

Thread: How To : Mobile Broadband Connections [ Ubuntu 11.04 : 10.10 : 10.04 : 9.10]

  1. #1
    Join Date
    Oct 2009
    Location
    A world without windows
    Beans
    Hidden!

    How To : Mobile Broadband Connections [ Ubuntu 11.04 : 10.10 : 10.04 : 9.10]

    11.04 users: First read post #59

    Upgraded to
    Natty: Network Manager not connecting any more, check this out: Post #2
    Natty new install :read through this "first" post :(if device is not recognized) : note the reference to USB_MODESWITCH >Natty users: and the link

    Keep in touch
    http://www.canonical.com/about-canonical/overview

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~

    New Devices , RE: next generation , can have a look here #59 #60
    This may relate to most of next generation devices it may help you get connected (but I never say die) as each device is different ,
    the below is left for historical purposes , if asking why : then a udev rule may be required to bring up the net interface , so worth reading. again (I never say die) if read through most of this thread , had promise script to identify some modem ports
    most of this was in place until these device came up,, the script will , hopefully identify most devices , suggest which switching methods can be use + the udev rules , + check which port could be the modem + a suggested udev rule to bring the interface up
    as to the historical purpose of leaving the below , look near end of the thread where found the UDEV RULES to bring the net interface up : as said the script is nearly done, and will post asp : it's been a busy year , well thats my excuse , but true , again never say die :: First part now at #61

    Have new Huawie device then look towards Huawie Mobile Partner , most Patches and Rules + Drivers are included: RE: POST #60 , link is above , don't forget to read further down this post RE; supported devices. And don't forget sakis3g , if you have not read "the files" how to disable or as it is put "make the device available to third party" and your stuck because modem manager can,t see the device, sakis3g should work. till you get sorted. OH and one last thing Check the Sim Card is inserted the Right way. had seen a few posts , Where Network Manager failed to connect or shows offline ,, ??? SEE POST #64 FIRST BEFORE COMMITTING

    alexfish
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~
    some require specific dialing methods, related <cid> dialing and cdc_ether interfaces + devices with multiple usb ID's
    as an insight can look at these two posts

    #69
    #73
    update (24 feb 2011)as to some progress #82 ::: #87

    and finaly [SOLVED] Vodafone USB (K 3805-z) {may also apply to Vodafone USB (K 3806-z)not tested (best go to last page)

    Re: NEW verizon lg vl600 4g(lte) aircard not working can have a look at this post (patch available . if the .py files have#! /usr/bin/python3 , try edit to #! /usr/bin/python ) #19 : patch level .38 : patch level .35 #23 >>>read both.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    (update 6 feb 2011 , you may find that some of these devices have 2 modem ports , this for one makes life difficult , which one to choose?
    ........ also of note the device nodes tty* may be different depending on it's state at boot time )
    Best advice I can give at present :
    If Network Manager is failing to connect using APN
    1.
    use <cid> method of dialing , + omit the APN ,
    2.
    refrain from persistent attempts at dialing APN,s , it could have adverse affect on the sim card (take this as literal)
    3.
    list the device ports with the "ls -al /dev/serial/by-id" , then check each port for a connect message , using the <cid> method of dialing
    have copied a later post concerning Meerkat to post #2, an will be updating , as and when info becomes available
    4. there is a sample output of the usb-devices command at the foot of this post .REF: INFO possible 4g LTE DEVICE
    5. there appears be on going discussions at usb_modeswitch forum regarding 4g LTE devices , suggest users to get involved ModeSwitchForum
    6. update the usb id's
    Code:
    sudo /usr/sbin/update-usbids
    Check to see if recognized
    Code:
    nm-tool
    Can use this at any time to see status of NM network

    can also use nmcli : may be built in , try the command
    Code:
    nmcli
    for reference :http://manpages.ubuntu.com/manpages/...1/nmcli.1.html
    Link indicates :Where to report NM bugs> The Preferred Method of reporting : IE the SOURCE
    if not part of the distro:
    can suggest installing:command-line client for network manager : cnetworkmanager


    For link to Compatible devices #Compatable Devices post #46 / looks if this info could be outdated. best reference , try
    http://en.wikipedia.org/wiki/Network...tion_assistant

    usb_modeswitch data

    or if already have the device:
    simply connect the device then read through rest post #1
    and post #2 , see if it is recognized.

    VMC and BMC connection manager {re vodafone mobile connect)
    Check this site : http://www.betavine.net/bvportal/resources/datacards/os/ubuntu
    If Software Manager installed. use the debian package , it may inform problems with package , if advises not to install or prevents install : take heed
    for VMC check this out
    Vodafone Mobile Connect Software . with a reference to permissions
    if you are experiencing connection problems , and the network manager is failing to recognize the device
    compatible devices also check post #55.. A lot of users fail to read all documentation .. Finally :Always READ the info at the site before Commiting

    Natty users also check this post :#54

    prior to installing this software established a connection with the methods listed below , other than Network Manager.>> 3g ... Suggest Sakis3g .. others PPP . wvdial...
    take this as a must do if have devices not listed in the data-cards/index page , have tested this latest software , and constantly refuses or times out , on devices requiring simPIN
    IE: it can't get the device to accept the PIN number , so advise disable the PIN function on the device , if a problem

    Laptops: have tested numerous Laptops , where by the usb devices are not registering . Check the bios configurations as regards usb1 and usb2 settings,
    these setting are important,as it will also affect the speed of the device (sometimes may also apply to older desktops).
    if still a problem, then suggest trying Sakis3g to find the device and update the system, if successful, then should see the device in network manager
    (date: June 6, 2011)



    Begin
    :

    Boot up the computer without the modem give time for the system to settle then connect the modem:Obvious if the modem is part of the system {you can't plug it in}
    Natty users: Connect device prior to booting , after boot, modem manager will take time to process the device, be patient

    Click on the Network Manager you may see something like " Make Connection" , click on it and follow the Wizard

    The Network Manager at default is in the Notification area ,Top Panel ,right hand side , or can call up the the connections from the Terminal
    Code:
    nm-connection-editor


    IF 3g Connection: Require correct APN and {username and password if required }relevant to Your Pay Plan Check with your ISP
    Note: For New Devices Ask If the Device Dial Method is <CID>

    Importance of User names and passwords .Generally these are used for CDMA connections if using CHAP ;.. 3g generally uses PAP {no username or password required}, the pppd Daemon usually negotiates this automatically, as for 3g connections your service provider may at times want authorization using CHAP, hence sometimes you may experience problems getting connected because your configurations has no User name or Password ,try entering your user-name and password for your service provider, the connections can be monitored in the system log viewer messages
    Need to retrieve this info from the sms texts have a look at pos
    t #27

    you may be able to find your service providers APN from the terminals ,connect the modem

    IF intending to Install Huawei Mobile Partner , then suggest getting the necessary info ( apn + {mcc and mnc numbers to look up the info in providers data base} )
    prior to install , it will help with the configuration... had been doing script to automate this , but found glitch in (updated serviceproviders.2.dtd :re attlist ussd replacement code)
    will post this asp, so keep a watch out :dated 22nd feb 2012

    Also look through the "10-Huawei-datacard.rules" to see if your device is supported : if device not supported, read next paragraph (Script at Post) this will
    help to add an unlisted device to the rules , but read and digest how the rules are related ; since there are patches to certain drivers , Hint:may be possible to
    add devices other than Huawei. All the info and how-to already posted at #59 #60 #61 #62, Read All Before Commiting , Post #60 relates to if Modem-Manager sees the Device using the "dbus" if so the Info may Help to configure Huawie Mobile Partner

    Open up first terminal to monitor the modem outputs :To find the ports : read below {Example : FINDING THE PORTS} Also see post #2 UDEVADM: or can try;
    Script at POST
    #61 , with arg tty , it will give all necessary info IE ; which could be the modem port,, if the response to AT command = OK and the STATUS lines have 1's in them may assume modem port, this is
    helpful if the device endpoints = 2 , most modems have 3 so easy identified, this will show in the udev info displayed , for user of 11.10 , may have to install tclsh , there are links at same post of how to do this the easy way , for future , keep a copy on usb stick

    edit the ttyPORT to suit the modem

    Code:
    tr -s "\n" < /dev/ttyUSB2
    open up a second terminal
    Code:
    echo -e "AT\r" > /dev/ttyUSB2
    if response
    OK
    assume the device is responding

    to find APN's on device
    Code:
    echo -e "AT+CGDCONT?\r" > /dev/ttyUSB2
    example response from the first terminal
    +CGDCONT: 1,"IP","","0.0.0.0",0,0
    +CGDCONT: 2,"IP","payandgo.o2.co.uk","0.0.0.0",0,0
    +CGDCONT: 3,"IP","m-bb.o2.co.uk","0.0.0.0",0,0
    +CGDCONT: 4,"IP",
    general.t-mobile.uk","0.0.0.0",0,0 <======= This is mine

    can be use as reference for <cid> dialing. Note the Number after +CGDCONT:
    to dial <cid> reference the APN to the Number

    example: for APN
    general.t-mobile.uk and Network Manager (remember , reference this to APN of NM connection Manager)
    dial code = *99***4#
    other dialers = ATDT*99***4#

    example:for payandgo.o2.co.uk and Network Manager (remember , reference this to APN of NM connection Manager)
    dial code = *99***2#
    other dialers = ATDT*99***2#

    Find ISP or Operator
    Code:
    echo -e "AT+COPS?\r" > /dev/ttyUSB2
    this returned
    +COPS: 0,0,"T-Mobile UK",2 <=======This was mine /
    also shows it is registered to the network. this may be " 0.0.0 " indicating the device is not registered ,safest way , register on windows machine , or
    "search net for a how to , Not for the novice"

    Have been requested to re-instate these commands removed from other posts : may be of benefit if the modem has a sim card and connects through APN.

    to find the mmc and mnc numbers
    Code:
    echo -e "AT+COPS=0,2\r" > /dev/ttyUSB2

    Code:
    echo -e "AT+COPS?\r" > /dev/ttyUSB2
    Returns something like this
    +COPS: 0,2,"23430",2
    these numbers can be used to find apn ,user name , password from the
    serviceproviders database , can copy and paste this in the browser
    Code:
    file:///usr/share/mobile-broadband-provider-info/serviceproviders.xml

    the mcc and mnc number is taken from "23430" and splits into
    mcc =234
    mnc =30

    To find service providers use the AT+COPS=? command
    Code:
    AT+COPS=?
    this will take time while it searches
    be patient

    example reply
    Code:
    +COPS: (2,"T-Mobile","T-Mobile","23430",2),(1,"T-Mobile","T-Mobile","23430",0),(3,"Vodafone UK","Vodafone UK","23415",2),(3,"Vodafone UK","Vodafone UK","23415",0),(3,"O2-UK","O2-UK","23410",0),(3,"Orange","Orange","23433",0),(1, "3","3","23420",2),(3,"Orange","Orange","23433",2) ,(3,"O2-UK","O2-UK","23410",2),
    have highlight the bits relative to the provider , also note the numbers before and after the sim identifier .

    Test : pin code or puk code required
    Code:
    echo -e "AT+CPIN?\r" > /dev/ttyUSB2
    example results:
    AT+CPIN?
    +CPIN: READY ME......is not pending for any password
    +CPIN: SIM PIN CHV1...is required
    +CPIN: SIM PUK PUK1 ..is required
    +CPIN: SIM PIN2 CHV2..is required
    +CPIN: SIM PUK2 PUK2..is required
    +CPIN: PH-SIM PIN SIM.lock (phone-to-SIM) is required
    +CPIN: PH-NET PIN.....Network personnalisation is required
    +CME ERROR: <err> SIM failure (13) absent (10) etc..
    .important :if wrong pin is used 3 times then you will be sim locked , IE. device not accessible , ensure correct PIN Number or PUK code:
    best advice : disable the PIN and PUK code security : Try to do this By inserting sim in mobile phone

    EXIT the terminals when trying the connection with Network Manager

    There is a script called mm-test.py (python using dbus to communicate with modem-manager) it will do most of the above and more
    can use wget from the terminal if have alternate method of connecting
    Note: BCM and WADER-CORE the dbus spec is different to the modem-manager : hence the script may fail . will have to adapt code in mm-test.py dbus spec see post
    :#54

    TESTING MODEM-MANAGER: need to get mm-test.py :: To do the test disable all networking on the Network Manager
    Code:
    wget http://cgit.freedesktop.org/ModemManager/ModemManager/plain/test/mm-test.py
    to call the script
    Code:
    python ./mm-test.py

    or paste this in the browser
    Code:
    http://cgit.freedesktop.org/ModemManager/ModemManager/plain/test/mm-test.py
    then use copy and paste or save as. (name the script "mm-test.py")
    to test a device open up a terminal ,cd to the directory where the script resides then
    Code:
    python ./mm-test.py
    To get this to work as it should can Look here : http://ubuntuforums.org/showpost.php...83&postcount=9

    for rest of functions (argv's)
    Please read the script, Have fun

    Have also Written Bash Script (using dbus-send and modem-manager) to do Similar : SEE : POST #62


    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Even if the device is { not recognised or problematic } , continue to make a new connection by the selecting VPN Connections ,it will help with some of the details if an alternate method of dial up needs to be used.

    Network manager failed to connect : Double check the Information and read the above with reference to NEW DEVICES APPEARING

    Device is Recognized and have double checked the information try the below methods of dial up

    Device not recognised in the Network Manager : follow the below .
    Also Checkout Post #16
    also look for in same post
    Modem-Modeswitch :
    setting the udev rules.d




    • If nothing happens , open up the terminal and enter this command


    Example : FINDING THE PORTS
    this command may show the tty*port for the modem
    Code:
    ls -al /dev/gsmmodem

    example reply
    lrwxrwxrwx 1 root root 7 2011-07-01 13:41 /dev/gsmmodem -> ttyUSB2

    or try
    Code:
    dmesg | grep -e "modem" -e "tty"
    This will show if the modem has been identify and the lines { ttyx } and possible the driver
    [ 0.000000] console [tty0] enabled
    [ 0.262809] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A

    [ 0.263080] 00:08: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
    [ 21.950573] USB Serial support registered for GSM modem (1-port)
    [ 21.950756] option 1-10:1.0: GSM modem (1-port) converter detected
    [ 21.950893] usb 1-10: GSM modem (1-port) converter now attached to
    ttyUSB0
    [ 21.950911] option 1-10:1.1: GSM modem (1-port) converter detected
    [ 21.951003] usb 1-10: GSM modem (1-port) converter now attached to
    ttyUSB1
    [ 21.951025] option 1-10:1.3: GSM modem (1-port) converter detected
    [ 21.951130] usb 1-10: GSM modem (1-port) converter now attached to
    ttyUSB2
    [ 21.951157] option: v0.7.2:USB Driver for GSM modems
    For serial legacy devices:
    [17179575.588000] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
    [17179575.588000] serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
    [17179575.592000] 00:07: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
    [17179575.592000] 00:08: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
    If only shows the 2 lines highlighted in blue then there is a problem

    If the the output looks similar to the above then the Problem is a configuration one / make a note of the ttyx as this will help to configure PPP , wvdial or Gnome-ppp

    One thing is for sure :
    if the modem is recognized then there is no reason a connection can't be made { other than no signal , poor quality reception(signal strength),network busy (you can,t get a slot) < = > sometimes your operator may drop the connection if you are leaving your network connection unattended.}

    USB_MODESWITCH:
    Note that the debian package is not 100% compatible with recent Ubuntu version

    • For USB Devices ;If nothing shows enter this command from the terminal

    Code:
    lsusb
    this will give the
    ID's of the device
    Look to see if your device is listed in the latest
    device_reference.txt

    Natty users :read this before committing
    #30 (same rules now apply with Ubuntu 10.10) : if in doubt check the details in synaptic (usb-modeswitch properties)

    Check :

    • DefaultVendor = 0xN where n is the number in hex
    • DefaultProduct = 0xN where n is the number in hex
    • If the device is listed then there is a good chance it will work
    • use a computer with Internet access for any downloads and save to usb stick , also you will always have the necessary tools to get connected ; if you are a novice use links to the Debian sites as the files will self install when in Ubuntu
    • if you install the latest package then the device should work without any further configuration of the usb modeswitch
    • read all the info at the Draisberghof.de site thoroughly and note any areas of problems and the fixes and the links
    • modeswitch compilation errors RE libusb, possible lib has no link, read http://www.draisberghof.de/usb_modes...opic.php?t=605
    • Note that the debian package is not 100% compatible with recent Ubuntu version
    • whilst at the site , note indicating , device can be broken if wrong msg content sent "for me , I would take it back for a refund"




    Dial up :Methods

    • Gnome Network Manager { Should already be installed } Also has a list of predefined connections
    • Gnomeppp this is a front end tool to wvdial so both need to be down loaded {Also check post #6 by George Vita }
    • Sakis3g refer to the post #5
    • PPP { should already be installed. set up use the terminal and enter the command : sudo pppconfig { Example at Post #7}
    • Mozilla Firefox ,if the browser is not working check the "Work Off line" is unchecked
    • Tip for the Mozzila Firefox fix ,After opening Firefox, try opening page "about:config"... Filter for "toolkit.networkmanager.disable"
    • Change the line to ....." toolkit.networkmanager.disable;true "

    Downloads :



    Network Manager:
    ISP failing to return the
    NS1 and NS2 IE :the modem connects but the Browser and updates etc fail to connect

    From the terminal try these
    Code:
    sudo gedit /etc/ppp/options
    Add this line and save:
    Code:
    replacedefaultroute
    Or

    Here I have change the IPCP configure-NAKs returned before starting , remove the # and set the number to 30 ( or any thing above the default value till there is a constant connection ) Tip try 30 then work down
    Code:
    sudo gedit /etc/ppp/options
    Place a # in front of the replacedefaultroute so it looks like
    Code:
    # replacedefaultroute
    Then look for the lines :
    # Set the maximum number of IPCP configure-NAKs returned before starting
    # to send configure-Rejects instead to <n> (default 10).
    # ipcp-max-failure <n>
    edit to look like :
    Code:
    # Set the maximum number of IPCP configure-NAKs returned before starting
    # to send configure-Rejects instead to <n> (default 10).
    
    ipcp-max-failure 30
    Hopefully I can now leave the NM IPv4 settings to Automatic (PPP) instead of Setting the NM to IPv4 settings to Automatic (PPP) address only and having to enter the numerical addresses in the DNS servers text box.

    the
    replacedefaultroute has failed a few times after a fresh boot , but has proved quite successful.

    Alternatively you can use the Network Manager to use the address of your
    ISP

    get the Numerical address or addresses from your
    ISP commonly known as NS1 and NS2, or DNS1 and DNS2.

    Open up the connection via the Network Manager . Select Mobile Broadband . Select Edit Connection .Select Ipv4 settings select the Automatic(PPP) address only then enter the addresses of your
    ISP in the DNS servers box separated by a “ , “ comma without the quotes so it will look something like
    Code:
    149.254.201.126,149.254.192.126
    Making back up files:

    Networking and wireless software "configuration files" use the home directory and the "/etc/" directory for configurations, so I recommend backing up any file you are attempting to edit

    Making back up files:
    sudo cp "file path"/"file path_bak"
    Example:
    Code:
    sudo cp /etc/ppp/options /etc/ppp/options_bak

    for files which would be stored in the home directory I recommend backing up the actual "home" directory it's self. ,know a few people that deleted all the contents ,even deleted the home directory to make a new one ? . If you have plenty of storage , backup the whole of the "/etc/" as well . if your asking why " Some hidden " . { also advise backing up if upgrading to different versions of Ubuntu}


    • Every Thing I have tried Failed: Search the forums with your Model or start new Thread at
    • Networking & Wireless

    check to see if usb-devices are on system
    Code:
    which usb-devices
    if on system :reply
    =
    /usr/bin/usb-devices
    it is installed

    to find details of device

    Code:
    usb-devices
    Notes :
    Modem Port recognition :

    Gobi chipset problems
    ... {Maverick Meerkat should now have the gobi-loader in the repo's Check Synaptic Package Manager }
    also look here
    http://ubuntuforums.org/showthread.php?t=1507954

    Ubuntu 10.04
    :Some devices may load and configure on boot and not visible from the desk top
    also not available from the network manager as the pppd has self initiated . Check this out from the log file viewer , also see if you can browse. I suggest installing netspeed as any connection will show in the netspeed. reason { reports of devices previously available before upgrading to 10.04 }{added 6 june 2010}

    Connecting the modem on the main hub {on the motherboard back plane}can lead to device recognition errors

    Noticeable with USB harddrives , boot from USB stick , Keyboard or Mouse
    To check for conflicts use the “ lsusb -t and lsusb –v “ command and monitor the outputs

    Modem Firmware upgrades:

    Some Manufactures and Providers are providing firmware updates to meet requirements of win7 , if you accept these updates be prepared for some devices to be no longer recognized in Linux .
    Also checkout Posts#29 and 30

    I can only suggest this , if the device is working , leave as is , or ask the question " If I upgrade the firmware , will it still work with linux “.


    Some devices need time to settle
    : if there is sporadic identification of the device or the ports been registered this may more notable in 10.04 , try connecting the device after boot
    or

    Add in /etc/modprobe.conf a delay for the usb-storage

    Code:
    sudo gedit /etc/modprobe.conf
    add the following line
    Code:
    options usb-storage delay_use=1
    (or 10, or other) 5 is a good bench mark To start

    Save and exit


    here is an interesting Solve for a Toshiba with built in modem
    "Apparently the 3g modem Radio is by default set to OFF ." [SOLVED] Toshiba built-in 3g Modem (F3507g)

    A site worth reading............http://www.pcurtis.com/ubuntu-mobile.htm

    Stubborn devices; look at the screen shots
    This device was ejected from the desktop it sometimes was not recognized as a modem , but had habit of remounting

    to find were these devices goto , open up the disk utility in the system administration


    REF: INFO possible 4g LTE DEVICE . manufacture data suppressed
    I: If#= 0 Alt= 0 #EPs= 1 Cls=02(commc) Sub=02 Prot=01 Driver=cdc_acm
    I: If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_acm
    I: If#= 2 Alt= 0 #EPs= 1 Cls=02(commc) Sub=02 Prot=01 Driver=cdc_acm
    I: If#= 3 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_acm
    I: If#= 4 Alt= 0 #EPs= 1 Cls=02(commc) Sub=06 Prot=00 Driver=cdc_ether
    I: If#= 5 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_ether
    I: If#= 6 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
    I: If#= 7 Alt= 0 #EPs= 0 Cls=02(commc) Sub=0b Prot=00 Driver=(none)
    /usr/bin/usb-devices: line 79: printf: 08: invalid octal number
    I: If#= 0 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=00 Driver=(none)

    the screen shots should be self explanatory: try using eject or safely remove , as mentioned near top of post . " There is a difference between Ejecting the device and Safely removing ", Monitor the results

    Last edited by alexfish; February 26th, 2012 at 03:28 PM. Reason: Modem Manager test Pyhon script ( mm-test.py) BCM dbus spec see post #54
    Two tin cans are better than an iphone

    http://www.ehow.co.uk/how_2067160_ma...hone.html?cr=1

  2. #2
    Join Date
    Oct 2009
    Location
    A world without windows
    Beans
    Hidden!

    Re: How To : Mobile Broadband Connections [ Ubuntu 10.04 : 9.10 : 9.04 ]

    Reference Ubuntu Maverick Meerkat :
    READ ALL BEFORE COMMITTING
    ALL ARE EXAMPLES : EDIT THE DETAILS ACCORDING TO YOUR DEVICE ID's (you have been advised)

    Reference Ubuntu Maverick Meerkat : note usb_modeswitch and udev rules , not same as previous versions of Ubuntu,see USB_MODESWITCH: POST #1
    AT COMMANDS PDF REFERENCE :REMAINS see foot of post

    Huawie devices and other's .:Option driver not loading: Note the option driver is normally used with 3g devices
    ZTE Devices not Switching See foot of page:same type of rule may apply for other new devices not recognized by udev or the kernel

    to check . open up a terminal , enter the following code
    Code:
    usb-devices
    the output will look similar to
    T: Bus=01 Lev=01 Prnt=01 Port=08 Cnt=02 Dev#= 5 Spd=480 MxCh= 0
    D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
    P: Vendor=12d1 ProdID=1001 Rev=00.00
    S: Manufacturer=HUAWEI Technology
    S: Product=HUAWEI Mobile
    C: #Ifs= 5 Cfg#= 1 Atr=e0 MxPwr=500mA
    I: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
    I: If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
    I: If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
    I: If#= 3 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
    I: If#= 4 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
    (each device may show different parts)
    also note " EPs= 3 " this usually indicates the modem

    Notice the lines where it shows Driver=(none)

    From the terminal enter the following code,to load the driver module
    Code:
    sudo modprobe option
    enter your system password

    then repeat the command "usb-devices"

    you should now see
    T: Bus=01 Lev=01 Prnt=01 Port=08 Cnt=02 Dev#= 5 Spd=480 MxCh= 0
    D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
    P: Vendor=12d1 ProdID=1001 Rev=00.00
    S: Manufacturer=HUAWEI Technology
    S: Product=HUAWEI Mobile
    C: #Ifs= 5 Cfg#= 1 Atr=e0 MxPwr=500mA
    I: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
    I: If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
    I: If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
    I: If#= 3 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
    I: If#= 4 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
    device should now be ready

    as a temporary fix (applies to recent Ubuntu versions with usb_modeswitch)
    Can try this
    Code:
    sudo gedit /lib/udev/rules.d/40-usb_modeswitch.rules
    scroll down to the line which shows the id's of the device

    EXAMPLE:
    # Huawei E169
    ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1001", RUN+="usb_modeswitch '%b/%k'"
    disable the line with a # . Add a line so it looks like the below . also double check the ID's prior to saving
    Code:
    # Huawei E169
    #ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1001", RUN+="usb_modeswitch '%b/%k'"
    ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1001", RUN+="/sbin/modprobe  option"
    save the file : unplug the device then reconnect : note changes by using the "usb-devices" command

    If the mode-switching has been disabled (device not switching) remove the "#": note changes by using the "usb-devices" command
    If the above has no effect reverse the changes :

    once done: exit gedit

    NOTE : after updating the system : check and reverse the changes : see what happens


    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    if the dialout method requires ID the modem port (recommend using Sakis3g as a tool (use more options menu) to update system , although it can't dial true CDMA: IE dial command #777)
    also may save having to write new rules esp if new device + details not in any of the udev rules
    Code:
    usb-devices
    this should give output similar to
    T: Bus=01 Lev=01 Prnt=01 Port=08 Cnt=02 Dev#= 13 Spd=480 MxCh= 0
    D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
    P: Vendor=12d1 ProdID=1001 Rev=00.00
    S: Manufacturer=HUAWEI Technology
    S: Product=HUAWEI Mobile
    C: #Ifs= 5 Cfg#= 1 Atr=e0 MxPwr=500mA
    I: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
    I: If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
    I: If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
    I: If#= 3 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
    I: If#= 4 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
    Note the " If#= 0 Alt= 0 #EPs= 3 " : the part with EPs= 3 usually indicates the modem
    Code:
    ls -al /dev/serial/by-id/usb*
    this should give output similar to
    /dev/serial/by-id/usb-HUAWEI_Technology_HUAWEI_Mobile-if00-port0 -> ../../ttyUSB0
    /dev/serial/by-id/usb-HUAWEI_Technology_HUAWEI_Mobile-if01-port0 -> ../../ttyUSB1
    /dev/serial/by-id/usb-HUAWEI_Technology_HUAWEI_Mobile-if02-port0 -> ../../ttyUSB2
    Note the line with the if00-port0 -> ../../ttyUSB0

    here are the two important lines
    I: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option

    /dev/serial/by-id/usb-HUAWEI_Technology_HUAWEI_Mobile-if00-port0 -> ../../ttyUSB0
    read again from " if the dialout method requires ID the modem port"
    Identify the
    " If** and EPs= 3 "
    This device indicates the modem is on ttyUSB0
    Example: for wvdial
    modem = /dev/ttyUSB0


    UDEVADM:
    Note: udev rules does not allocate tty* as constant always check tty* : always check with "ls -al /dev/serial/by-id" or "
    ls -al /dev/serial/by-path"
    Hence dialers like wvdial and ppp/chat with the tty* set as constant , may fail to identify the correct port , if the udev allocates a different device node

    For info retrieval about devices suggest reading udevadm man pages
    Code:
    man udevadm

    Example: redirect outputs to home directory /udevinf
    dump all .. note this device does not list
    as a modem in Hal properties, listed by " lshal " command
    Code:
    udevadm info --export-db > `pwd`/udevinfo
    open the file with gedit look for lines similar to
    P: /devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.3/ttyUSB2/tty/ttyUSB2
    N: ttyUSB2
    S: gsmmodem
    S: char/188:2


    However: this is where a data base can give the wrong info / if a device is incorrectly switched (usually by manually ejecting or safely removing the device)
    hence reason for two methods of detecting the correct port / also makes twice as hard if the device only reveals Eps=2 /even harder if a newer devices with 2 modem ports
    can also be explained by reading post
    #16
    the original fix script has been removed , but will update ASP to include devices which reveal only 2 Eps: See Post #61
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~

    ZTE DEVICES NOT SWITCHING: Also may apply to other devices

    to find state of device : from the terminal
    Code:
    usb-devices
    example reply
    T: Bus=01 Lev=01 Prnt=01 Port=05 Cnt=01 Dev#= 5 Spd=480 MxCh= 0
    D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
    P: Vendor=19d2 ProdID=2000 Rev=00.00
    S: Manufacturer=ZTE, Incorporated
    S: Product=ZTE CDMA Technologies MSM
    C: #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=500mA
    I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=05 Prot=50 Driver=usb-storage
    to fix try
    Code:
    sudo gedit /etc/udev/rules.d/zte_eject.rules
    add this line edit the device ID's according to the device
    Code:
    ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="2000", RUN+="/usr/bin/eject %k", OPTIONS+="last_rule"
    save exit , reboot with the device connected or can try udevadm to reload the rule
    Code:
    udevadm control --reload-rules
    Note any change with "lsusb" command
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Note: if running udevadm test ..../*/* : and Debug info , indicates the use of SYSFS, then Change the rules accordingly
    add_rule: SYSFS{}= will be removed in a future udev version, please use ATTR{}= to match the event device, or ATTRS{}= to match a parent device, in /etc/udev/rules.d/*
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Some devices may not be recognized by the kernel modules(device recognition is usually built in)
    so it is advantages to use a udev rule to use the generic usbserial driver (not always recommended)
    but will suffice until the modules get updated
    note :if the device is getting switched by usb_modeswitch , then it may have been registered to use the option module
    this can be monitored by rebooting the system after modeswitching , long winded, but seems to work. can check with udevadm test.

    example of udevadm test .../*/* : locate the file to which part of the device resides ( as mentioned earlier , one reason to ensure the driver is loading , can use
    "40-usb_modeswitch.rules)
    Code:
    udevadm test /sys/bus/usb/devices/1-3:1.0
    this is a part of the output which indicates the usb_modeswitch binding the driver
    udevadm_test: run: 'usb_modeswitch --driver-bind /devices/pci0000:00/0000:00:02.1/usb1/1-3/1-3:1.0 19d2/31/0'
    udevadm_test: run: 'socket:@/org/freedesktop/hal/udev_event'
    if driver not loaded possible , try reloading the rules with "udevadm control --reload-rules" command ,
    see what happens

    example udev rule to load the generic usbserial driver (remember the device has to be in the switched mode : + edit the ID's accoring to the device. )
    Code:
    sudo gedit /etc/udev/rules.d/usbserial.rules
    enter
    Code:
    ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1001", RUN+="/sbin/modprobe usbserial vendor=0x12d1 product=0x1001"
    save and exit

    Rules: Renaming /dev/tty* :
    This type of renaming convention can make life easier for the likes of wvdial, yet difficult for network manager , be careful as to its usage

    here is an example of renaming the dev nodes : from previous info determine the functions of
    ATTRS{bInterfaceNumber}=="**" and the ATTRS{bInterfaceProtocol}=="**" then make the rule in the /etc/udev/rules.d


    example:
    here the modem port is at kernel ttyUSB0 : bInterfaceNumber 00 : renamed to /dev/Huawei1_modem (remember to edit the device ID's according to the device)
    Code:
    sudo gedit /etc/udev/rules.d/huawei1Nodes.rules
    The rules
    Code:
    SUBSYSTEMS=="usb", ATTRS{modalias}=="usb:v12D1p1001*", KERNEL=="ttyUSB*", ATTRS{bInterfaceNumber}=="00", ATTRS{bInterfaceProtocol}=="ff", NAME="Huawei1_modem"
     SUBSYSTEMS=="usb", ATTRS{modalias}=="usb:v12D1p1001*", KERNEL=="ttyUSB*", ATTRS{bInterfaceNumber}=="01", ATTRS{bInterfaceProtocol}=="ff", NAME="Huawei1_ctrl"
     SUBSYSTEMS=="usb", ATTRS{modalias}=="usb:v12D1p1001*", KERNEL=="ttyUSB*", ATTRS{bInterfaceNumber}=="02", ATTRS{bInterfaceProtocol}=="ff", NAME="Huawei1_null"
    note the changes with the "ls -al /dev/serial/by-id" command
    Code:
    ls -al /dev/serial/by-id
    This type of renaming convention can make life easier for the likes of wvdial, yet difficult for network manager , be careful as to its usage
    As mentioned earlier some devices can be incorrectly switched and tty* can be of different Numbers , if it is known That the modem part of the Device rule "bNumEndpoints=03,
    then a udevrule can be used to good effect , see what I have done below with one such device, Note the difference in the rules, part of the old rules are disabled(this is a must do)
    Code:
    SUBSYSTEMS=="usb", ATTRS{modalias}=="usb:v12D1p1001*", KERNEL=="ttyUSB*", ATTRS{bNumEndpoints}=="03", ATTRS{bInterfaceProtocol}=="ff", NAME="Huawei1_modem"
    # SUBSYSTEMS=="usb", ATTRS{modalias}=="usb:v12D1p1001*", KERNEL=="ttyUSB*", ATTRS{bInterfaceNumber}=="01", ATTRS{bInterfaceProtocol}=="ff", NAME="Huawei1_aux"
    # SUBSYSTEMS=="usb", ATTRS{modalias}=="usb:v12D1p1001*", KERNEL=="ttyUSB*", ATTRS{bInterfaceNumber}=="02", ATTRS{bInterfaceProtocol}=="ff", NAME="Huawei1_null"



    Note: at kernel level the tty* remain the same
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Advisory Note:
    Bugs should now be reported to the source . IE : if it were a usb_modeswitch bug, or OOps , then report to usb_modeswitch
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


    Reference Guide
    Products: MTSMC-Cxx, MTMMC-Cxx, MTCBA-Cxx

    PN S000294D, Revision D

    Multi-Tech Systems, Inc.

    AT Commands for CDMA Wireless Modems

    Including ,Reference to CDMA : Qualcomm ,Verizon
    ® and Sprint®

    Qualcomm , Verizon
    ® and Sprint® ; AT commands: read

    Chapter 19 - Qualcomm Defined AT Commands for CDMA Operation

    Chapter 22 - Verizon® Specific AT Commands
    Chapter 23 - Sprint® Specific AT Commands

    Warning :
    the below file is in pdf format :clicking on the link to will automatically download the file

    AT Commands For CDMA Wireless Modems Reference Guide


    VIEW ON LINE :AT COMMANDS
    3g and cdma/ originating link is for cdma /
    http://www.scribd.com/doc/41616367/CDMA-at-Commands

    this site will list most known listed providers and or specific AT commands

    including ZTE Corporation’s ME3000 Module/MG3006、MG3030、MG3036、MG3082、MG3088
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~

    Sierra Wireless AT commands


    http://www.sierrawireless.com/resour...rence-v2.4.pdf


    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~
    ZTE AT commands
    clicking on the link to will automatically download the file

    ZTE AT Commands
    GSM/GPRS Module AT Command Mannual
    Last edited by alexfish; November 15th, 2011 at 02:11 PM. Reason: udev rules / old SYSFS: to ATTRS
    Two tin cans are better than an iphone

    http://www.ehow.co.uk/how_2067160_ma...hone.html?cr=1

  3. #3
    dino99's Avatar
    dino99 is offline Ubuntu addict and loving it
    Join Date
    Jun 2006
    Location
    Nux Jam
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: How To : Mobile Broadband Connections [ Ubuntu 10.04 : 9.10 : 9.04 ]

    nice job, thanks
    bookmarked

  4. #4
    Join Date
    Oct 2009
    Location
    A world without windows
    Beans
    Hidden!

    Re: How To : Mobile Broadband Connections [ Ubuntu 10.04 : 9.10 : 9.04 ]

    Network monitoring and SMS Text services

    netspeed :

    for monitoring net speed and will also confirm you have a connection ,handy if your process is running in the background and have no visual means that the service is running Eg{ PPP }

    pppstatus :


    usage same as above + logging cost etc ; look at the config files

    use from the terminal

    Code:
    pppstatus
    Still see posts on Can't monitor costs , emails etc
    try editing the pppstatus files
    Code:
    sudo gedit /etc/pppstatus/costs
    Code:
    sudo gedit /etc/pppstatus/pppstatus.cfg
    to get the pppstatus to run on boot look at /etc/pppstatus/no_pppstatus_on_boot
    Code:
    cat /etc/pppstatus/no_pppstatus_on_boot
    Wammu :

    SMS texts see screen shot : If you use the Network Manager for Your connection Ensure the Service is "Available to All Users
    " ; This will allow you to connect whilst using the Network Manager if the dongle has the facility

    May not work if connect to net Ubuntu Meerkat
    also may have to kill modem-manager
    Code:
    sudo killall modem-manager
    Suggest alternate method of connection for the network that only locks one port


    Attached Images Attached Images
    Last edited by alexfish; February 7th, 2011 at 03:40 AM.
    Two tin cans are better than an iphone

    http://www.ehow.co.uk/how_2067160_ma...hone.html?cr=1

  5. #5
    Join Date
    Oct 2009
    Location
    A world without windows
    Beans
    Hidden!

    Re: How To : Mobile Broadband Connections [ Ubuntu 10.04 : 9.10 : 9.04 ]

    Sakis3g :
    Advantages of sakis3g click on the “Sakis3G script is all about”
    Getting started :


    Getting support :



    Read more :



    http://wiki.sakis3g.org/wiki/index.php?title=Main_Page

    Forum:
    http://forum.sakis3g.org/smf/index.php


    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~
    How to install latest version in Ubuntu: . Possibly Sakis3g 0.2.0e .
    now includes usb_modeswitch " Version 1.1.3 (C) Josua Dietze 2010"(should not affect other installed versions.[Tested with Ubuntu Meerkat])
    From the terminal:
    Code:
    sudo bash

    Code:
    cd /usr/bin
    step3: NOTE:the below is direct link ,clicking on the link,sets auto download, handy if need to download on usb stick
    step4
    Code:
    echo "dda70fd95fb952dbb979af88790d3f6e  sakis3g.gz" | md5sum -c
    You should see: sakis3g.gz: OK
    Code:
    gunzip sakis3g.gz

    Code:
    chmod +x sakis3g
    then run sakis3g from the terminal
    Code:
    sakis3g
    if had no network connection / and download to usb stick , via other means , can try
    open up nautilus in su mode
    Code:
    gksu nautilus
    locate the file , and copy to the /usr/bin, miss out step3

    Only recommendation I could make here is this. if constant calls to sakis3g are made IE: from the terminal then ensure to killall after use
    or make use of the option to create a shortcut / to the notification area.

    Stay connected:
    here is a small script to keep connected called sakis-connect.
    assuming the modem will connect with the command [/usr/bin/sakis3g silent "connect" APN=<yourAPN>]
    or adapt the command line to suit the modem, then test.

    copy this into gedit , then save in home directory as "sakis-connect",
    Code:
    #!/bin/sh
    while [ 1 ] # loop for ever
    do
    reset
    /usr/bin/sakis3g silent status
    ret=$?
    if [ "${ret}" -eq "0" ]; then
       echo "Connected."
    elif [ "${ret}" -eq "6" ]; then
       /usr/bin/sakis3g silent plugged
       ret=$?
       if [ "${ret}" -eq "0" ]; then
          echo "Not connected."
          echo "trying to connect to internet"
          /usr/bin/sakis3g silent "connect" APN="3internet" # edit APN to suit,or the command to suit modem,
       else
          echo "No modem plugged."
       fi
    else
       echo "Error ${ret} occurred." >> /dev/stderr
    fi
    
    sleep $((1*60)) # edit for timing this is set to check every minute
    done
    call from the terminal with this command
    Code:
    sh `pwd`/sakis-connect
    Have fun, for other command line tips look at the wiki pages
    Last edited by alexfish; August 6th, 2011 at 01:41 PM. Reason: stay connected script
    Two tin cans are better than an iphone

    http://www.ehow.co.uk/how_2067160_ma...hone.html?cr=1

  6. #6
    Join Date
    Aug 2008
    Location
    Athens Greece
    Beans
    971
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How To : Mobile Broadband Connections [ Ubuntu 10.04 : 9.10 : 9.04 ]

    Hi alexfish, very helpful thread!

    Just to add some notes:

    wvdial and dependencies are not included into CD of 9.04 and 9.10 (exists on DVD). You can install it if you have an internet connection (sudo apt-get install wvdial) or download and install the packages needed:
    wvdial offline installation.

    Ubuntu 9.10 initial version (liveCD) has bug#446146 which affects most 3g modems. An update using any other connection (ethernet or wifi) 'repairs' it.

    Ubuntu 10.04 includes wvdial and dependencies but are NOT installed!
    To install them read wvdial offline installation

    Regards,
    George
    Last edited by GeorgeVita; May 3rd, 2010 at 09:36 AM.

  7. #7
    Join Date
    Oct 2009
    Location
    A world without windows
    Beans
    Hidden!

    Re: How To : Mobile Broadband Connections [ Ubuntu 10.04 : 9.10 : 9.04 ]

    if the device requires sim or puk code , try use Network Manager or wvdial or sakis3g(sakis3g can not connect cdma devices which does not have a sim card or uses dial command #777 )

    How to use PPP


    example 3g using pap


    from the terminal


    sudo pppconfig


    select Create new connection

    enter a name for your connection / from the keyboard hit enter for a test I used “me”

    select Dynamic DNS ; hit enter

    select Authentication Method ; hit enter ;in my case my ISP uses PAP

    enter user name ; hit enter ; in my case User

    enter password ; hit enter ; in my case mms

    select baudrate ; hit enter { accept the default shown }

    select pulse or tone ; hit enter ;in my case Tone

    enter your phone number ;hit enter; in my case *99#

    Choose modem config method; YES or NO ; I selected NO, for manual because my modem has 2 control lines and uses port ttyUSB2 ; as mention above you may have to try each one if auto detect does not work


    after the port has been selected hit enter


    now look at the screen shot ; do you see the similarities as in screen shot Post # 5


    select ; Finished Write files and return to main menu.


    Select Quit


    to dial your provider


    pon provider ; in my case ; pon me


    to exit


    poff

    or

    poff me

    GPPPON:

    gpppon is a small GUI for ppp


    if you have permission problem check the pppconfig “Advance Options” and check the add user
    Attached Images Attached Images
    Last edited by alexfish; October 15th, 2010 at 07:02 AM.
    Two tin cans are better than an iphone

    http://www.ehow.co.uk/how_2067160_ma...hone.html?cr=1

  8. #8
    Join Date
    Oct 2009
    Location
    A world without windows
    Beans
    Hidden!

    Re: How To : Mobile Broadband Connections [ Ubuntu 10.04 : 9.10 : 9.04 ]

    Specific AT commands to Enable and Disable Functions on modems :INFO now Removed: FEB 2011

    Most of the safe Specific AT command are now part of up to date Connection Managers such as { Network Manager(usually installed at default) and sakis3g}

    For info retrieval :
    suggest installing Gammu , it does more than SMS texting , if you have installed wammu or Phone Manager http://live.gnome.org/PhoneManager
    gammu should be part of the installation
    All available from the software center

    the help and man pages will be the best GUIDE , use in conjunction with Gammu Manual

    Code:
    man gammu
    or
    Code:
    gammu help
    Gammu Manual / Link
    http://wammu.eu/docs/manual/
    Last edited by alexfish; February 23rd, 2011 at 02:48 PM. Reason: Removed for editing
    Two tin cans are better than an iphone

    http://www.ehow.co.uk/how_2067160_ma...hone.html?cr=1

  9. #9
    Join Date
    Oct 2009
    Location
    A world without windows
    Beans
    Hidden!

    Re: How To : Mobile Broadband Connections [ Ubuntu 10.04 : 9.10 : 9.04 ]

    Using a wvdial or Gnomeppp

    To set up wvdial ( first see foot of this post )

    Code:

    sudo wvdialconf

    then will see an output like this:

    Editing `/etc/wvdial.conf'.

    Scanning your serial ports for a modem.

    ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
    ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
    ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
    Modem Port Scan<*1>: S1 S2 S3
    WvModem<*1>: Cannot get information for serial port.
    ttyUSB0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
    ttyUSB0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
    ttyUSB0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
    WvModem<*1>: Cannot get information for serial port.
    ttyUSB1<*1>: ATQ0 V1 E1 -- OK
    ttyUSB1<*1>: ATQ0 V1 E1 Z -- OK
    ttyUSB1<*1>: ATQ0 V1 E1 S0=0 -- OK
    ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
    ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
    ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
    ttyUSB1<*1>: Modem Identifier: ATI -- Manufacturer: ZTE INCORPORATED
    ttyUSB1<*1>: Speed 9600: AT -- OK
    ttyUSB1<*1>: Max speed is 9600; that should be safe.
    ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
    WvModem<*1>: Cannot get information for serial port.
    ttyUSB2<*1>: ATQ0 V1 E1 -- OK
    ttyUSB2<*1>: ATQ0 V1 E1 Z -- OK
    ttyUSB2<*1>: ATQ0 V1 E1 S0=0 -- OK
    ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
    ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
    ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
    ttyUSB2<*1>: Modem Identifier: ATI -- Manufacturer: ZTE INCORPORATED
    ttyUSB2<*1>: Speed 9600: AT -- OK
    ttyUSB2<*1>: Max speed is 9600; that should be safe.
    ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK

    Found a modem on /dev/ttyUSB1. <===================NOTE : my modem has two ports tttyUSB1 and tttyUSB2 : So the wvdial.conf would have to be edited to read :Modem = /dev/ttyUSB2

    Modem configuration written to /etc/wvdial.conf.

    ttyUSB1<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0" I would Remove this entry
    ttyUSB2<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"

    To Edit the file for your provider details

    Code:

    sudo gedit /etc/wvdial.conf



    if your service provider uses an APN {access point name} usually GSM

    AT+CGDCONT - configures the correct APN profile : Consult your service provider

    AT+CGDCONT=n,”IP”,”apn”,,0,0 ,

    For example:

    AT+CGDCONT=4,”IP”,”Telstra.internet”,,0,0


    AT+CGDCONT=1,"IP" "general.t-mobile.uk"


    The init strings can also be important for CDMA:: Consult your service provider or search the net

    Examples:

    from the wvdial.conf files

    CDMA: from a resent post “ where Network Manager could not handle this type of connection “

    [Dialer wana]
    Modem Type = LG EVDO Rev.A USB Modem
    Modem = /dev/ttyUSB1
    Baud = 9600
    ISDN = 0
    Init1 = AT
    Init2 = ATE0V1&D2&C1S0=0
    Init3 = ATS7=60
    Init4 = ATS0=0
    Phone = #777
    Carrier Check = no
    New PPPD = yes
    Username = wana
    Password = wana


    My GSM: Network Manager could handle this

    [Dialer tmobile]
    Init1 = ATZ
    Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    Init3 = AT+CGDCONT=1,"IP" "general.t-mobile.uk"
    Stupid Mode = 1
    ISDN = 0
    Phone = *99#
    Modem = /dev/ttyUSB2
    Modem Type = Analog Modem
    Username = User
    Dial Command = ATDT
    Password = mms
    Baud = 115200
    Dial Attempts = 3

    Note the difference between CDMA and GSM

    you can have several entries in wvdial IE : to dial the entry

    CODE :

    wvdial wana

    or

    wvdial tmobile

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Remember if your Sim Card requires a PIN code to add in the conf file " Init1 = AT+CPIN= < your pin code >

    Things to spot with wvdial

    May indicate PIN code required (use correct pin code)

    --> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    OK
    --> Sending: Init3 = AT+CGDCONT=1,"IP","internet.wind","",0,0
    Init3 = AT+CGDCONT=1,"IP","internet.wind","",0,0
    OK
    --> Modem initialized.
    --> Configuration does not specify a valid phone number.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    May indicate Sim is locked , due to sending wrong code , puck code may be required(best solution, place sim card in mobile phone , unblock sim , disable pin or puk code security)

    --> Modem initialized.
    --> Sending: ATDT*99#
    --> Waiting for carrier.
    ATDT*99#
    ERROR
    --> Invalid dial command.

    --> Disconnecting at Wed Oct 13 13:13:24 2010
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Gnomeppp is a front end to wvdial and easier to use from a desktop point of view. if wvdial works then use same details for gnomeppp,
    Last edited by alexfish; August 6th, 2011 at 01:42 PM.
    Two tin cans are better than an iphone

    http://www.ehow.co.uk/how_2067160_ma...hone.html?cr=1

  10. #10
    Join Date
    Oct 2009
    Location
    A world without windows
    Beans
    Hidden!

    Re: How To : Mobile Broadband Connections [ Ubuntu 10.04 : 9.10 : 9.04 ]

    Sakis3g : MOVED#5
    Last edited by alexfish; February 7th, 2011 at 04:28 AM.
    Two tin cans are better than an iphone

    http://www.ehow.co.uk/how_2067160_ma...hone.html?cr=1

Page 1 of 8 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •