Find the answer to your Linux question:
Results 1 to 2 of 2
When i try to write and read data like ABC through serial port to a hardware device, used to check whether transmission of traffic is done without loss, the reading ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2007
    Location
    bangalore
    Posts
    38

    Serial eagain error


    When i try to write and read data like ABC through serial port to a hardware device, used to check whether transmission of traffic is done without loss, the reading fails and the reason given is eagain error: temporarily resource unavailable when it is being read only by me........can anybody suggest what is wrong? ....

  2. #2
    Linux Engineer wje_lf's Avatar
    Join Date
    Sep 2007
    Location
    Mariposa
    Posts
    1,192
    When I do this at the command line:
    Code:
    man 2 read
    I get this explanation for the EAGAIN error:
    Code:
    ...... EAGAIN Non-blocking I/O has been selected using O_NONBLOCK
                  and no data was immediately available for reading.
    If you're using nonblocking I/O, use select() to inform you when data is available (for reading) or there's room for output data (for writing).

    Hope this helps.
    --
    Bill

    Old age and treachery will overcome youth and skill.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •