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: Mark Morley
Subject: Re: smsd: Problem occurred internal to model specific code.
Date: Tue, 29 Mar 2011 09:54:46 -0700



On Tue, 29 Mar 2011 11:27:50 +0200 Daniele Forsi <address@hidden> wrote:

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


D'oh, sorry.  Wrong smsd config file (tried a lot of software before finding gnokii).

No USB or any other related messages appear anywhere in any log file or on the console.

Unfortunately, when it stops working a power cycle of the USB modem is required.  Simply re-running usb_modeswitch doesn't help.

I'm leaning towards a USB issue.  Could be the device itself, but it's brand new and seems to work fine on a PC.

Mark 


reply via email to

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