Displaying 2 results from an estimated 2 matches for "ttyn00".
Did you mean:
tty00
2004 Aug 19
1
Serial Communication
...GLE is not supported.
fixme:comm:SetupComm insize 970 outsize 970 unimplemented stub
trace:comm:SetCommTimeouts (0x9c,0x4066ef74)
As I understand that log, the program tries to set the speed to
38400 bit/s and to configure the line to even parity (among others).
But, if I run "stty -a -F /dev/ttyn00" (to which com1 is a link to),
then I see no change. The parameters are not set. So I set them
using stty to get further.
The program apparently tries to write to the line, then, as the
output is:
trace:file:WriteFile 0x9c 0x4132b160 24 0x415640d4 (nil)
trace:comm:ClearCommError handle 0x9c...
2004 Jan 31
0
Using an additional modem to get CallerID information
...a into Asterisk.
Capturing the caller ID details from the modem
I will presume at this stage, that you have a modem that supports caller ID
and it is installed and configured to work with your Linux box.
Here is my first script that reads the details in...
#!/usr/bin/perl
$PortName = "/dev/ttyn00";
$PortObj = open(MODEM,$PortName) || die "Can't open $PortName: $!\n";
while (1==1) {
local $/ = "\n";
while ($line=<MODEM>) {
chomp;
if ($line =~ s/NMBR = //) {
open(OUTFILE, ">/usr/src/myperl/callerid.txt") or die "Can't...