Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
efax + HCF FAX Modem for Faxing
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
netcetera
n00b
n00b


Joined: 10 Feb 2003
Posts: 30
Location: ummm, ya , let me get back to you on that...

PostPosted: Mon Sep 01, 2003 5:46 am    Post subject: efax + HCF FAX Modem for Faxing Reply with quote

I wanted to use my Gentoo box to send and receive faxes with a PCI HCF fax modem that I had. I looked around for fax apps and found efax and Hylafax. HylaFax is a MONSTER of a package, full featured, multi-user, etc, etc...

efax looked small and perfect for a single user - like me...

Here is the process that I followed to make it work:

1) emerge hcfpcimodem

Code:
emerge hcfpcimodem


2) run hcfpciconfig

Code:
hcfpciconfig

I took the defaults and everything looked fine.

3) emerge efax

Code:
emerge efax



A quick lspci revealed that the device is found:

Quote:
0:00.0 Host bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133] (rev 02)
00:01.0 PCI bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133 AGP]
00:04.0 ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super South] (rev 22)
00:04.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT8233/A/C/VT8235 PIPC Bus Master IDE (rev 10)
00:04.2 USB Controller: VIA Technologies, Inc. USB (rev 10)
00:04.3 USB Controller: VIA Technologies, Inc. USB (rev 10)
00:04.4 Bridge: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI] (rev 30)
00:0b.0 Ethernet controller: Digital Equipment Corporation DECchip 21041 [Tulip Pass 3] (rev 21)
00:0c.0 Multimedia audio controller: Ensoniq ES1370 [AudioPCI] (rev 01)
00:0d.0 Communication controller: Rockwell International HCF 56k Data/Fax Modem (rev 01)
00:11.0 Unknown mass storage controller: Promise Technology, Inc. 20265 (rev 02)
01:00.0 VGA compatible controller: nVidia Corporation NV11 [GeForce2 MX/MX 400] (rev b2)


If you want you can now emerge wvdial

Code:
emerge wvdial


and run wvdialconf modem.test. ("modem.test" is a file name where the results of the wvdialconf are written)

Quote:
tubbles fax # wvdialconf modem.test
Scanning your serial ports for a modem.

Port Scan<*1>: Scanning ttySHCF0 first, /dev/modem is a link to it.
ttySHCF0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 4800 baud
ttySHCF0<*1>: ATQ0 V1 E1 -- OK
ttySHCF0<*1>: ATQ0 V1 E1 Z -- OK
ttySHCF0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttySHCF0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttySHCF0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttySHCF0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttySHCF0<*1>: Modem Identifier: ATI -- OK
ttySHCF0<*1>: Speed 9600: AT -- OK
ttySHCF0<*1>: Speed 19200: AT -- OK
ttySHCF0<*1>: Speed 38400: AT -- OK
ttySHCF0<*1>: Speed 57600: AT -- OK
ttySHCF0<*1>: Speed 115200: AT -- OK
ttySHCF0<*1>: Max speed is 115200; that should be safe.
ttySHCF0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK

Found a modem on /dev/ttySHCF0, using link /dev/modem in config.
modem.test<Warn>: Can't read config file modem.test: No such file or directory
Modem configuration written to modem.test.
ttySHCF0<Info>: Speed 115200; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"


Now comes the meat of the issue. I tried just using the defaults and faxing my /etc/fstab as a simple test. It looks like efax detects the hcfmodem as a class 2 fax modem and tries to use it as a class 2. This did result in a sent fax, but errors were encounted during transmit and 3 copies of the files were sent...

Not good... :evil:

So I went to the efax home page: http://www.cce.com/efax/

and dove into the well written documentation. Nothing really jumped out, but I decided to try some command line options for both my send and receive portions.

Here is the command I used to send the fax:
Code:

efax -d /dev/modem -o 1n  -t 555-1212  /etc/fstab


It is a little longer than it needs to be but it works. The number after -t is the number that you want to dial - not real obviously...:)

I think the key thing to note is that the -o option of 1 and n make it work . The 1 forces a class 1 fax modem, and the n tells efax to not worry about re-transmit requests. This is where the 3 copies were from.

here is the output from the efax session:

Quote:
tubbles fax # efax -d /dev/modem -o 1n -t 555-1212 /etc/fstab
efax: Sun Aug 31 22:28:01 2003 efax v 0.9a-001114 Copyright 1999 Ed Casas
efax: Sun Aug 31 22:28:01 2003 efax v 0.9a-001114 Copyright 1999 Ed Casas
efax: 28:01 compiled Aug 28 2003 22:42:37
efax: 28:01 opened /dev/modem
efax: 28:01 using hcfpcimodem-0.99mbsibeta02123100 in class 1
efax: 28:01 dialing 703-9931
efax: 28:16 connected
efax: 28:17 received CSI - answering ID
efax: 28:17 remote ID -> 4037031399
efax: 28:18 received DIS - answering capabilities
efax: 28:18 remote has no document(s) to send, and can receive
efax: 28:18 local 196lpi 14.4kbps 8.5"/215mm any 1D - - 0ms
efax: 28:18 remote 196lpi 14.4kbps 8.5"/215mm any 2D - - 0ms
efax: 28:18 session 196lpi 14.4kbps 8.5"/215mm any 1D - - 0ms
efax: 28:18 sent TSI - caller ID
efax: 28:20 sent DCS - session format
efax: 28:24 sent TCF - channel check of 2700 bytes
efax: 28:25 received CFR - channel OK
efax: 28:27 header:[Sun Aug 31 22:28:01 2003 P. 1]
efax: 28:41 sent 20+864 lines, 24519+0 bytes, 14 s 14010 bps
efax: 28:41 sent EOP - done
efax: 28:47 Warning: timed out after waiting
efax: 28:47 received EOP - done
efax: 28:47 sent EOP - done
efax: 28:50 received RTN - page not OK, check channel
efax: 28:50 sent -> /etc/fstab
efax: 28:51 sent DCN - disconnect
efax: 28:53 failed -> /etc/fstab
efax: 28:54 done, returning 0 (success)


Though it likes a failure - the return from efax was a success.

To test the fax receive capability I executed the following:

Code:
efax -d /dev/modem -w -o 1n -iS0=2 -kS0=0


This gets the modem ready to receive a fax and to pick up the phone after 2 rings "-iS0=2" . I have a fax server from my telco, so I execute the command and then initiate the fax delivery from my telco. The "-kS0=0" turns off the auto answer on the modem so the next call will not be picked up by the modem.

The modem picked up after 2 rings and efax returns the following:

Code:
tubbles fax # efax -d /dev/modem -w -o 1n -iS0=2  -kS0=0
efax: Sun Aug 31 22:29:17 2003 efax v 0.9a-001114 Copyright 1999 Ed Casas
efax: Sun Aug 31 22:29:17 2003 efax v 0.9a-001114 Copyright 1999 Ed Casas
efax: 29:17 compiled Aug 28 2003 22:42:37
efax: 29:17 opened /dev/modem
efax: 29:17 using hcfpcimodem-0.99mbsibeta02123100 in class 1
efax: 29:17 waiting for activity
efax: 30:52 activity detected
efax: 31:04 fax call answered
efax: 31:04 sent CSI - answering ID
efax: 31:06 sent DIS - answering capabilities
efax: 31:09 received TSI - caller ID
efax: 31:09 remote ID ->         Fax Services
efax: 31:09 received DCS - session format
efax: 31:09 session 196lpi 14.4kbps 8.5"/215mm  any   1D    -     -  0ms
efax: 31:12 received TCF - channel check (OK: run of 2591 in 2634)
efax: 31:13 sent CFR - channel OK
efax: 31:29 received 860 lines, 0 errors
efax: 31:29 received -> 0831223104.001
efax: 31:30 received EOP - done
efax: 31:31 sent MCF - page OK
efax: 31:33 received DCN - disconnect
efax: 31:35 done, returning 0 (success)


I viewed the file with Kfax and it looks fine.

I have not tried with multiple pages yet though I will try to edit this post with my future results.

efax is MUCH quicker to install and use than HylaFAX and is perfect for simple faxing. Though Faxing with an HCF modem under Linux is in its initial stage, as stated in the FAQ's on http://www.linuxant.com/drivers/hcf/faq.html, it looks like Class 1 FAX services are solid enough for use.

Enjoy !!!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum