pdl help

  • Creator
    Topic
  • #49729
    Barbara Ho
    Participant

    Hi,

    I need to write a new PDL that will strip out a start character hex <0x2> and a stop string hex <0x3> which is the last string in the message.  I have the following existing code but it is not working because there may exist a message with a hex <0x3> string in the middle of the message that is not the ETX.

    Does anybody have any documentation on PDL or know how I can change the following?

    define phrase basic-msg;

       ;

       field data = variable-array( not( ) );

       ;

    end phrase;

    #{#

    # This can be handled completely using the “basic” style.

    hci_pd_msg_style basic phrase:basic-msg

    field:data

    resync:\xb

    #}#

Viewing 1 reply thread
  • Author
    Replies
    • #63319
      Jim Kosloskey
      Participant

      Barbara,

      If it were me, I think I would do this in an IB Tps proc.

      Jim Kosloskey

      email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

    • #63320
      Jim Kosloskey
      Participant

      Barbara,

      I am sorry I did not read your post thoroughly.

      I can see no what is probably occurring is you are getting partial messages.

      In my mind the issue resides with the sending system.

      I am guessing this is their encapsulation protocol and they are violating it.

      Bring the issue to them and ask them to make sure ETX only ccurs at the end of the message.

      Jim Kosloskey

      email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

Viewing 1 reply thread
  • The forum ‘Cloverleaf’ is closed to new topics and replies.

Forum Statistics

Registered Users
5,126
Forums
28
Topics
9,296
Replies
34,439
Topic Tags
287
Empty Topic Tags
10