LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Log incomming data from a serial port (https://www.linuxquestions.org/questions/linux-hardware-18/log-incomming-data-from-a-serial-port-185889/)

shoekstr 05-25-2004 09:54 PM

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?

Kara 05-28-2004 07:52 AM

Which language are you using? Platform?
Try waiting for a while, before reading.

shoekstr 05-28-2004 08:00 AM

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

kinasz 05-28-2004 08:37 AM

/dev/cua1 > filename


???:confused:

shoekstr 05-28-2004 08:41 AM

root@jetta:~# /dev/cua1 > serial1.txt
-bash: /dev/cua1: Permission denied

kinasz 05-28-2004 09:00 AM

tail -f /dev/cua1 > serial1.txt

???

shoekstr 05-28-2004 10:53 AM

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]


All times are GMT -5. The time now is 03:22 AM.