[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem in cooperation between gnokii and gsmlib
From: |
BORBELY Zoltan |
Subject: |
Re: Problem in cooperation between gnokii and gsmlib |
Date: |
Mon, 16 Aug 2004 17:15:18 +0200 |
User-agent: |
Mutt/1.4.1i |
Hi,
On Thu, Jul 08, 2004 at 10:11:26PM +0200, Libor Chocholaty wrote:
> I would like to use gnokiid in cooperation with gsmlib, but gsmlib
> trying to reset modem by following ioctl calls:
> // toggle DTR to reset modem
> int mctl = TIOCM_DTR;
> if (ioctl(_fd, TIOCMBIC, &mctl) < 0)
> throwModemException(_("clearing DTR failed"));
> // the waiting time for DTR toggling is increased with each loop
> usleep(holdoff[initTries]);
> if (ioctl(_fd, TIOCMBIS, &mctl) < 0)
> throwModemException(_("setting DTR failed"));
>
> But the first ioctl call fails. I found three posible sources of
> problems: gnokiid, gsmlib, Linux kernel. I tried kernels 2.4.22, 2.6.5
> and 2.6.7 with same results.
>
> # ./gsmctl -d /dev/gnokii -o BATT
> lt-gsmctl[ERROR]: clearing DTR failed (errno: 22/Invalid argument)
> #
>
> Do anybody know, how to use gnokiid and gsmlib together?
I think you cannot control the modem control lines of the pseudo terminals
(/dev/gnokii is a symlink to a pseudo terminal). You can check it yourself
if you issue "strace ./gsmctl -d /dev/gnokii -o BATT".
Bye,
Bozo