<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>2432</bug_id>
          
          <creation_ts>2012-05-07 22:22:48 +0000</creation_ts>
          <short_desc>connman: 3g connection times out</short_desc>
          <delta_ts>2012-05-24 20:04:54 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>connectivity</component>
          <version>1.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.2.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Darren Hart">dvhart</reporter>
          <assigned_to name="Dongxiao Xu">dongxiao.xu</assigned_to>
          <cc>jiajun.xu</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>yilongx.y.sun</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>21150</commentid>
    <comment_count>0</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-05-07 22:22:48 +0000</bug_when>
    <thetext>Using test-connman (from the connman-tests package) to connect to a 3G network on the FRI2 fails with a timeout.

A bit of hardware context:

# lsusb | grep Eric
Bus 001 Device 002: ID 0bdb:190d Ericsson Business Mobile Networks BV 

# lsmod | grep cdc
cdc_wdm                 7329  0 
cdc_acm                14230  4 

And for connman:

# ./test-connman services
* Wired                      { ethernet_00b3386ee31d_cable }
  AT&amp;T                       { cellular_310410469131422_context1 }

# ./test-connman connect cellular_310410469131422_context1
net.connman.Error.OperationTimeout: Operation timeout

# ./list-services | grep cellular -A 22
[ /net/connman/service/cellular_310410469131422_context1 ]
    Strength = 80
    Nameservers = [ ]
    State = failure
    Provider = { }
    Type = cellular
    Security = [ ]
    AutoConnect = false
    Immutable = false
    Proxy = { }
    Roaming = 0
    IPv4.Configuration = { Method=dhcp }
    IPv6.Configuration = { Method=auto Privacy=disabled }
    Name = AT&amp;T
    Favorite = false
    Error = connect-failed
    Domains = [ ]
    Ethernet = { Method=auto }
    Nameservers.Configuration = [ ]
    Proxy.Configuration = { }
    Domains.Configuration = [ ]
    IPv4 = { }
    IPv6 = { }

t# dmesg | grep usb0
cdc_ncm 1-2:1.6: usb0: register &apos;cdc_ncm&apos; at usb-0000:05:02.3-2, CDC NCM, 02:80:37:ec:02:00
ADDRCONF(NETDEV_UP): usb0: link is not ready
cdc_ncm: usb0: network connection: disconnected
cdc_ncm: usb0: 21 mbit/s downlink 5 mbit/s uplink
cdc_ncm: usb0: network connection: connected
ADDRCONF(NETDEV_CHANGE): usb0: link becomes ready
usb0: no IPv6 routers present
cdc_ncm: usb0: network connection: disconnected
ADDRCONF(NETDEV_UP): usb0: link is not ready
cdc_ncm: usb0: 21 mbit/s downlink 5 mbit/s uplink
cdc_ncm: usb0: network connection: connected
ADDRCONF(NETDEV_CHANGE): usb0: link becomes ready
usb0: no IPv6 routers present
cdc_ncm: usb0: network connection: disconnected
ADDRCONF(NETDEV_UP): usb0: link is not ready</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21241</commentid>
    <comment_count>1</comment_count>
    <who name="Dongxiao Xu">dongxiao.xu</who>
    <bug_when>2012-05-09 06:51:07 +0000</bug_when>
    <thetext>Hi Darren,

I tried it locally with 1.2 image for FRI2, and it works well in my side. You can follow the steps as:
(To do the steps, you need to install the ofono-test package.)

 - Make sure &quot;connmand&quot; and &quot;ofonod&quot; are running in the system.
 - Make sure the 3G modem device is installed. We can verify this step by the ofono&apos;s test program &quot;list-modems&quot;.
 - Enable and online the 3G modem by running &quot;enable-modem&quot; and &quot;online-modem&quot;
 - Set the 3G connection context by running ofono&apos;s tool &quot;create-internet-context&quot;. This includes the settings for ISP, AccessPointName, Protocol, etc.
 - Run the created 3G connection context by &quot;activate-context&quot;. After this, the 3G network interface should be established.
 - Add DNS server address into /etc/resolv.conf, or use the default value.
 - Configure the address, netmask for the 3G network interface.
 - Verify the 3G connection by &quot;ping www.intel.com&quot; or other.

Thanks,
Dongxiao</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21249</commentid>
    <comment_count>2</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-05-09 15:26:59 +0000</bug_when>
    <thetext>I will try the commands you listed... but I don&apos;t see how these make the bug invalid. The bug was opened against connman, because as I understand it, the commands I listed should bring up the 3g connection. Regardless, please don&apos;t close a bug as invalid without giving the reported a chance to verify the proposed resolution.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21251</commentid>
    <comment_count>3</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-05-09 18:01:53 +0000</bug_when>
    <thetext>Running through the commands in Comment #1 were successful up to the activate-context command which reported an error:

root@fri2:/usr/lib/ofono/test# ./enable-modem
Connecting modem /mbm_0...

root@fri2:/usr/lib/ofono/test# ./online-modem 
Setting modem /mbm_0 online...

root@fri2:/usr/lib/ofono/test# ./create-internet-context
Found context /mbm_0/context1

root@fri2:/usr/lib/ofono/test# ./activate-context 
Error activating /mbm_0/context1: org.ofono.Error.Failed: Operation failed

root@fri2:/usr/lib/ofono/test# ./list-modems 
[ /mbm_0 ]
    Features = gprs net cbs ussd gps sms stk rat sim 
    Emergency = 0
    Powered = 1
    Lockdown = 0
    Interfaces = org.ofono.ConnectionManager org.ofono.NetworkRegistration org.ofono.CellBroadcast org.ofono.SupplementaryServices org.ofono.LocationReporting org.ofono.SmartMessaging org.ofono.PushNotification org.ofono.MessageManager org.ofono.SimToolkit org.ofono.RadioSettings org.ofono.SimManager 
    Online = 1
    Model = F5521gw
    Revision = R2A07(R2A07)
    Type = hardware
    Serial = 356215040140315
    Manufacturer = Ericsson
    [ org.ofono.ConnectionManager ]
        Powered = 1
        Attached = 1
        Bearer = none
        Suspended = 0
        RoamingAllowed = 0
    [ org.ofono.NetworkRegistration ]
        Status = registered
        Strength = 80
        Name = AT&amp;T
        LocationAreaCode = 33998
        Mode = auto-only
        MobileCountryCode = 310
        Technology = hspa
        CellId = 13805302
        MobileNetworkCode = 410
    [ org.ofono.CellBroadcast ]
        Topics = 
        Powered = 1
    [ org.ofono.SupplementaryServices ]
        State = idle
    [ org.ofono.LocationReporting ]
        Type = nmea
        Enabled = 0
    [ org.ofono.SmartMessaging ]
    [ org.ofono.PushNotification ]
    [ org.ofono.MessageManager ]
        Alphabet = default
        UseDeliveryReports = 0
        Bearer = cs-preferred
        ServiceCenterAddress = +13123149810
    [ org.ofono.SimToolkit ]
        IdleModeIcon = 
        MainMenuTitle = 
        MainMenu = 
        MainMenuIcon = 
    [ org.ofono.RadioSettings ]
        TechnologyPreference = any
    [ org.ofono.SimManager ]
        Retries = [pin2 = 3] [puk2 = 10] [pin = 3] [puk = 10] 
        MobileCountryCode = 310
        FixedDialing = 0
        SubscriberNumbers = 
        PreferredLanguages = en 
        BarredDialing = 0
        CardIdentifier = 89014104254691314226
        LockedPins = 
        MobileNetworkCode = 410
        SubscriberIdentity = 310410469131422
        Present = 1
        PinRequired = none


While I didn&apos;t expect it to work, at this point I reran the connman commands:

root@fri2:/usr/lib/connman/test# ./test-connman services            
* Wired                      { ethernet_00b3386ee31d_cable }
  AT&amp;T                       { cellular_310410469131422_context1 }


root@fri2:/usr/lib/connman/test# ./list-services | grep cellular -A 22
[ /net/connman/service/cellular_310410469131422_context1 ]
    IPv6.Configuration = { Method=auto Privacy=disabled }
    AutoConnect = false
    Strength = 80
    Name = AT&amp;T
    Nameservers = [ ]
    Proxy.Configuration = { }
    Provider = { }
    Favorite = false
    Domains.Configuration = [ ]
    State = idle
    Proxy = { }
    Nameservers.Configuration = [ ]
    IPv4 = { }
    IPv6 = { }
    Domains = [ ]
    Ethernet = { Method=auto }
    Security = [ ]
    IPv4.Configuration = { Method=dhcp }
    Type = cellular
    Immutable = false
    Roaming = 0

root@fri2:/usr/lib/connman/test# ./test-connman connect cellular_310410469131422_context1
net.connman.Error.Failed: Input/output error

Note the final Input/output error instead of the timeout.

So I see two potential issues:

1) ofono tests are not able to establish a connection
2) connman and ofono do not appear to be working together properly</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21259</commentid>
    <comment_count>4</comment_count>
    <who name="Dongxiao Xu">dongxiao.xu</who>
    <bug_when>2012-05-10 00:15:21 +0000</bug_when>
    <thetext>What&apos;s the commit/branch are you using to test connman 3g feature?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21266</commentid>
    <comment_count>5</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-05-10 06:27:50 +0000</bug_when>
    <thetext>poky: denzil
meta-intel: local fri2 branch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21267</commentid>
    <comment_count>6</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-05-10 06:30:28 +0000</bug_when>
    <thetext>Note that later today I was able to acquire an IP address on the 3g modem using just ofono-tests. DNS lookup was working. wget and ssh would report &quot;Connection Refused&quot; and ping would just sit there. I&apos;ve sent a note to the ofono list on this subject.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21300</commentid>
    <comment_count>7</comment_count>
    <who name="Dongxiao Xu">dongxiao.xu</who>
    <bug_when>2012-05-11 07:14:24 +0000</bug_when>
    <thetext>Yilong, could you help to have a try on this one? I have some steps posted in previous comments.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21332</commentid>
    <comment_count>8</comment_count>
    <who name="yilong, sun">yilongx.y.sun</who>
    <bug_when>2012-05-14 08:07:22 +0000</bug_when>
    <thetext>I have tried 3G network on the FRI2 according to [Comment 1] steps. it works well.
i can ping [www.sina.com] by Ethernet or 3G network.

test environment：
Tree/Branch: poky/denzil
Commit: 3bf8069100e54153d13319dc32ca089327b6a139
Meta-intel: Master
Commit: f89405e115d73426c8a6450b6e795b5885d6bdf3

test tools: ofono-tests-1.5-r1.core2.rpm</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21343</commentid>
    <comment_count>9</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-05-14 16:03:19 +0000</bug_when>
    <thetext>It appears the trouble I am having here has been to do with using a WAP-only SIM and some necessary configuration. I will close this as not-a-bug. We still need to get connman-gnome to work though.

As you appear to have a functional 3G SIM. Can you check if connman-gnome lists the 3G interface and if it can bring it up successfully? If there are some specific steps that were necessary, can you please write those up so I can include them in the FRI2 BSP README?

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21350</commentid>
    <comment_count>10</comment_count>
    <who name="Dongxiao Xu">dongxiao.xu</who>
    <bug_when>2012-05-15 01:03:25 +0000</bug_when>
    <thetext>Currently the 3G configuration is not functional in connman-gnome, and I think Paul will look at it since he re-wrote the connman-gnome due to API update.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21477</commentid>
    <comment_count>11</comment_count>
    <who name="Dongxiao Xu">dongxiao.xu</who>
    <bug_when>2012-05-21 07:16:39 +0000</bug_when>
    <thetext>Darren, could you help to close the bug? Or you need bug asigner to close it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21591</commentid>
    <comment_count>12</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-05-24 20:04:54 +0000</bug_when>
    <thetext>Chalking this one up to user error (or possibly lack of documentation regarding using 3G modems with ofono and connman).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>