> Peter Lueg wrote :
> > Hi,
> > 
> > I use a 2.4.13-ac5-rmk2 Kernel on an ARM-Platform.
> > 
> > When I connect 2 ARM's with the following commands:
> > ARM1:
> > irattach /dev/ttySA2 -s 1
> > pppd /dev/irnet 115200 noauth
> > ifconfig ppp0 10.0.0.1 dstaddr 10.0.0.2 up
> > 
> > ARM2:
> > irattach /dev/ttySA2 -s 1
> > pppd /dev/irnet 115200 noauth 10.0.0.2:10.0.0.1
> > ifconfig ppp0 10.0.0.2 dstaddr 10.0.0.1 up
> > 
> > a ftp-connection works normally fine.
> > By binaries files is my transferrate >18KB/s.
> > by bz2 or gz files is my transferrate <2KB/s and I becomes the 
> > "VJ uncompressed error"-error message.
> > when I started pppd with 'novj'-option no error message occurs 
> > but the transfer is still <2KB/s.
> > 
> > Did somebody know what the problem is?
> > 
> > regards
> > Peter
> 
>       Hum... I've never seen this error message with irtty, nsc-ircc
> and usb-irda on i386. 16 kb/s is a bit slow for SIR, but not totally
> unexpected (note : PPP can't compress already compressed frames). It
> would look like you have some reliability problem (frame
> corrupted/lost).
>       I'm not familiar with the ARM platform, but I believe that
> what you may want to use if the sa1100_ir driver instead of irtty. You
> should ask Russel for more.

I use the internal UART Port2 which is configured to IrDA.
Extract from C-file (arch/arm/mach-sa1100/MY_HARDWARE.c:
    // Init UART2 for IrDA
    PPDR |= PPC_TXD2;           // Set TXD2 as output
    Ser2UTCR4 = UTCR4_HSE;      // enable HSE
    Ser2HSCR0 = 0;
    Ser2HSSR0 = HSSR0_EIF | HSSR0_TUR | HSSR0_RAB | HSSR0_FRE;

>       Check also if disabling compression (deflate & bsd)
> helps. Those sucks CPU and might cause dropped char on the serial
> line.

When I use pppd-option 'nobsdcomp' AND 'nodeflate' the connection 
doesn't established. 'nobsdcomp' OR 'nodeflate' than is the 
connection OK.

>       Also, please send a dump of /proc/net/irda/irlap on both end
> to make sure things are proper.

1.ARM: proc/net/irda/irlap:
 device name: irda0, hardware name: ttySA2
  caddr: 0xe0, saddr: 0x3ad4dcd4, daddr: 0xb9dfbf7d
  win size: 7, win: 7, line capacity: 4800, bytes left: 4800
  tx queue len: 0 win queue len: 0 rbusy: FALSE mbusy: FALSE
  retrans: 0 vs: 7 vr: 2 va: 6
  qos   bps     maxtt   dsize   winsize addbofs mintt   ldisc   comp
  tx    115200  500     2048    7       0       5000    12
  rx    115200  500     2048    7       0       5000    12


2.ARM: proc/net/irda/irlap:
  device name: irda0, hardware name: ttySA2
  caddr: 0xe0, saddr: 0xb9dfbf7d, daddr: 0x3ad4dcd4
  win size: 7, win: 7, line capacity: 4800, bytes left: 4800
  tx queue len: 0 win queue len: 0 rbusy: FALSE mbusy: FALSE
  retrans: 0 vs: 4 vr: 7 va: 3
  qos   bps     maxtt   dsize   winsize addbofs mintt   ldisc   comp
  tx    115200  500     2048    7       0       5000    12
  rx    115200  500     2048    7       0       5000    12

> 
>       Good luck...
> 
>       Jean

I test the Irda-connection between Laptop an ARM and the result is 
different.
The Testfile is a gzip-file.
ARM to Laptop: 291824 bytes sent in 30.80 secs (9.3 kB/s)
Laptop to ARM: 291824 bytes received in 143.53 secs (2.0 kB/s) 

Did somebody know why transmitting is faster as receiving?

Peter

_______________________________________________
Linux-IrDA mailing list  -  [EMAIL PROTECTED]
http://www.pasta.cs.UiT.No/mailman/listinfo/linux-irda

Reply via email to