LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-22-2004, 10:29 AM   #1
kalleanka
Member
 
Registered: Aug 2003
Location: Mallorca, Spain
Distribution: xubuntu
Posts: 551

Rep: Reputation: 38
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.
 
Old 02-22-2004, 10:51 AM   #2
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
hmm write a C++ program to dump /dev/ttyS0 to a file?
 
Old 02-22-2004, 12:33 PM   #3
PSIplus
Member
 
Registered: Feb 2004
Location: Vienna/Austria
Distribution: Debian Unstable
Posts: 36

Rep: Reputation: 15
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...
 
Old 02-23-2004, 05:24 PM   #4
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
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/
 
Old 02-24-2004, 03:36 AM   #5
kalleanka
Member
 
Registered: Aug 2003
Location: Mallorca, Spain
Distribution: xubuntu
Posts: 551

Original Poster
Rep: Reputation: 38
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
comport communication neerukamra Linux - General 0 09-06-2004 12:18 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration