i have a project about communicate with particular devices via a RS-232 wire recently. since my computer has no serial port, i use a USB-to-RS232 wire to be the intermediate between devices and my computer. but i am new in Linux drivers, so it's hard for me catch the idea of it.
i am working under Debian with a default working driver in it and i have tested whatever could be done on hardware side and found everything just fine. now the case comes to be how to send commands to the devices and receive corresponding data in C. i've read some books and i think maybe mapping the usb port to be a tty device would work.
am i thinking in the right way? i am kind of confused. i downloaded the source code of "minicom" and read some lines of it, but i still don't quite get it. Please help me out.