Re: WAN Ericsson F3507g

2008-11-09 Thread Dan Williams
On Thu, 2008-11-06 at 15:41 -0700, James Ward wrote:
 Thanks Dan.
 
 Here is the output:
 NetworkManager: info  Activation (ttyACM0) starting connection 'Auto
 GSM network connection'
 NetworkManager: info  (ttyACM0): device state change: 3 - 4
 NetworkManager: info  Activation (ttyACM0) Stage 1 of 5 (Device
 Prepare) scheduled...
 NetworkManager: info  Activation (ttyACM0) Stage 1 of 5 (Device
 Prepare) started...
 NetworkManager: debug [1226010840.735911] nm_serial_device_open():
 (ttyACM0) opening device...
 NetworkManager: info  Activation (ttyACM0) Stage 1 of 5 (Device
 Prepare) complete.
 NetworkManager: debug [1226010840.841058] nm_serial_debug(): Sending:
 'ATZ E0 V1 X4 C1 +FCLASS=0
 '
 NetworkManager: debug [1226010840.869797] nm_serial_debug(): Got: 'ATZ
 E0 V1 X4 C1 +FCLASS=0
 '
 NetworkManager: debug [1226010840.880689] nm_serial_debug(): Got: 'ATZ
 E0 V1 X4 C1 +FCLASS=0

This was fixed on 2008-10-26 in r4222.

Dan

 
 ERROR
 
 '
 NetworkManager: WARN  init_done(): Modem initialization failed
 NetworkManager: info  (ttyACM0): device state change: 4 - 9
 NetworkManager: debug [1226010840.880892] nm_serial_device_close():
 Closing device 'ttyACM0'
 NetworkManager: info  Marking connection 'Auto GSM network connection'
 invalid.
 NetworkManager: info  Activation (ttyACM0) failed.
 NetworkManager: info  (ttyACM0): device state change: 9 - 3
 NetworkManager: info  (ttyACM0): deactivating device (reason: 0).
 NetworkManager: nm_system_device_flush_ip4_routes_with_iface: assertion
 `iface_idx = 0' failed
 NetworkManager: nm_system_device_flush_ip4_addresses_with_iface:
 assertion `iface_idx = 0' failed
 
 
 
 The light on my laptop indicating that the device is on, never turned on
 using NM.  But if I do:
 cu -l /dev/ttyACM0
 
 AT+CFUN=1
 
 
 Then the light does come on.
 
 I have 0.7~~svn20081018t105859-0ubuntu2~nm4 from the PPA on Intrepid.
 
 Thanks for your help.
 
 -James
 
 
 On Thu, 2008-11-06 at 07:35 -0500, Dan Williams wrote:
  On Wed, 2008-11-05 at 15:36 -0700, James Ward wrote:
   Hi,
   
   I just recently upgraded to the Lenovo W500 laptop which has a built-in
   Ericsson F2507g WAN card.  Unfortunately I can't get this new card to
   work with NM because it needs to be turned on first.  There is a thread
   about how to do this manually on Ubuntu:
   http://ubuntuforums.org/showthread.php?t=934013
  
  NetworkManager does turn the card on with CFUN=1 already.  I'll need
  serial debug logging enabled to figure out what's going on with your
  card.  Stop NM, then as root run it like:
  
  NM_SERIAL_DEBUG=1 /usr/sbin/NetworkManager --no-daemon
  
  and try a connection.  Attach the output of NM so we can figure out
  what's actually going wrong here.
  
  Dan
  
   My sim card doesn't require a password like the newer ones so this
   should be pretty simple.  But I can't seem to make it work.  I'm using
   the Ubuntu NM PPA.  Any ideas?
   
   Thanks.
   
   -James
   
   ___
   NetworkManager-list mailing list
   NetworkManager-list@gnome.org
   http://mail.gnome.org/mailman/listinfo/networkmanager-list
  
 

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


Re: WAN Ericsson F3507g

2008-11-07 Thread Per Hallsmark

Sorry for stepping in again but...

The error is because NM normally send ATZ.

The F3507g module doesn't understand this command, it is using ATF 
instead for reset.




James Ward wrote:

Thanks Dan.

Here is the output:
NetworkManager: info  Activation (ttyACM0) starting connection 'Auto
GSM network connection'
NetworkManager: info  (ttyACM0): device state change: 3 - 4
NetworkManager: info  Activation (ttyACM0) Stage 1 of 5 (Device
Prepare) scheduled...
NetworkManager: info  Activation (ttyACM0) Stage 1 of 5 (Device
Prepare) started...
NetworkManager: debug [1226010840.735911] nm_serial_device_open():
(ttyACM0) opening device...
NetworkManager: info  Activation (ttyACM0) Stage 1 of 5 (Device
Prepare) complete.
NetworkManager: debug [1226010840.841058] nm_serial_debug(): Sending:
'ATZ E0 V1 X4 C1 +FCLASS=0
'
NetworkManager: debug [1226010840.869797] nm_serial_debug(): Got: 'ATZ
E0 V1 X4 C1 +FCLASS=0
'
NetworkManager: debug [1226010840.880689] nm_serial_debug(): Got: 'ATZ
E0 V1 X4 C1 +FCLASS=0


ERROR

'
NetworkManager: WARN  init_done(): Modem initialization failed
NetworkManager: info  (ttyACM0): device state change: 4 - 9
NetworkManager: debug [1226010840.880892] nm_serial_device_close():
Closing device 'ttyACM0'
NetworkManager: info  Marking connection 'Auto GSM network connection'
invalid.
NetworkManager: info  Activation (ttyACM0) failed.
NetworkManager: info  (ttyACM0): device state change: 9 - 3
NetworkManager: info  (ttyACM0): deactivating device (reason: 0).
NetworkManager: nm_system_device_flush_ip4_routes_with_iface: assertion
`iface_idx = 0' failed
NetworkManager: nm_system_device_flush_ip4_addresses_with_iface:
assertion `iface_idx = 0' failed



The light on my laptop indicating that the device is on, never turned on
using NM.  But if I do:
cu -l /dev/ttyACM0

AT+CFUN=1


Then the light does come on.

I have 0.7~~svn20081018t105859-0ubuntu2~nm4 from the PPA on Intrepid.

Thanks for your help.

-James


On Thu, 2008-11-06 at 07:35 -0500, Dan Williams wrote:
  

On Wed, 2008-11-05 at 15:36 -0700, James Ward wrote:


Hi,

I just recently upgraded to the Lenovo W500 laptop which has a built-in
Ericsson F2507g WAN card.  Unfortunately I can't get this new card to
work with NM because it needs to be turned on first.  There is a thread
about how to do this manually on Ubuntu:
http://ubuntuforums.org/showthread.php?t=934013
  

NetworkManager does turn the card on with CFUN=1 already.  I'll need
serial debug logging enabled to figure out what's going on with your
card.  Stop NM, then as root run it like:

NM_SERIAL_DEBUG=1 /usr/sbin/NetworkManager --no-daemon

and try a connection.  Attach the output of NM so we can figure out
what's actually going wrong here.

Dan



My sim card doesn't require a password like the newer ones so this
should be pretty simple.  But I can't seem to make it work.  I'm using
the Ubuntu NM PPA.  Any ideas?

Thanks.

-James

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


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



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


Re: WAN Ericsson F3507g

2008-11-06 Thread Per Hallsmark

Hello James,

Ok, I'll try describe a process here to get this modem running.

First, the thread you point to could make it work with a ppp connection.
That is not the way to do it though, since it has a much more efficient 
way to do communication.

Here is a alternative howto:

1. Patch your kernel with this patch:
http://kerneltrap.org/mailarchive/linux-net/2008/10/29/3846534

2. After reboot with this new kernel, you should see like:

dmesg:

[   20.122239] cdc_acm 5-8:1.1: usb_probe_interface
[   20.122243] cdc_acm 5-8:1.1: usb_probe_interface - got id
[   20.122322] cdc_acm 5-8:1.1: ttyACM0: USB ACM device
[   20.124354] cdc_acm 5-8:1.3: usb_probe_interface
[   20.124357] cdc_acm 5-8:1.3: usb_probe_interface - got id
[   20.124438] cdc_acm 5-8:1.3: ttyACM1: USB ACM device
[   20.127392] cdc_acm 5-8:1.9: usb_probe_interface
[   20.127395] cdc_acm 5-8:1.9: usb_probe_interface - got id
[   20.127481] cdc_acm 5-8:1.9: ttyACM2: USB ACM device
[   20.134318] usbcore: registered new interface driver cdc_acm
[   20.134322] drivers/usb/class/cdc-acm.c: v0.26:USB Abstract Control 
Model driver for USB modems and ISDN adapters

[   20.271221] usbcore: registered new interface driver cdc_ether
[   20.310117] mbm 5-8:1.7: usb_probe_interface
[   20.310121] mbm 5-8:1.7: usb_probe_interface - got id
[   20.329548] mbm 5-8:1.7: status ep7in, 8 bytes period 7
[   20.329740] mb0: register 'mbm' at usb-:00:1d.7-8, MBM Mobile WAN 
Device, 02:80:37:ec:02:00

[   20.329754] usbcore: registered new interface driver mbm

You should also see a interface mb0 when you do ifconfig for example.

3. You can now test this manually, I mean without NetworkManager. Just 
to see that the driver part is ok.


3.1 Open /dev/ttyACM[0,1 or 2] in your favorite terminal emulator, this 
will give you an interface to do AT commands in.


3.2 You need a AT sequence like this to bring up your modem:
3.2.1 ATF
3.2.2 AT+CFUN=1
3.2.3 AT*EIAC=1
3.2.4 AT*EIAPSW=1,1,your APN here
3.2.5 AT*ENAP=1,1

3.3 Now the connection should be up and you use dhclient to get an IP 
on mb0 like dhclient mb0 or similar.


3.4 Time to start surf and read mails! :-)

4. To get NM to use this module, you currently need to work with the 
sources of NetworkManager and modemmanager.
   This is so far work in progress and I'm not sure when the 
distributions will pick these things up.


Best regards,
Per

James Ward wrote:

Hi,

I just recently upgraded to the Lenovo W500 laptop which has a built-in
Ericsson F2507g WAN card.  Unfortunately I can't get this new card to
work with NM because it needs to be turned on first.  There is a thread
about how to do this manually on Ubuntu:
http://ubuntuforums.org/showthread.php?t=934013

My sim card doesn't require a password like the newer ones so this
should be pretty simple.  But I can't seem to make it work.  I'm using
the Ubuntu NM PPA.  Any ideas?

Thanks.

-James

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



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


Re: WAN Ericsson F3507g

2008-11-06 Thread Dan Williams
On Wed, 2008-11-05 at 15:36 -0700, James Ward wrote:
 Hi,
 
 I just recently upgraded to the Lenovo W500 laptop which has a built-in
 Ericsson F2507g WAN card.  Unfortunately I can't get this new card to
 work with NM because it needs to be turned on first.  There is a thread
 about how to do this manually on Ubuntu:
 http://ubuntuforums.org/showthread.php?t=934013

NetworkManager does turn the card on with CFUN=1 already.  I'll need
serial debug logging enabled to figure out what's going on with your
card.  Stop NM, then as root run it like:

NM_SERIAL_DEBUG=1 /usr/sbin/NetworkManager --no-daemon

and try a connection.  Attach the output of NM so we can figure out
what's actually going wrong here.

Dan

 My sim card doesn't require a password like the newer ones so this
 should be pretty simple.  But I can't seem to make it work.  I'm using
 the Ubuntu NM PPA.  Any ideas?
 
 Thanks.
 
 -James
 
 ___
 NetworkManager-list mailing list
 NetworkManager-list@gnome.org
 http://mail.gnome.org/mailman/listinfo/networkmanager-list

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


Re: WAN Ericsson F3507g

2008-11-06 Thread James Ward
Thanks Dan.

Here is the output:
NetworkManager: info  Activation (ttyACM0) starting connection 'Auto
GSM network connection'
NetworkManager: info  (ttyACM0): device state change: 3 - 4
NetworkManager: info  Activation (ttyACM0) Stage 1 of 5 (Device
Prepare) scheduled...
NetworkManager: info  Activation (ttyACM0) Stage 1 of 5 (Device
Prepare) started...
NetworkManager: debug [1226010840.735911] nm_serial_device_open():
(ttyACM0) opening device...
NetworkManager: info  Activation (ttyACM0) Stage 1 of 5 (Device
Prepare) complete.
NetworkManager: debug [1226010840.841058] nm_serial_debug(): Sending:
'ATZ E0 V1 X4 C1 +FCLASS=0
'
NetworkManager: debug [1226010840.869797] nm_serial_debug(): Got: 'ATZ
E0 V1 X4 C1 +FCLASS=0
'
NetworkManager: debug [1226010840.880689] nm_serial_debug(): Got: 'ATZ
E0 V1 X4 C1 +FCLASS=0


ERROR

'
NetworkManager: WARN  init_done(): Modem initialization failed
NetworkManager: info  (ttyACM0): device state change: 4 - 9
NetworkManager: debug [1226010840.880892] nm_serial_device_close():
Closing device 'ttyACM0'
NetworkManager: info  Marking connection 'Auto GSM network connection'
invalid.
NetworkManager: info  Activation (ttyACM0) failed.
NetworkManager: info  (ttyACM0): device state change: 9 - 3
NetworkManager: info  (ttyACM0): deactivating device (reason: 0).
NetworkManager: nm_system_device_flush_ip4_routes_with_iface: assertion
`iface_idx = 0' failed
NetworkManager: nm_system_device_flush_ip4_addresses_with_iface:
assertion `iface_idx = 0' failed



The light on my laptop indicating that the device is on, never turned on
using NM.  But if I do:
cu -l /dev/ttyACM0

AT+CFUN=1


Then the light does come on.

I have 0.7~~svn20081018t105859-0ubuntu2~nm4 from the PPA on Intrepid.

Thanks for your help.

-James


On Thu, 2008-11-06 at 07:35 -0500, Dan Williams wrote:
 On Wed, 2008-11-05 at 15:36 -0700, James Ward wrote:
  Hi,
  
  I just recently upgraded to the Lenovo W500 laptop which has a built-in
  Ericsson F2507g WAN card.  Unfortunately I can't get this new card to
  work with NM because it needs to be turned on first.  There is a thread
  about how to do this manually on Ubuntu:
  http://ubuntuforums.org/showthread.php?t=934013
 
 NetworkManager does turn the card on with CFUN=1 already.  I'll need
 serial debug logging enabled to figure out what's going on with your
 card.  Stop NM, then as root run it like:
 
 NM_SERIAL_DEBUG=1 /usr/sbin/NetworkManager --no-daemon
 
 and try a connection.  Attach the output of NM so we can figure out
 what's actually going wrong here.
 
 Dan
 
  My sim card doesn't require a password like the newer ones so this
  should be pretty simple.  But I can't seem to make it work.  I'm using
  the Ubuntu NM PPA.  Any ideas?
  
  Thanks.
  
  -James
  
  ___
  NetworkManager-list mailing list
  NetworkManager-list@gnome.org
  http://mail.gnome.org/mailman/listinfo/networkmanager-list
 

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


WAN Ericsson F3507g

2008-11-05 Thread James Ward
Hi,

I just recently upgraded to the Lenovo W500 laptop which has a built-in
Ericsson F2507g WAN card.  Unfortunately I can't get this new card to
work with NM because it needs to be turned on first.  There is a thread
about how to do this manually on Ubuntu:
http://ubuntuforums.org/showthread.php?t=934013

My sim card doesn't require a password like the newer ones so this
should be pretty simple.  But I can't seem to make it work.  I'm using
the Ubuntu NM PPA.  Any ideas?

Thanks.

-James

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