All of lore.kernel.org
 help / color / mirror / Atom feed
* Motorola Modem H24 gprs connection
@ 2011-03-31 14:00 Ostermann, Christophe
  2011-03-31 15:42 ` Denis Kenzior
  0 siblings, 1 reply; 7+ messages in thread
From: Ostermann, Christophe @ 2011-03-31 14:00 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1432 bytes --]

Hi, 

 

After having successfully enabled sms and voice call with modem h24 from
motorola. I am now trying to setup a gprs connection.

In fact Motorola has a specific set of AT command AT+MIPxxx to setup
gprs connection by using an internal TCP/UDP IP stack. 

Can you confirm that the right approach is to write a new gprs-context.c
?

 

When a gprs cantext has properly established connection, does ofono
create a network interface?

 

BR
christophe

 

----------

Christophe Ostermann 
Software Engineer
Devices Engineering

SICPA Security Solutions SA
Av. de Florissant 41, 1008 Prilly, Switzerland
Tel +41 21 627 59 70  Direct +41 21 627 63 68
Fax +41 21 620 06 22 
christophe.ostermann(a)sicpa.com
<mailto:christophe.christophe.ostermann@sicpa.com>   www.sicpa.com
<http://www.sicpa.com/> 

 

 



This message was delivered through encrypted mechanism.


The information in this email and any attachments is confidential
and intended solely for the use of the individual(s) to whom it is
addressed or otherwise directed.
Please note that any views or opinions presented in this email are
solely those of the author and do not necessarily represent those
of the Company.
Finally, the recipient should check this email and any attachments
for the presence of viruses.
The Company accepts no liability for any damage caused by any virus
transmitted by this email.

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 7255 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Motorola Modem H24 gprs connection
  2011-03-31 14:00 Motorola Modem H24 gprs connection Ostermann, Christophe
@ 2011-03-31 15:42 ` Denis Kenzior
  2011-04-01  7:00   ` Ostermann, Christophe
  0 siblings, 1 reply; 7+ messages in thread
From: Denis Kenzior @ 2011-03-31 15:42 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1007 bytes --]

Hi Christophe,

On 03/31/2011 09:00 AM, Ostermann, Christophe wrote:
> Hi,
> 
>  
> 
> After having successfully enabled sms and voice call with modem h24 from
> motorola. I am now trying to setup a gprs connection.
> 
> In fact Motorola has a specific set of AT command AT+MIPxxx to setup
> gprs connection by using an internal TCP/UDP IP stack.

Not quite sure what that means?  Do you mean the modem expects raw data
and produces TCP/IP packets internally?  If so you will have some fun ;)

> 
> Can you confirm that the right approach is to write a new gprs-context.c ?
> 
>  

Yes.

> 
> When a gprs cantext has properly established connection, does ofono
> create a network interface?
> 
>  

No, a network interface is either already created by the kernel driver
when the device is inserted (e.g. on usb data sticks from hso, mbm, etc)
or created by the ppp stack managed inside the gprs-context driver.  All
oFono does is bring the interface up.

Regards,
-Denis

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: Motorola Modem H24 gprs connection
  2011-03-31 15:42 ` Denis Kenzior
@ 2011-04-01  7:00   ` Ostermann, Christophe
  2011-04-01 14:32     ` Denis Kenzior
  0 siblings, 1 reply; 7+ messages in thread
From: Ostermann, Christophe @ 2011-04-01  7:00 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 2268 bytes --]

Hi Denis,

Thank you for this quick answer.

Yes H24 modem expects some raw data in this mode (after having created a
TCP or UDP socket). 

This modem must also support standard way of sending data through ppp. I
will start by using this mode. I ve tried but unfortunately AT+CGDATA is
not recognized by this modem. I m just starting to play with this modem
so I ve to investigate how to configure it properly without this
command.

BR
Christophe



-----Original Message-----
From: Denis Kenzior [mailto:denkenz(a)gmail.com] 
Sent: jeudi, 31. mars 2011 17:42
To: ofono(a)ofono.org
Cc: Ostermann, Christophe
Subject: Re: Motorola Modem H24 gprs connection

Hi Christophe,

On 03/31/2011 09:00 AM, Ostermann, Christophe wrote:
> Hi,
> 
>  
> 
> After having successfully enabled sms and voice call with modem h24
from
> motorola. I am now trying to setup a gprs connection.
> 
> In fact Motorola has a specific set of AT command AT+MIPxxx to setup
> gprs connection by using an internal TCP/UDP IP stack.

Not quite sure what that means?  Do you mean the modem expects raw data
and produces TCP/IP packets internally?  If so you will have some fun ;)

> 
> Can you confirm that the right approach is to write a new
gprs-context.c ?
> 
>  

Yes.

> 
> When a gprs cantext has properly established connection, does ofono
> create a network interface?
> 
>  

No, a network interface is either already created by the kernel driver
when the device is inserted (e.g. on usb data sticks from hso, mbm, etc)
or created by the ppp stack managed inside the gprs-context driver.  All
oFono does is bring the interface up.

Regards,
-Denis
This message was delivered through encrypted mechanism.


The information in this email and any attachments is confidential
and intended solely for the use of the individual(s) to whom it is
addressed or otherwise directed.
Please note that any views or opinions presented in this email are
solely those of the author and do not necessarily represent those
of the Company.
Finally, the recipient should check this email and any attachments
for the presence of viruses.
The Company accepts no liability for any damage caused by any virus
transmitted by this email.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Motorola Modem H24 gprs connection
  2011-04-01  7:00   ` Ostermann, Christophe
@ 2011-04-01 14:32     ` Denis Kenzior
  2011-04-04 12:14       ` Ostermann, Christophe
  0 siblings, 1 reply; 7+ messages in thread
From: Denis Kenzior @ 2011-04-01 14:32 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 912 bytes --]

Hi Christophe,

Gentle reminder not to top-post on this mailing list.

On 04/01/2011 02:00 AM, Ostermann, Christophe wrote:
> Hi Denis,
> 
> Thank you for this quick answer.
> 
> Yes H24 modem expects some raw data in this mode (after having created a
> TCP or UDP socket). 
> 
> This modem must also support standard way of sending data through ppp. I
> will start by using this mode. I ve tried but unfortunately AT+CGDATA is
> not recognized by this modem. I m just starting to play with this modem
> so I ve to investigate how to configure it properly without this
> command.
> 

You might have luck using the legacy ATD*99 variation instead of CGDATA,
but we don't support this inside the current atmodem/gprs-context.c.
Have a look at gatchat/gsmdial.c, it implements this functionality.  So
you might be able to quickly test whether PPP/ATD*99 works on the H24.

Regards,
-Denis

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: Motorola Modem H24 gprs connection
  2011-04-01 14:32     ` Denis Kenzior
@ 2011-04-04 12:14       ` Ostermann, Christophe
  2011-04-04 14:42         ` Denis Kenzior
  0 siblings, 1 reply; 7+ messages in thread
From: Ostermann, Christophe @ 2011-04-04 12:14 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 2139 bytes --]

Hi Denis,

> 
> Hi Christophe,
> 
> Gentle reminder not to top-post on this mailing list.
> 
> On 04/01/2011 02:00 AM, Ostermann, Christophe wrote:
> > Hi Denis,
> >
> > Thank you for this quick answer.
> >
> > Yes H24 modem expects some raw data in this mode (after having
created a
> > TCP or UDP socket).
> >
> > This modem must also support standard way of sending data through
ppp. I
> > will start by using this mode. I ve tried but unfortunately
AT+CGDATA is
> > not recognized by this modem. I m just starting to play with this
modem
> > so I ve to investigate how to configure it properly without this
> > command.
> >
> 
> You might have luck using the legacy ATD*99 variation instead of
CGDATA,
> but we don't support this inside the current atmodem/gprs-context.c.
> Have a look at gatchat/gsmdial.c, it implements this functionality.
So
> you might be able to quickly test whether PPP/ATD*99 works on the H24.
> 

ATD*99 works fine on H24. How can I pass an option to gprs driver to use
ATD*99 instead of CGDATA ?  based on vendor as in drivers/atmodem/sms.c?


After setting ConnectionContext property "Active" to true I can see that
IPaddr and DNS server addr are properly returned by APN. A ppp0
interface is also available. But ppp0 configuration does not seems to be
correct when I use ifconfig (IP address is not set etc...). Is ofono
responsible of doing this or ppp0 interface must be configured by
another layer?    

BR,
Christophe
PS: is this email ident style ok ?

> Regards,
> -Denis
This message was delivered through encrypted mechanism.


The information in this email and any attachments is confidential
and intended solely for the use of the individual(s) to whom it is
addressed or otherwise directed.
Please note that any views or opinions presented in this email are
solely those of the author and do not necessarily represent those
of the Company.
Finally, the recipient should check this email and any attachments
for the presence of viruses.
The Company accepts no liability for any damage caused by any virus
transmitted by this email.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Motorola Modem H24 gprs connection
  2011-04-04 12:14       ` Ostermann, Christophe
@ 2011-04-04 14:42         ` Denis Kenzior
  2011-04-05  5:57           ` Ostermann, Christophe
  0 siblings, 1 reply; 7+ messages in thread
From: Denis Kenzior @ 2011-04-04 14:42 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1437 bytes --]

Hi Christophe,


>> You might have luck using the legacy ATD*99 variation instead of
> CGDATA,
>> but we don't support this inside the current atmodem/gprs-context.c.
>> Have a look at gatchat/gsmdial.c, it implements this functionality.
> So
>> you might be able to quickly test whether PPP/ATD*99 works on the H24.
>>
> 
> ATD*99 works fine on H24. How can I pass an option to gprs driver to use
> ATD*99 instead of CGDATA ?  based on vendor as in drivers/atmodem/sms.c?
> 

Yes, a quirk would be what you want.  However, there's no code inside
atmodem gprs-context driver to handle quirks yet.  If you do, please
send us a patch.

> 
> After setting ConnectionContext property "Active" to true I can see that
> IPaddr and DNS server addr are properly returned by APN. A ppp0
> interface is also available. But ppp0 configuration does not seems to be
> correct when I use ifconfig (IP address is not set etc...). Is ofono
> responsible of doing this or ppp0 interface must be configured by
> another layer?    

oFono only activates the interface and emits the settings.  Some other
component (e.g. connection manager) does the IP assignment, DHCP if
needed, etc.  Use ConnMan if you want readily available oFono
integration, or take a peek at test/process-context-settings.

> 
> BR,
> Christophe
> PS: is this email ident style ok ?

The quoting is a little mangled still...

Regards,
-Denis

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: Motorola Modem H24 gprs connection
  2011-04-04 14:42         ` Denis Kenzior
@ 2011-04-05  5:57           ` Ostermann, Christophe
  0 siblings, 0 replies; 7+ messages in thread
From: Ostermann, Christophe @ 2011-04-05  5:57 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 2301 bytes --]


Hi Denis,

>
>Hi Christophe,
>
>
>>> You might have luck using the legacy ATD*99 variation instead of
>> CGDATA,
>>> but we don't support this inside the current atmodem/gprs-context.c.
>>> Have a look at gatchat/gsmdial.c, it implements this functionality.
>> So
>>> you might be able to quickly test whether PPP/ATD*99 works on the
H24.
>>>
>>
>> ATD*99 works fine on H24. How can I pass an option to gprs driver to
use
>> ATD*99 instead of CGDATA ?  based on vendor as in
drivers/atmodem/sms.c?
>>
>
>Yes, a quirk would be what you want.  However, there's no code inside
>atmodem gprs-context driver to handle quirks yet.  If you do, please
>send us a patch.
>

I have implemented it. I will send you a patch in another email.

>>
>> After setting ConnectionContext property "Active" to true I can see
that
>> IPaddr and DNS server addr are properly returned by APN. A ppp0
>> interface is also available. But ppp0 configuration does not seems to
be
>> correct when I use ifconfig (IP address is not set etc...). Is ofono
>> responsible of doing this or ppp0 interface must be configured by
>> another layer?
>
>oFono only activates the interface and emits the settings.  Some other
>component (e.g. connection manager) does the IP assignment, DHCP if
>needed, etc.  Use ConnMan if you want readily available oFono
>integration, or take a peek at test/process-context-settings.

I have successfully setup/configured a gprs connection by using
ifconfig.
I will have a look to connman.  

>
>>
>> BR,
>> Christophe
>> PS: is this email ident style ok ?
>
>The quoting is a little mangled still...

Will try to improve.

BR,
Christophe


>
>Regards,
>-Denis
This message was delivered through encrypted mechanism.


The information in this email and any attachments is confidential
and intended solely for the use of the individual(s) to whom it is
addressed or otherwise directed.
Please note that any views or opinions presented in this email are
solely those of the author and do not necessarily represent those
of the Company.
Finally, the recipient should check this email and any attachments
for the presence of viruses.
The Company accepts no liability for any damage caused by any virus
transmitted by this email.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-04-05  5:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-31 14:00 Motorola Modem H24 gprs connection Ostermann, Christophe
2011-03-31 15:42 ` Denis Kenzior
2011-04-01  7:00   ` Ostermann, Christophe
2011-04-01 14:32     ` Denis Kenzior
2011-04-04 12:14       ` Ostermann, Christophe
2011-04-04 14:42         ` Denis Kenzior
2011-04-05  5:57           ` Ostermann, Christophe

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.