<?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: Json RPC Server StartComm</title>
    <link>https://community.nxp.com/t5/FreeMASTER/Json-RPC-Server-StartComm/m-p/1638610#M1321</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/100557"&gt;@iulian_stan&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;thank you for your reply. I am using the FreeMASTER tcp to serial plugin and found a way to start the communication.&lt;/P&gt;&lt;P&gt;With the plugin the necessary string consists of the comm-plugin-id followed by the comm-plugin-string&lt;/P&gt;&lt;P&gt;''' StartCommMessage(1).params=["{comm-plugin-id};comm-plugin-string","name"];&lt;/P&gt;</description>
    <pubDate>Mon, 24 Apr 2023 06:05:12 GMT</pubDate>
    <dc:creator>Ickes</dc:creator>
    <dc:date>2023-04-24T06:05:12Z</dc:date>
    <item>
      <title>Json RPC Server StartComm</title>
      <link>https://community.nxp.com/t5/FreeMASTER/Json-RPC-Server-StartComm/m-p/1637307#M1316</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using matlab and freemaster rpc-server for automatic data logging.&lt;/P&gt;&lt;P&gt;I tried to get all the information from the freemaster lite JS api because there is no rpc-server api where the json structures for the commands are defined or at least I could not find it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far it has worked and I can read and write variables and stop the communication, but the structure to start communication does not work. Does anyone here have an idea what is wrong with this?&lt;/P&gt;&lt;P&gt;jsonMessage2(1).jsonrpc="2.0";&lt;BR /&gt;jsonMessage2(1).method="StartComm";&lt;BR /&gt;jsonMessage2(1).params=["comm_plugin_conn","name","addr=localhost;port=9990;timeout=500","string"];&lt;BR /&gt;jsonMessage2(1).id=0;&lt;/P&gt;&lt;P&gt;The error message is:&amp;nbsp;msg: 'StartComm: Could not open the communication port (Error 0x848a0001: Connect string invalid.) !'&lt;/P&gt;&lt;P&gt;I got the connection string from the freemaster desktop application running with an existing freemaster project, in the UI I can start the communication without problems.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 13:32:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/Json-RPC-Server-StartComm/m-p/1637307#M1316</guid>
      <dc:creator>Ickes</dc:creator>
      <dc:date>2023-04-20T13:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: Json RPC Server StartComm</title>
      <link>https://community.nxp.com/t5/FreeMASTER/Json-RPC-Server-StartComm/m-p/1638115#M1319</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/216120"&gt;@Ickes&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;StartComm expects a single argument - connection string:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/220332iF976DE21EFAF8FFD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It can be passed as positional or named argument.&lt;BR /&gt;In your case the message could look like this (assuming the target is connected to you PC via UART):&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(positional):&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;jsonMessage2(1).jsonrpc="2.0";
jsonMessage2(1).method="StartComm";
jsonMessage2(1).params=["RS232;port=COM1;speed=115200"];
jsonMessage2(1).id=0;&lt;/LI-CODE&gt;
&lt;P&gt;(named):&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;jsonMessage2(1).jsonrpc="2.0";
jsonMessage2(1).method="StartComm";
jsonMessage2(1).params={"name": "RS232;port=COM1;speed=115200"};
jsonMessage2(1).id=0;&lt;/LI-CODE&gt;
&lt;P&gt;Currently, there is no explicit description of the JSON messages. The message can be inferred from the JS client y following these 2 rules:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;`method` property is the same as JS function name&lt;/LI&gt;
&lt;LI&gt;`params` is an array of properties following the same order in which they appear in JS function definition or an JSON object. In the second case, object properties are the same as JS function arguments (no restriction on order in this case).&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Hope it helps,&lt;BR /&gt;Iulian&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 14:29:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/Json-RPC-Server-StartComm/m-p/1638115#M1319</guid>
      <dc:creator>iulian_stan</dc:creator>
      <dc:date>2023-04-21T14:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: Json RPC Server StartComm</title>
      <link>https://community.nxp.com/t5/FreeMASTER/Json-RPC-Server-StartComm/m-p/1638610#M1321</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/100557"&gt;@iulian_stan&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;thank you for your reply. I am using the FreeMASTER tcp to serial plugin and found a way to start the communication.&lt;/P&gt;&lt;P&gt;With the plugin the necessary string consists of the comm-plugin-id followed by the comm-plugin-string&lt;/P&gt;&lt;P&gt;''' StartCommMessage(1).params=["{comm-plugin-id};comm-plugin-string","name"];&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 06:05:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/Json-RPC-Server-StartComm/m-p/1638610#M1321</guid>
      <dc:creator>Ickes</dc:creator>
      <dc:date>2023-04-24T06:05:12Z</dc:date>
    </item>
  </channel>
</rss>

