gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: smsd: Problem occurred internal to model specific code.


From: Daniele Forsi
Subject: Re: smsd: Problem occurred internal to model specific code.
Date: Tue, 29 Mar 2011 11:27:50 +0200

2011/3/29 Mark Morley:

> It will work great for days or even weeks, but then it stops for no apparent 
> reason.

does the syslog show something related to USB?

> In smsd.conf I have:
>
> [NOKIACS18]
> device = /dev/cuaU2
> pin = ignore
> pre_init = no
> init =
> init2 =
> incoming = 2
> baudrate = 19200
> rtscts = no
> check_network = 0
> eventhandler = PATH_TO_MY_SCRIPT
> check_network = 0
> number = xxxxxxxxxxx
> detect_message_routing = no

this isn't a configuration for gnokii's smsd

> I'm not sure if it's a matter of using proper init strings, or if it's an 
> issue with gnokii, or if it's a USB driver issue in FreeBSD.

or an issue with the stick

> Any thoughts?

libgnoki talking to an emulated serial device doesn't need to know if
it's USB, Bluetooth or whatever, so if the USB devices disappears
there's nothing smsd can do but instead of running it directly, can
you wrap it in a script that calls usb_modeswitch in case of error?
Something like
#!/bin/bash
while true
do
        smsd ... || usb_modeswitch ...
        sleep ...
done
-- 
Daniele Forsi



reply via email to

[Prev in Thread] Current Thread [Next in Thread]