At times I can see Google is trying to pass info but there are no pages being sent as the read data light is out (but there is NO modem activity & the RD lamp is inactive). I extracted the idea in this code off another sight but as I suspected I cannot read from that device as it is busy with the browser.
Code:
oldline=""
dvcx=/dev/ttyS0
# Read from modem (-r: ignoring effect of backslash)
while read -r line
do
# $line is the line read
if [ "$line" == "$oldline" ]
then echo -e "\n\tDevice (\$dvcx) contains old data"
echo -e "\t${$line:0:15} last read at: date +%b %d\n"
/usr/bin/play /opt/SPACE/predict/vocalizer/alarm.wav
fi
oldline=$line
sleep 10
done < $dvcx
Does anyone have a solution along these lines. If I attempt to look at pin 2 of the modem input will I not get the same error (in use by others).