HylaFAX The world's most advanced open source fax server

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

Re: [hylafax-users] programming question





Rob Foehl wrote:

> yeah, I saw that much looking at the strace.. the problem I'm having is
> that I don't get anything back from the modem when i write to it.. I think
> I'm setting up the port wrong.. Do you have example code on how to

> properly open/configure the port?

Does your faxgetty work properly? Can you send/receive faxes?
If you can then you do not need to configure the port.

Try with checking result codes:

lock device (UUCP lock)
open device (use system calls)
write "AT\r"
read "\r\nOK\r\n"
close device
unlock device

If your locking method is wrong then you won't read "\r\nOK\r\n" because
it will be read by faxgetty. Try stop faxgetty.

Example - faxsend

Other example (without locking):

[root]# echo -n -e 'AT\r' > /dev/ttyD14& cat </dev/ttyD14
[1] 24441
AT
OK
ATZ
OK
:)))




____________________ HylaFAX(tm) Users Mailing List _______________________
 To unsub: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null




Project hosted by iFAX Solutions