Skip to main content
10-Marble
February 21, 2025
Question

U-CON Seek_String hexadecimal

  • February 21, 2025
  • 1 reply
  • 1928 views

Good evening,

 

I'm currently working with U-CON (User configurable driver). Telegrams are in hexadecimal. I need to finf a chain of two bytes h90, h90. I can find each byte with "Seek Character" but I have no success by using "Seek String"

Corresponding character of h90 is not available so I cannot use the ASCII character.

I have tried with many format s( ASCII Hex String, Unicode string ..) without success.

 

Can you please help?

 

Thank you

 

Best regards

1 reply

14-Alexandrite
February 21, 2025

h90 is not a printable ASCII character, the printable ASCII falls between 0x20 to 0x7E in hexadecimal.

Since, Seek Character works on byte-level searching , might have given a success however Seek String is a text-based searching and as I mentioned earlier h90 is a non-printable byte.

Stephan_G10-MarbleAuthor
10-Marble
February 24, 2025

Thank you. Indeed h90 (144) is no a printable character but as far I understand from the manual the format "ASCII Hex String" can be used for this case? Do you confirm? If yes, do you know what should be the syntax ?

Stephan_G10-MarbleAuthor
10-Marble
February 24, 2025

Sorry, me again. I really need the "Seek String" hunction as I need to find a chain of 2 bytes that can be hA1 h90 or h91 h90 or h90 h90.

From the manual: 

Strings encoded as ASCII Hex values.

Example: The string "AB12" would be sent as eight ASCII Hex characters
"AB12" (0x34 0x31 0x34 0x32 0x30 0x31 0x30 0x32).

So I understand that h90 h80 should be encoded by 0x39 0x30 0x39 0x30 . But the format is ASCII Hex
String [hh hh hh...]. So I understand that I should write 39 30 39 30.

I tried but without success