<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>patches for send.py and RepRapArduinoSerialSender.py</title>
        <description> This patch makes send.py case-insensitive, allows specifying baud rate on the command line, adds newlines to the end of gcodes so my arduino knows to send a response, and makes the output more readable.

I&#039;ve never touched python before, so let me know how this looks :)</description>
        <link>https://reprap.org/forum/read.php?154,35440,35440#msg-35440</link>
        <lastBuildDate>Thu, 10 Sep 2026 22:23:00 -0400</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://reprap.org/forum/read.php?154,35440,39497#msg-39497</guid>
            <title>Re: patches for send.py and RepRapArduinoSerialSender.py</title>
            <link>https://reprap.org/forum/read.php?154,35440,39497#msg-39497</link>
            <description><![CDATA[ With this modifications I'm able to print on my mendel with FiveD firmware:<br />
 - I needed a \n after setdtr(1) to get a start response<br />
 - stripping all spaces from gcode results in quite strange behaviour<br />
 - printing what gets really sent<br />
<br />
<br />
--- 13/miscellaneous/fabricate/RepRapArduinoSerialSender.py     2010-02-13 06:41:01.000000000 +0100<br />
+++ 14/miscellaneous/fabricate/RepRapArduinoSerialSender.py     2010-03-16 01:09:32.000000000 +0100<br />
@@ -76,6 +76,7 @@<br />
                # There is presumably some latency required.<br />
                time.sleep(1)<br />
                self.ser.setDTR(1)<br />
+               self.ser.write("\n")<br />
                self.read("Start")<br />
<br />
        def write(self, block):<br />
@@ -87,18 +88,17 @@<br />
                        This routine also removes all whitespace before sending it to the arduino,<br />
                        which is handy for gcode, but will screw up if you try to do binary communications.<br />
                """<br />
-               if self._verbose:<br />
-                       print "&gt; " + block<br />
-<br />
                # The arduino GCode interperter firmware doesn't like whitespace<br />
                # and if there's anything other than space and tab, we have other problems.<br />
                block=block.strip()<br />
-               block=block.replace(' ','')<br />
                block=block.replace("\t",'')<br />
                #Skip blank blocks.<br />
                if len(block) == 0:<br />
                        return<br />
<br />
+               if self._verbose:<br />
+                       print "&gt; " + block<br />
+<br />
                self.ser.write(block + "\n")<br />
                self.read("OK")]]></description>
            <dc:creator>Markus Amsler</dc:creator>
            <category>Skeinforge</category>
            <pubDate>Mon, 15 Mar 2010 20:27:15 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?154,35440,35704#msg-35704</guid>
            <title>Re: patches for send.py and RepRapArduinoSerialSender.py</title>
            <link>https://reprap.org/forum/read.php?154,35440,35704#msg-35704</link>
            <description><![CDATA[ Thanks Triffid_Hunter for posting the files.<br />
<br />
I suggest people try these files out and report the results here.  If there are no problems, I'll add them to the next skeinforge update.<br />
<br />
Enrique]]></description>
            <dc:creator>Enrique</dc:creator>
            <category>Skeinforge</category>
            <pubDate>Wed, 10 Feb 2010 04:11:06 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?154,35440,35666#msg-35666</guid>
            <title>Re: patches for send.py and RepRapArduinoSerialSender.py</title>
            <link>https://reprap.org/forum/read.php?154,35440,35666#msg-35666</link>
            <description><![CDATA[ Here are the updated files, for peer review :)]]></description>
            <dc:creator>Triffid_Hunter</dc:creator>
            <category>Skeinforge</category>
            <pubDate>Tue, 09 Feb 2010 19:10:57 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?154,35440,35440#msg-35440</guid>
            <title>patches for send.py and RepRapArduinoSerialSender.py</title>
            <link>https://reprap.org/forum/read.php?154,35440,35440#msg-35440</link>
            <description><![CDATA[ This patch makes send.py case-insensitive, allows specifying baud rate on the command line, adds newlines to the end of gcodes so my arduino knows to send a response, and makes the output more readable.<br />
<br />
I've never touched python before, so let me know how this looks :)]]></description>
            <dc:creator>Triffid_Hunter</dc:creator>
            <category>Skeinforge</category>
            <pubDate>Mon, 08 Feb 2010 00:59:29 -0500</pubDate>
        </item>
    </channel>
</rss>
