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?
|
Which language are you using? Platform?
Try waiting for a while, before reading. |
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
|
/dev/cua1 > filename
???:confused: |
root@jetta:~# /dev/cua1 > serial1.txt
-bash: /dev/cua1: Permission denied |
tail -f /dev/cua1 > serial1.txt
??? |
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. |