<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[SoliForum - 3D Printing Community — da vinci mini maker in Kubuntu]]></title>
	<link rel="self" href="https://www.soliforum.com/feed/atom/topic/17178/" />
	<updated>2018-03-14T16:01:52Z</updated>
	<generator>PunBB</generator>
	<id>https://www.soliforum.com/topic/17178/da-vinci-mini-maker-in-kubuntu/</id>
		<entry>
			<title type="html"><![CDATA[Re: da vinci mini maker in Kubuntu]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/143026/#p143026" />
			<content type="html"><![CDATA[<p>Finally there is a blob at the top and bottom of all the serial functions that set and release a mutex, these are there to stop someone from accidentally calling a second serial function while the first function is executing.&nbsp; You only need to worry about that if you are calling these functions from two different threads.</p><p>A mutex is just an integer that counts up when someone grabs it and counts down when they release it.&nbsp; You can only grab the mutex when it is set to zero so you end up blocking if someone else has the mutex.&nbsp; If they were smart it would just have been called waitYourTurn() and imDone()</p>]]></content>
			<author>
				<name><![CDATA[david.tucker]]></name>
				<uri>https://www.soliforum.com/user/17634/</uri>
			</author>
			<updated>2018-03-14T16:01:52Z</updated>
			<id>https://www.soliforum.com/post/143026/#p143026</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: da vinci mini maker in Kubuntu]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/143025/#p143025" />
			<content type="html"><![CDATA[<p>I guess I can cover the communication side as well.</p><p>At line 842 I call writeSerialPrintf() to send the command out, Then at line 844 I wait for a line to come back with the sub string &quot;stat&quot;:&quot;start&quot; in it and then at line 845 I wait for a long time (up to 120 seconds) for a second line that has the string &quot;stat&quot;:&quot;complete&quot;.&nbsp; If the timeout is not provided to the waitForJsonVal() function then it is set to the default.&nbsp; Right now the default is 1/2 a second.&nbsp; </p><p>That is if I send out the command and don&#039;t get something back right away I know the printer is in a funky state and don&#039;t need to keep waiting.&nbsp; At that point the only thing that seems to work is to power cycle the printer...</p><p>The second waitForJsonVal() call waits a long time because it physically takes time for the motors to move.</p>]]></content>
			<author>
				<name><![CDATA[david.tucker]]></name>
				<uri>https://www.soliforum.com/user/17634/</uri>
			</author>
			<updated>2018-03-14T15:58:21Z</updated>
			<id>https://www.soliforum.com/post/143025/#p143025</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: da vinci mini maker in Kubuntu]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/143024/#p143024" />
			<content type="html"><![CDATA[<p>The file xyzv3.h holds the forward decleration of all the functions along with a few constants and variables that are needed.&nbsp; More importantly there are some comments for each function, although not nearly enough.&nbsp; In C land other developers would only (need to) look at the .h file to know how to use the library, with the .cpp file hiding all the gory details.&nbsp; </p><p><a href="https://github.com/reality-boy/miniMover/blob/master/xyzv3.h">https://github.com/reality-boy/miniMove … er/xyzv3.h</a></p>]]></content>
			<author>
				<name><![CDATA[david.tucker]]></name>
				<uri>https://www.soliforum.com/user/17634/</uri>
			</author>
			<updated>2018-03-14T15:46:30Z</updated>
			<id>https://www.soliforum.com/post/143024/#p143024</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: da vinci mini maker in Kubuntu]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/143023/#p143023" />
			<content type="html"><![CDATA[<p>You can look in my code to see exactly how all these messages get formatted.&nbsp; The bulk of what you are interested in is in the xyzv3.cpp file. <a href="https://github.com/reality-boy/miniMover/blob/master/xyzv3.cpp">https://github.com/reality-boy/miniMove … /xyzv3.cpp</a></p><p>At line 834 you see the function jogPrinter that takes a character for the axis of &#039;x&#039; &#039;y&#039; or &#039;z&#039; and an int for the distance in mm (0,1,2,3...)</p><p>The function writeSerialPrintf() takes a printf style formatting string and fills in the details then sends it out the serial port.&nbsp; here is the call for doing a jog:</p><p>m_serial.writeSerialPrintf(&quot;XYZv3/action=jog:{\&quot;axis\&quot;:\&quot;%c\&quot;,\&quot;dir\&quot;:\&quot;%c\&quot;,\&quot;len\&quot;:\&quot;%d\&quot;}&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; axis, (dist_mm &lt; 0) ? &#039;-&#039; : &#039;+&#039;, abs(dist_mm));</p><p>Here are the special characters and what they mean:</p><p>\&quot; is an escape, it embeds the &quot; character in the string rather than ending the string, just pretend that character is not there</p><p>The first %c says replace %c with the value of the first argument, that is the letter x,y,z from the axis variable</p><p>The second %c is replaced by the second argument: (dist_mm &lt; 0) ? &#039;-&#039; : &#039;+&#039;.&nbsp; The argument is a ternary operator, everything inside the ()&#039;s are tested for true or false and if true we exicute the code after the ? else we execute the code after the :.&nbsp; In this case we return + if dist_mm is positive and - if dist_mm is negative</p><p>Finally the %d says the third argument is an integer (digit?) and takes the value of abs(dist_mm).&nbsp; The function abs() returns the absolute value of the passed in variable, that is if the number is negative we remove the negative sign.</p><p>So basically if you were to call jogPrinter(&#039;y&#039;, -35) we would send this out the serial port: XYZv3/action=jog:{&quot;axis&quot;:&quot;y&quot;,&quot;dir&quot;:&quot;-&quot;,&quot;len&quot;:&quot;35&quot;}&lt;newline&gt;</p>]]></content>
			<author>
				<name><![CDATA[david.tucker]]></name>
				<uri>https://www.soliforum.com/user/17634/</uri>
			</author>
			<updated>2018-03-14T15:43:49Z</updated>
			<id>https://www.soliforum.com/post/143023/#p143023</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: da vinci mini maker in Kubuntu]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/142998/#p142998" />
			<content type="html"><![CDATA[<p>How are the LL value formated ..... ? I have tried with just simple number like 1... 10 ...</p><p>// Jog where LL is step size<br />// make sure you have homed first?<br />XYZv3/action=jog:{&quot;axis&quot;:&quot;x&quot;,&quot;dir&quot;:&quot;-&quot;,&quot;len&quot;:&quot;LL&quot;} <br />XYZv3/action=jog:{&quot;axis&quot;:&quot;x&quot;,&quot;dir&quot;:&quot;+&quot;,&quot;len&quot;:&quot;LL&quot;}<br />XYZv3/action=jog:{&quot;axis&quot;:&quot;y&quot;,&quot;dir&quot;:&quot;-&quot;,&quot;len&quot;:&quot;LL&quot;}<br />XYZv3/action=jog:{&quot;axis&quot;:&quot;y&quot;,&quot;dir&quot;:&quot;+&quot;,&quot;len&quot;:&quot;LL&quot;}<br />XYZv3/action=jog:{&quot;axis&quot;:&quot;z&quot;,&quot;dir&quot;:&quot;-&quot;,&quot;len&quot;:&quot;LL&quot;}<br />XYZv3/action=jog:{&quot;axis&quot;:&quot;z&quot;,&quot;dir&quot;:&quot;+&quot;,&quot;len&quot;:&quot;LL&quot;}<br />// returns <br />jog:{&quot;stat&quot;:&quot;start&quot;}<br />jog:{&quot;stat&quot;:&quot;complete&quot;}</p>]]></content>
			<author>
				<name><![CDATA[wartin.lindkvist]]></name>
				<uri>https://www.soliforum.com/user/18565/</uri>
			</author>
			<updated>2018-03-12T08:30:28Z</updated>
			<id>https://www.soliforum.com/post/142998/#p142998</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: da vinci mini maker in Kubuntu]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/142997/#p142997" />
			<content type="html"><![CDATA[<p>WHOOO WHAAAAAA </p><p>IT&#039;S ALIVE <img src="https://www.soliforum.com/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p>]]></content>
			<author>
				<name><![CDATA[wartin.lindkvist]]></name>
				<uri>https://www.soliforum.com/user/18565/</uri>
			</author>
			<updated>2018-03-12T08:24:54Z</updated>
			<id>https://www.soliforum.com/post/142997/#p142997</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: da vinci mini maker in Kubuntu]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/142996/#p142996" />
			<content type="html"><![CDATA[<p>This is wonderful .... thanks so much </p><p>....</p>]]></content>
			<author>
				<name><![CDATA[wartin.lindkvist]]></name>
				<uri>https://www.soliforum.com/user/18565/</uri>
			</author>
			<updated>2018-03-12T07:58:54Z</updated>
			<id>https://www.soliforum.com/post/142996/#p142996</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: da vinci mini maker in Kubuntu]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/142994/#p142994" />
			<content type="html"><![CDATA[<p>This was written for my own use, so it is not super easy to follow but here is a rough outline of all the serial commands that the miniMaker can accept and what is returned.</p><p><a href="https://github.com/reality-boy/miniMover/blob/master/docs/v3%20notes.txt">https://github.com/reality-boy/miniMove … 0notes.txt</a></p><p>You should be able to type these by hand into any serial terminal.&nbsp; So to query all status you would type:</p><p>XYZv3/query=a&lt;enter&gt;</p>]]></content>
			<author>
				<name><![CDATA[david.tucker]]></name>
				<uri>https://www.soliforum.com/user/17634/</uri>
			</author>
			<updated>2018-03-12T05:22:42Z</updated>
			<id>https://www.soliforum.com/post/142994/#p142994</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: da vinci mini maker in Kubuntu]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/142972/#p142972" />
			<content type="html"><![CDATA[<p>Yeah ... sorry ... <br />It was just me being to hasty with posting .... i later found it in the forum ....<br />I then understood that it is about to convert the file and then just send it over to the printer ....</p><p>I have not yet tried it but i will ....</p><p>One thing that i was thinking is .... if i for example would like to just query the printer for the info of what serielnumber firmwarenumber and so on .... How would i do that...</p><p>lets say i have a minicom connected to it .... do i put the query in the console and send it to the prineter?<br />and how would that query look like ...?</p><p>i can see this<br />XYZv3/query={}<br />XYZv3/action={}<br />XYZv3/config={}<br />XYZv3/upload={filename},{size}{option}<br />XYZv3/firmware={filename},{size}<br />XYZv3/uploadDidFinish</p><p>could i just in the minicom console put...<br />query=a</p><p>would that give me the info about it?</p>]]></content>
			<author>
				<name><![CDATA[wartin.lindkvist]]></name>
				<uri>https://www.soliforum.com/user/18565/</uri>
			</author>
			<updated>2018-03-10T07:55:03Z</updated>
			<id>https://www.soliforum.com/post/142972/#p142972</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: da vinci mini maker in Kubuntu]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/142960/#p142960" />
			<content type="html"><![CDATA[<p>The latest compiled exe is zipped up in the first post linked above, or you can download the exe as a release from github.</p><p>GitHub hides it a bit but if you click on the release button you can see all the exe&#039;s<br /><a href="https://github.com/reality-boy/miniMover/releases">https://github.com/reality-boy/miniMover/releases</a></p>]]></content>
			<author>
				<name><![CDATA[david.tucker]]></name>
				<uri>https://www.soliforum.com/user/17634/</uri>
			</author>
			<updated>2018-03-09T04:57:46Z</updated>
			<id>https://www.soliforum.com/post/142960/#p142960</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: da vinci mini maker in Kubuntu]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/142933/#p142933" />
			<content type="html"><![CDATA[<p>I think i am going for david.tucker&#039;s windows thing in wine...<br />The files i could understand a bit of was&nbsp; miniMover/miniMoverConsole/minimover.cpp&nbsp; and&nbsp; miniMover/miniMoverUI/miniMoverUI.cpp</p><p><img src="https://www.soliforum.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>i can not see any configure script or make .... do i compile them one by one ?</p><p>do you have some instruction or is it just to start trying?</p><br /><p>or even better .... do you have them compiled some ware&nbsp; that you can email me ?</p><p>-mL-</p>]]></content>
			<author>
				<name><![CDATA[wartin.lindkvist]]></name>
				<uri>https://www.soliforum.com/user/18565/</uri>
			</author>
			<updated>2018-03-08T08:12:28Z</updated>
			<id>https://www.soliforum.com/post/142933/#p142933</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: da vinci mini maker in Kubuntu]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/142932/#p142932" />
			<content type="html"><![CDATA[<p>wonderful .... so i have a starting point here....</p><p>I will get back if i get stuck ...</p><p>When it comes to the porting i will have some problem .... i can only program in cobol85 <img src="https://www.soliforum.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><br /><p>Best regards<br />mL</p>]]></content>
			<author>
				<name><![CDATA[wartin.lindkvist]]></name>
				<uri>https://www.soliforum.com/user/18565/</uri>
			</author>
			<updated>2018-03-08T07:42:22Z</updated>
			<id>https://www.soliforum.com/post/142932/#p142932</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: da vinci mini maker in Kubuntu]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/142928/#p142928" />
			<content type="html"><![CDATA[<p>I have a windows command line utility (and win32 UI) that can send gcode to the miniMaker and most of there other printers.&nbsp; I know that at least one person has gotten it to run under wine.&nbsp; It would not be too hard to port it fully to unix, you just need to swap out the serial port class.</p><p>This is more complete than the 3dub variants out there, it should replicate all aspects of the XYZWare application, other than actually slicing a model of course, you need your own slicer.</p><p><a href="http://www.soliforum.com/topic/17028/print-gcode-files-to-minimaker/">http://www.soliforum.com/topic/17028/pr … minimaker/</a></p>]]></content>
			<author>
				<name><![CDATA[david.tucker]]></name>
				<uri>https://www.soliforum.com/user/17634/</uri>
			</author>
			<updated>2018-03-08T04:41:29Z</updated>
			<id>https://www.soliforum.com/post/142928/#p142928</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: da vinci mini maker in Kubuntu]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/142898/#p142898" />
			<content type="html"><![CDATA[<p>I don&#039;t know if it is fast and easy way, but try search threedub in the forum. It is python based and works on Linux, You need to slice with Cura or other Linux friendly slicer. It is designed for Jr., but some people in the forum use it with mini maker I think.</p><p>I have no experience using threedub with miniMaker in Linux, but is does not hurt to try.</p>]]></content>
			<author>
				<name><![CDATA[yizhou.he]]></name>
				<uri>https://www.soliforum.com/user/17164/</uri>
			</author>
			<updated>2018-03-07T18:28:28Z</updated>
			<id>https://www.soliforum.com/post/142898/#p142898</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[da vinci mini maker in Kubuntu]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/142887/#p142887" />
			<content type="html"><![CDATA[<p>Hi there...<br />I dont know if this is the right forum to ask in but i will start here..</p><p>I have bought an &#039;da vinci mini maker&#039; it is not the wifi version ... so it only have usb</p><p>I as well have no windows computer but have found that they have released an ubuntu pakage of the &#039;XYZmaker&#039;</p><p>I found it here ( support.xyzprinting.com/us_en/Help/download/xyzmaker?productName=XYZmaker )<br />that pakage seems to be a bit old as it is from 2016 but it was the one i found so i went for that...</p><p>in the ubuntu system i can see it like this:<br />sudo lsusb<br />Bus 006 Device 049: ID 11f1:2513</p><p>and in syslog like this:<br />Mar&nbsp; 7 16:13:37 xx kernel: [32002.940117] usb 6-1: new full-speed USB device number 51 using uhci_hcd<br />Mar&nbsp; 7 16:13:37 xx kernel: [32003.115172] usb 6-1: New USB device found, idVendor=11f1, idProduct=2513<br />Mar&nbsp; 7 16:13:37 xx kernel: [32003.115180] usb 6-1: New USB device strings: Mfr=0, Product=0, SerialNumber=3<br />Mar&nbsp; 7 16:13:37 xx kernel: [32003.115185] usb 6-1: SerialNumber: 3FMxxxxxxxxxxxxxxx<br />Mar&nbsp; 7 16:13:37 xx kernel: [32003.118243] cdc_acm 6-1:1.0: ttyACM3: USB ACM device<br />Mar&nbsp; 7 16:13:37 xx mtp-probe: checking bus 6, device 51: &quot;/sys/devices/pci0000:00/0000:00:1d.0/usb6/6-1&quot;<br />Mar&nbsp; 7 16:13:37 xx mtp-probe: bus: 6, device: 51 was not an MTP device</p><p>and then i open XYZmaker...<br />it first tells me there is a new version and then directs me to there homepage but that shows the verion that i have ...<br />in the software i add an object and try to print but i can not find any printer ...</p><p>Is there anywhere that i can get the linux driver or kernel module?</p><p>or is there any fast and easy way to put any other open source firmware on it so that it works??</p><br /><p>Best regards<br />Martin Lindkvist</p>]]></content>
			<author>
				<name><![CDATA[wartin.lindkvist]]></name>
				<uri>https://www.soliforum.com/user/18565/</uri>
			</author>
			<updated>2018-03-07T15:28:55Z</updated>
			<id>https://www.soliforum.com/post/142887/#p142887</id>
		</entry>
</feed>
