LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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: 547

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,088

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
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: ubuntu
Posts: 2,530

Rep: Reputation: 108Reputation: 108
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: 547

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 06:35 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration