On 7 Jan 2000, Dag Brattli wrote:
> Vladislav Cerny <[EMAIL PROTECTED]> writes:
>
> > I have for testing Tekram IRmate 210 dongle, Tekram IRmate 210B dongle,
> > HP 5MP, HP 2100M, HP4050N printers.
> >
> > I found no difference between 210 (old model, without diode) and 210B dongles.
> >
> > Tested on 2.2.14, patch 2.2.14-irda1 (serial; modules irda, ircomm, irlan,
> > irtty, irport, tekram dongle, irda debug), irda utils 0.9.5 on Debian 2.2.
> > ---
> > insmod irda
> > insmod irtty
> > insmod tekram
> > insmod ircomm
> > insmod ircomm-tty
> > insmod irlan
> > echo 1 > /proc/sys/net/irda/debug
> > irattach /dev/ttyS0 -d tekram
> > ---
> >
> > Link between Tekram dongles - they found each other [LAN], irdaping did not
> > work (but irdadump on the other computer showed communication). No success
> > in LAN connection {ifconfig irda0 host1 pointopoint host2;
> > route add -host host2 dev irda0} - should it work? Is it right way?
>
> If you use Redhat or a similar dist, then you should make
> /etc/sysconfig/network-scripts/ifcfg-irlan0 on both sides:
>
> DEVICE="irlan0"
> IPADDR="192.168.0.20"
> NETMASK="255.255.255.0"
> ONBOOT="no"
> BOOTPROTO="none"
> IPXNETNUM_802_2=""
> IPXPRIMARY_802_2="no"
> IPXACTIVE_802_2="no"
> IPXNETNUM_802_3=""
> IPXPRIMARY_802_3="no"
> IPXACTIVE_802_3="no"
> IPXNETNUM_ETHERII=""
> IPXPRIMARY_ETHERII="no"
> IPXACTIVE_ETHERII="no"
> IPXNETNUM_SNAP=""
> IPXPRIMARY_SNAP="no"
> IPXACTIVE_SNAP="no"
>
> You can also make this file using netcfg. When you want to start irlan, you
> can just do "ifup irlan0" on both sides.
Now testing 2.2.15-pre5 and still have problems. I thing ifconfig and
route stuff is OK (tested on eth0 and plip0 pointopoint link). I used
irda0 instead of irlan0 before, but I have no success with irlan0 anyway.
----
penguin:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:10:4B:9F:55:E6
inet addr:160.217.161.114 Bcast:160.217.161.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5269 errors:0 dropped:0 overruns:0 frame:0
TX packets:3622 errors:0 dropped:0 overruns:0 carrier:0
collisions:1 txqueuelen:100
Interrupt:10 Base address:0xe400
irda0 Link encap:UNSPEC HWaddr 3D-32-3D-F9-00-00-00-00-00-00-00-00-00-00-00-00
UP RUNNING NOARP MTU:2048 Metric:1
RX packets:5 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:8
irlan0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
plip0 Link encap:Ethernet HWaddr FC:FC:C0:A8:02:01
inet addr:192.168.2.1 P-t-P:192.168.2.2 Mask:255.255.255.0
POINTOPOINT NOARP MTU:1500 Metric:1
RX packets:1363 errors:0 dropped:1 overruns:0 frame:0
TX packets:2289 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:10
Interrupt:7 Base address:0x378
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:3924 Metric:1
RX packets:20 errors:0 dropped:0 overruns:0 frame:0
TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
---
Is it OK? Should it be broadcast or pointopoint link?
?? irda0 Link encap:UNSPEC ??
?? irlan0 Link encap:Ethernet HWaddr 00:00:00:00:00:00 ??
-----------------
penguin:~# ping 192.168.1.2
penguin:~# dmesg
Virtual device irlan0 asks to queue packet!
Virtual device irlan0 asks to queue packet!
Virtual device irlan0 asks to queue packet!
Virtual device irlan0 asks to queue packet!
----------------
/proc/net/irda/irlan
ifname: irlan0,
client state: IRLAN_QUERY, provider state: IRLAN_IDLE,
saddr: 0x3a490895, daddr: 0xeaeed1e5
version: 0.0,
access type: UNKNOWN
media: 802.3
local filter:
remote filter:
tx busy: TRUE
---------------
IRCOMM and IRLPT connection works (with some assertions failed..., but works)
>
> > Printing Tekram -> HP5MP is OK, -> HP2100M also OK, -> HP4050N does not work
> > (discovery works, irdaping works, printing does not). Has anybody HP4050N
> > working via IRDA?
HP4050N is working now (with Fast RR enabled). It does not want to work
without "Fast RR". (Also printing from HP Velo500 handheld to HP5MP works,
but to HP4050N does not. ???)
> >
> > The print speed of 2.5MB file on Tekram <-> HP5MP was 1850 bytes/seconds.
> > Isn't it slow?
>
> ... and you have enabled "Fast RR's" in the kernel?
That was the problem. Now cca 8500 bytes/seconds
>
> -- Dag
>
More information/debug/testing on request...
Thank you
Vladislav
<[EMAIL PROTECTED]>
_______________________________________________
Linux-IrDA mailing list - [EMAIL PROTECTED]
http://www4.pasta.cs.UiT.No/mailman/listinfo/linux-irda