Author Topic: DataProcessor stops processing packets  (Read 1058 times)

kellyts

  • Newbie
  • *
  • Posts: 1
    • View Profile
DataProcessor stops processing packets
« on: February 25, 2013, 12:40:51 pm »
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

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: DataProcessor stops processing packets
« Reply #1 on: February 25, 2013, 03:29:29 pm »
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.