Derrick Lobo | 18 Jul 2012 15:54
Favicon

Conect a modem using com port

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 <at> b7.netbsd.org:/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
(Continue reading)

Paul Goyette | 18 Jul 2012 17:13

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 <at> b7.netbsd.org:/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
>
>
(Continue reading)

Derrick Lobo | 18 Jul 2012 17:37
Favicon

RE: Conect a modem using com port

No luck using /dev/dty00 (changed to dty01 and did not work either)

The modem has TX blinking.. 

2012-07-18 11:35:43 [17908] [6] INFO: AT2[/dev/dty00]: closing device
2012-07-18 11:35:43 [17908] [6] DEBUG: AT2[/dev/dty00]: device opened
2012-07-18 11:35:45 [17908] [6] DEBUG: AT2[/dev/dty00]: device opened
2012-07-18 11:35:45 [17908] [6] INFO: AT2[/dev/dty00]: speed set to 115200
2012-07-18 11:35:45 [17908] [6] DEBUG: AT2[/dev/dty00]: --> ^M
2012-07-18 11:35:45 [17908] [6] ERROR: AT2[/dev/dty00]: Couldnot write to
device
.
2012-07-18 11:35:45 [17908] [6] ERROR: System error 5: Input/output error

-----Original Message-----
From: Paul Goyette [mailto:paul <at> whooppee.com] 
Sent: Wednesday, July 18, 2012 11:13 AM
To: Derrick Lobo
Cc: 'Port-Amd64 <at> Netbsd. Org'
Subject: 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 
(Continue reading)

Ignatios Souvatzis | 19 Jul 2012 08:56
Picon

Re: Conect a modem using com port

On Wed, Jul 18, 2012 at 11:37:41AM -0400, Derrick Lobo wrote:
> No luck using /dev/dty00 (changed to dty01 and did not work either)
> 
> The modem has TX blinking.. 

Did you try a different bitrate? To start with, did you try to talk
to the modem using "cu"?

	-is

Derrick Lobo | 19 Jul 2012 15:38
Favicon

RE: Conect a modem using com port

Cu -l /dev/tty00 -s 115200 gives me 
Connected
Putting in AT givex me 
OK

-----Original Message-----
From: port-amd64-owner <at> NetBSD.org [mailto:port-amd64-owner <at> NetBSD.org] On
Behalf Of Ignatios Souvatzis
Sent: Thursday, July 19, 2012 2:57 AM
To: 'Port-Amd64 <at> Netbsd. Org'
Subject: Re: Conect a modem using com port

On Wed, Jul 18, 2012 at 11:37:41AM -0400, Derrick Lobo wrote:
> No luck using /dev/dty00 (changed to dty01 and did not work either)
> 
> The modem has TX blinking.. 

Did you try a different bitrate? To start with, did you try to talk to the
modem using "cu"?

	-is


Gmane