Hi everyone,<br><br>I&#39;m very new in the world of SmallTalk, so I hope you can help me... I&#39;m working on an application that uploads sketches to an Arduino&#39;s board directly without its software (only uploading the .hex file). First of all I found a code based in java that works perfectly and now I&#39;m &quot;translating&quot; into ST. <br>
<br>The problem is: Arduino&#39;s responses with a particular bytecode when it receives data (at least that&#39;s how works the java-based code), with values 0x14 or 0x10. Before send the data block to the board, the program sends a <i>hello</i> bytecode for check responsivity, which values 0x30 and 0x20. The problem is that the board doesn&#39;t recognize the <i>hello</i> bytes, because it doesn&#39;t response to it. I made something like this (sorry but I don&#39;t have the code at this moment):<br>
<br><b>sendHello:</b> SerialPort2<br><i>| ba |</i><br>ba := ByteArray new: 2.<br>ba at: 1 put: 16r30.<br>ba at: 1 put: 16r20.<br>SerialPort2 nextPutAll: ba.<br><br>SerialPort2 is a class that I imported from Scratch source code. The port is open correctly, I can see how the board receives data because the RX led blinks, but TX doesn&#39;t. I tried several ways to do this but anything worked. If anyone who&#39;s worked with Arduino knows what I&#39;m doing wrong, tell me please. I will send the code and more detailed information if needed.<br>
<br>Sorry for my bad english,<br><br>Thanks<br clear="all"><br>-- <br>Víctor<br>