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

DataPacketLength - solved

Started by Telli1, May 03, 2012, 05:29:22 pm

Previous topic - Next topic

Telli1

May 03, 2012, 05:29:22 pm Last Edit: May 07, 2012, 07:51:27 am by Telli1
Hello,

I need help with determing packet length :(

MyPacket.PacketBegin:=[Byte-Start]
MyPacket.PacketEnd:=
MyPacket.PacketLength:=0

Following bytes in buffer:
[Byte-Start]
[Byte-Length=n]
[Byte.1]
...
[Byte.n]
[Byte-Start]
[Byte-Length=m]
[Byte.1]
...
[Byte.m]
...

Prog doesnt enter "MyPacket.OnPacketLength()"

What to do to get the 'n' and 'm' ?

Thx for help :)

--- SOLVED ---
PacketBegin is chr(255)+chr(255)

I entered #255#255 for PacketBegin... it doesnt work
I had to set it in Create "...PacketBegin:=chr(255)+chr(255)"; this works




Roman Novgorodov

Hello

I'm sorry if my answer is too late.
There is problem with entering invisible chars into string properties in object inspector.
You filled necessary values at run-time and it is correct.

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.