h_tanaka | 17 Jan 2006 05:20
Picon

numbering TTP credits rules

I'm an embedded system engineer in Japan.

By using Linux command ircp + lib OpenObex, I transfered a file  between my
Knoppix4.0 based Linux box with IRDA-USB dongle and PDA (Sony Clie).
Process during this transmission is recorded by irdadump.

There is one following question about TTP credits.
Could anyone answer the question?

Question:
What rules is applied to set the value of TTP credits in the flame ?

The following is monitoring results.

=== monitoring results ===
01:05:38.623229 xid:cmd ffffffff < 1be25a10 S=6 s=0 (14)
01:05:38.706404 xid:cmd ffffffff < 1be25a10 S=6 s=1 (14)
01:05:38.796309 xid:cmd ffffffff < 1be25a10 S=6 s=2 (14)
01:05:38.878335 xid:cmd ffffffff < 1be25a10 S=6 s=3 (14)
01:05:38.966043 xid:cmd ffffffff < 1be25a10 S=6 s=4 (14)
01:05:38.966194 xid:rsp d9a81d43 > 1be25a10 S=6 s=4 Knoppix hint=8420 [
Computer IrOBEX ] (24)
01:05:39.086245 xid:cmd ffffffff < 1be25a10 S=6 s=5 (14)
01:05:39.162273 xid:cmd ffffffff < 1be25a10 S=6 s=* TanakaClie hint=8220 [
PDA/Palmtop IrOBEX ] (28)
01:05:39.192273 snrm:cmd ca=fe pf=1 d9a81d43 < 1be25a10 new-ca=5e
     LAP QoS: Baud Rate=115200bps Max Turn Time=500ms Data Size=512B Window
Size=1 Add BOFS=0 Min Turn Time=5000us Link Disc=40s (32)
01:05:39.192891 ua:rsp ca=5e pf=1 d9a81d43 > 1be25a10
     LAP QoS: Baud Rate=9600bps Max Turn Time=500ms Data Size=2048B Window
(Continue reading)

Stephen Hemminger | 18 Jan 2006 17:03

IRDA bugs in bugzilla

I was doing a bugzilla summary of network driver bugs, the following need
to be looked at and fixed, resolved, closed?

http://bugzilla.kernel.org/show_bug.cgi?id=2708

http://bugzilla.kernel.org/show_bug.cgi?id=3048

http://bugzilla.kernel.org/show_bug.cgi?id=3073

http://bugzilla.kernel.org/show_bug.cgi?id=3373

http://bugzilla.kernel.org/show_bug.cgi?id=3524

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
Jean Tourrilhes | 18 Jan 2006 19:04
Picon
Favicon

Re: numbering TTP credits rules

h_tanaka wrote :
> 
> Question:
> What rules is applied to set the value of TTP credits in the flame ?

	You can set pretty much whatever you like, up to the maximum,
the IrDA standard doesn't put any requirement on you.
	 The TTP credits are used for flow control, the other end will
only send as many packets as the number of credits you sent it, and
sending 0 credit makes sure you won't receive any packets. So,
reastically, this is link to the amount of receive buffers you have
available.
	Note that credits are differential, when you send N credits,
it adds to the credits you have previously sent. And they are
automatically decremented each time one sends a frame.

> 01:05:39.342978 i:cmd  < ca=5e pf=1 nr=2 ns=2 LM slsap=02 dlsap=1a CONN_CMD
> TTP credits=1 (7)
> 01:05:39.343644 rr:rsp > ca=5e pf=1 nr=3 (2)
> 01:05:39.373221 rr:cmd < ca=5e pf=1 nr=2 (2)
> 01:05:39.373270 i:rsp  > ca=5e pf=1 nr=3 ns=2 LM slsap=1a dlsap=02 CONN_RSP
> TTP credits=16 (7)

	The first thing is to check the initial number of credits,
because everything else will be relative to that.
	The phone is very careful, it send only 1 credits, which means
that it has enough receive buffer to only receive one packet.
	Linux is more flexible, it allow the phone to send up to 16
packets.

(Continue reading)

h_tanaka | 19 Jan 2006 06:16
Picon

Re: numbering TTP credits rules


Dear Jean;

Your reply is very helpful to me.

>The TTP credits are used for flow control, the other end will
>only send as many packets as the number of credits you sent it, and
>sending 0 credit makes sure you won't receive any packets.

After my previous posting, I reffered the TinyTP specification and some
document that can be found in following Website.

"Modelling and Optimizing TinyTP over IrDA Stacks"
decweb.bournemouth.ac.uk/staff/ phuang/publications/TinyTP_Eurasip.pdf

TinyTP specification says
DeltaCredit Specifies the number (0-127) of additional Data-Carrying Data
TTP-PDUs that may be sent in the reverse direction.

InitialCredit Specifies the initial number (0-127) of Data-Carrying Data
TTP-PDUs that may be sent in the reverse direction.

Above paper says
TinyTP adds one byte of header carrying information including its own
buffer size and the segmentation status.

These quotations support what you say.

Thank you

(Continue reading)

Richard Mittendorfer | 19 Jan 2006 10:56
Picon

[donauboe] problems loading module on toshiba 110ct

Hi *!

I'm having troubles insmod the donauboe FIR module with 2.6 kernels on
the Toshiba Libretto 110. Currently 2.6.15-ck1, but also version 2.6.xx
seem to do not work. Have never tried loading the module on early than
2.6.12 kernels -- however, it has been told 2.4 is ok. Here's the dmesg 
output when doing modprobe donauboe (irda and crc-ccitt get loaded too).
ioports, irqs and lspci below.

[dmesg]
NET: Registered protocol family 23
ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
ACPI: PCI Interrupt 0000:00:11.0[A] -> Link [LNKC] -> GSI 11 (level,
low) -> IRQ 11
toshoboe: can't get iobase of 0xffe0
donauboe: probe of 0000:00:11.0 failed with error -16

[/proc/ioports] 
0000-001f : dma1
0020-0021 : pic1
0040-0043 : timer0
0050-0053 : timer1
0060-006f : keyboard
0070-0077 : rtc
0080-008f : dma page reg
00a0-00a1 : pic2
00c0-00df : dma2
00f0-00ff : fpu
01f0-01f7 : ide0
0330-0331 : MPU401 UART
(Continue reading)

Richard Mittendorfer | 19 Jan 2006 18:36
Picon

Re: [donauboe] problems loading module on toshiba 110ct

Also sprach Richard Mittendorfer <delist@...> (Thu, 19 Jan 2006
10:56:14 +0100):
> I'm having troubles insmod the donauboe FIR module with 2.6 kernels on
> the Toshiba Libretto 110. Currently 2.6.15-ck1, but also version
> 2.6.xx seem to do not work. Have never tried loading the module on
> early than 2.6.12 kernels -- however, it has been told 2.4 is ok.
> Here's the dmesg  output when doing modprobe donauboe (irda and
> crc-ccitt get loaded too). ioports, irqs and lspci below.
> [...]

[update] It successfully loads without ACPI turned on. May be some DSDT 
flaw. I tried a custom DSDT from acpi.sourcefoge.net -- unfortunately 
without success.

sl ritch

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
Guennadi Liakhovetski | 23 Jan 2006 11:09
Picon
Favicon

Re: stir4210 device

Hi

(sorry for not replying - was not receiving the list last September)

Just wanted to contribute, that at 
http://althaia.across.sk/~naiki/linux/index.html there's a port of the 
driver from Sigmatel for 2.4 to 2.6 by Naiki (my Czech is not too good:-), 
but I do think he was the author, as follows from 
http://www.abclinuxu.cz/forum/show/81434). After applying the patch below 
it also works quite well, apart from one thing: similar to 2.4 kernel we 
have a problem when some disturbances come while in FIr mode. We test with 
a PPP connection to another Linux system in FIr mode with 4mbps. As the 
connection gets lost, the parties switch back to SIr 9600, but even before 
that still in FIr __sometimes__ the 4210 seems to just stop reacting to 
USB requests to the bulk emdpoinds. Here is a snipplet from the usbmon 
under 2.6.15:

dd5bc9c0 503711873 S Bi:003:02 -115 2324 <
dd5bc9c0 503715872 C Bi:003:02 0 1512 = 0000000a 161f1000 ff030021 450805dc 8fd54000 40068b3a 0a010301 0a010302

(Here it still works - you see data comming from a bulk-in (Bi above) 
endpoint. I was doing an ftp get)

dd5bc940 503715873 S Bi:003:02 -115 2324 <
dd5bcac0 503715885 S Bo:003:01 -115 64 = 0000050b 90101f02 ff030021 45080034 6a544000 4006b663 0a010302 0a010301
dd5bcac0 503716874 C Bo:003:01 0 64 >
dd5bc940 503721872 C Bi:003:02 0 1512 = 0000000a 281f1001 ff030021 450805dc 8fd64000 40068b39 0a010301 0a010302

(Here it still works too, you see a bulk-in request, bulk-out 
request-response and a bulk-in response)
(Continue reading)

Samuel Ortiz | 29 Jan 2006 01:10

Re: [PATCH2.6] nsc-ircc to platform device + suspend/resume redo

Hi Rudolf,

Rudolf Marek <r.marek <at> ...> writes:

> I would like to know if I need to call .._change_speed
> even when the device was down to provide some defined state
> of those registers, I'm setting speed to 9600.
I don't think it is necessary, since it will be overwritten when the interface
will be brought up.
If the interface is up, it's probably a safe bet to call change_speed() with the
current speed, which is what you do.

> diff -Naur a/drivers/net/irda/nsc-ircc.c b/drivers/net/irda/nsc-ircc.c
> --- a/drivers/net/irda/nsc-ircc.c	2005-12-19 01:36:54.000000000 +0100
> +++ b/drivers/net/irda/nsc-ircc.c	2005-12-23 22:31:58.000000000 +0100
>   <at>  <at>   -158,12 +172,20   <at>  <at>  
>  {
>  	chipio_t info;
>  	nsc_chip_t *chip;
> -	int ret = -ENODEV;
> +	int ret;
This is useless, since you're setting it to -ENODEV later on.

>  	int cfg_base;
>  	int cfg, id;
>  	int reg;
>  	int i = 0;
> -
> +        
> +	ret = platform_driver_register(&nsc_ircc_driver);                          
(Continue reading)

Nick Fedchik | 30 Jan 2006 12:41
Picon

STLabs 4220 dongle problem

Hi ALL!

I have a system hangup using STLabs 4220 IrDA adaptor sometime

and can't set up valid config to connect my Siemens S55 via STLabs 4220

My config is below:

Kernel Linux titan 2.6.14-std26-up-alt3 #1 Fri Jan 13 12:29:59 MSK 2006 i686 GNU/Linux

Host name "titan", two dongles plugged to USB ports

STLabs 4220 assigned to irda0

Tekram IRmate 410U assigned to irda1

[root <at> titan ~]# ip l set irda1 up; ip l

1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue

link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00

2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000

link/ether 00:11:11:7e:f7:4c brd ff:ff:ff:ff:ff:ff

4: irda0: <NOARP,UP> mtu 2048 qdisc pfifo_fast qlen 8

link/irda

5: irda1: <NOARP,UP> mtu 2048 qdisc pfifo_fast qlen 8

link/irda

No problem to find my Siemens S55 irda interface by IRmate 410U

[root <at> titan ~]# irdadump -i irda1

Using interface: irda1

11:17:48.694236 xid:cmd db8ee903 > ffffffff S=6 s=0 (14)

11:17:48.782219 xid:cmd db8ee903 > ffffffff S=6 s=1 (14)

11:17:48.870222 xid:cmd db8ee903 > ffffffff S=6 s=2 (14)

11:17:48.958228 xid:cmd db8ee903 > ffffffff S=6 s=3 (14)

11:17:49.035395 xid:rsp db8ee903 < 00000082 S=6 s=3 SIEMENS S55 hint=b124 [ PnP Modem Fax IrCOMM IrOBEX ] (28)

11:17:49.046236 xid:cmd db8ee903 > ffffffff S=6 s=4 (14)

11:17:49.134241 xid:cmd db8ee903 > ffffffff S=6 s=5 (14)

11:17:49.222246 xid:cmd db8ee903 > ffffffff S=6 s=* titan hint=0400 [ Computer ] (21)

Well now I try to see my Siemens by STLabs 4220:

[root <at> titan ~]# irdadump -i irda0

Using interface: irda0

11:18:06.695354 xid:cmd ca71d5b9 > ffffffff S=6 s=0 (14)

11:18:06.783335 xid:cmd ca71d5b9 > ffffffff S=6 s=1 (14)

11:18:06.871339 xid:cmd ca71d5b9 > ffffffff S=6 s=2 (14)

11:18:06.959346 xid:cmd ca71d5b9 > ffffffff S=6 s=3 (14)

11:18:07.047349 xid:cmd ca71d5b9 > ffffffff S=6 s=4 (14)

11:18:07.135355 xid:cmd ca71d5b9 > ffffffff S=6 s=5 (14)

11:18:07.223360 xid:cmd ca71d5b9 > ffffffff S=6 s=* titan hint=0400 [ Computer ] (21)

11:18:09.695524 xid:cmd ca71d5b9 > ffffffff S=6 s=0 (14)

11:18:09.755228 i:rsp < ca=00 pf=0 nr=0 ns=0 LM slsap=3f dlsap=7f CONN_CMD (16)

As it showed above no valid response via STLabs 4220.

Can anybody helps me why I can't see Siemens S55 for this case?

Sometime, when Siemens S55 port on a STLabs viev, my system hanged up,

may be by core crash - I seen nothing in KDE in that moments :(

Any additional info:

[root <at> titan ~]# lsusb

Bus 003 Device 002: ID 050f:0180 KC Technology, Inc. KC-180 IrDA Dongle

(actually it's good old Tekram IRmate 410U)

Bus 001 Device 004: ID 066f:4210 SigmaTel, Inc.

(my new STLabs 4220 - as labeled)

[root <at> titan ~]# lsmod | grep irda

irda_usb 12804 0

irda 117944 1 irda_usb

crc_ccitt 2176 1 irda

usbcore 116736 7 ir_usb,usbserial,irda_usb,hci_usb, uhci_hcd,ehci_hcd

[root <at> titan ~]# lsmod | grep usb

ir_usb 10380 0

usbserial 28904 1 ir_usb

irda_usb 12804 0

irda 117944 1 irda_usb

hci_usb 14608 2

bluetooth 46980 7 rfcomm,l2cap,hci_usb

usbcore 116736 7 ir_usb,usbserial,irda_usb,hci_usb, uhci_hcd,ehci_hcd

Kernel log (plug in STLabs, then re-plug in, and plug in Tekram)

Jan 30 13:11:36 titan kernel: drivers/usb/serial/usb-serial.c: USB Serial support registered for Generic

Jan 30 13:11:36 titan kernel: usbcore: registered new driver usbserial_generic

Jan 30 13:11:36 titan kernel: drivers/usb/serial/usb-serial.c: USB Serial Driver core v2.0

Jan 30 13:11:36 titan kernel: drivers/usb/serial/usb-serial.c: USB Serial support registered for IR Dongle

Jan 30 13:11:36 titan kernel: usbcore: registered new driver ir-usb

Jan 30 13:11:36 titan kernel: drivers/usb/serial/ir-usb.c: USB IR Dongle driver v0.4

Jan 30 13:12:09 titan kernel: NET: Registered protocol family 17

Jan 30 13:13:45 titan kernel: usb 1-4: USB disconnect, address 3

Jan 30 13:13:45 titan kernel: irda_usb_submit(), Failed to submit Rx URB -19

Jan 30 13:13:48 titan kernel: usb 1-4: new high speed USB device using ehci_hcd and address 4

Jan 30 13:13:48 titan kernel: IRDA-USB found at address 4, Vendor: 66f, Product: 4210

Jan 30 13:13:48 titan kernel: IrDA: Registered device irda0

Jan 30 13:16:02 titan kernel: usb 3-1: new full speed USB device using uhci_hcd and address 2

Jan 30 13:16:02 titan kernel: IRDA-USB found at address 2, Vendor: 50f, Product: 180

Jan 30 13:16:02 titan kernel: IrDA: Registered device irda1

Stefan Scheler | 31 Jan 2006 12:12
Picon

[patch] off-by-one error in irattach.c

Hello list.

a bugreporter found an off-by-one error in irattach/irattach.c line 671.
I included a trivial fix for this.

Stefan
Attachment (irattach.diff): text/x-patch, 269 bytes

Gmane