<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Sample Request for changing session properties within script]]></title><description><![CDATA[<p dir="auto">Hi,<br />
Changing the session properties on the fly is very important in debugging systems especially hardware; for example, in a serial session, being able to change baud rate dynamically in the script is very useful e.g you don't know the target system's baud rate and you want to sweep all the possible baud rates; or as another example, as a common practice, you multiplex one serial port to two; one is high speed and the other is low speed; so you want to switch to different rates on the fly.<br />
Does anyone has any idea how to do this in script?</p>
]]></description><link>http://64.23.185.212/forum/topic/16/sample-request-for-changing-session-properties-within-script</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Jul 2026 17:45:40 GMT</lastBuildDate><atom:link href="http://64.23.185.212/forum/topic/16.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 20 Oct 2021 04:07:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Sample Request for changing session properties within script on Mon, 04 Dec 2023 03:12:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://64.23.185.212/forum/uid/2">@vladimir</a> Thank you so much for adding this.<br />
This works very well both for serial sessions and also serial Tap. However, for serial Tap, properties such as DTR and open "COMx" would not work which is quite normal and makes sense.</p>
]]></description><link>http://64.23.185.212/forum/post/572</link><guid isPermaLink="true">http://64.23.185.212/forum/post/572</guid><dc:creator><![CDATA[Mohammad]]></dc:creator><pubDate>Mon, 04 Dec 2023 03:12:04 GMT</pubDate></item><item><title><![CDATA[Reply to Sample Request for changing session properties within script on Wed, 05 Oct 2022 12:58:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://64.23.185.212/forum/uid/3">@Mohammad</a>, sorry for the late update, but now we have what you asked for.</p>
<p dir="auto">Starting with ioninja-5.1.2, the serial session exports the <code>g_session</code> object accessible from the "Script" pane. This allows you to control all parameters of a serial port with your script. For example:</p>
<pre><code>// configure the port...
g_session.open("COM1");
g_session.m_baudRate = 115200;
g_session.m_dataBits = 8;
g_session.m_stopBits = io.SerialStopBits._1;
g_session.m_parity = io.SerialParity.None;
g_session.m_dtr = true;

// work with the device...
transmit("\x02INIT\r");
</code></pre>
<p dir="auto">Let me know what you think!</p>
]]></description><link>http://64.23.185.212/forum/post/140</link><guid isPermaLink="true">http://64.23.185.212/forum/post/140</guid><dc:creator><![CDATA[Vladimir]]></dc:creator><pubDate>Wed, 05 Oct 2022 12:58:37 GMT</pubDate></item><item><title><![CDATA[Reply to Sample Request for changing session properties within script on Mon, 01 Nov 2021 06:55:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://64.23.185.212/forum/uid/2">@vladimir</a> Thank you very much for adding such a useful capability to the IAS. Eagerly waiting for it.</p>
]]></description><link>http://64.23.185.212/forum/post/53</link><guid isPermaLink="true">http://64.23.185.212/forum/post/53</guid><dc:creator><![CDATA[Mohammad]]></dc:creator><pubDate>Mon, 01 Nov 2021 06:55:18 GMT</pubDate></item><item><title><![CDATA[Reply to Sample Request for changing session properties within script on Thu, 21 Oct 2021 02:03:15 GMT]]></title><description><![CDATA[<p dir="auto">Currently, IAS (in-app-script) can only control the underlying session via:</p>
<ul>
<li><code>connect()</code></li>
<li><code>disconnect()</code></li>
<li><code>transmit(p, size)</code></li>
</ul>
<p dir="auto">Fine-tuning of the sessions configuration is currently not possible from IAS. But we plan to add this capability in the near future.</p>
<p dir="auto">Each session class will export a public IAS interface (e.g., a serial session will have properties to query and control baud rate, parity, status lines, etc.) Then, IAS should be able to access this interface via a global constant <code>g_session</code> (or something like that).</p>
]]></description><link>http://64.23.185.212/forum/post/52</link><guid isPermaLink="true">http://64.23.185.212/forum/post/52</guid><dc:creator><![CDATA[Vladimir]]></dc:creator><pubDate>Thu, 21 Oct 2021 02:03:15 GMT</pubDate></item></channel></rss>