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

Re: [efax-users] Problem 2 - Getting Sync Error and return code - 4



Hi Murthy,

It looks like your USB modem (or the USB software) is "hanging
up" and preventing any communication between the computer and the
modem.

I'm not sure why this happens after 5-6 faxes.  Perhaps a memory
leak in the modem firmware or in the USB driver?

You could try unplugging the modem and then plugging it back in
to see if this fixes it.  If this resolves your problem you could
try resetting the USB device between each use of the modem
(although I don't know what command would let you do that).

Normal (serial) modems have an out-of-band reset mechanism using
the DTR line (that's what the message "dropping DTR" means).
efax uses this try to wake-up a "dead" modem.  But I doubt this
works for USB modems.

Or perhaps there is a "more powerful" reset command that will
completely reset the modem.  Check your modem documentation,
perhaps something like "Z1".

-- 
Ed Casas  edc@xxxxxxx   http://www.cce.com

> Hi All, 
> 	This is the set up I am using -- 
> 	I have a macintosh G4 machine with an internal modem (class 
> 2)and a Zoom External USB Modem (Class 1) connected to the same machine 
> and a phone line connected to each of them 
> 
> 
> 	I have written a script that will use the fax command to send 
> out as many faxes as required --> Now I am trying to send 10 faxes to 
> the USB modem connected to the same machine 
> 
> 	I have also written a script which will listen to the USB modem 
> to receive the faxes --  This is the relevant command I am using for 
> listening at the USB Modem 
> 	../efax-0.9/efax -d $DEVICE -w -kZ -iS0=2 -r $FILENAME 
> 
> 	Things go well till the 5th or 6th Fax -- after this I start 
> getting errors as pasted below...Any pointers? 
> 
> efax: 25:42 opened /dev/cu.usbmodem001 
> efax: 25:42 Warning: termios.cflag is 000705400, not 000105400 
> efax: 25:42 Warning: terminal mode not set properly 
> efax: 25:48 sync: dropping DTR 
> efax: 25:48 Warning: termios.cflag is 000705400, not 000105400 
> efax: 25:48 Warning: terminal mode not set properly 
> efax: 25:48 Error: tcsetattr on fd=3 failed: Invalid argument 
> efax: 25:48 Warning: termios.cflag is 000705400, not 000105400 
> efax: 25:48 Warning: terminal mode not set properly 
> efax: 25:53 sync: sending escapes 
> efax: 25:53 Warning: termios.cflag is 000705400, not 000105400 
> efax: 25:53 Warning: terminal mode not set properly 
> efax: 25:53 Warning: termios.cflag is 000705400, not 000105400 
> efax: 25:53 Warning: terminal mode not set properly 
> efax: 25:58 Error: sync: modem not responding 
> efax: 25:58 done, returning 4 (no response from modem) 
> 
> Regards, 
> Murthy 
> 
> 
> 
> On Sunday, September 21, 2003, at 05:11 PM, Murthy Parthasarathi wrote: 
> 
> 
> > Hi All, 
> > 
> > 	I am currently  using efax-0.9  on a Mac OS X 10.2.6 system 
> > to receive faxes. We are developing an application which receives a 
> > number of faxes a day.. 
> > 
> > 	I have faced some problems while using the efax application 
> > and came to know of this list today..so I will be posting the 
> > issues here... Please let me know how the archives of the list can 
> > be accessed as I could not find any link for the same... 
> > 
> > 	 
> > 	When the device id of any modem is provided for eFax to 
> > listen to -- 
> > 
> > 	The warning I am getting is 
> > 
> > 	efax: 04:22 Warning: termios.cflag is 000705400, not 
> > 000105400 
> > 	efax: 04:22 Warning: terminal mode not set properly 
> > 
> > 
> > 	After this the modem does receive faxes... 
> > 
> > 	Please let me know if the warning is important -- if so -- 
> > how do I solve it? 
> > 
> > Cheers 
> > Murthy 
> > 
> > 
> 
>