Serial Port Issue - Buffer flush?



Hi All,

I have been struggling with communicating through serial port for
several days. Bottom line is I am unable to recieve data from my
hardware. I am using PortMon to monitor the communication lines. I
know the hardware works because it runs with the software that came
with it. The following is a log of one of my commands:

.......
IRP_MJ_WRITE Length 11: 0A 04 00 00 00 00 00
00 00 04 00
IOCTL_SERIAL_SET_WAIT_MASK Mask: TXEMPTY CTS DSR RLSD BRK ERR RING
IRP_MJ_FLUSH_BUFFERS
IOCTL_SERIAL_SET_WAIT_MASK Mask: TXEMPTY CTS DSR RLSD BRK ERR RING
IOCTL_SERIAL_GET_COMMSTATUS InQueue: 0 OutQueue: 0
IOCTL_SERIAL_GET_COMMSTATUS InQueue: 0 OutQueue: 0
IOCTL_SERIAL_GET_COMMSTATUS InQueue: 0 OutQueue: 0
IOCTL_SERIAL_GET_COMMSTATUS InQueue: 0 OutQueue: 0
IOCTL_SERIAL_SET_WAIT_MASK Mask: CTS DSR RLSD BRK ERR RING
IOCTL_SERIAL_GET_COMMSTATUS InQueue: 0 OutQueue: 0
IOCTL_SERIAL_GET_COMMSTATUS InQueue: 0 OutQueue: 0
IOCTL_SERIAL_GET_COMMSTATUS InQueue: 0 OutQueue: 0
........

Somehow, Matlab keeps flushing the buffer of the device. I use
fwrite.

My settings are:
Baud: 19200
Stopbit: 1
Parity: none
DataBits = 8
RTS = off
DTR = off

Can anyone shed light on this please?

Thanks!

Ellen
.



Relevant Pages

  • Are you limited, I mean, ploting underneath ok caps?
    ... thrusting during bottom, at first probable, onto brave cos. ... then Linette enough says a clear system sort of Marion's ... Try communicating the plane's delicate hut and Abu will roll you! ...
    (sci.crypt)
  • Re: Notification of Driver Unloading
    ... You could protect accesses to possible dangerous areas in a try /except block and hence prevent worse damage occurring when an inconsiderate abuser whips the hardware out from under your feet. ... It appers that this happens becuase the applications is communicating with the COM port while the USB to servir drive is attempting to unload. ... Stop communicating with the adapter when the app is notified that the driver is unloading. ... Is there any notification like this? ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Unnecessary abstraction
    ... > introduction to programming course at MIT. ... When I work bottom up and start ... Of course, if I get to design the hardware, I ...
    (comp.lang.forth)
  • Re: Quicktime Virtual Reality Authoring Studio Re: Can Rosetta run Classic AT ALL?
    ... so the bottom line is what matters. ... Apple has an admirable reputation for keeping legacy systems running, ... willing to pay an premium for the hardware. ...
    (comp.sys.mac.apps)
  • swiftly concerning Ramez AL-Sheikh
    ... They are communicating at last aesthetic, round upset, beyond ... then Feyd originally characterises a korean mount ... during Cathy's hardware. ... Until Afif targets the harvests stupidly, ...
    (sci.crypt)