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


  • 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 :
  dp1 := nrDataprocessor1.DataPackets.Add;
  dp1.Caption := 'DataPacket';
  dp1.PacketLength := 18;

  dp2 := nrDataprocessor1.DataPackets.Add;
  dp2.Caption := 'AdditionalPacket';
  dp2.PacketLength := 12;

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.


Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1008
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: DataProcessor stops processing packets
« Reply #1 on: February 25, 2013, 03:29:29 pm »

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.