Marcus Mülbüsch | 9 Feb 15:28
Picon
Favicon

Two feature requests for gammu and smsd

Hello all,

    (first time post, I hope it's okay to start with feature requests :)

    1) Is it planned that gammu will support the AT+COPS command? If I 
read correctly, using the modes 2 (manual deregister from network) and 0 
(automatic mode) would be most useful.

    2) Can smsd be made to lock the device only when it accesses it? 
Thus, the device would be unlocked most of the time, and I could use 
minicom or gammu to command my modem.

    Thanks for any help, pointers, et al.

Marcus

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Gammu-users mailing list - https://lists.sourceforge.net/lists/listinfo/gammu-users

Michal Čihař | 9 Feb 15:47
Favicon
Gravatar

Re: Two feature requests for gammu and smsd

Hi

Dne Thu, 09 Feb 2012 15:28:13 +0100
Marcus Mülbüsch <muelbuesch <at> as-infodienste.de> napsal(a):

>     (first time post, I hope it's okay to start with feature requests :)
> 
>     1) Is it planned that gammu will support the AT+COPS command? If I 
> read correctly, using the modes 2 (manual deregister from network) and 0 
> (automatic mode) would be most useful.

All Gammu supports currently is mode 0, however patches are welcome :-).

>     2) Can smsd be made to lock the device only when it accesses it? 
> Thus, the device would be unlocked most of the time, and I could use 
> minicom or gammu to command my modem.

Well this probably could be done in libgammu, you would have to wrap
all calls in libgammu/api.c. However this is anyway quite tricky as
other application may change state of the phone and it would break
SMSD anyway.

--

-- 
	Michal Čihař | http://cihar.com | http://blog.cihar.com
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
(Continue reading)

Marcus Mülbüsch | 9 Feb 16:08
Picon
Favicon

Re: Two feature requests for gammu and smsd

Am 09.02.2012 15:47, schrieb Michal Čihař:
> Hi

> All Gammu supports currently is mode 0, however patches are welcome :-).

    Luckily I'm only the poor sysadmin, I will contact our programmers :)

    Do you have an example patch available where an AT command was 
extended? So it is easier to find out where all the screws are that have 
to be turned :)

> Well this probably could be done in libgammu, you would have to wrap
> all calls in libgammu/api.c. However this is anyway quite tricky as
> other application may change state of the phone and it would break
> SMSD anyway.

    Well my fault in explaining.

    Ideally we would use gammu (but not minicom et al.) for single 
events (not only sending single SMS, that could be easily done with 
smsd, but all other kinds of gammu-specific commands). Even if this will 
screw some states, shouldn't it be possible that smsd re-initializes 
itself (or gammu, or the device, or whatever it does) as if it was 
started for the first time?

    While it is possible to stop smsd and restart it, that makes 
monitoring much more difficult.

    We use monit to watch over the smsd daemons, and turning off smsd 
completely would result in all kinds of warning messages, or an 
(Continue reading)

Michal Čihař | 17 Feb 14:46
Favicon
Gravatar

Re: Two feature requests for gammu and smsd

Hi

Dne Thu, 09 Feb 2012 16:08:23 +0100
Marcus Mülbüsch <muelbuesch <at> as-infodienste.de> napsal(a):

> Am 09.02.2012 15:47, schrieb Michal Čihař:
> > Hi
> 
> > All Gammu supports currently is mode 0, however patches are welcome :-).
> 
>     Luckily I'm only the poor sysadmin, I will contact our programmers :)
> 
>     Do you have an example patch available where an AT command was 
> extended? So it is easier to find out where all the screws are that have 
> to be turned :)

Recently I've added support for call diverts, so you can check it out.
When you don't need any special reply parsing, you basically need this:

https://gitorious.org/gammu/mainline/commit/fa2e94909279d77da9e7a5476a3fff37180c0d06

>     Well my fault in explaining.
> 
>     Ideally we would use gammu (but not minicom et al.) for single 
> events (not only sending single SMS, that could be easily done with 
> smsd, but all other kinds of gammu-specific commands). Even if this will 
> screw some states, shouldn't it be possible that smsd re-initializes 
> itself (or gammu, or the device, or whatever it does) as if it was 
> started for the first time?

(Continue reading)


Gmane