Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Solved: Yaps "Unable to dial"

26 views
Skip to first unread message

Thorsten Müller

unread,
Jul 28, 2003, 7:28:26 AM7/28/03
to
Hi,
i need to send SMS via a generic modem on /dev/ttyS1
on a RedHat 8.0 system.
But i always got the error message.
Unable to dial D1.
Other programs, such as minicom worked without problems.
So after reading a lot of newsgroup postings and trying
around with permission, etc. i did use strace to find out
what's wrong.
Normally the programs stops here:
open("/dev/modem", O_RDWR
and it's only possible to break it with Ctrl.+C.
When i did an strace while working with minicom i find out
that strace tells me this:
open("/dev/modem", O_RDWR|O_NONBLOCK) = 4
So i took a look at the sourcecode of yaps and in tty.h i found
O_RDWR.
What i did was to add O_NONBLOCK to get
O_RDWR|O_NONBLOCK
and compiled yaps again.

After having done this, everything worked great without problems.

I hope that this might help somebody having the same problems as i had.

Regards
Thorsten

0 new messages