Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
C code for serial port in linux
Name: sandysan Date: May 13, 2009 at 21:49:32 Pacific OS: Linux(Slackware) Subcategory: Opinions
Comment:
Im working in Linux based ARM board.I want to write a C code for communicating with my serial port from my ARM board to PC. I want to communicate with my PC to this board. Plz can i get C code.I am new to this.
______________________ My work in progress. I hate JS. :P
0
Response Number 2
Name: rajanikanth Date: July 16, 2009 at 01:44:05 Pacific
Reply:
Hello Sandysan,
I am also in the same situation. I have a serial port program in Linux but the same program is not working for ARM based board. I don't have any issues with 'tty' or 'COM port'.
You got the solution ? If so please help me.
Thanks in advance.
Best regards, Rajanikanth.
0
Response Number 3
Name: sandysan Date: July 16, 2009 at 01:57:31 Pacific
Reply:
PLz can you send that serial code wat you have with you i will try in our board.. i will tell you?
Summary: how to read serial port in C language. printf("%d", inport(0)); outportb(0, 65); delay(1000); printf("%d", inport(0)); supposing initial value at serial port is 64. Both printf's display 64 only. When...
Summary: For Java, you can use Java Communications API which handles Serial and Parallel ports programming. You can get it from Sun website. For C/C++, it depends on the platform & whether you are using Win or...