Disable/Enable Transmitter on a serial port

Hi,

I am working with the MPC5200 device and QNX 6.3.

I uses 4 serial devices and I want these devices to be as synchronous
as possible because I want to transmit on the 4 serial ports at the
same time.
Today, I have a 300 µs delay between the transmission on the ser1 and
the ser2, between the ser2 and the ser3…
I would like to reduce the time between these transmission delay.

I would like to write bytes to the serial devices with the write()
function first and then enable the transmitter.

Is there a way to enable and disable transmitter on a serial device.

thanks

nico60 wrote:

I am working with the MPC5200 device and QNX 6.3.

I uses 4 serial devices and I want these devices to be as synchronous
as possible because I want to transmit on the 4 serial ports at the
same time.
Today, I have a 300 µs delay between the transmission on the ser1 and
the ser2, between the ser2 and the ser3…
I would like to reduce the time between these transmission delay.

I wouldn’t call a comport a good source of synchronisation.

It will be possible to do want you want but using the default interfaces isn’t likely to helpful. More likely you’ll have to modify devc-serXXXX to register a custom write()/ioctl() that allowed for packeting all ports together so then devc-serXXXX will know to start sending out simultaneously.

Another way is to use the comports just for config/status/streaming like any sane coder would do and use a custom external trigger for syncing. :wink:


Evan