port serial linux mini2440

Status
Not open for further replies.

iqbalhabibie

Junior Member level 2
Joined
Nov 19, 2012
Messages
23
Helped
4
Reputation
8
Reaction score
4
Trophy points
1,283
Visit site
Activity points
1,416
I am new with port serial. Do i need to learn port serial in windows first than linux platform? Because I'm trying to program with port serial in virtual linux
 

Are you talking about serial port programming for microcontrollers or about serial communication using windows/linux?
 

Are you talking about serial port programming for microcontrollers or about serial communication using windows/linux?

Yes i'm trying serial port programming in linux, i have read some posting here mention dev/tty. I'm still don't understand what this mean and how do you know com1 in linux? could you give me some briefly information how do you know ports in linux like com1,com2,etc. thanks.
 

Hello!

There is no ComX on Linux. Basically if you want to open a port, you do:

fd = fopen("/dev/ttyS0", RDWR);

or something like that (google is your friend), and then you can read and write in your
file handle. Of course you have to set the bit rate.

Dora.
 

i was wondering how do you boot with picocom with my device, i have turned out that the serial or terminal in picocom doesn't ready? i wonder what is wrong in my device?
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…