<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Thanks!</div><div><br></div><div>Note that serialGetchar (wiringSerial) will block for (up to) 10s if no character is available.</div><div>(From function header documentation)</div><div><br></div><div>And this fact (wiringSerial.c:95)</div><div><br></div><div><div>    options.c_cc [VMIN]  =   0 ;</div><div>    options.c_cc [VTIME] = 100 ;<span class="Apple-tab-span" style="white-space:pre"> </span>// Ten seconds (100 deciseconds)</div></div><div><br></div><div>The effect is that the emulator will be blocked and no other processes may run (for up to 10 s)!  </div><div>(unless there are more cores than one (online))</div><div>You may want to use driver_select. Should probably set the VTIME=0 to be sure.</div><div><br></div><div>A little plug:</div><div>There is a project using threads to get some exotic uart features, a bit heavy, but is working (even on windows!)</div><div>(Still lack documentation but has a simple api and is simple to use, nice packeting options for example)</div><div><a href="https://github.com/tonyrog/uart">https://github.com/tonyrog/uart</a></div><div><br></div><div>/Tony</div><div><br></div><div><br></div><div><br></div><div><br><div><br><div><div>On 8 okt 2012, at 22:27, Klas Johansson <<a href="mailto:klas.johansson@gmail.com">klas.johansson@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi,<br><br>Are you interested in letting Erlang control a Raspberry Pi [1]? If so<br>you might be interested in `wpi' which is an Erlang wrapper around the<br>WiringPi library (by Gordon Henderson) which is a Raspberry Pi dialect<br>of the Wiring library which you may have experienced for Arduino. wpi<br>makes it possible to read from and write to GPIO pins, write to LCDs,<br>shift bits in and out and control other devices over serial interfaces<br>or SPI and all this from a Raspberry Pi running Erlang.<br><br>    <a href="https://github.com/klajo/wpi">https://github.com/klajo/wpi</a><br><br>Contributions are more than welcome. Thanks to David Haglund who<br>contributed the SPI bus and serial interface parts.<br><br>Best Regards,<br>Klas<br><br>[1] <a href="http://www.raspberrypi.org/faqs">http://www.raspberrypi.org/faqs</a><br>_______________________________________________<br>erlang-questions mailing list<br><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>http://erlang.org/mailman/listinfo/erlang-questions<br></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; "><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 12px; ">"Installing applications can lead to corruption over time. </span><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 12px; ">Applications gradually write over each other's libraries, partial upgrades occur, user and system errors happen, and minute changes may be unnoticeable and difficult to fix"</span></div><div><span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Geneva, Arial, Helvetica, sans-serif; font-size: 12px; "><br></span></div></span><br class="Apple-interchange-newline">
</div>
<br></div></div></body></html>