Hi,
Please read 'Tiny TP': A Flow-Control Mechanism for use with IrLMP. You'll
find it at the IrDA site.
The credit number does not have anything to do with the number of bytes
in the packet. It only tells the peer TTP layer how many frames it may send
before having to wait for more credits. So this is about flow control (think
of TCP/IP), and you give away credits to sort of open up the transmit window
of the peer device.
With this in mind, you probably don't want to let the peer device
send more than 127 frames in one go. The IrLAP window is restricted to
7 frames, so it will not give you much gain in performance (latency will
probably increase). You must also be able to handle (buffer) 127 incomming
frames which can be 2K in size (256Kbytes). Not a good idea on a Palm ;-)
PS. I'm not familiar with IrDA programming on the Palm.
-- Dag
On Sun, 3 Dec 2000 14:13:19 -0800 (PST), you wrote:
>
> Can anybody out there point me at some info on how exactly to use/manage
> the AdvanceCredit() mechanism in TTP?
> I've figured out how to do it for data <127 chars in size, but it would be
> nice to know how to go beyond that.
> I have a client/server app I'm working on for the Palm in which the Linux
> host returns an arbitrary length response to a Palm client query.
>
> And why 127?(besides being on a boundary) Is that an MTU that can be
> fiddled with?
> If 127 is a hard limit, how is the fragmentation/reassembly handled?
> I haven't found ANYTHING about this on either irda.org or the mail
> archives. Palm's site simply gives me the API page, which I've already got
> on dead trees next to me. Help?
>
> Thanks,
> 'dillo
>
>
> _______________________________________________
> Linux-IrDA mailing list - [EMAIL PROTECTED]
> http://www.pasta.cs.UiT.No/mailman/listinfo/linux-irda
>
>
>
>
----
Dag Brattli, Mail: [EMAIL PROTECTED]
Senior Systems Engineer Web: http://www.fastsearch.com/
Fast Search & Transfer ASA Phone: +47 776 96 688
P.O. Box 1126 Fax: +47 776 96 689
NO-9261 Troms�, NORWAY Cell: +47 415 72 969 (new)
Try FAST Mobile Search: http://mobile.alltheweb.com/
_______________________________________________
Linux-IrDA mailing list - [EMAIL PROTECTED]
http://www.pasta.cs.UiT.No/mailman/listinfo/linux-irda