<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
      <title>Tagged with #gsm - Processing 2.x and 3.x Forum</title>
      <link>https://forum.processing.org/two/discussions/tagged/feed.rss?Tag=%23gsm</link>
      <pubDate>Sun, 08 Aug 2021 18:45:46 +0000</pubDate>
         <description>Tagged with #gsm - Processing 2.x and 3.x Forum</description>
   <language>en-CA</language>
   <atom:link href="/two/discussions/tagged%23gsm/feed.rss" rel="self" type="application/rss+xml" />
   <item>
      <title>Print output from serial device connected on COM port using serial module</title>
      <link>https://forum.processing.org/two/discussion/26150/print-output-from-serial-device-connected-on-com-port-using-serial-module</link>
      <pubDate>Sun, 28 Jan 2018 08:43:59 +0000</pubDate>
      <dc:creator>SVK_212</dc:creator>
      <guid isPermaLink="false">26150@/two/discussions</guid>
      <description><![CDATA[<p>I am trying to use the following modules in p3</p>

<p>controlP5 (for GUI)<br />
serial (to communicate with a device on COM port)</p>

<p>...
the device is a GSM SIM900 module that can understand AT commands.
when I create a session in PUTTY for COM port, for every AT command I type and press ENTER,
I get an acknowledgement.
For e.g.</p>

<p>AT<br />
OK</p>

<p>where AT was the command I typed and OK was the acknowledgement I got.</p>

<p>In p3, I made a GUI that contains 2 textboxes and a button.</p>

<p>I also created a serial handle,</p>

<p><code>mpo = new Serial(this,Serial.list()[0],9600);</code></p>

<p>mpo is global object of class Serial</p>

<p>On clicking the button, the content in the textboxes is processed and if a condition is met, then some functions in serial module are called.</p>

<pre><code>mpo.clear();  
mpo.write("AT\n");
</code></pre>

<p>...
I also have this function,</p>

<pre><code>void serialEvent(Serial mp){  
ins = mp.readString();  
print(ins);  
}  
</code></pre>

<p>where ins is a global String object. This function, I suppose, is called whenever I send commands to module and not when the module acknowledges.
 So, it prints AT, but doesn't print OK...
Is there any way this problem can be solved?</p>
]]></description>
   </item>
   </channel>
</rss>