All of lore.kernel.org
 help / color / mirror / Atom feed
* Extend modem.conf
@ 2009-10-21  8:52 Ryan Raasch
  2009-10-21 22:04 ` Denis Kenzior
  0 siblings, 1 reply; 2+ messages in thread
From: Ryan Raasch @ 2009-10-21  8:52 UTC (permalink / raw)
  To: ofono

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

Hello,

I was wanting to extend the syntax of the modem.conf file. It is extra 
work to maintain a different plugin file for each generic AT modem with 
a different speed, serial settings.

I'm not sure on the best syntax for this. Maybe below could be a solution.

[generic]
Driver=atgen
Device=/dev/ttyS0:baud=115200:read=on:local:on


OR

[generic]
Driver=atgen
Device=/dev/ttyS0
DeviceOpts=baud=115200:read=on:local:on


Any opinions?


Also, shouldn't the "Driver" keyword in the file be named "Plugin" 
instead? It may give a better indication where to read in the source.


Greetings,
Ryan




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

* Re: Extend modem.conf
  2009-10-21  8:52 Extend modem.conf Ryan Raasch
@ 2009-10-21 22:04 ` Denis Kenzior
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2009-10-21 22:04 UTC (permalink / raw)
  To: ofono

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

Hi Ryan,

> Hello,
>
> I was wanting to extend the syntax of the modem.conf file. It is extra
> work to maintain a different plugin file for each generic AT modem with
> a different speed, serial settings.
>

I agree that this would be useful.

> I'm not sure on the best syntax for this. Maybe below could be a solution.
>
> [generic]
> Driver=atgen
> Device=/dev/ttyS0
> DeviceOpts=baud=115200:read=on:local:on

I prefer something like:
[generic]
Driver=atgen
Device=/dev/ttyS0
Baud=115200
Read=on
Local=on

We can even capitalize the values in gattty if it makes things easier.

> Also, shouldn't the "Driver" keyword in the file be named "Plugin"
> instead? It may give a better indication where to read in the source.

Everything is a driver, in this case we mean the modem driver.  These are also 
generally always plugins of the same name which leads to confusion.

Regards,
-Denis

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

end of thread, other threads:[~2009-10-21 22:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-21  8:52 Extend modem.conf Ryan Raasch
2009-10-21 22:04 ` 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.