Liteplacer User - Setting up TinyG

247 views
Skip to first unread message

Brady Small

unread,
Oct 30, 2017, 10:03:58 PM10/30/17
to OpenPnP
I've been watching the progress of OpenPNP over the past year and said it was time to try things out.. Except I've run into a little issue.

Using the GCodeDriver and all the sources out there for setting up TinyG with OpenPNP for the liteplacer, it seems like its not accepting the commands back from the TinyG.

Using RealTerm, i can send commands to the TinyG and it will respond back. $sys reports back all the TinyG stats.. Ok. So comm is good.. So close out Realterm and try OpenPNP..

Going into OpenPNP, I'll try to start the machine to see if things get better..

2017-10-30 21:56:37 ReferenceMachine DEBUG: setEnabled(true)
2017-10-30 21:56:38 GcodeDriver DEBUG: sendCommand(null, 250)...
2017-10-30 21:56:38 GcodeDriver DEBUG: sendCommand(COM4 null, 250) => []
2017-10-30 21:56:38 GcodeDriver DEBUG: sendCommand($SV=2, 2000)...
2017-10-30 21:56:38 GcodeDriver TRACE: [COM4] >> $SV=2
2017-10-30 21:56:38 GcodeDriver TRACE: [COM4] << [sv]  status report verbosity     2 [0=off,1=filtered,2=verbose]
2017-10-30 21:56:38 GcodeDriver TRACE: [COM4] << tinyg [mm] ok>
2017-10-30 21:56:40 MessageBoxes DEBUG: Enable Failure: Timeout waiting for response to $SV=2

The TinyG responded back from the $SV=2 command.. But it seems the OpenPNP is not parsing the response correctly?  I've tried toggling the DTR and RTS, just to see if it was as simple as that, but I'm getting a response back.. But it seems it doesn't understand it.. I've turned the echo on and off ($ee=1, $ee=0) to no avail.

I have to be missing something simple here..

Thanks in advanced.

Jason von Nieda

unread,
Oct 30, 2017, 10:05:53 PM10/30/17
to ope...@googlegroups.com
Hi Brady,

Please post your machine.xml as that will make it easier to know exactly what is happening. The most likely scenario is that your COMMAND_CONFIRM_REGEX is incorrect.

Jason


--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/eaf873c6-c292-4495-b2ee-a71abdd147bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Brady Small

unread,
Oct 31, 2017, 12:11:10 AM10/31/17
to OpenPnP
See attached..

Thanks!
machine.xml

Jason von Nieda

unread,
Oct 31, 2017, 9:50:18 AM10/31/17
to ope...@googlegroups.com
That's odd. Try sending $ec=1 ( https://github.com/synthetos/TinyG/wiki/TinyG-Configuration-for-Firmware-Version-0.97#ec---expand-lf-to-crlf-on-tx-data ) and $ex=0 ( https://github.com/synthetos/TinyG/wiki/TinyG-Configuration-for-Firmware-Version-0.97#ex---enable-flow-control ) outside of OpenPnP and see if that helps. 

It does look like OpenPnP should have received the response, and the regex looks okay to me. The only thing I can think of is that the carriage return or line feed didn't get sent, or didn't get received.

It may also be worth trying just ".*ok.*" for the regex, and leave out the >. The > should work, but maybe it's causing an issue that I'm not aware of.

Jason


Brady Small

unread,
Oct 31, 2017, 8:42:54 PM10/31/17
to OpenPnP

Looks like it was just the wrong regex for the ok.. Once i changed it to ".*ok.*" as you said, everything looks like its talking..

Now you got another Liteplacer user going to bug you more!

Thanks for the help.

Reply all
Reply to author
Forward
0 new messages