• Welcome to Forum.Deepsoftware.Com. Please login or sign up.
 

DataProcessor stops processing packets

Started by kellyts, February 25, 2013, 09:40:51 am

Previous topic - Next topic

kellyts

My application receives a data stream from a bluetooth device (Bluetooth serial port)
there are 2 packets:
Packet 1: PacketLength = 18 and PacketBegin = #$AA#$AA#$0E, received at 256 Packets / second
Packet 2: PacketLength = 12 and PacketBegin = #$AA#$AA#$08, Received at 1 Packet / second

The packets are processed fine for about  90 seconds, but then processing just stops, ie no more OnDataPacket events
The bluetooth device is still sending valid data, which I can see with a serial port monitor and OnAfterReceive event has valid data in Buffer.
I've left the properties for both nrComm and nrDataProcessor all default, except I've set  UseMainThread to False.
The 2 DataPackets ar configured :
 
  nrDataprocessor1.DataPackets.Clear;
  dp1 := nrDataprocessor1.DataPackets.Add;
  dp1.Caption := 'DataPacket';
  dp1.PacketLength := 18;
  dp1.PacketBegin:=#$AA#$AA#$0E;

  dp2 := nrDataprocessor1.DataPackets.Add;
  dp2.Caption := 'AdditionalPacket';
  dp2.PacketLength := 12;
  dp2.PacketBegin:=#$AA#$AA#$08;

I figure I must have the basic settings correct as I'm receiving packets for some time before stopping
Is there some additional setting I've missed, or what can I do to track down the cause.

Thanks


Roman Novgorodov

Hello

Possible you use trial version of nrComm Lib.
It has restriction on incoming data size.

Roman Novgorodov
DeepSoftware llc
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.