Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Networking & Wireless
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Networking & Wireless
Having problems getting connected to the internet or getting your wireless card to work? Ask here.

 
Thread Tools Display Modes
Old June 18th, 2007   #1
sharke
Way Too Much Ubuntu
 
sharke's Avatar
 
Join Date: Jan 2005
Location: Brisbane Australia
Beans: 277
Bigpond Maxon Bp3-ext Modem Using sierra module

Go here and download the driver and the pppscripts file http://www.sierrawireless.com/faq/ShowFAQ.aspx?ID=601
Now extract the files.
In a terminal

# cd <directory of source>
# tar –zxf sierra.v.X.Y.Z.tar.gz
# cd sierra.v.X.Y.Z

Before installing the driver we need to patch the source with the modem uids. Quozl has done this many thanks Quozl for your excellent work you can be proud of your work.http://quozl.netrek.org/bp3-usb/

Patch

CONFIG_USB_SERIAL_SIERRAWIRELESS=m

--- linux-2.6.19.2/drivers/usb/serial/sierra.c 2006-11-30 08:57:37.000000000 +1100
+++ linux-2.6.19.2-maxon/drivers/usb/serial/sierra.c 2007-01-24 10:36:24.000000000 +1100
@@ -44,6 +44,7 @@

{ USB_DEVICE(0x1199, 0x0112) }, /* Sierra Wireless AirCard 580 */
{ USB_DEVICE(0x0F3D, 0x0112) }, /* AirPrime/Sierra PC 5220 */
+ { USB_DEVICE(0x16d8, 0x6280) }, /* Maxon BP3-USB 3G Bigpond Telstra */
{ }
};
MODULE_DEVICE_TABLE(usb, id_table);
@@ -65,6 +66,7 @@
{ USB_DEVICE(0x1199, 0x6804) }, /* Sierra Wireless MC8755 for Europe */
{ USB_DEVICE(0x1199, 0x6812) }, /* Sierra Wireless MC8775 */
{ USB_DEVICE(0x1199, 0x6820) }, /* Sierra Wireless AirCard 875 */
+ { USB_DEVICE(0x16d8, 0x6280) }, /* Maxon BP3-USB 3G Bigpond Telstra */
{ }
};
We now add quozls patch to the sierra.c file

I do this in nautilus running sudo nautilus
browse to sierra directory open sierra.c and ad to this section
static struct usb_device_id id_table [] = {
{ USB_DEVICE(0x1199, 0x0017) }, /* Sierra Wireless EM5625 */
{ USB_DEVICE(0x1199, 0x001 }, /* Sierra Wireless MC5720 */
{ USB_DEVICE(0x1199, 0x021 }, /* Sierra Wireless MC5720 */
{ USB_DEVICE(0x1199, 0x0020) }, /* Sierra Wireless MC5725 */
{ USB_DEVICE(0x1199, 0x0019) }, /* Sierra Wireless AirCard 595 */
{ USB_DEVICE(0x1199, 0x0021) }, /* Sierra Wireless AirCard 597E */
{ USB_DEVICE(0x1199, 0x0120) }, /* Sierra Wireless USB Dongle 595U*/

{ USB_DEVICE(0x1199, 0x6802) }, /* Sierra Wireless MC8755 */
{ USB_DEVICE(0x1199, 0x6804) }, /* Sierra Wireless MC8755 */
{ USB_DEVICE(0x1199, 0x6803) }, /* Sierra Wireless MC8765 */
{ USB_DEVICE(0x1199, 0x6812) }, /* Sierra Wireless MC8775 */
{ USB_DEVICE(0x1199, 0x6820) }, /* Sierra Wireless AirCard 875 */

{ USB_DEVICE(0x1199, 0x0112) }, /* Sierra Wireless AirCard 580 */
{ USB_DEVICE(0x0F3D, 0x0112) }, /* AirPrime/Sierra PC 5220 */

the lines from patch

{ USB_DEVICE(0x1199, 0x0112) }, /* Sierra Wireless AirCard 580 */
{ USB_DEVICE(0x0F3D, 0x0112) }, /* AirPrime/Sierra PC 5220 */
{ USB_DEVICE(0x16d8, 0x6280) }, /* Maxon BP3-USB 3G Bigpond Telstra */

Andto this section
MODULE_DEVICE_TABLE(usb, id_table);

static struct usb_device_id id_table_1port [] = {
{ USB_DEVICE(0x1199, 0x0112) }, /* Sierra Wireless AirCard 580 */
{ USB_DEVICE(0x0F3D, 0x0112) }, /* AirPrime/Sierra PC 5220 */
{ USB_DEVICE(0x1199, 0x6804) }, /* Sierra Wireless MC8755 for Europe */
{ USB_DEVICE(0x1199, 0x6812) }, /* Sierra Wireless MC8775 */
{ USB_DEVICE(0x1199, 0x6820) }, /* Sierra Wireless AirCard 875 */

This line from patch

{ USB_DEVICE(0x16d8, 0x6280) }, /* Maxon BP3-USB 3G Bigpond Telstra */

Save and exit Patch now complete
We can now install the driver
# sudo cd /sierra directory

# make
# make install

Reboot and the driver should connect to the modem which in my system is /dev/ttyUSB1
We now extract the pppfile to /etc/ppp/peers
this is a copy of the files i use to connect with pon gsm
/etc/ppp/peers/gsm

-detach

lcp-echo-failure 0

/dev/ttyUSB1

115200

debug

defaultroute

#usepeerdns



#ipcp-no-address

#ipcp-no-addresses

ipcp-max-failure 4

ipcp-accept-local

ipcp-accept-remote



# AUTHENTICATION

# If noauth works, use that, otherwise you have to pass

# the user name and password. This is an example of a

# standard Cingular user/pw combo



#noauth

user sharkenew@bigpond.com

password ENTER YOUR BIGPOND PASSWORD HERE


crtscts

lock

connect '/usr/sbin/chat -v -t6 -f /etc/ppp/peers/gsm_chat'


/etc/ppp/peers/gsm_chat

# Connection script for Sierra Wireless GSM/UMTS modems

# Note: This demo script is setup to work on the Cingular EDGE network

#

SAY 'Starting Sierra Wireless GSM connect script...\n'

SAY '\n'



#######################################

SAY 'Setting the abort string\n'

SAY '\n'

# Abort String ------------------------------

ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT 'NO CARRIER' ABORT DELAYED



#######################################

SAY 'Initializing modem\n'

# Modem Initialization

'' AT

OK ATZ



#######################################

SAY '\n'

SAY 'Setting APN\n'

# Access Point Name (APN)

# Incorrect APN or CGDCONT can often cause errors in connection.

# Below are a bunch of different popular APNs



#REG:\s1 AT+cgdcont=1,"IP","proxy"

#OK 'AT+CGDCONT=0,"IP","proxy"'

#OK 'AT+CGDCONT=1,"IP","proxy"'

#OK 'AT+CGDCONT=2,"IP","proxy"'

#OK 'AT+CGDCONT=0,"IP","ISP.CINGULAR"'

OK 'AT+CGDCONT=1,"IP","TELSTRA.BIGPOND"'

#OK 'AT+CGDCONT=2,"IP","ISP.CINGULAR"'



#######################################

SAY '\n'

SAY 'Dialing...\n'

# Dial the ISP, this is the common Cingular dial string



OK ATD*99#

CONNECT ''
Thats it mission accomplished and hopefully your system wont self distruct in 60
seconds
__________________
Conroe core2 duo 2400 Intel 950G Graphics
Karmic 32 Bit

Last edited by sharke; July 2nd, 2007 at 04:53 AM.. Reason: spelling
sharke is offline   Reply With Quote
Old June 30th, 2007   #2
rosco99
5 Cups of Ubuntu
 
Join Date: Jun 2007
Beans: 42
Re: Bigpond Maxon Bp3-ext Modem Using sierra module

Hey Sharke,Should this /etc/peers/gsm_chat be /etc/ppp/peers/gsm_chat?
Rosco99
rosco99 is offline   Reply With Quote
Old June 30th, 2007   #3
sharke
Way Too Much Ubuntu
 
sharke's Avatar
 
Join Date: Jan 2005
Location: Brisbane Australia
Beans: 277
Re: Bigpond Maxon Bp3-ext Modem Using sierra module

Rosco99
Yes thats should be /etc/ppp/peers/gsm-chat

And here is my files without the cingular junk
/etc/ppp/peers/gsm

-detach

lcp-echo-failure 0

/dev/ttyUSB1

115200

debug

defaultroute

usepeerdns



#ipcp-no-address

#ipcp-no-addresses

ipcp-max-failure 4

ipcp-accept-local

ipcp-accept-remote



# AUTHENTICATION

# If noauth works, use that, otherwise you have to pass

# the user name and password. This is an example of a

# standard bigpond user/pw combo



noauth

user sharkenew@bigpond.com

password ********* Enter Your Password



crtscts

lock

connect '/usr/sbin/chat -v -t6 -f /etc/ppp/peers/gsm_chat'

And
/etc/ppp/peers/gsm-chat


# Connection script for Sierra Wireless GSM/UMTS modems
# Note: This demo script is setup to work on the bigpond network
#
SAY 'Starting Sierra Wireless GSM connect script...\n'
SAY '\n'

#######################################
SAY 'Setting the abort string\n'
SAY '\n'
# Abort String ------------------------------
ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT 'NO CARRIER' ABORT DELAYED

#######################################
SAY 'Initializing modem\n'
# Modem Initialization
'' AT
OK ATZ

#######################################
SAY '\n'
SAY 'Setting APN\n'
# Access Point Name (APN)
# Incorrect APN or CGDCONT can often cause errors in connection.
# Below are a bunch of different popular APNs


OK 'AT+CGDCONT=2,"IP","TELSTRA.BIGPOND"'

#######################################
SAY '\n'
SAY 'Dialing...\n'
# Dial the ISP, this is the common Cingular dial string

OK ATD*99#
CONNECT ''

Regards
Sharke
__________________
Conroe core2 duo 2400 Intel 950G Graphics
Karmic 32 Bit
sharke is offline   Reply With Quote
Old July 1st, 2007   #4
rosco99
5 Cups of Ubuntu
 
Join Date: Jun 2007
Beans: 42
Re: Bigpond Maxon Bp3-ext Modem Using sierra module

Hey Sharke,
In the line
# cd <directory of source>
# tar –zxf sierra.v.X.Y.Z.tar.gz
# cd sierra.v.X.Y.Z
What was the directory you put it in.
Also are v.X.Y.Z the actual figures you put in or do you use sierra.v.1.0.3 as downloaded?
Also when you
Save and exit Patch now complete
We can now install the driver
# sudo cd /sierra directory

# make
# make install
what was the sierra directory?
Do you have to put a file name after make & make install?---This is not working for me.
Rosco
rosco99 is offline   Reply With Quote
Old July 1st, 2007   #5
sharke
Way Too Much Ubuntu
 
sharke's Avatar
 
Join Date: Jan 2005
Location: Brisbane Australia
Beans: 277
Re: Bigpond Maxon Bp3-ext Modem Using sierra module

cd <directory of source> = cd to where you downloaded siera to . In my case cd Desktop/sierra.v.1.0.6.tar.gz
Then
tar -zxf sierra.v.1.0.6.tar,gz

This will create a folder called sierra.v.1.0.6 which has all the files you need.
open the sierra .c in a text editor and add the patch
This is my patched source file showing the bit where i have patched'
sierra.c
/*
USB Driver for Sierra Wireless

Copyright (C) 2006 Kevin Lloyd <linux@sierrawireless.com>

IMPORTANT DISCLAIMER: This driver is not commercially supported by
Sierra Wireless. Use at your own risk.

This driver is free software; you can redistribute it and/or modify
it under the terms of Version 2 of the GNU General Public License as
published by the Free Software Foundation.

Portions based on the option driver by Matthias Urlichs <smurf@smurf.noris.de>
Whom based his on the Keyspan driver by Hugh Blemings <hugh@blemings.org>

History:
v.1.0.6:
klloyd
Added more devices and added Vendor Specific USB message to make sure
that devices are in D0 state when they start. This is very important for
MC5720 and EM5625 modules that go between Windows and Non-Windows
machines.
v.1.0.5:
Greg KH
This saves over 30 lines and fixes a warning from sparse and allows
debugging to work dynamically like all other usb-serial drivers.
klloyd
Changed versioning to v.x.y.z
v.1.04:
klloyd
Adds significant throughput increase to the Sierra driver (uses multiple
urgs for download link). This patch also updates the current sierra.c
driver so that it supports both 3-port Sierra devices and 1-port legacy
devices and removes Sierra's references in other related files (Kconfig
and airprime.c).
v.1.03
klloyd
Adds DTR line control support and impliments urb control.
*/

#define DRIVER_VERSION "v.1.0.6"
#define DRIVER_AUTHOR "Kevin Lloyd <linux@sierrawireless.com>"
#define DRIVER_DESC "USB Driver for Sierra Wireless USB modems"

#include <linux/kernel.h>
#include <linux/jiffies.h>
#include <linux/errno.h>
#include <linux/tty.h>
#include <linux/tty_flip.h>
#include <linux/module.h>
#include <linux/usb.h>
#include <linux/usb/serial.h>


static struct usb_device_id id_table [] = {
{ USB_DEVICE(0x1199, 0x0017) }, /* Sierra Wireless EM5625 */
{ USB_DEVICE(0x1199, 0x001 }, /* Sierra Wireless MC5720 */
{ USB_DEVICE(0x1199, 0x021 }, /* Sierra Wireless MC5720 */
{ USB_DEVICE(0x1199, 0x0020) }, /* Sierra Wireless MC5725 */
{ USB_DEVICE(0x1199, 0x0019) }, /* Sierra Wireless AirCard 595 */
{ USB_DEVICE(0x1199, 0x0021) }, /* Sierra Wireless AirCard 597E */
{ USB_DEVICE(0x1199, 0x0120) }, /* Sierra Wireless USB Dongle 595U*/

{ USB_DEVICE(0x1199, 0x6802) }, /* Sierra Wireless MC8755 */
{ USB_DEVICE(0x1199, 0x6804) }, /* Sierra Wireless MC8755 */
{ USB_DEVICE(0x1199, 0x6803) }, /* Sierra Wireless MC8765 */
{ USB_DEVICE(0x1199, 0x6812) }, /* Sierra Wireless MC8775 */
{ USB_DEVICE(0x1199, 0x6820) }, /* Sierra Wireless AirCard 875 */

{ USB_DEVICE(0x1199, 0x0112) }, /* Sierra Wireless AirCard 580 */
{ USB_DEVICE(0x0F3D, 0x0112) }, /* AirPrime/Sierra PC 5220 */
{ USB_DEVICE(0x1199, 0x0112) }, /* Sierra Wireless AirCard 580 */
{ USB_DEVICE(0x0F3D, 0x0112) }, /* AirPrime/Sierra PC 5220 */
{ USB_DEVICE(0x16d8, 0x6280) }, /* Maxon BP3-USB 3G Bigpond Telstra */


{ }
};
MODULE_DEVICE_TABLE(usb, id_table);

static struct usb_device_id id_table_1port [] = {
{ USB_DEVICE(0x1199, 0x0112) }, /* Sierra Wireless AirCard 580 */
{ USB_DEVICE(0x0F3D, 0x0112) }, /* AirPrime/Sierra PC 5220 */
{ USB_DEVICE(0x1199, 0x6804) }, /* Sierra Wireless MC8755 for Europe */
{ USB_DEVICE(0x1199, 0x6812) }, /* Sierra Wireless MC8775 */
{ USB_DEVICE(0x1199, 0x6820) }, /* Sierra Wireless AirCard 875 */
{ USB_DEVICE(0x16d8, 0x6280) }, /* Maxon BP3-USB 3G Bigpond Telstra */
{ }
};

You add the lines that are not in your existing sierra.c

Regards
Sharke
__________________
Conroe core2 duo 2400 Intel 950G Graphics
Karmic 32 Bit

Last edited by sharke; July 1st, 2007 at 07:26 AM.. Reason: spelling
sharke is offline   Reply With Quote
Old July 1st, 2007   #6
rosco99
5 Cups of Ubuntu
 
Join Date: Jun 2007
Beans: 42
Re: Bigpond Maxon Bp3-ext Modem Using sierra module

Hi Sharke,
I could not get the tar command to work, so I right clicked on the file and extracted it which produced the file sierra.v.106. I then edited sierra.c. I also reproduced the gsm and gsm-chat files.
Which directory is sierra.v.1.0.6 meant to finish up in?
When I did pon gsm I got an error related to the screts file (I can't remember the exact wording and the printer wouldn't print the terminal screen).
I wonder if doing tar puts the file in the drivers folder whereas extracting just puts it on the desk top.
If it needs to be in the drivers file how will i get the priveleges to allow me to do it?
Thank you,
Ross
rosco99 is offline   Reply With Quote
Old July 2nd, 2007   #7
sharke
Way Too Much Ubuntu
 
sharke's Avatar
 
Join Date: Jan 2005
Location: Brisbane Australia
Beans: 277
Re: Bigpond Maxon Bp3-ext Modem Using sierra module

rosco99
After patching the sierra,c file cd to sierra.v.106 yours may be slightly different
In terminal
make
after this completes with no errors
sudo make install
Then if you take a look at dmesg you should see the modem connected to the sierra module
Make sure you copy the ppp files into /etc/ppp/peers
Regards
Sharke
__________________
Conroe core2 duo 2400 Intel 950G Graphics
Karmic 32 Bit

Last edited by sharke; July 2nd, 2007 at 03:37 AM.. Reason: spelling
sharke is offline   Reply With Quote
Old July 2nd, 2007   #8
rosco99
5 Cups of Ubuntu
 
Join Date: Jun 2007
Beans: 42
Re: Bigpond Maxon Bp3-ext Modem Using sierra module

Hey Sharke,
Which directory does sierra.c occupy?
Ross
rosco99 is offline   Reply With Quote
Old July 2nd, 2007   #9
sharke
Way Too Much Ubuntu
 
sharke's Avatar
 
Join Date: Jan 2005
Location: Brisbane Australia
Beans: 277
Re: Bigpond Maxon Bp3-ext Modem Using sierra module

sierra.c should be in the sierra.v.1.0.6 folder and is only used by the make command to build the module dont move it.
Regards
Sharke
__________________
Conroe core2 duo 2400 Intel 950G Graphics
Karmic 32 Bit
sharke is offline   Reply With Quote
Old July 2nd, 2007   #10
rosco99
5 Cups of Ubuntu
 
Join Date: Jun 2007
Beans: 42
Re: Bigpond Maxon Bp3-ext Modem Using sierra module

OK, so it doesn't matter where the sierra v.1.0.6 is located--the make command puts it in the corrct place?
rosco99 is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:16 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry