libgsm usage

M. Dietrich mdt at
Fri Aug 17 00:08:35 CEST 2007


On Wed, Aug 15, 2007 at 04:13:13PM +0200, Harald Welte wrote:
> On Wed, Jul 18, 2007 at 07:26:09AM -0600, Alan Jones wrote:
> ...
> > First, I am interested in the origins of the libgsm<->gsmd protocol.
> > The wiki clearly states that it is undocumented, which is perfectly
> > reasonable. My question comes in as the "official" IPC mechanism in
> > openmoko appears to be DBus. Was
> I am a big believer in proper layering that doesn't violate layer
> barriers.  So while the 'official' openmoko programs are mostly UI
> related, and based on the Linux desktop world, it is perfectly fine that
> they depend on dbus.
> ...

this is interesting, that a discussion about using d-bus or not is so
important. i'm fine with whatever is working under the hood as long as
it is usable. and the protocol doesn't seem to be a problem at all.
the concept is fine, it provides a lib that a developer can use with
some functions to call (if in the end someone wants d-bus this can
shurely be done).

more important would be a discussion about the callback mechanism used
(wouldn't a single call-back routine and a call-back-type parameter
much easier to use? the register function could accept a bitmap with
events the application is interested in) and about the states the gsm
goes through (would be nice to have some diagram showing the states
and which callbacks are called). i already asked for help here:

On Sat, Aug 11, 2007 at 12:08:27PM +0200, M. Dietrich wrote:
> for me the flow isn't clear. here is my flow:
> 	first call is lgsm_init()
> 	unconditionaly the next call is lgsm_phone_power()
> 	next call would be a lgsm_netreg_register() - but what are the
> 	pre-condition to do the call? can i do so before it asked me for
> 	the pin? should i call it, after i was asked for the pin? what if
> 	it does not ask me for the pin because that was already given or
> 	the sim is without pin entry?
> 	assuming it askes me for a pin an i do a lgsm_pin() - how can i
> 	determine if the pin was correct? by waiting if i get /not/ asked
> 	again?
> so essentially i look for a flow diagram using libgsm - is there
> anything like that?

but got no answer. is someone else also interested in these questions?

best regards,

More information about the gsmd-devel mailing list