LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-25-2004, 09:54 PM   #1
shoekstr
LQ Newbie
 
Registered: Aug 2003
Distribution: Gentoo, Debian, Slackware
Posts: 22

Rep: Reputation: 15
Question Log incomming data from a serial port


I have a serial RFID reader that send's the card information to the serial port in plain text I wan't to write a bash script to log the incomming data and enter the data into a dbase but I just cant' get any data from the comm port can some one help me?
 
Old 05-28-2004, 07:52 AM   #2
Kara
LQ Newbie
 
Registered: May 2004
Posts: 6

Rep: Reputation: 0
Which language are you using? Platform?
Try waiting for a while, before reading.
 
Old 05-28-2004, 08:00 AM   #3
shoekstr
LQ Newbie
 
Registered: Aug 2003
Distribution: Gentoo, Debian, Slackware
Posts: 22

Original Poster
Rep: Reputation: 15
I'm running Slackware 9.1 and tring to listen to the device in a Bash Shell since I don't want to write a program in c to do the job and cause I don't know c
 
Old 05-28-2004, 08:37 AM   #4
kinasz
Member
 
Registered: Mar 2004
Location: Brisbane, Australia
Distribution: FreeBSD, Suse
Posts: 103

Rep: Reputation: 15
/dev/cua1 > filename


???
 
Old 05-28-2004, 08:41 AM   #5
shoekstr
LQ Newbie
 
Registered: Aug 2003
Distribution: Gentoo, Debian, Slackware
Posts: 22

Original Poster
Rep: Reputation: 15
root@jetta:~# /dev/cua1 > serial1.txt
-bash: /dev/cua1: Permission denied
 
Old 05-28-2004, 09:00 AM   #6
kinasz
Member
 
Registered: Mar 2004
Location: Brisbane, Australia
Distribution: FreeBSD, Suse
Posts: 103

Rep: Reputation: 15
tail -f /dev/cua1 > serial1.txt

???
 
Old 05-28-2004, 10:53 AM   #7
shoekstr
LQ Newbie
 
Registered: Aug 2003
Distribution: Gentoo, Debian, Slackware
Posts: 22

Original Poster
Rep: Reputation: 15
root@jetta:~# tail -f /dev/cua1 > serial.txt

then I scan the card 6 times and then


root@jetta:~# cat serial.txt

And the file is blank

the output I get when I use windows is

000000270F [len=11]
000000270F [len=11]
000000270F [len=11]
000000270F [len=11]
000000270F [len=11]
000000270F [len=11]
000000270F [len=11]
 
  


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
reading data from a serial port mchitrakar Linux - Networking 3 12-04-2004 01:24 PM
Serial port data to audio on the fly floydes Programming 0 10-14-2004 01:35 AM
accessing data from serial port PrerakParikh Linux - Hardware 2 08-24-2004 10:17 PM
exchanging data between 2 computer using serial port blackzone Linux - General 1 07-24-2004 02:54 AM
trouble receiving serial port data mtPete Linux - General 1 08-20-2003 04:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:47 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration