Hi Folks,
I am developing an HCRP firmware (Printer side HCRP profile) and testing it
against the XP Bluetooth HCRP driver.
I am successfully able to
- have the XP host detect my device as a "HCRP Printer",
- the L2CAP Control and Data channels getting created
- a new printer also gets added to my "Printers and Fax" collection on the
HCRP Host.
Now When I try and print a document using this HCRP printer following
happens:
a. I get a CR_DataChannelCreditRequest on the L2CAP COntrol Channel (Printer
side) to which I reply with a large number of credits (0x00 00 00 00 00 FF
FF FF).
b. I start recieving bytes on the L2CAP Data channel.
c. After recieving 64KBytes, the Host application doesnt send any more
packets. Neither any bytes on Data Channel, nor any more
CR_DataChannelCreditRequest.
However I recv. all the data for if the print data is less than 64K, my
question is this 64K any magic number ? IMO I should be getting periodic
requests for credits on the Printer side after the HCRP Host has exhausted
all the credits, but no such thing happens. How has the HCRP driver in XP
been implemented to handle this situation ? I have also tried sending some
credtis (voluntarily) from the printer side to the Host using the
CR_DataChannelCreditGrant after the 64K bytes of credit have been exhausted,
but to no avail.
help in any direction appreciated.
thanks people for all your patience.
Deepesh