* wwan0 interface without IP @ 2014-03-28 11:41 Eric BOUXIROT 2014-03-28 14:47 ` Denis Kenzior 0 siblings, 1 reply; 6+ messages in thread From: Eric BOUXIROT @ 2014-03-28 11:41 UTC (permalink / raw) To: ofono [-- Attachment #1: Type: text/plain, Size: 724 bytes --] hi !! i'm back with my project using ofono/connman/sierra 3G modem... now my modem work fine with ofono until connection. i can see IP address with ofono in debug mode (response from !SCPADDR command) interface wwan0 is UP... but without IPV4 parameters.. (only MAC address) i can't go to internet with this. i have try to put connman in debug mode too, and get an error because IPAddress is not set. at this time, if i start udhcpc -i wwan0... connection is made and work fine.... few seconds only after a very short time, connman say idle timeout and ofono goes offline. i mean there is something wrong in ofono... (or connman ? don't know..) someone can help me ? thank you so much ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: wwan0 interface without IP 2014-03-28 11:41 wwan0 interface without IP Eric BOUXIROT @ 2014-03-28 14:47 ` Denis Kenzior 2014-03-28 15:35 ` Eric BOUXIROT 2014-03-28 15:45 ` Eric BOUXIROT 0 siblings, 2 replies; 6+ messages in thread From: Denis Kenzior @ 2014-03-28 14:47 UTC (permalink / raw) To: ofono [-- Attachment #1: Type: text/plain, Size: 1086 bytes --] Hi Eric, On 03/28/2014 06:41 AM, Eric BOUXIROT wrote: > hi !! > > i'm back with my project using ofono/connman/sierra 3G modem... > > now my modem work fine with ofono until connection. i can see IP address > with ofono in debug mode (response from !SCPADDR command) > interface wwan0 is UP... but without IPV4 parameters.. (only MAC address) > i can't go to internet with this. oFono does not assign the IP parameters. ConnMan does that or you need to do this some other way. > > i have try to put connman in debug mode too, and get an error because > IPAddress is not set. > > at this time, if i start udhcpc -i wwan0... connection is made and work > fine.... > > few seconds only after a very short time, connman say idle timeout and > ofono goes offline. > > i mean there is something wrong in ofono... (or connman ? don't know..) > > someone can help me ? Not really enough information. If oFono establishes the connection successfully, then likely you need to look more closely at what is happening with ConnMan. Regards, -Denis ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: wwan0 interface without IP 2014-03-28 14:47 ` Denis Kenzior @ 2014-03-28 15:35 ` Eric BOUXIROT 2014-03-28 15:26 ` Denis Kenzior 2014-03-28 15:45 ` Eric BOUXIROT 1 sibling, 1 reply; 6+ messages in thread From: Eric BOUXIROT @ 2014-03-28 15:35 UTC (permalink / raw) To: ofono [-- Attachment #1: Type: text/plain, Size: 753 bytes --] > oFono does not assign the IP parameters. ConnMan does that or you need > to do this some other way. i'm right with you but i don't know how ofono deal with connman to trig DHCP. i know ofono send some parameters (or connman read it on ofono..) like "method" "address" etc.. i know when reading "address" the result is NULL and fail next step in connman du to NULL. i have made a test patch that put "0.0.0.0" in address in swmodem/gprs_context.c after connect success, but it seem connman always read NULL.. then, i search more what's happend. I found a solution with connman's ofono plugin that need to be patched. Now that work great, but i mean there something wrong between ofono/connman altought for this modem. ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: wwan0 interface without IP 2014-03-28 15:35 ` Eric BOUXIROT @ 2014-03-28 15:26 ` Denis Kenzior 2014-03-28 15:42 ` Eric BOUXIROT 0 siblings, 1 reply; 6+ messages in thread From: Denis Kenzior @ 2014-03-28 15:26 UTC (permalink / raw) To: ofono [-- Attachment #1: Type: text/plain, Size: 566 bytes --] Hi Eric, On 03/28/2014 10:35 AM, Eric BOUXIROT wrote: >> oFono does not assign the IP parameters. ConnMan does that or you need >> to do this some other way. > > i'm right with you but i don't know how ofono deal with connman to trig > DHCP. > i know ofono send some parameters (or connman read it on ofono..) like > "method" "address" etc.. > i know when reading "address" the result is NULL and fail next step in > connman du to NULL. > After activating the context, run test/list-contexts in oFono git. What does it say? Regards, -Denis ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: wwan0 interface without IP 2014-03-28 15:26 ` Denis Kenzior @ 2014-03-28 15:42 ` Eric BOUXIROT 0 siblings, 0 replies; 6+ messages in thread From: Eric BOUXIROT @ 2014-03-28 15:42 UTC (permalink / raw) To: ofono [-- Attachment #1: Type: text/plain, Size: 918 bytes --] > After activating the context, run test/list-contexts in oFono git. What > does it say? /usr/lib/ofono/test/list-contexts [ /sierra_1 ] [ /sierra_1/context1 ] Username = Protocol = ip Name = Internet Settings = { Interface=wwan0 Method=dhcp } IPv6.Settings = { } Active = 1 AccessPointName = objcPpublic Password = Type = internet for me it's ok. i have made a test to add a "address" to 0.0.0.0 and get this. /usr/lib/ofono/test/list-contexts [ /sierra_1 ] [ /sierra_1/context1 ] Username = Protocol = ip Name = Internet Settings = { Interface=wwan0 Method=dhcp Address=0.0.0.0 } IPv6.Settings = { } Active = 1 AccessPointName = objcPpublic Password = Type = internet but in either cases i got connman getting an address.. ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: wwan0 interface without IP 2014-03-28 14:47 ` Denis Kenzior 2014-03-28 15:35 ` Eric BOUXIROT @ 2014-03-28 15:45 ` Eric BOUXIROT 1 sibling, 0 replies; 6+ messages in thread From: Eric BOUXIROT @ 2014-03-28 15:45 UTC (permalink / raw) To: ofono [-- Attachment #1: Type: text/plain, Size: 901 bytes --] > oFono does not assign the IP parameters. ConnMan does that or you need > to do this some other way. forget to tell, i must apply this patch too, because my modem do not reconize the command and ofono fail. diff -uprN a/drivers/swmodem/gprs-context.c b/drivers/swmodem/gprs-context.c --- a/drivers/swmodem/gprs-context.c 2012-07-02 09:55:34.000000000 +0200 +++ b/drivers/swmodem/gprs-context.c 2014-03-27 23:08:44.904767915 +0100 @@ -100,9 +100,6 @@ static void at_scact_up_cb(gboolean ok, snprintf(buf, sizeof(buf), "AT!SCPADDR=%u", gcd->active_context); g_at_chat_send(gcd->chat, buf, none_prefix, NULL, NULL, NULL); - snprintf(buf, sizeof(buf), "AT+CGCONTRDP=%u", gcd->active_context); - g_at_chat_send(gcd->chat, buf, none_prefix, NULL, NULL, NULL); - modem = ofono_gprs_context_get_modem(gc); interface = ofono_modem_get_string(modem, "NetworkInterface"); ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-03-28 15:45 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-03-28 11:41 wwan0 interface without IP Eric BOUXIROT 2014-03-28 14:47 ` Denis Kenzior 2014-03-28 15:35 ` Eric BOUXIROT 2014-03-28 15:26 ` Denis Kenzior 2014-03-28 15:42 ` Eric BOUXIROT 2014-03-28 15:45 ` Eric BOUXIROT
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.