Hylafax Mailing List Archives
|
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
Re: [hylafax-users] programming question
Ok, I finally got it working :)
Thanks for your help!
On Fri, 8 Dec 2000, Vyacheslav Frolov wrote:
>
>
> 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
>
>
____________________ HylaFAX(tm) Users Mailing List _______________________
To unsub: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null