UART 0xC3 or 0xC2 byte concatenated to byte greater than 0x80

Completed

Comments

8 comments

  • Jeremy Wood

    Thank you for reporting this issue. We'll look into it.

    0
    Comment actions Permalink
  • Jeremy Wood

    Derek Cao We've looked into this issue. There is a text encoding issue that limits what values can be used directly in commands like this. We're incorporating a fix in our next release of PLT-OS, which we expect to ship this week.

    1
    Comment actions Permalink
  • Derek Cao

    Perfect! Thank you for the help!

    0
    Comment actions Permalink
  • Jeremy Wood

    Derek Cao We've just released PLT-OS v1.9.10. It includes a new feature to address this issue.

    The new feature is a new `eval "bytes()"` command that allows for the creation of strings from arbitrary bytes. These strings can be used anywhere in the test plan.

    Here's how to use the new command to send the bytes that were previously impossible:

    - command: eval "bytes(0xf0, 0xe0, 0x90, 0x80, 0x7f, 0x60, 0x40, 0x01)"
    extractKey: BYTES
    - uartcmd: uart UART1
    extract: "(.*)"
    extractKey: STRING
    send: "%BYTES%"

    In order to update to PLT-OS 1.9.10:

    1. On PLTCloud, navigate to your Project settings.
    2. Change the PLT-OS version to "v1.9.x (Experimental)"
    3. Click the "Change" button and save changes.
    4. On your PLT, press the "Menu" button, then scroll to "Check for Updates" in order to update to 1.9.10.
    0
    Comment actions Permalink
  • Derek Cao

    Jeremy Wood I have updated my PLT to PLT-OS v1.9.10 however I am unable to try the new command. When using any UART interaction command, the PLT outputs an "unknown port UART1" error. Reverting to PLT-OS v1.8.16 solves this issue but does not allow the use of the `eval "bytes()"` command.

          - command: eval "bytes(0x80)"
            extractKey: BYTES
          - command: uartCfg UART1 115200
          - uartcmd: uart UART1
            extract: "(.*)"
            extractKey: STRING
            send: "%BYTES%"
            retry: 3
    0
    Comment actions Permalink
  • Jeremy Wood

    Derek Cao Thank you for reporting this issue, we'll investigate!

    0
    Comment actions Permalink
  • Jeremy Wood

    Derek Cao I was able to reproduce this and find the issue. We've just released PLT-OS v1.9.11, which fixes it.

    Thanks again for reporting this!

    0
    Comment actions Permalink
  • Derek Cao

    Thank you for resolving the issue!

    0
    Comment actions Permalink

Please sign in to leave a comment.