Re: Telit TER-GX400 on Ubuntu/Gumstix
- From: Dan Williams <dcbw redhat com>
- To: Andy Maginnis <jam smru co uk>
- Cc: networkmanager-list gnome org
- Subject: Re: Telit TER-GX400 on Ubuntu/Gumstix
- Date: Thu, 17 Mar 2011 15:08:14 -0500
On Thu, 2011-03-17 at 18:01 +0000, Andy Maginnis wrote:
> Hi,
>
> I am trying to get a Telit TER-GX400 HSDPA terminal working with network
> manager on both ubuntu and a gumstix.
> I previously was using a Three mobile ZTE MF112 and am using the same
> sim card and settings.
> http://www.roundsolutions.com/techdocs/docs_gsm_modules/TER-GX400.pdf
>
> All seems almost well on Ubuntu, I get a download speed of 1/2Mbps and
> an upload of 0.3Mbps, in line with the
> spec of this device, however the network is reported as "3 GSM" and not
> "3 HSDPA", as I expected.
That depends on what the modem reports, and if the SIM has any overrides
for network names. I'd need detailed modem-manager --debug output to
figure out if the modem is reporting the network wrong, or if
ModemManager is doing something wrong.
> On the gumstix however my connection gets marked as invalid, with the
> following message, when I try to connect to it?
Can I get full NetworkManager output from the Gumstix? The bits
included don't seem to show everything; NM will usually dump quite a bit
of information about what's going on to syslog's 'daemon' facility.
It'll show up in usually /var/log/messages or /var/log/daemon.log
depending on how syslog is configured on the device.
For the modem-manager end, if you can get into the device, stop NM and
modem-manager, then run 'modem-manager --debug' and then restart NM,
you'll get a lot of modem-manager spew that's useful for debugging
what's going on.
Dan
> NetworkManager[995]: <info> Marking connection 'pbGsmConnection' invalid
>
> Is this a simple setup issue or something more serious that I need to
> fix? My settings are at the bottom of this email.
>
> I was also wondering if I need to create a Telit plugin? The terminal
> has several GPIO that I can control
> with AT commands. But I can't access /dev/ttyUSB0 when network manager
> has control(Note this is from experiments
> on Ubuntu with NM disabled). What is best way to proceed?
>
>
>
> Below is further info for debug, I've added some comments between #
> symbols to try and make things clearer.
> The settings are at the very bottom. Note this is a headless system.
>
> #COMMENT# Linux version
> Linux overo 2.6.32 #1 Sun Nov 21 16:22:56 GMT 2010 armv7l unknown
>
> #COMMENT# Debug Command Sequence
> ps -ef | grep anager
> root 946 818 0 08:57 ttyS2 00:00:00 /usr/sbin/NetworkManager
> --no-daemon
> root 988 1 1 09:49 ? 00:00:00 /usr/sbin/modem-manager
> kill 946 988
> modem-manager --debug &
> NM_PPP_DEBUG=1 /usr/sbin/NetworkManager --no-daemon &
>
> #COMMENT# Start of messages
>
> ** Message: Loaded plugin Novatel
> ** Message: Loaded plugin Gobi
> ** Message: Loaded plugin MotoC
> ** Message: Loaded plugin Longcheer
> ** Message: Loaded plugin Nokia
> ** Message: Loaded plugin Option
> ** Message: Loaded plugin Sierra
> ** Message: Loaded plugin Generic
> ** Message: Loaded plugin Option High-Speed
> ** Message: Loaded plugin Ericsson MBM
> ** Message: Loaded plugin Huawei
> ** Message: Loaded plugin ZTE
>
> NetworkManager[995]: <info> NetworkManager (version 0.8.1) is
> starting...
> NetworkManager[995]: <info> Read config file
> /etc/NetworkManager/NetworkManager.conf
> NetworkManager[995]: <info> modem-manager is now available
> NetworkManager[995]: SCPlugin-Ifupdown: init!
> NetworkManager[995]: SCPlugin-Ifupdown: update_system_hostname
> NetworkManager[995]: SCPluginIfupdown: management mode: managed
> NetworkManager[995]: SCPlugin-Ifupdown: devices added (path:
> /sys/devices/virtual/net/lo, iface: lo)
> NetworkManager[995]: SCPlugin-Ifupdown: device added (path:
> /sys/devices/virtual/net/lo, iface: lo): no ifupdown configuration
> found.
> NetworkManager[995]: SCPlugin-Ifupdown: end _init.
> NetworkManager[995]: <info> Loaded plugin ifupdown: (C) 2008 Canonical
> Ltd. To report bugs please use the NetworkManager mailing list.
> NetworkManager[995]: <info> Loaded plugin keyfile: (c) 2007 - 2008 Red
> Hat, Inc. To report bugs please use the NetworkManager mailing list.
> NetworkManager[995]: SCPlugin-Ifupdown: (838944) ... get_connections.
> NetworkManager[995]: SCPlugin-Ifupdown: (838944) connections count: 0
> NetworkManager[995]: Tried to set deprecated property gsm/band
> NetworkManager[995]: <info> WiFi enabled by radio killswitch; enabled by
> state file
> NetworkManager[995]: <info> WWAN enabled by radio killswitch; disabled
> by state file
> NetworkManager[995]: <info> WiMAX enabled by radio killswitch; enabled
> by state file
> NetworkManager[995]: <info> Networking is enabled by state file
> /sbin/ifup: interface lo already configured
> NetworkManager[995]: <warn> bluez error getting default adapter: The
> name org.bluez was not provided by any .service files
>
> usb 1-1.3: new full speed USB device using musb_hdrc and address 14
> usb 1-1.3: device descriptor read/64, error -110
> hub 1-1:1.0: cannot reset port 3 (err = -71)
> hub 1-1:1.0: cannot reset port 3 (err = -19)
> hub 1-1:1.0: cannot disable port 3 (err = -19)
> hub 1-1:1.0: cannot reset port 3 (err = -19)
> hub 1-1:1.0: cannot disable port 3 (err = -19)
> hub 1-1:1.0: cannot reset port 3 (err = -19)
> hub 1-1:1.0: cannot disable port 3 (err = -19)
> hub 1-1:1.0: cannot reset port 3 (err = -19)
> hub 1-1:1.0: cannot disable port 3 (err = -19)
> hub 1-1:1.0: unable to enumerate USB device on port 3
> hub 1-1:1.0: cannot disable port 3 (err = -19)
> usb 1-1: USB disconnect, address 11
> usb 1-1.2: USB disconnect, address 12
> usb 1-1: new high speed USB device using musb_hdrc and address 18
> usb 1-1: New USB device found, idVendor=058f, idProduct=6254
> usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
> usb 1-1: configuration #1 chosen from 1 choice
> hub 1-1:1.0: USB hub found
> hub 1-1:1.0: 4 ports detected
> usb 1-1.2: new full speed USB device using musb_hdrc and address 19
> usb 1-1.2: New USB device found, idVendor=08bb, idProduct=2902
> usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
> usb 1-1.2: Product: USB Audio CODEC
> usb 1-1.2: Manufacturer: Burr-Brown from TI
> usb 1-1.2: configuration #1 chosen from 1 choice
> input: Burr-Brown from TI USB Audio CODEC as
> /devices/platform/musb_hdrc/usb1/1-1/1-1.2/1-1.2:1.3/input/input1
> generic-usb 0003:08BB:2902.0002: input: USB HID v1.00 Device [Burr-Brown
> from TI USB Audio CODEC ] on usb-musb_hdrc-1.2/input3
> usb 1-1.3: new full speed USB device using musb_hdrc and address 20
> usb 1-1.3: New USB device found, idVendor=1bc7, idProduct=1003
> usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=4
> usb 1-1.3: Product: Telit HSDPA Wireless Modem
> usb 1-1.3: Manufacturer: Telit Wireless Solutions
> usb 1-1.3: SerialNumber: 000000000002
> usb 1-1.3: configuration #1 chosen from 1 choice
> option 1-1.3:1.0: GSM modem (1-port) converter detected
> usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB0
> option 1-1.3:1.1: GSM modem (1-port) converter detected
> usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB1
> option 1-1.3:1.2: GSM modem (1-port) converter detected
> usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB2
> ** Message: (ttyUSB0) opening serial device...
> ** (modem-manager:994): DEBUG: (ttyUSB0): probe requested by plugin
> 'Generic'
> ** Message: (ttyUSB1) opening serial device...
> ** (modem-manager:994): DEBUG: (ttyUSB1): probe requested by plugin
> 'Generic'
> ** Message: (ttyUSB2) opening serial device...
> ** (modem-manager:994): DEBUG: (ttyUSB2): probe requested by plugin
> 'Generic'
> ** (modem-manager:994): DEBUG: (ttyUSB0): --> 'AT+GCAP<CR>'
> ** (modem-manager:994): DEBUG: (ttyUSB1): --> 'AT+GCAP<CR>'
> ** (modem-manager:994): DEBUG: (ttyUSB2): --> 'AT+GCAP<CR>'
> ** (modem-manager:994): DEBUG: (ttyUSB2): <-- '<CR><LF>+GCAP:
> +CGSM,+DS,+FCLASS,+MS,+ES<CR><LF><CR><LF>OK<CR><LF>'
> ** Message: (ttyUSB2) closing serial device...
> ** Message: (Generic): GSM modem
> /sys/devices/platform/musb_hdrc/usb1/1-1/1-1.3 claimed port ttyUSB2
> ** (modem-manager:994): DEBUG: Added modem
> /sys/devices/platform/musb_hdrc/usb1/1-1/1-1.3
> ** (modem-manager:994): DEBUG: Exported modem
> /sys/devices/platform/musb_hdrc/usb1/1-1/1-1.3 as
> /org/freedesktop/ModemManager/Modems/0
> NetworkManager[995]: <warn> (ttyUSB2): failed to look up interface index
> NetworkManager[995]: <info> (ttyUSB2): new GSM device (driver: 'option1'
> ifindex: -1)
> NetworkManager[995]: <info> (ttyUSB2): exported as
> /org/freedesktop/NetworkManager/Devices/0
> NetworkManager[995]: <info> (ttyUSB2): now managed
> NetworkManager[995]: <info> (ttyUSB2): device state change: 1 -> 2
> (reason 2)
> NetworkManager[995]: <info> (ttyUSB2): deactivating device (reason: 2).
> NetworkManager[995]: <info> (ttyUSB2): device state change: 2 -> 3
> (reason 0)
> ** (modem-manager:994): DEBUG: (ttyUSB0): --> 'AT+GCAP<CR>'
> ** (modem-manager:994): DEBUG: (ttyUSB0): <-- '<CR><LF>+GCAP:
> +CGSM,+DS,+FCLASS,+MS,+ES<CR><LF><CR><LF>OK<CR><LF>'
> ** Message: (ttyUSB0) closing serial device...
> ** Message: (Generic): GSM modem
> /sys/devices/platform/musb_hdrc/usb1/1-1/1-1.3 claimed port ttyUSB0
> ** (modem-manager:994): DEBUG: (ttyUSB1): --> 'AT+GCAP<CR>'
> ** (modem-manager:994): DEBUG: (ttyUSB1): --> 'AT+GCAP<CR>'
> ** Message: (ttyUSB1) closing serial device...
>
> root@overo:~# ./scripts/overoGsmConnCtrl.bash
> Args recieved = 0
> Avaiable devices:-
> method return sender=:1.42 -> dest=:1.44 reply_serial=2
> array [
> object path "/org/freedesktop/NetworkManager/Devices/0"
> ]
> method return sender=:1.42 -> dest=:1.45 reply_serial=2
> array [
> object path "/org/freedesktop/NetworkManagerSettings/0"
> ]
> Not enough Arguments were supplied!
> Expected Usage is:- For GSM UP
> ./overoGsmConnCtrl.bash <up> <system(0/1)> <Settings Service(0..X)>
> <Device(0..X)>
> ./overoGsmConnCtrl.bash <down> <connection(0..X)>
>
> #COMM# This is a very simple wrapper script
> root@overo:~# ./scripts/overoGsmConnCtrl.bash up 1 0 0
> Args recieved = 4
> Avaiable devices:-
> method return sender=:1.42 -> dest=:1.46 reply_serial=2
> array [
> object path "/org/freedesktop/NetworkManager/Devices/0"
> ]
> method return sender=:1.42 -> dest=:1.47 reply_serial=2
> array [
> object path "/org/freedesktop/NetworkManagerSettings/0"
> ]
> Lets try connecting
> dbus-send --system --print-reply --type=method_call
> --dest="org.freedesktop.NetworkManager" /org/freedesktop/NetworkManager
> "org.freedesktop.NetworkManager.ActivateConnection"
> string:"org.freedesktop.NetworkManagerSystemSettings"
> objpath:"/org/freedesktop/NetworkManagerSettings/0"
> objpath:"/org/freedesktop/NetworkManager/Devices/0" objpath:"/"
> NetworkManager[995]: <info> Activation (ttyUSB2) starting connection
> 'pbGsmConnection'
> NetworkManager[995]: <info> (ttyUSB2): device state change: 3 -> 4
> (reason 0)
> NetworkManager[995]: <info> Activation (ttyUSB2) Stage 1 of 5 (Device
> Prepare) scheduled...
> method return sender=:1.42 -> dest=:1.48 reply_serial=2
> object path "/org/freedesktop/NetworkManager/ActiveConnection/0"
> root@overo:~# NetworkManager[995]: <info> Activation (ttyUSB2) Stage 1
> of 5 (Device Prepare) started...
> ** Message: (ttyUSB2) opening serial device...
> NetworkManager[995]: <info> Activation (ttyUSB2) Stage 1 of 5 (Device
> Prepare) complete.
> ** Message: Modem /org/freedesktop/ModemManager/Modems/0: state changed
> (disabled -> enabling)
> NetworkManager[995]: <warn> GSM modem enable failed: (4) Did not receive
> a reply. Possible causes include: the remote application did not send a
> reply, the message bus security policy blocked the reply, the reply
> timeout expired, or the network connection was broken.
> NetworkManager[995]: <info> (ttyUSB2): device state change: 4 -> 9
> (reason 28)
> NetworkManager[995]: <info> Marking connection 'pbGsmConnection'
> invalid.
> NetworkManager[995]: <warn> Activation (ttyUSB2) failed.
> NetworkManager[995]: <info> (ttyUSB2): device state change: 9 -> 3
> (reason 0)
> NetworkManager[995]: <info> (ttyUSB2): deactivating device (reason: 0).
> ** (modem-manager:994): DEBUG: (ttyUSB2): --> 'ATZ E0 V1 +CMEE=1<CR>'
> ** Message: Modem /org/freedesktop/ModemManager/Modems/0: state changed
> (enabling -> disabled)
>
> #COMM# Contents of /etc/NetworkManager/system-connections/amGsm.ini
> [connection]
> id=pbGsmConnection
> uuid=707c1a05-c863-4e89-b146-63823f63d79a
> type=gsm
> autoconnect=false
> timestamp=0
> managed=true
>
> [gsm]
> apn=3internet
> band=0
> name=gsm
> number=*99#
>
> [serial]
> baud=115200
> name=serial
>
>
> _______________________________________________
> networkmanager-list mailing list
> networkmanager-list gnome org
> http://mail.gnome.org/mailman/listinfo/networkmanager-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]