Out of band notify for serial device /dev/ser1 doesn’t work
in this code:
// clear out of band data
devctl(dev_fd, DCMD_CHR_GETOBAND, &oob_byte, sizeof(oob_byte), NULL)
== -1 );
// oob_byte = 0; - no out of band data
// arm out of band notify
ionotify( dev_fd, _NOTIFY_ACTION_POLLARM, _NOTIFY_COND_OBAND,
&oob_sigevent );
// delay 500ms; armed notify didn’t fire → check oob data:
devctl(dev_fd, DCMD_CHR_GETOBAND, &oob_byte, sizeof(oob_byte), NULL)
== -1 );
// oob_byte = { _OBAND_SER_FE, _OBAND_SER_BI } ?!
What is wrong ?
Why _OBAND_SER_FE, _OBAND_SER_BI
didn’t fire out of band data notify ?