Re: Using a mobile phone via Bluetooth

2009-07-07 Thread Dan Williams
On Mon, 2009-07-06 at 23:52 -0400, Ryan Novosielski wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Dan Williams wrote:
  On Mon, 2009-07-06 at 12:54 -0400, Ryan Novosielski wrote:
  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1
 
  Brian Morrison wrote:
  Saw this on the Planet Fedora RSS feed today:
 
  http://fetzig.org/2009/07/04/tethering-in-fedora-using-your-mobile-phone-with-networkmanager-to-surf-the-web/
 
  Does this look the sort of thing where a more sane approach could be
  added to NM or udev to cope with a wider range of phones without
  needing to create user rules?
  I notice this solution mentions GSM. Is there any reason this should not
  work for a CDMA phone?
  
  As long as the phone responds to AT+GCAP with IS-707 the probe will
  tag the phone as a CDMA device and you should be able to use it with a
  CDMA connection like any normal data card or USB-attached CDMA phone.
  NM shouldn't be confused by the mis-tagged HAL entry in the linked
  dialup-bluetooth.py because it prefers the probed capabilities over
  static ones in HAL.
 
 So I actually got this working where an rfcomm1 shows up in the NM
 Plasma Applet (I assume that I'm probably supposed to stop setting up
 rfcomm0 manually with /etc/bluetooth/rfcomm.conf). However, nothing I do
 seems to make it want to actually connect. At first the rfcomm1 shows up
 and claims to be looking for an IP address. Then it fails. It's not
 clear that it ever attempts to dialup via PPP, even though I have a
 connection configured. Is there some way to troubleshoot this?

Sounds like more on the Bluetooth side, of course.  Does your phone do
anything when NM tries to bring the connection up?  Mine usually asks me
whether I want to allow the computer to connect, or it'll show an icon
saying a computer is connected.  In any case, this is exactly why this
method is a hack, and why we want the real solution...

Dan


___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Using a mobile phone via Bluetooth

2009-07-07 Thread Ryan Novosielski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Dan Williams wrote:
 On Mon, 2009-07-06 at 23:52 -0400, Ryan Novosielski wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Dan Williams wrote:
 On Mon, 2009-07-06 at 12:54 -0400, Ryan Novosielski wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Brian Morrison wrote:
 Saw this on the Planet Fedora RSS feed today:

 http://fetzig.org/2009/07/04/tethering-in-fedora-using-your-mobile-phone-with-networkmanager-to-surf-the-web/

 Does this look the sort of thing where a more sane approach could be
 added to NM or udev to cope with a wider range of phones without
 needing to create user rules?
 I notice this solution mentions GSM. Is there any reason this should not
 work for a CDMA phone?
 As long as the phone responds to AT+GCAP with IS-707 the probe will
 tag the phone as a CDMA device and you should be able to use it with a
 CDMA connection like any normal data card or USB-attached CDMA phone.
 NM shouldn't be confused by the mis-tagged HAL entry in the linked
 dialup-bluetooth.py because it prefers the probed capabilities over
 static ones in HAL.
 So I actually got this working where an rfcomm1 shows up in the NM
 Plasma Applet (I assume that I'm probably supposed to stop setting up
 rfcomm0 manually with /etc/bluetooth/rfcomm.conf). However, nothing I do
 seems to make it want to actually connect. At first the rfcomm1 shows up
 and claims to be looking for an IP address. Then it fails. It's not
 clear that it ever attempts to dialup via PPP, even though I have a
 connection configured. Is there some way to troubleshoot this?
 
 Sounds like more on the Bluetooth side, of course.  Does your phone do
 anything when NM tries to bring the connection up?  Mine usually asks me
 whether I want to allow the computer to connect, or it'll show an icon
 saying a computer is connected.  In any case, this is exactly why this
 method is a hack, and why we want the real solution...

My phone is already paired because I use it all the time from kppp, but
would love to do it this way instead. I believe there is some activity
on the phone but will have to take a look at it again. I'm assuming
there's some way to run NM in a mode where I can see exactly what it
thinks it's doing? If something fails, it would be good to see what so I
can tweak if possible.

- --
  _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Systems Programmer II
 |$| |__| |  | |__/ | \| _| |novos...@umdnj.edu - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent.|IST/CST - NJMS Medical Science Bldg - C630
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkpTcaEACgkQmb+gadEcsb6XjACbBHvQm8tCzE9Tn5lewIGpjiY3
v78Anj05wTaRnJalDWhMzhCi1OisOwll
=DNX0
-END PGP SIGNATURE-
begin:vcard
fn:Ryan Novosielski
n:Novosielski;Ryan
org:UMDNJ;IST/AST
adr;dom:MSB C630;;185 South Orange Avenue;Newark;NJ;07103
email;internet:novos...@umdnj.edu
title:Systems Programmer II
tel;work:(973) 972-0922
tel;fax:(973) 972-7412
tel;pager:(866) 20-UMDNJ
x-mozilla-html:FALSE
version:2.1
end:vcard

___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Using a mobile phone via Bluetooth

2009-07-07 Thread david . daniel . smith

On Tue, Jul 7, 2009 at 3:18 AM, Dan Williamsd...@redhat.com wrote:

On Mon, 2009-07-06 at 12:54 -0400, Ryan Novosielski wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Brian Morrison wrote:
 Saw this on the Planet Fedora RSS feed today:

 
http://fetzig.org/2009/07/04/tethering-in-fedora-using-your-mobile-phone-with-networkmanager-to-surf-the-web/

 Does this look the sort of thing where a more sane approach could be
 added to NM or udev to cope with a wider range of phones without
 needing to create user rules?

I notice this solution mentions GSM. Is there any reason this should not
work for a CDMA phone?


As long as the phone responds to AT+GCAP with IS-707 the probe will
tag the phone as a CDMA device and you should be able to use it with a
CDMA connection like any normal data card or USB-attached CDMA phone.
NM shouldn't be confused by the mis-tagged HAL entry in the linked
dialup-bluetooth.py because it prefers the probed capabilities over
static ones in HAL.



I have an emobile (Japanese provider) CDMA device that responds with +GCAP: 
+CGSM,+DS,+ES but not IS-707 and so only gets resolved as GSM by NM, but in 
reality it's a CDMA-only device and works fine when just dialed with pppd. What 
should I do in this situation? Also an earlier model from the same provider 
that was also CDMA failed to respond at all to the AT+GCAP (and subsequent) 
commands from nm-modem-probe. Is the device not following the spec or is NM too 
strict?


signature.asc
Description: OpenPGP digital signature
___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Using a mobile phone via Bluetooth

2009-07-07 Thread Dan Williams
On Wed, 2009-07-08 at 01:13 +0900, david.daniel.sm...@gmail.com wrote:
 On Tue, Jul 7, 2009 at 3:18 AM, Dan Williamsd...@redhat.com wrote:
  On Mon, 2009-07-06 at 12:54 -0400, Ryan Novosielski wrote:
  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1
 
  Brian Morrison wrote:
   Saw this on the Planet Fedora RSS feed today:
  
   http://fetzig.org/2009/07/04/tethering-in-fedora-using-your-mobile-phone-with-networkmanager-to-surf-the-web/
  
   Does this look the sort of thing where a more sane approach could be
   added to NM or udev to cope with a wider range of phones without
   needing to create user rules?
 
  I notice this solution mentions GSM. Is there any reason this should not
  work for a CDMA phone?
 
  As long as the phone responds to AT+GCAP with IS-707 the probe will
  tag the phone as a CDMA device and you should be able to use it with a
  CDMA connection like any normal data card or USB-attached CDMA phone.
  NM shouldn't be confused by the mis-tagged HAL entry in the linked
  dialup-bluetooth.py because it prefers the probed capabilities over
  static ones in HAL.
 
 
 I have an emobile (Japanese provider) CDMA device that responds with +GCAP: 
 +CGSM,+DS,+ES but not IS-707 and so only gets resolved as GSM by NM, but in 
 reality it's a CDMA-only device and works fine when just dialed with pppd. 
 What should I do in this situation? Also an earlier model from the same 
 provider that was also CDMA failed to respond at all to the AT+GCAP (and 
 subsequent) commands from nm-modem-probe. Is the device not following the 
 spec or is NM too strict?

Emobile appears to be a GSM carrier, they appear to provide HSPA-based
3G services.  You may be confusing CDMA with W-CDMA.  W-CDMA (Wideband
CDMA) is the GSM-based 3G standard but shares a technological basis with
the CDMA2000 standards that we actually think of as CDMA.

What does your ppp dialup script contain?  That would help narrow the
issue down.

Dan


___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Using a mobile phone via Bluetooth

2009-07-07 Thread David Smith


emobile.pppd
Description: Binary data


signature.asc
Description: OpenPGP digital signature
___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Using a mobile phone via Bluetooth

2009-07-07 Thread Dan Williams
On Wed, 2009-07-08 at 01:31 +0900, David Smith wrote:
 On Wed, Jul 8, 2009 at 1:19 AM, Dan Williamsd...@redhat.com wrote:
  On Wed, 2009-07-08 at 01:13 +0900, david.daniel.sm...@gmail.com wrote:
  On Tue, Jul 7, 2009 at 3:18 AM, Dan Williamsd...@redhat.com wrote:
   On Mon, 2009-07-06 at 12:54 -0400, Ryan Novosielski wrote:
   -BEGIN PGP SIGNED MESSAGE-
   Hash: SHA1
  
   Brian Morrison wrote:
Saw this on the Planet Fedora RSS feed today:
   
http://fetzig.org/2009/07/04/tethering-in-fedora-using-your-mobile-phone-with-networkmanager-to-surf-the-web/
   
Does this look the sort of thing where a more sane approach could be
added to NM or udev to cope with a wider range of phones without
needing to create user rules?
  
   I notice this solution mentions GSM. Is there any reason this should not
   work for a CDMA phone?
  
   As long as the phone responds to AT+GCAP with IS-707 the probe will
   tag the phone as a CDMA device and you should be able to use it with a
   CDMA connection like any normal data card or USB-attached CDMA phone.
   NM shouldn't be confused by the mis-tagged HAL entry in the linked
   dialup-bluetooth.py because it prefers the probed capabilities over
   static ones in HAL.
  
 
  I have an emobile (Japanese provider) CDMA device that responds with 
  +GCAP: +CGSM,+DS,+ES but not IS-707 and so only gets resolved as GSM by 
  NM, but in reality it's a CDMA-only device and works fine when just dialed 
  with pppd. What should I do in this situation? Also an earlier model from 
  the same provider that was also CDMA failed to respond at all to the 
  AT+GCAP (and subsequent) commands from nm-modem-probe. Is the device not 
  following the spec or is NM too strict?
 
  Emobile appears to be a GSM carrier, they appear to provide HSPA-based
  3G services.  You may be confusing CDMA with W-CDMA.  W-CDMA (Wideband
  CDMA) is the GSM-based 3G standard but shares a technological basis with
  the CDMA2000 standards that we actually think of as CDMA.
 
 
 Indeed, sorry for the confusion.
 
  What does your ppp dialup script contain?  That would help narrow the
  issue down.
 
 I've attached the pppd config file and the chatscript. It all seems like very 
 default settings (just dial the right number and use em/em for l/p). I 
 suppose it's the format of the number it's dialing that's interesting?

Yup.  That tells the phone what stored APN to use, in this case APN #1.
Whatever that is; you can use AT+CGDCONT=? to get them I think.

Dan

 
  Dan
 
 
 
 

___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Using a mobile phone via Bluetooth

2009-07-07 Thread Brian Morrison
Dan Williams wrote:

 Sounds like more on the Bluetooth side, of course.  Does your phone do
 anything when NM tries to bring the connection up?  Mine usually asks me
 whether I want to allow the computer to connect, or it'll show an icon
 saying a computer is connected.

Bluetooth will insist on being paired and authorised as well or it will
ask for permission to allow the connection and use it.

  In any case, this is exactly why this
 method is a hack, and why we want the real solution...

I don't see there is any way to bypass these parts of the Bluetooth
protocol stack, but perhaps you know differently.

-- 

Brian
___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Using a mobile phone via Bluetooth

2009-07-07 Thread Dan Williams
On Tue, 2009-07-07 at 17:43 +0100, Brian Morrison wrote:
 Dan Williams wrote:
 
  Sounds like more on the Bluetooth side, of course.  Does your phone do
  anything when NM tries to bring the connection up?  Mine usually asks me
  whether I want to allow the computer to connect, or it'll show an icon
  saying a computer is connected.
 
 Bluetooth will insist on being paired and authorised as well or it will
 ask for permission to allow the connection and use it.

Right, you can't always just open the persistent rfcomm port and expect
it to work, due to these sorts of issues.

   In any case, this is exactly why this
  method is a hack, and why we want the real solution...
 
 I don't see there is any way to bypass these parts of the Bluetooth
 protocol stack, but perhaps you know differently.

Well, the problem is that there's no intelligence built into that hack
method of doing Bluetooth.  In the bits we've added to 0.8 for
Bluetooth, we ask Bluez to set up the rfcomm port, and we can get
reliable errors when we can't talk to the phone or when something else
goes wrong.  With the persistent stuff, the errors just get completely
lost, because to NetworkManager, the hacked rfcomm thing just looks like
a directly connected serial port and thus all errors on the bluetooth
side just end up looking like a generic failure to talk to the modem.

Dan


___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Using a mobile phone via Bluetooth

2009-07-06 Thread Ryan Novosielski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Brian Morrison wrote:
 Saw this on the Planet Fedora RSS feed today:
 
 http://fetzig.org/2009/07/04/tethering-in-fedora-using-your-mobile-phone-with-networkmanager-to-surf-the-web/
 
 Does this look the sort of thing where a more sane approach could be
 added to NM or udev to cope with a wider range of phones without
 needing to create user rules?

I notice this solution mentions GSM. Is there any reason this should not
work for a CDMA phone?

- --
  _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Systems Programmer II
 |$| |__| |  | |__/ | \| _| |novos...@umdnj.edu - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent.|IST/CST - NJMS Medical Science Bldg - C630
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkpSLDMACgkQmb+gadEcsb72KgCeKW0iv4XjuPSezHHPRpNle0YQ
qTwAoIaeE/fo4pbEIhzPAtkYtTi/qGJC
=rkxV
-END PGP SIGNATURE-
begin:vcard
fn:Ryan Novosielski
n:Novosielski;Ryan
org:UMDNJ;IST/AST
adr;dom:MSB C630;;185 South Orange Avenue;Newark;NJ;07103
email;internet:novos...@umdnj.edu
title:Systems Programmer II
tel;work:(973) 972-0922
tel;fax:(973) 972-7412
tel;pager:(866) 20-UMDNJ
x-mozilla-html:FALSE
version:2.1
end:vcard

___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Using a mobile phone via Bluetooth

2009-07-06 Thread Dan Williams
On Sat, 2009-07-04 at 23:55 +0100, Brian Morrison wrote:
 Saw this on the Planet Fedora RSS feed today:
 
 http://fetzig.org/2009/07/04/tethering-in-fedora-using-your-mobile-phone-with-networkmanager-to-surf-the-web/
 
 Does this look the sort of thing where a more sane approach could be
 added to NM or udev to cope with a wider range of phones without
 needing to create user rules?

The sane approach is to actually handle bluetooth devices natively in
NM; while the rfcomm thing works, it's certainly not preferred for a
variety of reasons I can explain if you like.  First off is that rfcomm
ports aren't usually dynamic, thus when probed and your phone isn't in
range the probe will fail.  Second is that they don't show up in the NM
API or the menu properly because NM of course doesn't know much about
them because they don't have a proper backing physical device that NM
knows about.  Second, NM can't respond to Bluez events or do anything
intelligent about errors, because NM sees it as just an rfcomm port.

However, there's already bluetooth PAN support in 0.8/master, and DUN
should be coming soon now that all the ModemManager stuff is fixed up
for udev.

http://blogs.gnome.org/dcbw/2009/05/22/a%e2%80%a2b%e2%80%a2c-delicious/

Dan


___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Using a mobile phone via Bluetooth

2009-07-06 Thread Dan Williams
On Mon, 2009-07-06 at 12:54 -0400, Ryan Novosielski wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Brian Morrison wrote:
  Saw this on the Planet Fedora RSS feed today:
  
  http://fetzig.org/2009/07/04/tethering-in-fedora-using-your-mobile-phone-with-networkmanager-to-surf-the-web/
  
  Does this look the sort of thing where a more sane approach could be
  added to NM or udev to cope with a wider range of phones without
  needing to create user rules?
 
 I notice this solution mentions GSM. Is there any reason this should not
 work for a CDMA phone?

As long as the phone responds to AT+GCAP with IS-707 the probe will
tag the phone as a CDMA device and you should be able to use it with a
CDMA connection like any normal data card or USB-attached CDMA phone.
NM shouldn't be confused by the mis-tagged HAL entry in the linked
dialup-bluetooth.py because it prefers the probed capabilities over
static ones in HAL.

Dan


___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


Re: Using a mobile phone via Bluetooth

2009-07-06 Thread Ryan Novosielski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Dan Williams wrote:
 On Mon, 2009-07-06 at 12:54 -0400, Ryan Novosielski wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Brian Morrison wrote:
 Saw this on the Planet Fedora RSS feed today:

 http://fetzig.org/2009/07/04/tethering-in-fedora-using-your-mobile-phone-with-networkmanager-to-surf-the-web/

 Does this look the sort of thing where a more sane approach could be
 added to NM or udev to cope with a wider range of phones without
 needing to create user rules?
 I notice this solution mentions GSM. Is there any reason this should not
 work for a CDMA phone?
 
 As long as the phone responds to AT+GCAP with IS-707 the probe will
 tag the phone as a CDMA device and you should be able to use it with a
 CDMA connection like any normal data card or USB-attached CDMA phone.
 NM shouldn't be confused by the mis-tagged HAL entry in the linked
 dialup-bluetooth.py because it prefers the probed capabilities over
 static ones in HAL.

So I actually got this working where an rfcomm1 shows up in the NM
Plasma Applet (I assume that I'm probably supposed to stop setting up
rfcomm0 manually with /etc/bluetooth/rfcomm.conf). However, nothing I do
seems to make it want to actually connect. At first the rfcomm1 shows up
and claims to be looking for an IP address. Then it fails. It's not
clear that it ever attempts to dialup via PPP, even though I have a
connection configured. Is there some way to troubleshoot this?

- --
  _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Systems Programmer II
 |$| |__| |  | |__/ | \| _| |novos...@umdnj.edu - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent.|IST/CST - NJMS Medical Science Bldg - C630
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkpSxpMACgkQmb+gadEcsb4rhwCdH/FnSG5Nwl+ddhD2taECkSWm
4QMAn0ZDmzNjzPNHiSr0JIcVyJKjT0i7
=iIxk
-END PGP SIGNATURE-
begin:vcard
fn:Ryan Novosielski
n:Novosielski;Ryan
org:UMDNJ;IST/AST
adr;dom:MSB C630;;185 South Orange Avenue;Newark;NJ;07103
email;internet:novos...@umdnj.edu
title:Systems Programmer II
tel;work:(973) 972-0922
tel;fax:(973) 972-7412
tel;pager:(866) 20-UMDNJ
x-mozilla-html:FALSE
version:2.1
end:vcard

___
NetworkManager-list mailing list
NetworkManager-list@gnome.org
http://mail.gnome.org/mailman/listinfo/networkmanager-list