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
#}#