<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>FreeMASTERのトピックRe: Node Red config file</title>
    <link>https://community.nxp.com/t5/FreeMASTER/Node-Red-config-file/m-p/1419860#M897</link>
    <description>&lt;P&gt;You pass the .&lt;SPAN&gt;fmcfg as a single input argument to node.exe when you start FreeMASTER Lite, or just double click it to launch the tool (the extension file should be registered with the executable). On startup, FreeMASTER Lite parses the file and all variables should be available at run-time.&lt;BR /&gt;Node-RED is not aware of those variables because it works as an API consumer. It dispatches RPC commands to FreeMASTER Lite and the later one is in charge of the execution.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;FreeMASTER Lite should be instructed to start Node-RED, if you use the instance embedded into FreeMASTER. Add `node_red` property to the .fmcfg file. It accepts a boolean `true` to use default configuration or path to your settings.js (which stores Node-RED specific configuration and is not related to you FreeMASTER project).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Could you also check how many symbols are extracted by `ReadTSA` (just add its output to a debug node). Also, what error is logged by the debug node succeeding `ReadVariable` ?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Iulian&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Feb 2022 14:54:24 GMT</pubDate>
    <dc:creator>iulian_stan</dc:creator>
    <dc:date>2022-02-25T14:54:24Z</dc:date>
    <item>
      <title>Node Red config file</title>
      <link>https://community.nxp.com/t5/FreeMASTER/Node-Red-config-file/m-p/1228944#M566</link>
      <description>&lt;P&gt;The Freemaster + Node Red tutorial is good, but leaves out a step.&lt;/P&gt;&lt;P&gt;After showing how to export the fmcfg file, the instructor does not show how to make Node Red aware of the file.&lt;/P&gt;&lt;P&gt;I tried closing node and relaunching with the fmcfg file as the only argument, but I could not connect to the node server.&lt;/P&gt;&lt;P&gt;How can the variable information be imported to the Node Red project?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 18:38:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/Node-Red-config-file/m-p/1228944#M566</guid>
      <dc:creator>hns80</dc:creator>
      <dc:date>2021-02-09T18:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: Node Red config file</title>
      <link>https://community.nxp.com/t5/FreeMASTER/Node-Red-config-file/m-p/1229173#M568</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/183323"&gt;@hns80&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;To enable the Node-RED feature you need to specify "node-red" property in the "fmcfg" configuration file (at the root level). It accepts 2 types of values:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;boolean - if set to "true" it will search for a "settings.js" file in default locations usually "~/.node-red" (it uses similar discovery strategy as described in &lt;A href="https://github.com/node-red/node-red/blob/4bfe9a9ae90be502fac8892feb5c02fc13c4ad3b/packages/node_modules/node-red/red.js#L101" target="_self"&gt;node-red repo&lt;/A&gt;). If no file is found in any of the default locations, FreeMASTER will create one and store it in&amp;nbsp;"~/.node-red/settings.js"&lt;/LI&gt;
&lt;LI&gt;string - path to your custom configuration file (relative path will be resolved with respect to the "fmcfg" file location)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;BR /&gt;Iulian&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 13:27:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/Node-Red-config-file/m-p/1229173#M568</guid>
      <dc:creator>iulian_stan</dc:creator>
      <dc:date>2021-02-10T13:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Node Red config file</title>
      <link>https://community.nxp.com/t5/FreeMASTER/Node-Red-config-file/m-p/1229398#M569</link>
      <description>&lt;P&gt;Can you provide the config file(s) you used in the Node Red tutorial?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 15:52:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/Node-Red-config-file/m-p/1229398#M569</guid>
      <dc:creator>hns80</dc:creator>
      <dc:date>2021-02-10T15:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: Node Red config file</title>
      <link>https://community.nxp.com/t5/FreeMASTER/Node-Red-config-file/m-p/1229425#M570</link>
      <description>&lt;P&gt;Please find attached the archive containing pmp (FreeMASTER project) and fmcfg (FreeMASTER Lite project) used in the demo. I also included the settings.js (Node-RED configuration) - this one would be automatically generated due to `"node_red": true`, if there is no settings file in any of the default locations.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 16:33:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/Node-Red-config-file/m-p/1229425#M570</guid>
      <dc:creator>iulian_stan</dc:creator>
      <dc:date>2021-02-10T16:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Node Red config file</title>
      <link>https://community.nxp.com/t5/FreeMASTER/Node-Red-config-file/m-p/1419745#M893</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Still confusing. Could you explain where to add (+changes) the .fmcfg file that is created from the Freemaster project to use it for the Freemaster Lite access to get rid of the read variable failure.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bernd&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 10:40:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/Node-Red-config-file/m-p/1419745#M893</guid>
      <dc:creator>EmbeddedExpert</dc:creator>
      <dc:date>2022-02-25T10:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Node Red config file</title>
      <link>https://community.nxp.com/t5/FreeMASTER/Node-Red-config-file/m-p/1419796#M894</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/177913"&gt;@EmbeddedExpert&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;In most cases the only part that may need updates is the `elf` property of your connection.&lt;BR /&gt;Note: this applies in case you need to extract symbolic information related to your variable from an elf file. In case you define a FreeMASTER TSA table, you can skip this step.&lt;/P&gt;
&lt;P&gt;Here's what default export looks like:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;"connections": [
  {
    "name": "preset",
    "description": "Default connection",
    "connection_string": "RS232;port=COM3;speed=115200",
    "elf": "&amp;lt;no-file&amp;gt;"
  }
],&lt;/LI-CODE&gt;
&lt;P&gt;With updated elf:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;"connections": [
  {
    "name": "preset",
    "description": "Default connection",
    "connection_string": "RS232;port=COM3;speed=115200",
    "elf": "C:\\MyProject\\MyProject.elf"
  }
],&lt;/LI-CODE&gt;
&lt;P&gt;Why it is step is required ?&lt;/P&gt;
&lt;P&gt;If you look at the exported variables list, you'll notice that the `addr` field has a string value. Ex:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;"variables": [
  {
    "name": "var16",
    "addr": "var16",
    "size": 2,
    "type": "uint"
  }
]&lt;/LI-CODE&gt;
&lt;P&gt;This value represents a symbol name corresponding to your variable. It allows FreeMASTER to map the variable to a coresponding address location.&lt;/P&gt;
&lt;P&gt;Next, on the Node-RED side you need to make sure that `ReadTSA` or `ReadELF` nodes precede the `ReadVariable` node.&lt;/P&gt;
&lt;P&gt;You can also avoid `ReadTSA` and `ReadELF` by specifying explicit (numeric) address of your variable, but this step is no practical as your variable address may change if there are updates in your project.&lt;/P&gt;
&lt;P&gt;In case this does not answer your question please start a separate thread. Describing your scenario (where it fails ?, what error do you get ?). Eventually, attach your configuration file and Node-RED flow.&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;BR /&gt;Iulian&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 12:52:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/Node-Red-config-file/m-p/1419796#M894</guid>
      <dc:creator>iulian_stan</dc:creator>
      <dc:date>2022-02-25T12:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Node Red config file</title>
      <link>https://community.nxp.com/t5/FreeMASTER/Node-Red-config-file/m-p/1419820#M895</link>
      <description>&lt;P&gt;Hello Iulian,&lt;/P&gt;&lt;P&gt;my problem is more basic I guess.&lt;/P&gt;&lt;P&gt;How can I combine the Node Red with the ReadTSA (containing the variables)?&lt;/P&gt;&lt;P&gt;Where does the Node Red get the link to the&amp;nbsp; .fmcfg file?&lt;/P&gt;&lt;P&gt;Is it an entry in a setting file, a command line parameter, a naming issue?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EmbeddedExpert_0-1645796796650.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/171819iAE53BB114F53A74B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EmbeddedExpert_0-1645796796650.png" alt="EmbeddedExpert_0-1645796796650.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bernd&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 13:47:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/Node-Red-config-file/m-p/1419820#M895</guid>
      <dc:creator>EmbeddedExpert</dc:creator>
      <dc:date>2022-02-25T13:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Node Red config file</title>
      <link>https://community.nxp.com/t5/FreeMASTER/Node-Red-config-file/m-p/1419860#M897</link>
      <description>&lt;P&gt;You pass the .&lt;SPAN&gt;fmcfg as a single input argument to node.exe when you start FreeMASTER Lite, or just double click it to launch the tool (the extension file should be registered with the executable). On startup, FreeMASTER Lite parses the file and all variables should be available at run-time.&lt;BR /&gt;Node-RED is not aware of those variables because it works as an API consumer. It dispatches RPC commands to FreeMASTER Lite and the later one is in charge of the execution.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;FreeMASTER Lite should be instructed to start Node-RED, if you use the instance embedded into FreeMASTER. Add `node_red` property to the .fmcfg file. It accepts a boolean `true` to use default configuration or path to your settings.js (which stores Node-RED specific configuration and is not related to you FreeMASTER project).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Could you also check how many symbols are extracted by `ReadTSA` (just add its output to a debug node). Also, what error is logged by the debug node succeeding `ReadVariable` ?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Iulian&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 14:54:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/Node-Red-config-file/m-p/1419860#M897</guid>
      <dc:creator>iulian_stan</dc:creator>
      <dc:date>2022-02-25T14:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Node Red config file</title>
      <link>https://community.nxp.com/t5/FreeMASTER/Node-Red-config-file/m-p/1420650#M899</link>
      <description>&lt;P&gt;Hi Iulian,&lt;/P&gt;&lt;P&gt;passing the parameter file seems to work at least it complains if something is wrong &lt;LI-EMOJI id="lia_winking-face" title=":winking_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;&lt;P&gt;There is one Error massage which I cannot say where it is coming from.&lt;/P&gt;&lt;P&gt;&amp;amp; 'C:\NXP\FreeMASTER 3.1\FreeMASTER Lite\node.exe' .\FreeMASTER_project.pmp.fmcfg&lt;/P&gt;&lt;P&gt;28 Feb 16:46:42 - [error] **********************************************&lt;BR /&gt;28 Feb 16:46:42 - [error] * Deprecated call to RED.start().otherwise() *&lt;BR /&gt;28 Feb 16:46:42 - [error] * This will be removed in Node-RED 2.x *&lt;BR /&gt;28 Feb 16:46:42 - [error] * Use RED.start().catch() instead *&lt;BR /&gt;28 Feb 16:46:42 - [error] **********************************************&lt;BR /&gt;28 Feb 16:46:42 - [info]&lt;/P&gt;&lt;P&gt;runtime.welcome&lt;BR /&gt;===================&lt;/P&gt;&lt;P&gt;28 Feb 16:46:42 - [info] runtime.version&lt;BR /&gt;28 Feb 16:46:42 - [info] runtime.version&lt;BR /&gt;28 Feb 16:46:42 - [info] Windows_NT 10.0.18363 ia32 LE&lt;BR /&gt;28 Feb 16:46:44 - [info] server.loading&lt;BR /&gt;28 Feb 16:46:44 - [info] runtime.paths.settings&lt;BR /&gt;28 Feb 16:46:44 - [warn] server.deprecatedOption&lt;BR /&gt;28 Feb 16:46:44 - [info] context.log-store-init&lt;BR /&gt;28 Feb 16:46:44 - [info] storage.localfilesystem.user-dir&lt;BR /&gt;28 Feb 16:46:44 - [warn] storage.localfilesystem.projects.disabled&lt;BR /&gt;28 Feb 16:46:44 - [info] storage.localfilesystem.flows-file&lt;BR /&gt;28 Feb 16:46:44 - [warn] nodes.credentials.system-key-warning&lt;/P&gt;&lt;P&gt;FreeMASTER Lite server is running&lt;BR /&gt;=================================&lt;/P&gt;&lt;P&gt;Listening on port 8090&lt;/P&gt;&lt;P&gt;28 Feb 16:46:44 - [info] nodes.flows.starting-flows&lt;BR /&gt;28 Feb 16:46:44 - [info] nodes.flows.started-flows&lt;/P&gt;&lt;P&gt;I get connection but there is no TSA read, the count is 0.&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"port": 8090,&lt;BR /&gt;"web_root": "C:\\NXP\\FreeMASTER 3.1\\FreeMASTER Lite\\html",&lt;BR /&gt;"open_path": "/",&lt;BR /&gt;"node_red": true,&lt;/P&gt;&lt;P&gt;"connections": [&lt;BR /&gt;{&lt;BR /&gt;"name": "S32Kxxx UART",&lt;BR /&gt;"description": "Default connection",&lt;BR /&gt;"connection_string": "RS232;port=COM9;speed=115200;tmoRI=40;tmoRTM=40;tmoRTC=50;tmoWTM=40;tmoWTC=50;"&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"variables": [&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"name": "CurrentAverage",&lt;BR /&gt;"addr": "CurrentAverage",&lt;BR /&gt;"size": 4,&lt;BR /&gt;"type": "int"&lt;BR /&gt;},&lt;BR /&gt;...&lt;/P&gt;&lt;P&gt;I does not read the TSA and therefore not the variable.&lt;/P&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;msg : Object&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;object&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;payload&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;object&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;count&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;0&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;message&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;""&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;msgid&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"c408ea786&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;If I connect with FreeMaster directly then I see the value.&lt;/P&gt;&lt;P&gt;Cannot find the failure...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 16:08:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/Node-Red-config-file/m-p/1420650#M899</guid>
      <dc:creator>EmbeddedExpert</dc:creator>
      <dc:date>2022-02-28T16:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Node Red config file</title>
      <link>https://community.nxp.com/t5/FreeMASTER/Node-Red-config-file/m-p/1420708#M901</link>
      <description>&lt;P&gt;Hi Bernd,&lt;/P&gt;
&lt;P&gt;Unfortunately I cannot say what may be the cause of the issue as the TSA call passes, additionally, the `message` property of the returned object is also empty which overwise would contain an internal error message.&lt;/P&gt;
&lt;P&gt;Is it possible for you to share your project ?&lt;/P&gt;
&lt;P&gt;As a workaround I could suggest using ReadELF node. For this you'd need to add `elf` property to your `connection`, as described in my previous message.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Iulian&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 17:42:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/Node-Red-config-file/m-p/1420708#M901</guid>
      <dc:creator>iulian_stan</dc:creator>
      <dc:date>2022-02-28T17:42:21Z</dc:date>
    </item>
  </channel>
</rss>

