ioctl serial port and SIOCGSTAMP - Unix

This is a discussion on ioctl serial port and SIOCGSTAMP - Unix ; Hi, Does the ioctl(fd,SIOCGSTAMP,&time_val) function work for serial port? (fd = open("/dev/ttyS1",O_RDWR)) Regards...

+ Reply to Thread
Results 1 to 2 of 2

Thread: ioctl serial port and SIOCGSTAMP

  1. ioctl serial port and SIOCGSTAMP

    Hi,
    Does the ioctl(fd,SIOCGSTAMP,&time_val) function work for serial
    port?
    (fd = open("/dev/ttyS1",O_RDWR))
    Regards

  2. Re: ioctl serial port and SIOCGSTAMP

    lhommedumatch wrote:
    > Does the ioctl(fd,SIOCGSTAMP,&time_val) function work for serial
    > port?
    > (fd = open("/dev/ttyS1",O_RDWR))


    SIOCGSTAMP is for getting the timestamp of an incoming package
    on a socket (on Linux), so what you would expect it to do for
    a serial port? There are no packages transmitted via the serial
    port and thus no timestamps. Are you looking for something that
    woukd tell you when the last bit has been read by the serial
    port? Not that I would know but just to clarify what this is
    about...
    Regards, Jens
    --
    \ Jens Thoms Toerring ___ jt@toerring.de
    \__________________________ http://toerring.de

+ Reply to Thread