R – Serial Port Communications

clinuxserial-port

I am trying to create a GUI for a c code written in LINUX.

This code basically connects two systems, opens the serial port, writes data from one system to the other via the port.how do I go about this?

The development tools present with me are Qt designer version 3.3.5 and K Develop, which one should I use.and how to go about it?

Best Answer

In Linux, every hardware device is mapped to the file-system using standard file-system permissions.

If you're just using a simple serial port protocol under Linux, you can treat any serial port device as a file. Meaning, they can be opened, read, written and handled just using standard files.

The 'filename' for a serial port is typically /dev/ttyS0 or /dev/ttyUSB0 depending on the type of serial port. It is often symlinked to /dev/modem on regular distributions.

Related Topic