<?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[Set BREAK: on with script]]></title><description><![CDATA[<p dir="auto">Hello,<br />
In a serial session, I'd like to Set BREAK: on for a specific duration with a jancy script. Is this possible? I can toggle manually by clicking the purple BRK button.</p>
<p dir="auto"><img src="/forum/assets/uploads/files/1679892569926-4c4f3111-1dd8-4183-ab96-6dd0a492fa75-image.png" alt="4c4f3111-1dd8-4183-ab96-6dd0a492fa75-image.png" class=" img-responsive img-markdown" width="626" height="67" /></p>
<p dir="auto">Thanks,<br />
Stuart</p>
]]></description><link>http://64.23.185.212/forum/topic/96/set-break-on-with-script</link><generator>RSS for Node</generator><lastBuildDate>Thu, 21 May 2026 07:24:48 GMT</lastBuildDate><atom:link href="http://64.23.185.212/forum/topic/96.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 27 Mar 2023 04:53:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Set BREAK: on with script on Tue, 02 May 2023 07:13:22 GMT]]></title><description><![CDATA[<p dir="auto">It seems that in v5.3.2 this should be:<br />
g_session.m_breakCondition</p>
]]></description><link>http://64.23.185.212/forum/post/360</link><guid isPermaLink="true">http://64.23.185.212/forum/post/360</guid><dc:creator><![CDATA[Stuart Gralton]]></dc:creator><pubDate>Tue, 02 May 2023 07:13:22 GMT</pubDate></item><item><title><![CDATA[Reply to Set BREAK: on with script on Thu, 30 Mar 2023 05:19:09 GMT]]></title><description><![CDATA[<p dir="auto">Documentation in general needs some serious improvements, that's true <img src="http://64.23.185.212/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=miq4h6da9ug" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" title=":)" alt="🙂" /> Working on that.</p>
<p dir="auto">In the meantime, we try our best to provide developer-level support and assistance -- here or via the support email.</p>
]]></description><link>http://64.23.185.212/forum/post/326</link><guid isPermaLink="true">http://64.23.185.212/forum/post/326</guid><dc:creator><![CDATA[Vladimir]]></dc:creator><pubDate>Thu, 30 Mar 2023 05:19:09 GMT</pubDate></item><item><title><![CDATA[Reply to Set BREAK: on with script on Tue, 28 Mar 2023 09:55:32 GMT]]></title><description><![CDATA[<p dir="auto">Hi Vladimir,<br />
Thank you, that worked well.</p>
<p dir="auto">I feel like I should have been able to search for that in the IONinja documentation. Keywords "session" and "break" both don't yield relevant information for me.</p>
<p dir="auto">Thanks,<br />
Stuart</p>
]]></description><link>http://64.23.185.212/forum/post/325</link><guid isPermaLink="true">http://64.23.185.212/forum/post/325</guid><dc:creator><![CDATA[Stuart Gralton]]></dc:creator><pubDate>Tue, 28 Mar 2023 09:55:32 GMT</pubDate></item><item><title><![CDATA[Reply to Set BREAK: on with script on Tue, 28 Mar 2023 08:27:48 GMT]]></title><description><![CDATA[<p dir="auto">Yes, it's possible; you can control all parameters of a serial port (including the break condition) from your script via the "dispatch" object <code>g_session</code>:</p>
<pre><code>void main() {
	connect();

	// configure the port
	g_session.m_baudRate = 38400;
	g_session.m_dataBits = 8;
	// ...

	for (;;) {
		g_session.m_break = !g_session.m_break; // toggle break condition
		sys.sleep(1000);
	}
}
</code></pre>
<p dir="auto"><img src="/forum/assets/uploads/files/1679992047422-5d3eea6d-fbf3-4e12-8a59-0f863d5cb32f-image.png" alt="5d3eea6d-fbf3-4e12-8a59-0f863d5cb32f-image.png" class=" img-responsive img-markdown" width="1218" height="993" /></p>
<p dir="auto"><strong>Note:</strong> there's a typo in the serial dispatch script in the latest official release  <code>ioninja-5.3.1</code> (will be fixed in the very next service release). In the meantime, for the script above to work, please open to <code>scripts/plugins/Serial/SerialDispatch.jnc</code> and replace:</p>
<p dir="auto"><code>SerialDispatchCode.GetBreak</code> -&gt; <code>SerialDispatchCode.GetBreakCondition</code><br />
and<br />
<code>SerialDispatchCode.SetBreak</code> -&gt; <code>SerialDispatchCode.SetBreakCondition</code></p>
<p dir="auto">Let me know if this works for you.</p>
]]></description><link>http://64.23.185.212/forum/post/324</link><guid isPermaLink="true">http://64.23.185.212/forum/post/324</guid><dc:creator><![CDATA[Vladimir]]></dc:creator><pubDate>Tue, 28 Mar 2023 08:27:48 GMT</pubDate></item></channel></rss>