Back Forum Reply New

Bigpond Maxon Bp3-ext Modem Using sierra module

Go here and download the driver and the pppscripts file  from : localhost/extract the files.
In a terminal

# cd lt;directory of sourcegt;
# tar #8211;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. from : localhost/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 sectionstatic 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 sectionMODULE_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 HEREcrtscts

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,quot;IPquot;,quot;proxyquot;

#OK     'AT+CGDCONT=0,quot;IPquot;,quot;proxyquot;'

#OK     'AT+CGDCONT=1,quot;IPquot;,quot;proxyquot;'

#OK     'AT+CGDCONT=2,quot;IPquot;,quot;proxyquot;'

#OK     'AT+CGDCONT=0,quot;IPquot;,quot;ISP.CINGULARquot;'

OK     'AT+CGDCONT=1,quot;IPquot;,quot;TELSTRA.BIGPONDquot;'

#OK     'AT+CGDCONT=2,quot;IPquot;,quot;ISP.CINGULARquot;'
#######################################

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 60seconds

Hey Sharke,Should this /etc/peers/gsm_chat be /etc/ppp/peers/gsm_chat?
Rosco99

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 APNsOK     'AT+CGDCONT=2,quot;IPquot;,quot;TELSTRA.BIGPONDquot;'

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

OK ATD*99#
CONNECT ''

Regards
Sharke

Hey Sharke,
In the line
# cd lt;directory of sourcegt;
# tar #8211;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  amp; make install?---This is not working for me.
Rosco

cd lt;directory of sourcegt; = 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 lt;linux@sierrawireless.comgt;
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 uclichs lt;smurf@smurf.noris.degt; Whom based his on the Keyspan driver by Hugh Blemings lt;hugh@blemings.orggt;
History:
v.1.0.6:klloydAdded more devices and added Vendor Specific USB message to make surethat devices are in D0 state when they start. This is very important forMC5720 and EM5625 modules that go between Windows and Non-Windows machines.
v.1.0.5:Greg KHThis saves over 30 lines and fixes a warning from sparse and allowsdebugging to work dynamically like all other usb-serial drivers.klloydChanged versioning to v.x.y.z
v.1.04:klloydAdds significant throughput increase to the Sierra driver (uses multipleurgs for download link). This patch also updates the current sierra.c driver so that it supports both 3-port Sierra devices and 1-port legacydevices and removes Sierra's references in other related files (Kconfigand airprime.c).
v.1.03klloydAdds DTR line control support and impliments urb control.
*/

#define DRIVER_VERSION quot;v.1.0.6quot;
#define DRIVER_AUTHOR quot;Kevin Lloyd lt;linux@sierrawireless.comgt;quot;
#define DRIVER_DESC quot;USB Driver for Sierra Wireless USB modemsquot;

#include lt;linux/kernel.hgt;
#include lt;linux/jiffies.hgt;
#include lt;linux/errno.hgt;
#include lt;linux/tty.hgt;
#include lt;linux/tty_flip.hgt;
#include lt;linux/module.hgt;
#include lt;linux/usb.hgt;
#include lt;linux/usb/serial.hgt;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

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
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

Hey Sharke,
Which directory does sierra.c occupy?
Ross

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

OK, so it doesn't matter where the sierra v.1.0.6 is located--the make command puts it in the corrct place?
¥
Back Forum Reply New