Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: FRAMING ERROR
BTW, I've tried using the serial byte format of 8N1 (which produces garbage on CompuServe) and 7N1 and 7E1 which generally produces good results - but I still get these framing errors - not all the time, but just SOME of the time.
In any case a little background. When a byte is sent over the comm line it generally is sent as:
STARTBIT DATABIT 1 DATABIT 2 DATABIT 3 DATABIT 4 DATABIT 5 DATABIT 6 DATABIT 7 DATABIT 8 STOPBITFraming error means that someting that looked like a character arrived but that it was not formatted properly. No stop bit, incorrect number of data bits, etc etc. In general the problem is line noise. Get a better phone line (or ignore the problem). Be aware that a lot of line noice can occassionally show up as data errors.
Only getting the problem some of the time is consistent with the line noise problem. Sometimes you get a good line and sometimes you do not. Sometimes s different modem helps.
PS#1 As I recall Compuserve is 7E1
PS#2 As I recall Compuserve is planning to drop support for the tty mode protocol so this script may become useless in the future.
Some insight..
COM1 is a valid COM Port and has a Serial Mouse attached
COM2 is a valid COM Port and is an internal modem
COM3 is NOT a valid COM port
COM4 is a valid COM Port and has nothing attached
pGetlasterror reports a (7: Invalid Port) under the initial senerio using ErrorMose(@OFF) for COM1 and COM3, and pGetlasterror report a (0: No Error) under the initial senerio using ErrorMose(@OFF) for COM2 and COM4.
In the code below - I get a WIL Extender Error:------ at the command port=pComOpen
How Does pComOpen determine the validity of a COM PORT?
BoxOpen("File Xfer Communications","Initializing") port=pComOpen(MyModemIsOn,0,9600,"8N1","RTSRTS") code=pGetLastError(1) Message("Open err msg",code) BoxText(port) Timedelay(3) if port == 0 BoxText("Comm Port selected not present") TimeDelay(4) BoxText("Set System Options to Proper Comm Port") TimeDelay(4) goto openerror endifSERIAL CAPTURE TXT FILE:
Serial Port Capture pcomopen("COM4","0","9600","8N1","RTSRTS") OK = 5999986 pgetlasterror("1") OK = 0 : No error [[[ ***** FRAMING ERROR ***** ]]]
I think you want:
xx=pComInfo(port,5)to test for framing error.
If you tried reading data then you might get an error. The pGetLastError is reporting on the pComOpen - and that succeeded.
Thanks for the insight...
Article ID: W12572
Filename: Framing Error with Serial Extender.txt
File Created: 2001:01:08:12:31:48
Last Updated: 2001:01:08:12:31:48