devices.xml SDK 3.2

Looking for the device-id for the new 1030 plus. I use to get the definitive listing in devices.xml in the bin directory of the SDK. Where is this info located now?

Thanks!

  • If you use jq (for Mac, Linux or Windows), you can massage this data any way you want. (The device ID is also in compiler.json, as well as in the directory name).

    e.g. Using bash in WSL (Ubuntu) under Windows 10, or Linux, or Mac OS (other Unix-like shells should work, too):

    (See below for Windows Powershell example)

    bash
    cd PATH_TO_DEVICES
    jq '{ deviceId, displayName }' */compiler.json | jq --slurp > devices.json

    This produces JSON output which looks like:

    [
      {
        "deviceId": "approachs60",
        "displayName": "Approach® S60"
      },
      {
        "deviceId": "approachs62",
        "displayName": "Approach® S62"
      },
      ...

    You can use more complex jq expressions to extract any information you want (and output it in any textual format you want, including CSV.)

    And of course you could use a similar approach to combine *everything* into one JSON file, if that's what you really want:

    jq --slurp '.' */compiler.json  > devices.json

    More examples:

    - Include app memory sizes (bash):

    jq '{ deviceId, displayName, appTypes }' */compiler.json | jq --slurp > devices.json

    - Include app memory sizes (Windows Powershell)

    jq '{ deviceId, displayName, appTypes }' $(ls *\compiler.json) | jq --slurp > devices.json