Port-amd64 archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Conect a modem using com port
Maybe use /dev/dty00 as an outgoing device?
On Wed, 18 Jul 2012, Derrick Lobo wrote:
Hi All
I have been scratching my head on this for a bit.. I am using Kannel..
I am trying to connect a modem to my com port and an unable to get it
working.. I know the modem is working as it works on windows and linux..
My dmesg for com displays the following
-bash-2.05b$ dmesg |grep com
builds%b7.netbsd.org@localhost:/home/builds/ab/netbsd-5-0-2-RELEASE/i386/201002061851Z
-obj/home/builds/ab/netbsd-5-0-2-RELEASE/src/sys/arch/i386/compile/GENERIC
ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2 uhci3
piixide0: primary channel configured to compatibility mode
piixide0: secondary channel configured to compatibility mode
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
I have disabled tty00 in my /etc/tty
ttyE2 "/usr/libexec/getty Pc" vt220 on secure
ttyE3 "/usr/libexec/getty Pc" vt220 on secure
#tty00 "/usr/libexec/getty std.115200" unknown on secure
tty01 "/usr/libexec/getty std.9600" unknown off secure
Still unable to connect. I see the TX light on the modem blink when I try to
connect to the modem
2012-07-18 09:51:36 [10362] [6] DEBUG: AT2[/dev/tty00]: device opened
2012-07-18 09:51:36 [10362] [6] INFO: AT2[/dev/tty00]: speed set to 115200
2012-07-18 09:51:36 [10362] [6] DEBUG: AT2[/dev/tty00]: --> ^M
2012-07-18 09:51:36 [10362] [6] ERROR: AT2[/dev/tty00]: Couldnot write to
device.
2012-07-18 09:51:36 [10362] [6] ERROR: System error 5: Input/output error
2012-07-18 09:51:38 [10362] [6] DEBUG: AT2[/dev/tty00]: --> AT^M
2012-07-18 09:51:38 [10362] [6] ERROR: AT2[/dev/tty00]: Couldnot write to
device.
2012-07-18 09:51:38 [10362] [6] ERROR: System error 5: Input/output error
Is there a step I have missed here.. the dmesg does not mention tty00.. so a
bit confused.. on linux I can get it working using /dev/ttyS0
dmesg |grep tty
[ 0.000000] console [tty0] enabled
[ 0.568601] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 0.589223] serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[ 0.609990] 00:07: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 0.630620] 00:08: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
Derrick Lobo
!DSPAM:5006d1d279571241514404!
-------------------------------------------------------------------------
| Paul Goyette | PGP Key fingerprint: | E-mail addresses: |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer | | pgoyette at netbsd.org |
-------------------------------------------------------------------------
Home |
Main Index |
Thread Index |
Old Index