I have a computer running Debian connected to the Nortel Meridian Opt 81. At 0430 a.m., a script is running to syncronize the system clock with our NTP server.
So the script goes as following:
ntpdate ntp.serverfarm
echo "logi username" > /dev/ttyS1
sleep 1
echo "********" > /dev/ttyS1
sleep 1
echo "ld 2" > /dev/ttyS1
sleep 1
echo stad $(date [a_long_string])
sleep 1
echo "****" > /dev/ttyS1
sleep 1
echo "logo" > /dev/ttyS1
The problem is where I set the date (the stad line). When it has sent the whole line but the seconds, a strange character appears insted of i.e. 42.
Then I get the TRC0200 (Syntax error) and nothing happens.
So I guess the Opt 81 is incapable of receiving text that fast, but I don't know how to fix this problem...
So, any ideas?
So the script goes as following:
ntpdate ntp.serverfarm
echo "logi username" > /dev/ttyS1
sleep 1
echo "********" > /dev/ttyS1
sleep 1
echo "ld 2" > /dev/ttyS1
sleep 1
echo stad $(date [a_long_string])
sleep 1
echo "****" > /dev/ttyS1
sleep 1
echo "logo" > /dev/ttyS1
The problem is where I set the date (the stad line). When it has sent the whole line but the seconds, a strange character appears insted of i.e. 42.
Then I get the TRC0200 (Syntax error) and nothing happens.
So I guess the Opt 81 is incapable of receiving text that fast, but I don't know how to fix this problem...
So, any ideas?