All of lore.kernel.org
 help / color / mirror / Atom feed
* Gatmux doubt and suggestion
@ 2010-08-19  9:27 Arun.Ravindran
  2010-08-19 10:51 ` Marcel Holtmann
  2010-08-19 14:27 ` Denis Kenzior
  0 siblings, 2 replies; 6+ messages in thread
From: Arun.Ravindran @ 2010-08-19  9:27 UTC (permalink / raw)
  To: ofono

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


Hi All,

In mux_query_cb(), the frame size is taken as default (31 or 64). We
have a case where the default values are not accepted by the modem.

Gatmux is a generic component, and so makes all modem to use the default
values, one needs to modify the gatmux to enable for example, a larger
frame size.

Why not let the modem plug-in parse the CMUX query and decide on a
suitable configuration for enabling MUX? 

What is your opinion?


------------------------------------------------------------------------
---------------------

Regards
Arun Ravindran
Specialist, Elektrobit OYJ
Keilasatama 5, Espoo
M: +358403445507



----------------------------------------------------------------
Please note: This e-mail may contain confidential information
intended solely for the addressee. If you have received this
e-mail in error, please do not disclose it to anyone, notify
the sender promptly, and delete the message from your system.
Thank you.



----------------------------------------------------------------
Please note: This e-mail may contain confidential information
intended solely for the addressee. If you have received this
e-mail in error, please do not disclose it to anyone, notify
the sender promptly, and delete the message from your system.
Thank you.


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

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

* Re: Gatmux doubt and suggestion
  2010-08-19  9:27 Gatmux doubt and suggestion Arun.Ravindran
@ 2010-08-19 10:51 ` Marcel Holtmann
  2010-08-19 11:08   ` Arun.Ravindran
  2010-08-19 14:27 ` Denis Kenzior
  1 sibling, 1 reply; 6+ messages in thread
From: Marcel Holtmann @ 2010-08-19 10:51 UTC (permalink / raw)
  To: ofono

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

Hi Arun,

> In mux_query_cb(), the frame size is taken as default (31 or 64). We
> have a case where the default values are not accepted by the modem.
> 
> Gatmux is a generic component, and so makes all modem to use the
> default values, one needs to modify the gatmux to enable for example,
> a larger frame size.
> 
> Why not let the modem plug-in parse the CMUX query and decide on a
> suitable configuration for enabling MUX? 
> 
> What is your opinion?

patches are welcome.

However you do know that the GAtMux has setup functions for basic and
advanced mode. So you could parse AT+CMUX all by yourself in the modem
plugin.

GAtMux *g_at_mux_new_gsm0710_basic(GIOChannel *channel, int framesize);
GAtMux *g_at_mux_new_gsm0710_advanced(GIOChannel *channel, int framesize);

There is no requirement to actually use g_at_mux_setup_gsm0710(), but it
is a lot more convenient.

Regards

Marcel



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

* RE: Gatmux doubt and suggestion
  2010-08-19 10:51 ` Marcel Holtmann
@ 2010-08-19 11:08   ` Arun.Ravindran
  2010-08-19 11:22     ` Marcel Holtmann
  0 siblings, 1 reply; 6+ messages in thread
From: Arun.Ravindran @ 2010-08-19 11:08 UTC (permalink / raw)
  To: ofono

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

 
Hi Marcel,

> Hi Arun,

> In mux_query_cb(), the frame size is taken as default (31 or 64). We 
> have a case where the default values are not accepted by the modem.
> 
> Gatmux is a generic component, and so makes all modem to use the 
> default values, one needs to modify the gatmux to enable for example, 
> a larger frame size.
> 
> Why not let the modem plug-in parse the CMUX query and decide on a 
> suitable configuration for enabling MUX?
> 
> What is your opinion?

> patches are welcome.
> However you do know that the GAtMux has setup functions for basic and
advanced mode. So you could parse AT+CMUX all by yourself in the modem
plugin.
> GAtMux *g_at_mux_new_gsm0710_basic(GIOChannel *channel, int
framesize); GAtMux *g_at_mux_new_gsm0710_advanced(GIOChannel *channel,
int framesize);
> There is no requirement to actually use g_at_mux_setup_gsm0710(), but
it is a lot more convenient.

I am thinking of a solution, where the modem plugin passes a call back
function pointer to g_at_mux_setup_gsm0710(). mux_query_cb() can call
this call back function during processing of CMUX=? Response. This call
back function will be a member of struct mux_setup_data. This way the
modem plugins can have the freedom to set the CMUX parameters if they
wish to do so. If the call back is NULL the default values are applied
as now.

But this involves patches in the existing plugins (calypso etc) and
Gatmux, but gives options to plugins (their of values or default
values).

What is your opinion about this?

Regards
Arun


_______________________________________________
ofono mailing list
ofono(a)ofono.org
http://lists.ofono.org/listinfo/ofono


----------------------------------------------------------------
Please note: This e-mail may contain confidential information
intended solely for the addressee. If you have received this
e-mail in error, please do not disclose it to anyone, notify
the sender promptly, and delete the message from your system.
Thank you.



----------------------------------------------------------------
Please note: This e-mail may contain confidential information
intended solely for the addressee. If you have received this
e-mail in error, please do not disclose it to anyone, notify
the sender promptly, and delete the message from your system.
Thank you.


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

* RE: Gatmux doubt and suggestion
  2010-08-19 11:08   ` Arun.Ravindran
@ 2010-08-19 11:22     ` Marcel Holtmann
  2010-08-19 13:22       ` Arun.Ravindran
  0 siblings, 1 reply; 6+ messages in thread
From: Marcel Holtmann @ 2010-08-19 11:22 UTC (permalink / raw)
  To: ofono

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

Hi Arun,

> > In mux_query_cb(), the frame size is taken as default (31 or 64). We 
> > have a case where the default values are not accepted by the modem.
> > 
> > Gatmux is a generic component, and so makes all modem to use the 
> > default values, one needs to modify the gatmux to enable for example, 
> > a larger frame size.
> > 
> > Why not let the modem plug-in parse the CMUX query and decide on a 
> > suitable configuration for enabling MUX?
> > 
> > What is your opinion?
> 
> > patches are welcome.
> > However you do know that the GAtMux has setup functions for basic and
> advanced mode. So you could parse AT+CMUX all by yourself in the modem
> plugin.
> > GAtMux *g_at_mux_new_gsm0710_basic(GIOChannel *channel, int
> framesize); GAtMux *g_at_mux_new_gsm0710_advanced(GIOChannel *channel,
> int framesize);
> > There is no requirement to actually use g_at_mux_setup_gsm0710(), but
> it is a lot more convenient.
> 
> I am thinking of a solution, where the modem plugin passes a call back
> function pointer to g_at_mux_setup_gsm0710(). mux_query_cb() can call
> this call back function during processing of CMUX=? Response. This call
> back function will be a member of struct mux_setup_data. This way the
> modem plugins can have the freedom to set the CMUX parameters if they
> wish to do so. If the call back is NULL the default values are applied
> as now.
> 
> But this involves patches in the existing plugins (calypso etc) and
> Gatmux, but gives options to plugins (their of values or default
> values).

changing modem plugins is not a problem at.

However if you make an extra callback to parse the AT+CMUX=? result and
then send force it to send the AT+CMUX command by itself, then this
makes no sense. It is as complicated as doing it manually in the first
place.

If you wanna modify setup_gsm0710() to always pick the largest available
framesize instead of default, then yes, that sounds reasonable. For your
proposed solution I prefer you just use the manual setup. If you try it
you will see that there is no difference. You just replace one function
call to setup_gsm0710() with a call to g_at_chat_send().

Regards

Marcel



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

* RE: Gatmux doubt and suggestion
  2010-08-19 11:22     ` Marcel Holtmann
@ 2010-08-19 13:22       ` Arun.Ravindran
  0 siblings, 0 replies; 6+ messages in thread
From: Arun.Ravindran @ 2010-08-19 13:22 UTC (permalink / raw)
  To: ofono

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

 
Hi Marcel,

> > In mux_query_cb(), the frame size is taken as default (31 or 64). We

> > have a case where the default values are not accepted by the modem.
> > 
> > Gatmux is a generic component, and so makes all modem to use the 
> > default values, one needs to modify the gatmux to enable for 
> > example, a larger frame size.
> > 
> > Why not let the modem plug-in parse the CMUX query and decide on a 
> > suitable configuration for enabling MUX?
> > 
> > What is your opinion?
> 
> > patches are welcome.
> > However you do know that the GAtMux has setup functions for basic 
> > and
> advanced mode. So you could parse AT+CMUX all by yourself in the modem

> plugin.
> > GAtMux *g_at_mux_new_gsm0710_basic(GIOChannel *channel, int
> framesize); GAtMux *g_at_mux_new_gsm0710_advanced(GIOChannel *channel,

> int framesize);
> > There is no requirement to actually use g_at_mux_setup_gsm0710(), 
> > but
> it is a lot more convenient.
> 
> I am thinking of a solution, where the modem plugin passes a call back

> function pointer to g_at_mux_setup_gsm0710(). mux_query_cb() can call 
> this call back function during processing of CMUX=? Response. This 
> call back function will be a member of struct mux_setup_data. This way

> the modem plugins can have the freedom to set the CMUX parameters if 
> they wish to do so. If the call back is NULL the default values are 
> applied as now.
> 
> But this involves patches in the existing plugins (calypso etc) and 
> Gatmux, but gives options to plugins (their of values or default 
> values).

> changing modem plugins is not a problem at.

> However if you make an extra callback to parse the AT+CMUX=? result
and then send force it to send the AT+CMUX command by itself, then this
makes no sense. It is as > complicated as doing it manually in the first
place.

> If you wanna modify setup_gsm0710() to always pick the largest
available framesize instead of default, then yes, that sounds
reasonable. For your proposed solution I prefer > you just use the
manual setup. If you try it you will see that there is no difference.
You just replace one function call to setup_gsm0710() with a call to >
g_at_chat_send().

It is not only framesize, it can also be for other parameters, where the
default values seem insufficient. I can see that the existing plugins
are not using those, but need not be true for other modems. Ok now I
understand, writing a plugin specific mux initialization
(xxmodem_mux_setup_gsm0710(...) ) is more clean, and use
g_at_mux_new_gsm0710_basic () g_at_mux_new_gsm0710_advanced()from there.
right? 

Thanks Marcel.

Regards
Arun

_______________________________________________
ofono mailing list
ofono(a)ofono.org
http://lists.ofono.org/listinfo/ofono


----------------------------------------------------------------
Please note: This e-mail may contain confidential information
intended solely for the addressee. If you have received this
e-mail in error, please do not disclose it to anyone, notify
the sender promptly, and delete the message from your system.
Thank you.



----------------------------------------------------------------
Please note: This e-mail may contain confidential information
intended solely for the addressee. If you have received this
e-mail in error, please do not disclose it to anyone, notify
the sender promptly, and delete the message from your system.
Thank you.


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

* Re: Gatmux doubt and suggestion
  2010-08-19  9:27 Gatmux doubt and suggestion Arun.Ravindran
  2010-08-19 10:51 ` Marcel Holtmann
@ 2010-08-19 14:27 ` Denis Kenzior
  1 sibling, 0 replies; 6+ messages in thread
From: Denis Kenzior @ 2010-08-19 14:27 UTC (permalink / raw)
  To: ofono

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

Hi Arun,

On 08/19/2010 04:27 AM, Arun.Ravindran(a)elektrobit.com wrote:
> 
> Hi All,
> 
> In mux_query_cb(), the frame size is taken as default (31 or 64). We
> have a case where the default values are not accepted by the modem.
> 
> Gatmux is a generic component, and so makes all modem to use the default
> values, one needs to modify the gatmux to enable for example, a larger
> frame size.
> 
> Why not let the modem plug-in parse the CMUX query and decide on a
> suitable configuration for enabling MUX?
> 
> What is your opinion?

g_at_mux_setup_gsm0710 is really meant for the default cases.  If you
have some particular hardware in mind that requires specific parameters,
then sending the AT+CMUX command directly is a much better idea.

Regards,
-Denis

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

end of thread, other threads:[~2010-08-19 14:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-19  9:27 Gatmux doubt and suggestion Arun.Ravindran
2010-08-19 10:51 ` Marcel Holtmann
2010-08-19 11:08   ` Arun.Ravindran
2010-08-19 11:22     ` Marcel Holtmann
2010-08-19 13:22       ` Arun.Ravindran
2010-08-19 14:27 ` Denis Kenzior

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.