Nickji - Feb 4, 2006 - 9:01 pm
I have a powerbook G4, Mac OS 10.4
I have a Mot. E680 GSMphone China Mobile.
I want to connect the phone to powerbook as a GPRS modem via USB & Bluetooth.
I visited
http://www.taniwha.org.uk/ for a Modem script but can not access this web.
1, Can somebody help to send me the modem script?
2, Do I need different modem script for bluetooth and USB respectively.
Any of your help will be appreciated!
Have a nice day!
Nick Ji
dalesit - Feb 7, 2006 - 5:58 am
The GPRS scripts appear as modem types - you should be able to use the same script for both.
Hear is the readme from the scripts:
PLEASE READ ALL THE INSTRUCTIONS CAREFULLY
These scripts activate GPRS operation by automatically dialling the dummy phone number *99***n# (= "make GPRS IP connection using Context ID n"). In order to access the correct GPRS access point, you may have been provided an Access Point Name (APN) by your network provider - enter it into the 'Number' field of Remote Access (Classic) or Internet Connect (OS X) instead of a phone number. The script will then set the APN if you have supplied one, and if you use the +CGQREQ script, it will also configure requested service quality parameters.
Do NOT enter a phone number in the 'Number' field - the script automatically dials 99***n#. Put the APN in the 'Number' field instead, or enter "None" (without the "") if there is no APN for your GPRS network. Do not use the usual username & password you use for your dialup ISP - use the username and/or password provided by the GPRS network operator.
There are several versions because some networks seem to object to the attempt to set levels of service (e.g. throughput, delay), and because some networks configure Context ID 1 (CID1) for WAP. Work your way through them until you find one that works.
- The Motorola GPRS CIDx scripts just let the network do what it wants, performance-wise. There is no performance difference between the different CIDs.
- The Motorola GPRS CIDx +CGQREQ scripts use the +CGQREQ command to set a requested service profile. The +CGQREQ script may give better performance, but it might not connect on some networks.
- The 57.6k scripts reduce the serial port speed from 115200 to 57600 for some USB-serial adapters or phone serial ports that don't support the higher speed - you will not need them with infrared or Bluetooth.
- The Text folder contains text versions so you can see what goes on inside the scripts
The bottom line is: if one script doesn't work, try the others.
Most networks require an APN and a usercode & password to get a connection. If you cannot connect, and have not received any information on an APN or usercode/password from your service provider, you need to ask them about it.
These scripts may have bugs in them - I can't test them myself as I don't have a Motorola phone or a GPRS account. Please contact me (email address below) if you are successful and have the details for a new network, or if you have problems
Known network details
(always check with your provider if possible - they change)
There's a list of most networks and their GPRS parameters on my Website:
http://www.taniwha.org.uk/gprs.html
Known Issues:
1. The 'Send PPP Echo packets' option introduced in OS X seems to cause problems with some GPRS networks. You can switch it off in System Preferences>Network>PPP>PPP Options.
2. If you have trouble connecting, try switching off 'Use TCP header compression' in Remote Access>Options>Connection (OS 9) or System Preferences>Network>PPP>PPP Options (OS X).
3. Some networks do not correctly supply Domain Name Server (DNS) addresses. If you are able to connect, but cannot browse or get email, it is likely that you need to set the DNS addresses manually - ask your service provider for the DNS address, or look on my GPRS page.
4. In OS 9 the Remote Access control panel will not allow you to dial (the Connect button will be greyed-out) unless there is at least one character in either the usercode or password fields, or you select Guest rather than Registered User. If your network does not use a usercode/password, select the Guest option. OS X's Internet Connect does not have a Guest option, so just leave the username & password fields blank in that case.
5. These scripts do not report the connect speed. GPRS doesn't have a fixed speed, so the phone doesn't bother giving a speed in its CONNECT response. .
Classic OS Instructions:
1. Drop the modem script into System Folder:Extensions:Modem Script Folder.
2. Open up Remote Access control panel
A. Press Command-K to bring up Configurations
B. Duplicate your current config & rename it, e.g. "GPRS" or whatever you like.
C. Click 'Make Active'
D. Type in any username/password details provided by your network, or leave blank
E. Enter the APN provided by your network, or "None" (without the quotes)
F. Save the configuration on close
3. Open Modem control panel
A. Press Command-K to bring up Configurations
B. Duplicate your current config & rename it, e.g. "GPRS" or whatever you like.
C. Click 'Make Active'
D. Set 'Connect via: "Infrared Port"' (or a USB serial port if you are using USB)
E. Set 'Modem: "Motorola GPRS
"'
F. Set 'Ignore dial tone'
G. Save the configuration on close
4. If you need to enter Domain Name Server (DNS) addresses, open the TCP/IP control panel
A. Press Command-K to bring up Configurations
B. Duplicate your current config & rename it, e.g. "GPRS" or whatever you like.
C. Click 'Make Active'
D. Set 'Connect via: "PPP"'
E. Set 'Configure: "Using PPP server"'
F. Set 'Name server addr.:' to the values (one or two) supplied by the network
G. Save the configuration on close
4. Turn on Motorola Infrared port:
A. Press MENU:Phone Setup:Activate IR Port or use the Quick Menu
B. Select OK to activate IR port
C. Line up Motorola IR port facing left rear IR port on PowerBook.
5. Connect:
A. Click "Connect" on Remote Access Control Panel
B. No dial/modem sounds are heard during connection process
OS X Instructions
1. Drop the modem scripts into Library/Modem Scripts
2. Set up PPP:
A. Open Network Preferences
B. Optional: Create a new location - call it "Mobile" or whatever (this is not absolutely necessary, since the modem config in the current location can have different settings to the existing Ethernet, etc. ports, but a separate location may be useful if you already have a mobile phone dial setting for the same IrDA/Bluetooth/USB port in your default location)
C. Select "Show: 'IrDA Modem Port'" (or a USB-serial or Bluetooth port if you are using those)
D. Select the PPP tab and enter your network name in "Service Provider".
E. Enter in "Telephone Number" the APN for your network or NONE
F. Enter the Account name & Password (if required)
G. Press the "PPP Options..." button
H. Make sure that 'Send PPP echo packets' is not selected
3. Set up modem
A. Select the IrDA Modem (or the equivalent USB or Bluetooth name) tab in Network Preferences
B. Set 'Modem: "Motorola GPRS "'
4. If you are using Infrared, turn on Motorola Infrared port:
A. Press MENU:Phone Setup:Activate IR Port or use the Quick Menu
B. Select OK to activate IR port
C. Line up Motorola IR port facing left rear IR port on PowerBook.
5. Connect:
A. Open Internet Connect
B. Select IrDA Modem Port (or the equivalent USB or Bluetooth port name)
C. Click "Connect"
D. No dial/modem sounds are heard during connection process
Extra hints:
1. To monitor the infrared connection in OS 9, open the Infrared control panel to see that it shows 'IrDA Devices in range: L-Series' or 'Timeport' (or whatever model you have). It will also show the connection process. In OS X, you can display the IrDA status in the Menu bar.
2. In OS 9, you can switch between the Remote Access configurations from the Control Strip, or using Location Manager. Location Manager can also switch Modem and TCP/IP configs, so it is by far the easiest way to switch between GPRS and any other set-ups you may have.
Kia ora,
Ross
ross@taniwha.org.uk
http://www.taniwha.org.uk
----------------------------------------
My scripts aren't shareware - you can use them for free. However, several people have asked if there's anything they can send me as thanks for helping out with various scripts and modem/phone issues. Normally I'd say, "Buy me a beer", but since the Mac community is global, that's not really practical. So I've adopted the Pintware concept pioneered by Turly O'Connor for his wonderful OS9 FinderPop utility. If my scripts are of use to you and you'd like to say "Thanks", you can make a donation to buy me a pint or two through PayPal by clicking the "Thanks, Ross" button on my website. Just give whatever you think is reasonable.
dalesit - Feb 7, 2006 - 6:01 am
I believe I have uploaded the scripts to the system, but I'm not sure how it will appear to you. If you have any problems accessing it, let me know your email address I and I will email you the files.
Cheers,
Joel
Nickji - Feb 7, 2006 - 7:46 am
Thanks Joel for your great help.
I am a newbie switching from PC to Mac a month ago. I have been trying connect Motorola E680 to Powerbook G4 for half month.
Below pls find what I did and what I got:
**Computer:
Powerbook G4, 1.33GHz, 512MB DDR SDRAM, MAC OSX 10.4
**Phone:
Motorola E680 sold by China Mobile with a CD for windows.
APN: CMNET
Username: (blank, do not need)
Password: blank, do not need)
Dial No.: *99#
DNS: 10.0.0.172
1, With the CD installed on my PC, the Sync, GPRS connection works very well till now, nothing wrong.
2,With E680 connected with PB, and trying everything under various instruction on web, I finnally have the connection set down.
3, When trying to make the connection, I am pleased to find E680 show 'dialing *99#, pls wait... then hangup.
4, Below pls find the connection log I got:
Tue Feb 7 21:40:02 2006 : CCLWrite : AT\13
Tue Feb 7 21:40:02 2006 : CCLMatched : OK\13\10
Tue Feb 7 21:40:02 2006 : CCLWrite : AT&FE0V1&C1S0=0\13
Tue Feb 7 21:40:02 2006 : CCLMatched : OK\13\10
Tue Feb 7 21:40:04 2006 : CCLWrite : AT+CGDCONT=1,"IP","cmnet",,0,0\13
Tue Feb 7 21:40:04 2006 : CCLMatched : OK\13\10
Tue Feb 7 21:40:04 2006 : Making GPRS connection
Tue Feb 7 21:40:04 2006 : CCLWrite : ATD*99#\13
Tue Feb 7 21:40:04 2006 : CCLMatched : CONNECT
Tue Feb 7 21:40:08 2006 : Serial connection established.
Tue Feb 7 21:40:08 2006 : using link 0
Tue Feb 7 21:40:08 2006 : Using interface ppp0
Tue Feb 7 21:40:08 2006 : Connect: ppp0 <--> /dev/cu.usbmodem1B11
Tue Feb 7 21:40:10 2006 : sent [LCP ConfReq id=0x1
]
Tue Feb 7 21:40:10 2006 : rcvd [LCP ConfAck id=0x1 ]
Tue Feb 7 21:40:10 2006 : rcvd [LCP ConfReq id=0x1 ]
Tue Feb 7 21:40:10 2006 : No auth is possible
Tue Feb 7 21:40:10 2006 : lcp_reqci: returning CONFREJ.
Tue Feb 7 21:40:10 2006 : sent [LCP ConfRej id=0x1 ]
Tue Feb 7 21:40:10 2006 : rcvd [LCP TermReq id=0x2 00 00 00 00 00 00]
Tue Feb 7 21:40:10 2006 : sent [LCP TermAck id=0x2]
Tue Feb 7 21:40:10 2006 : Hangup (SIGHUP)
Tue Feb 7 21:40:10 2006 : Modem hangup
Tue Feb 7 21:40:10 2006 : Connection terminated.
By the way, you can send me Email at yznji@yahoo.com if you need. I will provide all the things you need to help me solving this problem.
Thanks!
Nick
dalesit - Feb 13, 2006 - 10:00 am
According to the website, you might need to put in a username/password combination:
Country Network APN Username Password
China China Mobile cmnet guest guest
dalesit - Feb 13, 2006 - 10:03 am
According to the website, you might need to put in a username/password combination:
Country Network APN Username Password
China China Mobile cmnet guest guest
The basic problem appears to be that
Tue Feb 7 21:40:10 2006 : No auth is possible
Have you tried the various scripts for the different Context IDs? I don't know the details for Motorola, but the often various IDs relate to the order the Data Services are listed as profiles on the phone.
Cheers,
Joel
Nickji - Feb 14, 2006 - 5:37 pm
Thanks Joel! It finnally works, great for me!!!
After username and password entered, it was able to connect but can not keep the connection.
I read this artical
http://www.osnews.com/story.php?news_id=12247
HowTo: Motorola Linux Smartphones, Mac OS X and Cingular GPRS ...
and put the following lines into /etc/ppp/options
novj
:192.168.0.254
Both modem script metioned on the artical above works for my phone Mot. E680.
It works very well now. Both via bluetooth and USB.
Thanks Joel again for your great help. I even consider to give up the GPRS function by PT.
One more question is: Why Mac OS need a GPRS username and password while PC does not? This is the misleading thing which let me try other way to solve my problem for month, neglected the point.
Nick
dalesit - Feb 16, 2006 - 6:28 pm
The option you mentioned might be the setting which is controlled as mentioned here:
1. The 'Send PPP Echo packets' option introduced in OS X seems to cause problems with some GPRS networks. You can switch it off in System Preferences>Network>PPP>PPP Options.
As to why the PC software doesn't require the username and password? I don't know - it is possible that the PC software defaults to something, but I'm just guessing.
Glad you got it going.
Cheers,
Joel
Nickji - Feb 16, 2006 - 7:52 pm
Thanks Joel. You are realy something!!! If you have chance to China, it will be my pleasure to have a drink with you.
Nick