title: Create serial port device file
body: <p>I need to develop a test program, which sends and recieves data from terminal to the serial port.<br>
  In order to do that I want to create virtual device file and work with it. I did that by using command:</p>
  
  <blockquote>
    <p>mknod -m 666 ttyS32 c 4, 500</p>
  </blockquote>
  
  <p>The device file was successfully created, however I can't write data to it. Both programmatical and terminal ways give the following error:</p>
  
  <blockquote>
    <p>No such device or address</p>
  </blockquote>
  
  <p>In C I used standard file I/O functions, and in terminal I used the 'echo' command. Do you have any ideas how to write data to serial port device file?</p>