<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[SoliForum - 3D Printing Community — sending GCODE via c++]]></title>
	<link rel="self" href="https://www.soliforum.com/feed/atom/topic/3396/" />
	<updated>2013-08-02T13:34:38Z</updated>
	<generator>PunBB</generator>
	<id>https://www.soliforum.com/topic/3396/sending-gcode-via-c/</id>
		<entry>
			<title type="html"><![CDATA[Re: sending GCODE via c++]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/31723/#p31723" />
			<content type="html"><![CDATA[<p>Just go give a <a href="http://www.tldp.org/HOWTO/Serial-HOWTO.html">http://www.tldp.org/HOWTO/Serial-HOWTO.html</a> and <a href="http://en.wikibooks.org/wiki/Serial_Programming/termios">http://en.wikibooks.org/wiki/Serial_Programming/termios</a> a good read<br />Basically all you have to do is fopen /dev/ttyUSB0 and doing read/write to the fd. Simple as that.<br />Also, take care that far not all usb2uart dongles properly support tcdrain, and it returns when there are a few bytes still in tx fifo that can screw things up. I know that pl2303 and ft232rl definitely had this problem.</p>]]></content>
			<author>
				<name><![CDATA[Necromant]]></name>
				<uri>https://www.soliforum.com/user/525/</uri>
			</author>
			<updated>2013-08-02T13:34:38Z</updated>
			<id>https://www.soliforum.com/post/31723/#p31723</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: sending GCODE via c++]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/31714/#p31714" />
			<content type="html"><![CDATA[<p>high-speed serial is all it is, and the g-code is just passed in plain text</p><p>You will need to connect however at 250,000bps 8-N-1...&nbsp; and yes it needs 250000 bps to avoid issues with the buffer emptying and pausing prints... which may or may not be an issue for you as a plotter, but if you switch down to 115200 (and you&#039;ll need to recompile Marlin to make the change) it will end up pausing mid-print often.</p>]]></content>
			<author>
				<name><![CDATA[adrian]]></name>
				<uri>https://www.soliforum.com/user/663/</uri>
			</author>
			<updated>2013-08-02T12:34:58Z</updated>
			<id>https://www.soliforum.com/post/31714/#p31714</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[sending GCODE via c++]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/31667/#p31667" />
			<content type="html"><![CDATA[<p>Hey all,<br />Im a new user to the solidoodle. I&#039;m modifying my solidoodle to use it as more of an xyz plotter.</p><p>I configured a c++ script to generate a .gcode file with the line by line xyz instructions. I&#039;m curious if anyone know how to easier send instructions to the solidoodle Arduino. possibly through the serial port or usb cable?</p><p>please let me know your thoughts and thanks so much !</p><p>happy printing !</p>]]></content>
			<author>
				<name><![CDATA[bdp]]></name>
				<uri>https://www.soliforum.com/user/2690/</uri>
			</author>
			<updated>2013-08-01T20:34:37Z</updated>
			<id>https://www.soliforum.com/post/31667/#p31667</id>
		</entry>
</feed>
