FTDI: Break Interrupt question - TechRepublic
Question
December 2, 2009 at 03:30 AM
svquinton

FTDI: Break Interrupt question

by svquinton . Updated 16 years, 7 months ago

Hi,

I am busy with the development of a communication layer that utilizes the FTD2XX_NET (C# wrapper) to communicate with a MM232R.
Currently the MM232R is set up in a loopback (Rx ? Tx).

I am using a EventWaitHandle (set in the SetEventNotification) to monitor the Line Status.

I am generating a break using SetBreak(true) followed by SetBreak(false) and expecting to catch the break (FT_LINE_STATUS.FT_BI)

Instead of capturing a break interrupt (FT_BI) a parity error (FT_PE) is captured. (The FTDI connection is set up with no parity (PARITY_NONE).

Any information regarding this matter will be greatly appreciated.

Regards
SVQuinton

Please find below snippets of the operations performed: (Windows XP 32 SP3 + VS2008 SP1)

this.ftdi.SetDataCharacteristics(FTD2XX_NET.FTDI.FT_DATA_BITS.FT_BITS_8, FTD2XX_NET.FTDI.FT_STOP_BITS.FT_STOP_BITS_1, FTD2XX_NET.FTDI.FT_PARITY.FT_PARITY_NONE)
this.ftdi.SetFlowControl( FTD2XX_NET.FTDI.FT_FLOW_CONTROL.FT_FLOW_NONE, 0, 0)

ewh = new System.Threading.EventWaitHandle(false, System.Threading.EventResetMode.AutoReset)
this.ftdi.SetEventNotification(FTD2XX_NET.FTDI.FT_EVENTS.FT_EVENT_LINE_STATUS, ewh)

this.ftdi.SetBreak(true)
this.ftdi.SetBreak(false)

ewh.WaitOne()
uint eventType = 0
this.ftdi.GetEventType(ref eventType) //FT_BI expected but FT_PE returned

This discussion is locked

All Comments