spacer
spacer search

PHARscape
Phar enough!

Search
spacer
header
Main Menu
Home
Linux and 3G
Linux and 3G Forum
Python Stuff
Pictures
Astronomy
Links
Contacting Me
Search
Mambo License
About
Syndicate
Lunarpages.com Web Hosting
 
Home arrow Linux and 3G Forum

PHARscape
3G Datacards and Linux
 
  FAQFAQ    SearchSearch  RegisterRegister 
   Log inLog in 

GlobeTrotter Option Edge datacard in linux
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    PHARscape Forum Index -> GlobeTrotter EDGE
View previous topic :: View next topic  
Author Message
KavitaB



Joined: 02 Dec 2005
Posts: 19

blank.gif
PostPosted: Fri Dec 02, 2005 5:45 am    Post subject: GlobeTrotter Option Edge datacard in linux Reply with quote

Hello thr,

Does anyone know how to run GlobeTrotter Option EDGE datacard in Linux especially in Fedora Core?

If anyone knows can you please give me step by step procedure or atleast any link where the information is available.

I tried to run Option Edge card according to the steps given below. But those steps are for Option GPRS card.
http://www.pharscape.org/index.php?o...ask=view&id=29

Moreover when I am trying to run cardmgr I am not getting any beeps. Its is giving error as
open_sock(Socket 1) failed: Bad file descriptor
If I run cardmgr after killing it gives me error that Device is busy.

I am not getting whats the problem?
How does one verify that cardmgr has recognized the card?

Thanks for any help.

Regards,
Kavita
Back to top
View user's profile Send private message Send e-mail
Guest






PostPosted: Wed Dec 07, 2005 9:50 am    Post subject: Reply with quote

Hi KavitaB,

The Option GlobeTrotter EDGE card is not a GlobeTrotter GPRS card.

If you check system messages (dmesg) when you plug in the card you should see that a new device is detected and has been assigned to some port e.g. /dev/ttyXXX

After that you con open the port with mincom and and check it with AT commands.

Don't forget at+CFUN=1. You should not need to do anything else to get it working.

Paul H
Back to top
Paul
Site Admin


Joined: 08 Oct 2004
Posts: 505
Location: UK and Belgium

uk.gif
PostPosted: Wed Dec 07, 2005 4:26 pm    Post subject: Reply with quote

With the card removed type dmesg and note the last few messges on screen.

Now insert the card and type dmesg again and you should see something like this
ttyS4 at I/O 0xa3e8 (irq = 3) is a 16550A

In this case the EDGE card has been allocated to ttyS4.
Back to top
View user's profile Send private message Visit poster's website
KavitaB



Joined: 02 Dec 2005
Posts: 19

blank.gif
PostPosted: Mon Dec 12, 2005 4:34 am    Post subject: Reply with quote

Hi,

Thanks for the reply.
I tried dmesg and and the system has detected card on ttyS01 port. But when I am using wvdialconf to create wvdial.conf file, its giving error that "resource is already allocated. Have you configured it properly with setserial."

Is there any solution for this?

Regards,
Kavita
Back to top
View user's profile Send private message Send e-mail
Paul
Site Admin


Joined: 08 Oct 2004
Posts: 505
Location: UK and Belgium

uk.gif
PostPosted: Mon Dec 12, 2005 9:10 am    Post subject: Reply with quote

wvdial is probably having problems with ERROR responses - the GT EDGE card will respond with ERROR to most AT commands until AT+CFUN=1 is entered.

In fact it is probably best to send AT+CFUN=1 then wait 1 or 2 seconds before sending any other messages with wvdial.

After that there is nothing special required in wvdial.conf so the example I give in the GT Howto should work too.

gcom http://www.pharscape.org/content/view/34/53/ might be the solution - I'll see if a script will do it.

Paul
Back to top
View user's profile Send private message Visit poster's website
KavitaB



Joined: 02 Dec 2005
Posts: 19

blank.gif
PostPosted: Mon Dec 12, 2005 9:37 am    Post subject: Reply with quote

Hi,

Thanks for the quick response. But I don't know how to open a port and how to send
AT+CFUN=1 command?
What does AT+CFUN=1 means?

Regards,
Kavita
Back to top
View user's profile Send private message Send e-mail
Paul
Site Admin


Joined: 08 Oct 2004
Posts: 505
Location: UK and Belgium

uk.gif
PostPosted: Mon Dec 12, 2005 10:26 am    Post subject: Reply with quote

KavitaB wrote:

What does AT+CFUN=1 means?


I'll see if I can do a gcom script today to send the AT commands.

The AT command +CFUN is a command defined by the GSM/3GPP body.

The +CFUN command does power management on the data card. The default state for the GT EDGE is "radio power off" (AT+CFUN=0). To switch on the radio and get the card registered to a network you need to send the command AT+CFUN=1.

3GPP produce many documents describing how GSM and 3G works.
For your reference this link gets you the document on AT commands:
http://www.3gpp.org/ftp/Specs/archive/07_series/07.07/0707-780.zip

There is also support info on Option's site:
http://www.option.com/support/tt/etsi.shtml

Paul
Back to top
View user's profile Send private message Visit poster's website
KavitaB



Joined: 02 Dec 2005
Posts: 19

blank.gif
PostPosted: Mon Dec 12, 2005 10:35 am    Post subject: Reply with quote

Thanks a lot. I will wait for the gcom script.
Back to top
View user's profile Send private message Send e-mail
KavitaB



Joined: 02 Dec 2005
Posts: 19

blank.gif
PostPosted: Mon Dec 19, 2005 10:58 am    Post subject: Reply with quote

Hi Paul,

I tried my best to connect Option edge card in linux but I couldn't succeed. I am sending you the command and its output that I ran to connect to internet.

[b]1. cardctl ident[/b]
After running this command it was giving me following output.
socket 0:
product info: "Option International", "GSM/GPRS GlobeTrotter", "001", "A"
manfid: 0x0013, 0x0000
function: 2(serial)
The stange thing here is that when I ran same command 10 days back it was giving me different output. THe o/p it was giving was

Socket 0:
product info: "GlobeTrotter", "EDGE", "ML2132C2"
manfid: 0x0314, 0x0007
function: 2(serial)
Do you have any reason why cardctl ident giving different output?

[b]2. cardmgr[/b]
When I ran cardmgr it showed me following output.
cardmgr[3725]: open_sock(socket 2) failed: Bad file descriptor
: watching 2 sockets
: could not adjust resource: IO ports 0xc00-0xcff: device or resource busy.
: could not adjust resource: IO ports 0x100-0x4ff: device or resource busy.
:could not adjust resource: Memory 0xc0000-0xfffff: input output error
:could not adjust resource: Memory 0xa0000000-0xa0ffffff: input output err
:could not adjust resource:IO ports 0xa00-0xaff: device or resource busy.
Why the cardmgr is showing resource busy?

[b]3. wvdialconf /etc/wvdial.conf[/b]
when I ran wvdialconf utility to create wvdial.conf file it was giving following message.
scanning your serial ports for modem
port scan : scanning ttys1 first, /dev/modem is a link to it.
port scan : S1 S0 S2 S3 S4 S5 S6 S7
sorry no modem was detected? Is it in use by another program?
Did you configure it properly with setserial?

Why the wvdialconf utility is not able to detect the modem?

4. minicom -s
I also tried minicom. I set serial port as /dev/ttys1 and init string as AT+CFUN=1; After saving this parameter in dft file minicom window will open. But I was not able to type anything in that window.

5. GCOM
I also tried to run gcom after downloading gcom file and compiling it. But it was giving me following error.
gcom: 18:03:39-> -- Error report--
gcom 18:03:39-> ----> ^
gcom 18:03:39-> error@6, line 1, can't control /dev/modem, please try again (1)

Why gcom is giving error?

6. dmesg
after dmesg it was not giving me on which port on which ir card is connected. but earlier it was giving.

I request you to go through the output of all the commands and if you know answer to any questions please give me inputs so that I will try again to connect.

Thanks for any help.

Regards,
Kavita

[/b]
Back to top
View user's profile Send private message Send e-mail
Paul
Site Admin


Joined: 08 Oct 2004
Posts: 505
Location: UK and Belgium

uk.gif
PostPosted: Wed Dec 21, 2005 10:34 am    Post subject: Reply with quote

KavitaB wrote:

1. cardctl ident
After running this command it was giving me following output.
socket 0:
product info: "Option International", "GSM/GPRS GlobeTrotter", "001", "A"
manfid: 0x0013, 0x0000
function: 2(serial)
The stange thing here is that when I ran same command 10 days back it was giving me different output. THe o/p it was giving was

Socket 0:
product info: "GlobeTrotter", "EDGE", "ML2132C2"
manfid: 0x0314, 0x0007
function: 2(serial)
Do you have any reason why cardctl ident giving different output?

I am guessing you have applied the GlobeTrotter GPRS CIS patch (GLOBETROTTER.dat) and cardctl was reporting the GPRS CIS! This is ONLY for the GlobeTrotter GPRS card. You should not use this for your GlobeTrotter EDGE card. You should remove any modifications you have made to /etc/pcmcia/config. (I suggest a reboot after that).

dmesg should then report a new serial device the next time you insert the card.

This assumes that your PCMCIA port is working under Linux of course.

As a test....
Next run minicom
Configure minicom for the new serial port and for 57600baud. Open the serial port.
You should be able to type
AT(carriage return)
and see
OK on the screen.
Type
AT+CFUN=1
you should then see a number of messages.
After that close minicom

That tells you everything is installed correctly.

GCOM is being updated now to support the EDGE cards - at the moment it does not work with them Sad

Paul
Back to top
View user's profile Send private message Visit poster's website
Paul
Site Admin


Joined: 08 Oct 2004
Posts: 505
Location: UK and Belgium

uk.gif
PostPosted: Wed Dec 21, 2005 1:55 pm    Post subject: Reply with quote

Hi KavitaB,

If you now have a serial port listed by dmesg you can try out this wvdia.conf file... (changing the serial device and APN if needed)

First type

wvdial Setup

then type CTRL-C when it starts to dial *00*

the type

wvdial Operator

Quote:
#Created P.Hardwick for GT Combo EDGE
#Step 1
# wvdial Setup
# type CTRL-C after the dialing attempt
#Step 2
# wvdial Operator &
#
[Dialer Operator]
baud = 57600
Modem = /dev/ttyS4
Carrier Check = no
Init = AT+CGDCONT=1,"IP","internet"
Phone = *99***1#
Dial Command = ATD
Username = user
Password = pass
Stupid Mode = on

[Dialer Setup]
Dial Command = ATD
Baud = 57600
init = AT+CFUN=1
Phone = *00*


There are still a few things to sort out (higher baud rates don't work for some reason) but at least it does connect properly on my Fedora system.

Paul
Back to top
View user's profile Send private message Visit poster's website
KavitaB



Joined: 02 Dec 2005
Posts: 19

blank.gif
PostPosted: Sat Dec 24, 2005 6:30 am    Post subject: Reply with quote

Hi Paul,

Thanks a lot for your help. As per your instruction I removed GlobeTrotter.dat line from cis/config file and now dmesg is recognizing card on ttyS1 also "cardctl ident" is identifying correct card.


Thanks a lot for your help. As per your instruction I removed GlobeTrotter.dat line from cis/config file and now dmesg is recognizing card on ttyS1 also "cardctl ident" is identifying correct card.

I alo tried wvdial.conf file sent by you. But when I type "wvdial Setup" its proprly initializing modem and sending "AT+CFUN=1" command. But the problem is last 2 line shows following message:
---> Modem initialized
---> Configuration does not specify a valid login name
---> Configuration does not specify a valid password
As per service provider there is no username or password required for dialing. I entered phone no as username and password which came with SIM. But its still giving same error.e=2
I alo tried wvdial.conf file sent by you. But when I type "wvdial Setup" its proprly initializing modem and sending "AT+CFUN=1" command. But the problem is last 2 line shows following message:
---> Modem initialized
---> Configuration does not specify a valid login name
---> Configuration does not specify a valid password
As per service provider there is no username or password required for dialing. I entered phone no as username and password which came with SIM. But its still giving same error.
Do you have any idea how to bypass username and password?

I also tried "wvdial Operator". But its giving error "The PPP daemon has died. (exit code=2)
Do we need to configure any other file which pppd tread as default. I guess pppd reads /etc/ppp/option file where you enter "lock, usepeerdns, noauth etc.."

One more thing I want to ask is when I tried wvdialconf utility to create wvdial.conf file in one laptop it created conf file without giving error. But on other laptop it is still giving same error as I mentioned previously. I don't know why its creating conf file without any error and on other it says "No modem detected". We tried so many thing on this machine to connect to net in linux and because of that we have changed something unknowingly.

If you have answer to any of the questions please reply to this post.

Thanks and regards
kavita
Back to top
View user's profile Send private message Send e-mail
Paul
Site Admin


Joined: 08 Oct 2004
Posts: 505
Location: UK and Belgium

uk.gif
PostPosted: Sat Dec 24, 2005 11:35 pm    Post subject: Reply with quote

Yes you can try setting the various PPP options

Quote:
"lock, usepeerdns, noauth etc.."


After running wvdial Setup , wait until the device has registered before doing the next step.
(You should not worry about any error messages in step 1 about dial up - you only want to send the CFUN command. Anything else is not important.)

You can tell when the card registers because of the quick double flash every two seconds for the LED.

Make sure you are using the correct APN of course and the right device too.

Is the SIM you are using enabled for full internet access. Some accounts only allow WAP. Does it work okay on a Windows system for example?

Paul
Back to top
View user's profile Send private message Visit poster's website
KavitaB



Joined: 02 Dec 2005
Posts: 19

blank.gif
PostPosted: Sun Dec 25, 2005 2:42 pm    Post subject: Reply with quote

Hi Paul,

You would be happy to know that I am able to run wvdial commands and its connecting to net, assigning IP and also identifying proper DNS server. Thanks to you for giving me inputs. Yesterday when I was running "Wvdial Operator" it was giving message that pppd daemon has died . Exiting on error code 2. The problem was in /etc/ppp/peers/wvdial file. I was thinking that pppd reads from /etc/ppp/option file and changing all the parametr in this file but actually it was reading parameter from /etc/ppp/peers/wvdial fle where I was given wrong option. This I could fix from /var/log/message file. After removing that option now its running.

Here is the problem.
Eventhough card is connecting to Hutch network and assigning Ip address I am not able to open any site. I tried to ping one host from other but ping requests are also not going out. All the packets sent are lost.
Moreover Hutch is assigning private IP address like 10.5.2.134.
Do you know why its not opening any site and why I am not able to ping other host connected to hutch network?

Thanks and regards,
Kavita
Back to top
View user's profile Send private message Send e-mail
Paul
Site Admin


Joined: 08 Oct 2004
Posts: 505
Location: UK and Belgium

uk.gif
PostPosted: Wed Dec 28, 2005 11:00 am    Post subject: Reply with quote

Hi KavitaB,

Some googling and man page reading - defaultroute option should be used but does not always work.
A bit of googling also threw up this script which may work and should be placed in /etc/ppp and is called ip-up.local (it is run as root.)

Code:
#!/bin/bash
#file: /etc/ppp/ip-up.local

PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH
echo "created by pppd" > /etc/resolv.conf
echo "nameserver ${DNS1}" >> /etc/resolv.conf
echo "nameserver ${DNS2}" >> /etc/resolv.conf
chmod go+r   /etc/resolv.conf


If the defaultroute command does not work you can also add the route update commands to the same script :
route del default
route add default gw ${IPREMOTE}

(I have not tried that ).

Paul
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    PHARscape Forum Index -> GlobeTrotter EDGE All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


phpBB component by Adam van Dongen. Based on phpBB © 2001, 2002 phpBB Group
spacer

 
Copyright 2000 - 2005 Miro International Pty Ltd. All rights reserved.
Mambo is Free Software released under the GNU/GPL License.
spacer