PDL

  • Creator
    Topic
  • #55520
    manoj thotakur
    Participant

    Hi,

    Is there any PDL in cloverleaf that can be used to look for hex 02 ?

    I have X12 interface on TCP/IP interface where sender is encapsulating  the message with hex 02 and hex 03 .

    my regular TCP/IP pdl in cloverleaf only reads hex 0b to begin a message and hex 1c0d to end a message .

    Does any body have the custom PDL for the hex 02 ?

    Thanks Very Much.

Viewing 3 reply threads
  • Author
    Replies
    • #85626
      Charlie Bursell
      Participant

      Protocol -> TCPIP -> Encapsulated -> Configure -> User -> Start Block – End Block

    • #85627
      manoj thotakur
      Participant

      Hi Charles , I have used the user and used the 2 and 3 as START  and END block.

      some how the  mesg was  not continuous its been chopped off when it try to read the message

      ]

      [tcl :out :INFO/0:   ibEpic_HDX:–/–/—- –:–:–] 12:40:14 ibEpic_HDX/logMsg

      [tcl :out :INFO/0:   ibEpic_HDX:–/–/—- –:–:–] #-| Begin |


       

      [tcl :out :INFO/0:   ibEpic_HDX:10/06/2017 12:40:14]

      [tcl :out :INFO/0:   ibEpic_HDX:–/–/—- –:–:–]              *ZZ*1

      [tcl :out :INFO/0:   ibEpic_HDX:10/06/2017 12:40:14] #-| End |


       

      [tcl :out :INFO/0:   ibEpic_HDX:10/06/2017 12:40:14]

      [tcl :out :INFO/0:   ibEpic_HDX:–/–/—- –:–:–] 12:40:14 ibEpic_HDX/logMsg

      [tcl :out :INFO/0:   ibEpic_HDX:–/–/—- –:–:–] #-| Begin |


       

      [tcl :out :INFO/0:   ibEpic_HDX:10/06/2017 12:40:14]

      [tcl :out :INFO/0:   ibEpic_HDX:10/06/2017 12:40:14]

      [tcl :out :INFO/0:   ibEpic_HDX:10/06/2017 12:40:14] #-| End |


       

      [tcl :out :INFO/0:   ibEpic_HDX:10/06/2017 12:40:14]

      [tcl :out :INFO/0:   ibEpic_HDX:–/–/—- –:–:–] 12:40:14 ibEpic_HDX/logMsg

      [tcl :out :INFO/0:   ibEpic_HDX:–/–/—- –:–:–] #-| Begin |


       

      [tcl :out :INFO/0:   ibEpic_HDX:10/06/2017 12:40:14]

      [tcl :out :INFO/0:   ibEpic_HDX:–/–/—- –:–:–] *1

      [tcl :out :INFO/0:   ibEpic_HDX:10/06/2017 12:40:14] #-| End |


       

      [tcl :out :INFO/0:   ibEpic_HDX:10/06/2017 12:40:14]

      [tcl :out :INFO/0:   ibEpic_HDX:–/–/—- –:–:–] 12:40:14 ibEpic_HDX/logMsg

      [tcl :out :INFO/0:   ibEpic_HDX:–/–/—- –:–:–] #-| Begin |


       

      [tcl :out :INFO/0:   ibEpic_HDX:10/06/2017 12:40:14]

      [tcl :out :INFO/0:   ibEpic_HDX:–/–/—- –:–:–] 0171006*12

      [tcl :out :INFO/0:   ibEpic_HDX:10/06/2017 12:40:14] #-| End |


       

      [tcl :out :INFO/0:   ibEpic_HDX:10/06/2017 12:40:14]

    • #85628
      Charlie Bursell
      Participant

      I would have to see an example message.  Does it have embedded control characters?

      When I get a chance I will set up a test case and try it but without knowing the format of your message it may not mean much

      BTW, it is Charlie, not Charles   😆

    • #85629
      Charlie Bursell
      Participant

      I just tested this and it worked for me.  I set Start Block as X02 and End Block as X03.

      I set up a receiving thread with the protocol.  I set another thread to send using same protocol and port number.  A resend of an XML message from the sending thread resulted in reception of full XML message (rather large) in the receiving thread.

Viewing 3 reply threads
  • The forum ‘Tcl Library’ is closed to new topics and replies.

Forum Statistics

Registered Users
5,115
Forums
28
Topics
9,290
Replies
34,422
Topic Tags
286
Empty Topic Tags
10