Subject: Re: Infrared modems and NetBSD
To: None <netbsd-users@netbsd.org>
From: Ben Secrest <blsecres@gmail.com>
List: netbsd-users
Date: 07/27/2007 01:49:08
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 2007-07-25, Pierre Pronchery <khorben@defora.org> wrote:
> is it currently possible to use infrared modems with NetBSD?
Yes, I use it with my cellular phone to connect to the Internet.
> I have successfully installed comms/birda. I am using it like this:
> # dmesg | grep com2
> com2 at acpi0 (IBM0071)
> com2: io 0x2f8-0x2ff irq 3 drq 3
> com2: ns16550a, working fifo
> # irdaattach -p -f -n /dev/tty02
This all looks correct.
> # ircomm -d /dev/irframe0
>
> My modem thinks it is connected. But then I don't know if I should use
> cu, or if I'm supposed to be able to enter AT commands directly within
> ircomm: it just echoes back what I type.
>
> Would you know if I am doing things correctly, and what I am missing?
Which device are you connecting to? /dev/irframe0 or /dev/ptyXX? The
ircomm program connects the irframe device to a pseudo-terminal. I
typically invoke ircomm as:
$ ircomm -d /dev/irframe0 -y /dev/ptysf -m 9600 -Y
I can then use /dev/ptysf with cu to test AT commands, pppd to obtain a
packet-data connection or a SMS sending application.
- --
Ben Secrest <blsecres@gmail.com>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (NetBSD)
iD8DBQFGqU8neLi5NDZQ3o0RAkzhAJ0VncZ2EUw2f7w8NIzwM0M5ZOn5oACeKPMr
Du+tO8DGgVwYbyA8Ehc2TVI=
=sAYf
-----END PGP SIGNATURE-----