rexmont
Posts: 11
Joined: Mon Jan 12, 2009 5:14 pm

Read Large Data From Device

Mon Mar 16, 2009 1:23 pm

Hi,

I am reading ~200k data from a device by many asynchronous calls. Sometimes I get defective data. I mean, little part of the data is faulty. I am using 64 byte-long buffer to read callback results.

How can I prevent this issue?

Regards,

Uygar.

Jonas
Posts: 2319
Joined: Mon Jan 09, 2006 2:20 pm
Location: Sweden

RE: Read Large Data From Device

Mon Mar 16, 2009 1:38 pm

Read smaller chunks of data, though I am not aware of any such bugs in BlueTools.

Regards,
Jonas

rexmont
Posts: 11
Joined: Mon Jan 12, 2009 5:14 pm

RE: Read Large Data From Device

Mon Mar 16, 2009 1:43 pm

Thank you for the answer,

I was using 25 byte-long buffers before, then I have changed it to 64 byte-long ones.

Have you got some other ideas about the issue? May BT Stack version can cause that? O something else??

Regards,

Uygar.

Jonas
Posts: 2319
Joined: Mon Jan 09, 2006 2:20 pm
Location: Sweden

RE: Read Large Data From Device

Mon Mar 16, 2009 2:38 pm

It's hard to say, in theory it can of course be a bug somewhere, but since I have never heard it reported before I would guess it's more likely some stack issue yes. The stacks are sadly poor at some of the things they are created to do...

Regards,
Jonas

Return to “BlueTools”