<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:8pt">Did you set the baud rate before you called openPort: ?<br>All configuration of your SerialPort instance has to be done before opening the device. I know sounds a little non-intuitive but that's how it works.<br><br>Are you executing each line in your workspace individually, or are you selecting the whole block and hit Ctrl-D?<br><br>If you run the workspace by selecting all and hit execute it probably will not work. The SerialPort interface is asynchron which means Squeak will probably execute 'port close' before the initial string '&gt;01100' is completely sent - especially if you don't change the baud rate (default is 9600 baud).<br><br>Have fun,<br>Markus<br><br><br><div><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;">  <div style="font-family:
 Courier New, courier, monaco, monospace, sans-serif; font-size: 8pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Overcomer Man &lt;overcomer.man@gmail.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b> beginners@lists.squeakfoundation.org <br> <b><span style="font-weight: bold;">Sent:</span></b> Sunday, February 26, 2012 11:04:17 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> [Newbies] (no subject)<br> </font> </div> <br><meta http-equiv="x-dns-prefetch-control" content="off"><div id="yiv1062803889"><div>Dave, &nbsp;</div><div><br></div><div>Thanks, I was able to file out SerialPort from Squeak into Cuis. &nbsp;I tried this code in a workspace:</div><div><br></div><div><div>| port oc |</div><div>port := (SerialPort new) openPort: 'COM4'.</div>
<div>oc := OrderedCollection new.</div><div>port nextPutAll: '&gt;01100'.</div><div>oc add: port readString.</div><div>oc add: port readString.</div><div>oc add: port readString.</div><div>port close.</div><div>oc&nbsp;</div>
</div><div><br></div><div>Some data was sent out as indicated by an LED at the connection. &nbsp;Unfortunately, the response was empty strings which is incorrect based on the off shelf software. &nbsp;I tried adjusting the baud rate but that did not help. &nbsp;Any suggestions? &nbsp;Thank you.</div>
<div><br></div><div>Also, I'm interested in hooking the serial port code up to an application window like the original. &nbsp;Can you please point me to a tutorial to learn how? &nbsp;Eventually I want to migrate from simple text response to tables or graphs.</div>
<div><br></div><div>------------------</div><div><br></div><div>jinoh67, &nbsp;</div><div><br></div><div>&gt; "To access IO device, use FFI"&nbsp;</div><div>sounds like good advice but without more details I can't do it. &nbsp;Can you refer me to a tutorial on using FFI?</div>
<div><br></div><div>Thanks,</div><div>Kirk Fraser</div>
</div><meta http-equiv="x-dns-prefetch-control" content="on"><br>_______________________________________________<br>Beginners mailing list<br><a ymailto="mailto:Beginners@lists.squeakfoundation.org" href="mailto:Beginners@lists.squeakfoundation.org">Beginners@lists.squeakfoundation.org</a><br><a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br><br><br> </div> </div> </blockquote></div>   </div></body></html>