Re: GSM detection/identification

2008-08-03 Thread Paul Buede
Matt Joyce wrote:

 The wiki has some interesting info on GSM :
 http://wiki.openmoko.org/wiki/Gsm

 The AT commands to interact with the hardware are here :
 http://wiki.openmoko.org/wiki/Hardware:AT_Commands
 (I wonder if they are an extension of the earlier dial up modem
 commands ala Hayes?)

 here's how you use the commands:
 http://wiki.openmoko.org/wiki/Gsmd#Usage_of_shell_mode

 these command may work for you :

 r   Register to network
 R   Register to given operator (R=number)
 U   Unregister from netowrk
 P   Print current operator
 N   Print current operator in numeric
 L   List available operators
 Q   Read signal quality
 nr  Query network registration

 As I mentioned, I wanted to find all contactable sites, but didn't
 find a command for that.

   
That was a huge help. What I need now is a way to pass commands from the
cli and have it return values to the cli rather than operating in the
shell. So then I can write a script to do it and log to a file. I want
it to run while I drive around, so I don't have to stop on tap on the
tiny keyboard. Any suggestions?

I was able to do the following today, from home:

[EMAIL PROTECTED]:/var/volatile/log# libgsmd-tool -m shell
libgsm-tool - (C) 2006-2007 by Harald Welte and OpenMoko, Inc.
This program is Free Software and has ABSOLUTELY NO WARRANTY

L
# # List operators
31026 T - Mobile, T - Mob for short, is our current operator
31056 Cellular One DC, Cell On for short, is available
31041 Cingular, Cingula for short, is available


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GSM detection/identification

2008-08-03 Thread Matt
Paul Buede wrote:
 Matt Joyce wrote:
   
 The wiki has some interesting info on GSM :
 http://wiki.openmoko.org/wiki/Gsm

 The AT commands to interact with the hardware are here :
 http://wiki.openmoko.org/wiki/Hardware:AT_Commands
 (I wonder if they are an extension of the earlier dial up modem
 commands ala Hayes?)

 here's how you use the commands:
 http://wiki.openmoko.org/wiki/Gsmd#Usage_of_shell_mode

 these command may work for you :

 r   Register to network
 R   Register to given operator (R=number)
 U   Unregister from netowrk
 P   Print current operator
 N   Print current operator in numeric
 L   List available operators
 Q   Read signal quality
 nr  Query network registration

 As I mentioned, I wanted to find all contactable sites, but didn't
 find a command for that.

   
 
 That was a huge help. What I need now is a way to pass commands from the
 cli and have it return values to the cli rather than operating in the
 shell. So then I can write a script to do it and log to a file. I want
 it to run while I drive around, so I don't have to stop on tap on the
 tiny keyboard. Any suggestions?

 I was able to do the following today, from home:

 [EMAIL PROTECTED]:/var/volatile/log# libgsmd-tool -m shell
 libgsm-tool - (C) 2006-2007 by Harald Welte and OpenMoko, Inc.
 This program is Free Software and has ABSOLUTELY NO WARRANTY

 L
 # # List operators
 31026 T - Mobile, T - Mob for short, is our current operator
 31056 Cellular One DC, Cell On for short, is available
 31041 Cingular, Cingula for short, is available


 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community

   
I think you want is :

For your operator
echo -e AT+COPS\n | libgsmd-tool -m atcmd

For availabel operators
echo -e AT+COPS=?\n | libgsmd-tool -m atcmd

Please report back if this helps.


Matt

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GSM detection/identification

2008-08-03 Thread Paul Buede
Paul Buede wrote:
 Matt Joyce wrote:
   
 The wiki has some interesting info on GSM :
 http://wiki.openmoko.org/wiki/Gsm

 The AT commands to interact with the hardware are here :
 http://wiki.openmoko.org/wiki/Hardware:AT_Commands
 (I wonder if they are an extension of the earlier dial up modem
 commands ala Hayes?)

 here's how you use the commands:
 http://wiki.openmoko.org/wiki/Gsmd#Usage_of_shell_mode

 these command may work for you :

 r   Register to network
 R   Register to given operator (R=number)
 U   Unregister from netowrk
 P   Print current operator
 N   Print current operator in numeric
 L   List available operators
 Q   Read signal quality
 nr  Query network registration

 As I mentioned, I wanted to find all contactable sites, but didn't
 find a command for that.

   
 
 That was a huge help. What I need now is a way to pass commands from the
 cli and have it return values to the cli rather than operating in the
 shell. So then I can write a script to do it and log to a file. I want
 it to run while I drive around, so I don't have to stop on tap on the
 tiny keyboard. Any suggestions?

 I was able to do the following today, from home:

 [EMAIL PROTECTED]:/var/volatile/log# libgsmd-tool -m shell
 libgsm-tool - (C) 2006-2007 by Harald Welte and OpenMoko, Inc.
 This program is Free Software and has ABSOLUTELY NO WARRANTY

 L
 # # List operators
 31026 T - Mobile, T - Mob for short, is our current operator
 31056 Cellular One DC, Cell On for short, is available
 31041 Cingular, Cingula for short, is available

   
So, I drove around and stopped, and everytime I had any reception at
all, meaning the L gave me any carriers, it gave me the same three
carriers. This modifies my initial theory, and leads to a new one. So,
my new theory is that the SIM card is what allows the phone to see any
carriers at all. And that the three operators I could see in my tests
must all allow roaming on each others networks, which is why my T-Mobile
SIM lets me see only those three. I should be able to see Verizon, US
Cellular, and who knows what other operators from some of the places I
tested, including my house.

So, right now, I took the SIM card out, rebooted my phone, and am
testing to see if I can see any carriers at all (doing this from home),
and I see no carriers at all. In fact, here is the output:

[EMAIL PROTECTED]:~# libgsmd-tool -m shell
libgsm-tool - (C) 2006-2007 by Harald Welte and OpenMoko, Inc.
This program is Free Software and has ABSOLUTELY NO WARRANTY

# cme error: 315
L
# List operators
Q
# Signal strength
EVENT: Netreg registration denied
cme error: 32
EVENT: Signal Quality: 11
Signal quality -91 dBm
Error rate undetectable
EVENT: Signal Quality: 9
EVENT: Signal Quality: 11
EVENT: Signal Quality: 9
EVENT: Signal Quality: 11
EVENT: Signal Quality: 9
EVENT: Signal Quality: 11

# L
List operators
cme error: 13

So, I am disappointed. I am going to need SIM cards from other operators
to test reception anywhere. This makes things harder, or at least
slower, as I will have to remove SIM cards and insert new ones at any
given area to test the various carriers. Does anyone else in the US use
a carrier I have not listed as visible with T-Mobile? And would you be
willing to test and see what other carriers you are able to see? Maybe
we can build a list of carrier teams, for lack of a better term. I have
6 days left to back out of my TMobile contract, so I need to get SIM
cards for testing quickly... Will let you all know how it goes.


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GSM detection/identification

2008-08-03 Thread Steven Kurylo
 And that the three operators I could see in my tests
 must all allow roaming on each others networks, which is why my T-Mobile
 SIM lets me see only those three. I should be able to see Verizon, US
 Cellular, and who knows what other operators from some of the places I
 tested, including my house.

I don't know why you'd ever expect to see CDMA carriers with a GSM phone.

You won't see Verizon or US Cellular or Sprint.

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GSM detection/identification

2008-08-03 Thread Scott

Paul,

Sounds like what you want is to run the GSM radio in promiscuous mode, 
like some wireless Ethernet radios can do.
My old Razr and the Iphone would do something like that. It won't tell 
you the carrier but it will list the available sites, with their ID and 
signal strength.  There is a web page with all the site id's on it 
connected to google maps. Can't remember the address off the top of my head.


If you could mash up the site ID's gathered from your phone to the web 
site


Scott

There might be an AT command to do just that.  On my old razr
Paul Buede wrote:

Paul Buede wrote:

Matt Joyce wrote:
  

The wiki has some interesting info on GSM :
http://wiki.openmoko.org/wiki/Gsm

The AT commands to interact with the hardware are here :
http://wiki.openmoko.org/wiki/Hardware:AT_Commands
(I wonder if they are an extension of the earlier dial up modem
commands ala Hayes?)

here's how you use the commands:
http://wiki.openmoko.org/wiki/Gsmd#Usage_of_shell_mode

these command may work for you :

r   Register to network
R   Register to given operator (R=number)
U   Unregister from netowrk
P   Print current operator
N   Print current operator in numeric
L   List available operators
Q   Read signal quality
nr  Query network registration

As I mentioned, I wanted to find all contactable sites, but didn't
find a command for that.

  


That was a huge help. What I need now is a way to pass commands from the
cli and have it return values to the cli rather than operating in the
shell. So then I can write a script to do it and log to a file. I want
it to run while I drive around, so I don't have to stop on tap on the
tiny keyboard. Any suggestions?

I was able to do the following today, from home:

[EMAIL PROTECTED]:/var/volatile/log# libgsmd-tool -m shell
libgsm-tool - (C) 2006-2007 by Harald Welte and OpenMoko, Inc.
This program is Free Software and has ABSOLUTELY NO WARRANTY

L
# # List operators
31026 T - Mobile, T - Mob for short, is our current operator
31056 Cellular One DC, Cell On for short, is available
31041 Cingular, Cingula for short, is available

  

So, I drove around and stopped, and everytime I had any reception at
all, meaning the L gave me any carriers, it gave me the same three
carriers. This modifies my initial theory, and leads to a new one. So,
my new theory is that the SIM card is what allows the phone to see any
carriers at all. And that the three operators I could see in my tests
must all allow roaming on each others networks, which is why my T-Mobile
SIM lets me see only those three. I should be able to see Verizon, US
Cellular, and who knows what other operators from some of the places I
tested, including my house.

So, right now, I took the SIM card out, rebooted my phone, and am
testing to see if I can see any carriers at all (doing this from home),
and I see no carriers at all. In fact, here is the output:

[EMAIL PROTECTED]:~# libgsmd-tool -m shell
libgsm-tool - (C) 2006-2007 by Harald Welte and OpenMoko, Inc.
This program is Free Software and has ABSOLUTELY NO WARRANTY

# cme error: 315
L
# List operators
Q
# Signal strength
EVENT: Netreg registration denied
cme error: 32
EVENT: Signal Quality: 11
Signal quality -91 dBm
Error rate undetectable
EVENT: Signal Quality: 9
EVENT: Signal Quality: 11
EVENT: Signal Quality: 9
EVENT: Signal Quality: 11
EVENT: Signal Quality: 9
EVENT: Signal Quality: 11

# L
List operators
cme error: 13

So, I am disappointed. I am going to need SIM cards from other operators
to test reception anywhere. This makes things harder, or at least
slower, as I will have to remove SIM cards and insert new ones at any
given area to test the various carriers. Does anyone else in the US use
a carrier I have not listed as visible with T-Mobile? And would you be
willing to test and see what other carriers you are able to see? Maybe
we can build a list of carrier teams, for lack of a better term. I have
6 days left to back out of my TMobile contract, so I need to get SIM
cards for testing quickly... Will let you all know how it goes.




signature.asc
Description: OpenPGP digital signature
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GSM detection/identification

2008-08-03 Thread Paul Buede
Steven Kurylo wrote:
 And that the three operators I could see in my tests
 must all allow roaming on each others networks, which is why my T-Mobile
 SIM lets me see only those three. I should be able to see Verizon, US
 Cellular, and who knows what other operators from some of the places I
 tested, including my house.
 

 I don't know why you'd ever expect to see CDMA carriers with a GSM phone.

 You won't see Verizon or US Cellular or Sprint.

   
Oh, I guess I thought Verizon did GSM as well as CDMA.  I also expected
US Cellular to do GSM too, guess I was wrong.  So then, I guess it
doesn't really matter what carrier I go with if they all have the same
coverage..

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GSM detection/identification

2008-08-03 Thread Esben Stien
Paul Buede [EMAIL PROTECTED] writes:

 What I need now is a way to pass commands from the cli and have it
 return values to the cli rather than operating in the shell.

What you want is a non interactive interface to the gsm daemon and I'm
very surprised it's not implemented this way. 

-- 
Esben Stien is [EMAIL PROTECTED] s  a 
 http://www. s tn m
  irc://irc.  b  -  i  .   e/%23contact
   sip:b0ef@   e e 
   jid:b0ef@n n

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GSM detection/identification

2008-08-03 Thread Matt Joyce
On Mon, Aug 4, 2008 at 11:47 AM, Esben Stien [EMAIL PROTECTED] wrote:
 Paul Buede [EMAIL PROTECTED] writes:

 What I need now is a way to pass commands from the cli and have it
 return values to the cli rather than operating in the shell.

 What you want is a non interactive interface to the gsm daemon and I'm
 very surprised it's not implemented this way.


`libgsmd-tool -m atcmd` outputs results to stdout.  (tested on 2007.2)

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GSM detection/identification

2008-07-31 Thread Ken Restivo
On Tue, Jul 29, 2008 at 09:57:01PM -0400, Paul Buede wrote:
 Dimitri wrote:
  Are you able to make and receive calls?
 
  If not, perhaps the sim isn't touching all the phone's connections.
 
  At least, that's the problem I had when I tried to connect to ATT. It would
  show that I had 5 bars, but it would always say Registering
 
  I was able to wiggle the sim a little, reboot the phone, and have it
  properly connect to the ATT network (i.e., it changed from Registering...
  to ATT and I was able to make/receive calls and text messages).
 
  D
   
 
  Paul Buede wrote:

  So, I picked up a tmobile sim, and signed up with them (I have another
  week to cancel), and so the phone registers with tmobile.  I am finding
  the coverage isn't great in the rural areas I find myself.  When driving
  around, if out of reach of tmobile, it will say registering as if
  there is no sim card.  But, on the little image of the antenna, that
  shows how strong my connection is, I still have 2 bars.  Is that a bad
  guage of connectivity?  Is it wrong?  Or does that maybe tell me that it
  has 2 bars of strength with some sort of other gsm network?  Is there a
  way I can query the phone from the cli to have it show me the different
  carriers it can sense network for?  I am interested in running a little
  cron to pipe all carriers it detects into a file every minute as I drive
  around the countryside, so I can see  who i will get the best coverage
  with.
 
  Thanks
 
  
 
 Yes, I am able to make and receive calls when it reads T-Mobile in the
 upper left. But then, as I get further away from civilization it
 switches to Registering, but a bar or two remain in the upper right.

Hmm. Has anyone ported Kismet to the OpenMoko yet?

Also, has anyone created a GSM Kismet, or some kind of tool that will list all 
carriers and their relative signal strengths.

Since the phone has a built in GPS, it seems like it would be the absolutely 
ideal Kismet platform, and also for something similar to map cell phone signal 
strength and coverage.

With GPRS, it could also upload that coverage data to a public site somewhere 
and create nice interactive maps. Could be helpful for people choosing which 
carrier to use: you could see who's got what coverage where in places that you 
commonly travel to, live in, and work in.

The carriers would hate it, but so what. The people might find it useful.

-ken

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GSM detection/identification. Kismet on Freerunner

2008-07-31 Thread Stroller

On 31 Jul 2008, at 09:31, Ken Restivo wrote:
 ...
 Hmm. Has anyone ported Kismet to the OpenMoko yet?
 ...
 Since the phone has a built in GPS, it seems like it would be the  
 absolutely ideal Kismet platform, and also for something similar to  
 map cell phone signal strength and coverage.

Hi there,

I don't think the Freerunner's wifi driver (chip firmware?) will do  
passive mode. I think you may be able to run Kismet without this, but  
if so it is MUCH less useful.

 Also, has anyone created a GSM Kismet, or some kind of tool that  
 will list all carriers and their relative signal strengths.
 ...
 With GPRS, it could also upload that coverage data to a public site  
 somewhere and create nice interactive maps. Could be helpful for  
 people choosing which carrier to use: you could see who's got what  
 coverage where in places that you commonly travel to, live in, and  
 work in.

I think this idea was suggested a while ago, with some positive  
responses.

Stroller.


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GSM detection/identification

2008-07-30 Thread Paul Buede
ian douglas wrote:
 Paul Buede wrote:
   
 the coverage isn't great in the rural areas I find myself.  When driving
 around, if out of reach of tmobile, it will say registering as if
 there is no sim card.  But, on the little image of the antenna, that
 shows how strong my connection is, I still have 2 bars.  Is that a bad
 guage of connectivity?
 


 As far as I recall, TMobile only uses the higher-frequency band, (1800
 or 1900? I can never remember), and probably won't drop down to the
 850MHz band unless they've signed an agreement with ATT to piggyback on
 their lower-frequency network in the rural areas where you've been.

 -id


   

Anybody else know what I can query or run to view available cell
carriers at any given time?  Is this even possible?  Correct me if I am
wrong, I am kind of making this up to try and figure out how it works:

Phone with no SIM card listens and transmits on given frequency, in
Neo's case its 1800/1900 and 850 in the US.  I assume it can see all the
various cell carriers, but cannot register until it has the SIM card,
which acts as a key, maybe analogous to a public key?  Once it has that,
it can register with the provider, and the provider queries its systems
to see if the SIM has an account associated, and if so what level of
service is associated with the SIM. 

Under my completely made up scenario, without a SIM I ought to be able
to see the various carriers who respond to queries, but who I cannot
register with, due to my lack of their public key (probably a bad
analogy, but its all I have right now).

Thanks, and please enlighten me.

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GSM detection/identification

2008-07-30 Thread Matt Joyce
On Thu, Jul 31, 2008 at 10:38 AM, Paul Buede [EMAIL PROTECTED] wrote:

 Anybody else know what I can query or run to view available cell
 carriers at any given time?  Is this even possible?  Correct me if I am
 wrong, I am kind of making this up to try and figure out how it works:



I had a play last night, I was trying to find out what towers were contactable.
I wasn't successful, but you might be with your investigations.

The wiki has some interesting info on GSM :
http://wiki.openmoko.org/wiki/Gsm

The AT commands to interact with the hardware are here :
http://wiki.openmoko.org/wiki/Hardware:AT_Commands
(I wonder if they are an extension of the earlier dial up modem
commands ala Hayes?)

here's how you use the commands:
http://wiki.openmoko.org/wiki/Gsmd#Usage_of_shell_mode

these command may work for you :

r   Register to network
R   Register to given operator (R=number)
U   Unregister from netowrk
P   Print current operator
N   Print current operator in numeric
L   List available operators
Q   Read signal quality
nr  Query network registration

As I mentioned, I wanted to find all contactable sites, but didn't
find a command for that.

Regards

Matt

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


GSM detection/identification

2008-07-29 Thread Paul Buede
So, I picked up a tmobile sim, and signed up with them (I have another
week to cancel), and so the phone registers with tmobile.  I am finding
the coverage isn't great in the rural areas I find myself.  When driving
around, if out of reach of tmobile, it will say registering as if
there is no sim card.  But, on the little image of the antenna, that
shows how strong my connection is, I still have 2 bars.  Is that a bad
guage of connectivity?  Is it wrong?  Or does that maybe tell me that it
has 2 bars of strength with some sort of other gsm network?  Is there a
way I can query the phone from the cli to have it show me the different
carriers it can sense network for?  I am interested in running a little
cron to pipe all carriers it detects into a file every minute as I drive
around the countryside, so I can see  who i will get the best coverage with.

Thanks

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GSM detection/identification

2008-07-29 Thread ian douglas
Paul Buede wrote:
 the coverage isn't great in the rural areas I find myself.  When driving
 around, if out of reach of tmobile, it will say registering as if
 there is no sim card.  But, on the little image of the antenna, that
 shows how strong my connection is, I still have 2 bars.  Is that a bad
 guage of connectivity?


As far as I recall, TMobile only uses the higher-frequency band, (1800
or 1900? I can never remember), and probably won't drop down to the
850MHz band unless they've signed an agreement with ATT to piggyback on
their lower-frequency network in the rural areas where you've been.

-id


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GSM detection/identification

2008-07-29 Thread Dimitri

Are you able to make and receive calls?

If not, perhaps the sim isn't touching all the phone's connections.

At least, that's the problem I had when I tried to connect to ATT. It would
show that I had 5 bars, but it would always say Registering

I was able to wiggle the sim a little, reboot the phone, and have it
properly connect to the ATT network (i.e., it changed from Registering...
to ATT and I was able to make/receive calls and text messages).

D
 

Paul Buede wrote:
 
 So, I picked up a tmobile sim, and signed up with them (I have another
 week to cancel), and so the phone registers with tmobile.  I am finding
 the coverage isn't great in the rural areas I find myself.  When driving
 around, if out of reach of tmobile, it will say registering as if
 there is no sim card.  But, on the little image of the antenna, that
 shows how strong my connection is, I still have 2 bars.  Is that a bad
 guage of connectivity?  Is it wrong?  Or does that maybe tell me that it
 has 2 bars of strength with some sort of other gsm network?  Is there a
 way I can query the phone from the cli to have it show me the different
 carriers it can sense network for?  I am interested in running a little
 cron to pipe all carriers it detects into a file every minute as I drive
 around the countryside, so I can see  who i will get the best coverage
 with.
 
 Thanks
 

-- 
View this message in context: 
http://n2.nabble.com/GSM-detection-identification-tp640786p640891.html
Sent from the Openmoko Community mailing list archive at Nabble.com.


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GSM detection/identification

2008-07-29 Thread Scott

Paul,

I inexperience the same behavior on the ATT(850  1900) network. When 
the signal drops below a certain level on the left is says 
registering on the right the signal icon indicates some bogus value..


I think there is an update issue with the icon, and the message for no 
service, registering.. doesn't make a lot of sense either.  If you 
bring up the gsm/status dialog sometimes it will provide a saner reason 
for no connection, but then sometimes its message is bogus to..


Scott

ian douglas wrote:

Paul Buede wrote:

the coverage isn't great in the rural areas I find myself.  When driving
around, if out of reach of tmobile, it will say registering as if
there is no sim card.  But, on the little image of the antenna, that
shows how strong my connection is, I still have 2 bars.  Is that a bad
guage of connectivity?



As far as I recall, TMobile only uses the higher-frequency band, (1800
or 1900? I can never remember), and probably won't drop down to the
850MHz band unless they've signed an agreement with ATT to piggyback on
their lower-frequency network in the rural areas where you've been.

-id




signature.asc
Description: OpenPGP digital signature
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community