Subject: Re: Infrared modems and NetBSD
To: None <netbsd-users@netbsd.org>
From: Pierre Pronchery <khorben@defora.org>
List: netbsd-users
Date: 07/27/2007 13:21:29
	Hey,

Ben Secrest wrote:
> 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.

Now I am successful as well, see below.

>> 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
> 
> 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.

It works if I tell ircomm to connect to say, ptysf (a master), and then
cu to ttysf (slave to ptysf). Thanks!

-- 
khorben