LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   comport? (https://www.linuxquestions.org/questions/programming-9/comport-149136/)

kalleanka 02-22-2004 10:29 AM

comport?
 
How can I read the comport input buffer raw. Is there a sort of registry I can look at?

The thing is I think I found a bug in a Coinmech SR3 from moneycontrols and I want to be sure that its not my code before I accuse them.

frieza 02-22-2004 10:51 AM

hmm write a C++ program to dump /dev/ttyS0 to a file?

PSIplus 02-22-2004 12:33 PM

Hmmm... I use the "standard"-way:
Open it read/write without CTTY, Set the attributes (Canonial comm, etc) and then I'm able to do read and write or fdopen it for buffered communication... Works for me with microcontrollers...

Hko 02-23-2004 05:24 PM

Re: comport?
 
Quote:

Originally posted by kalleanka
How can I read the comport input buffer raw. Is there a sort of registry I can look at?

Here's a nice doc about serial port programming:

http://www.easysw.com/~mike/serial/

kalleanka 02-24-2004 03:36 AM

Thanks for the answers.

Its a bug in the hard ware. Probably I got an old model or something like that. I sent the info to the company and it will be interesting to see how they react.


All times are GMT -5. The time now is 08:13 PM.