[hcflinux] Re: HCF driver with Hylafax
Marc Boucher
marc at mbsi.ca
Wed May 29 02:15:48 EDT 2002
On Wed, May 29, 2002 at 12:56:26AM -0400, Alok K. Dhir wrote:
> FYI:
>
> Please see the attached output from Hylafax's 'faxaddmodem' command:
>
> You still have root access, so you can play with it if you need to.
how convenient ;-)
>
> ----------------------------
> [Initial configuration snipped]
>
> Probing for best speed to talk to modem: 38400 OK.
>
> ATQ0V1E1
> OK
> AT+FCLASS=?
> +FCLASS:(0,1,1.0)
>
> OK
>
> We were unable to deduce what type of modem you have. This means that
> it did not respond as a Class 1, Class 2, or Class 2.0 modem should.
> If you believe that your modem conforms to the Class 1, Class 2, or
> Class 2.0 interface specification, then check that the modem is
> operating properly and that you can communicate with the modem from the
> host. If your modem is not one of the above types of modems, then this
> software does not support it and you will need to write a driver that
> supports it.
> -----------------------------
faxaddmodem is confused by the +FCLASS: prefix in the modem's response;
that's easy to fix (see patch below)
Marc
--- faxaddmodem.ORIG Wed May 29 01:01:55 2002
+++ faxaddmodem Wed May 29 01:08:46 2002
@@ -1178,7 +1178,7 @@
echo ""
if [ "$RESULT" = "OK" ]; then
# Looks like a Class 1, 2, or 2.0 modem, get more information
- case "`echo $RESPONSE | $SED -e 's/[()]//g'`" in
+ case "`echo $RESPONSE | $SED -e 's/\+FCLASS://' -e 's/[()]//g'`" in
1) configureClass1Modem;;
2) configureClass2Modem;;
2.0) configureClass2dot0Modem;;
More information about the hcflinux
mailing list