Is there any chance to send something like this via an ACTUATE_BOOLEAN_COMMAND ???
If not, I will provide a patch for OpenPNP.
Kind regards, Karl
Cri S
unread,
Oct 8, 2017, 7:44:53 AM10/8/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ope...@googlegroups.com
Actually there is no way, this is the reason why grbl don't work using
Gcode driver,
As Hack, i have used this inside sendCommand
command = command.replaceAll("#!@~@!#", "\030");
but it is really a hack.
The reason is a bug inside xml data handling.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to OpenPnP
Thanks for your confirmation and also the hack. I will something similar use as you did. What XML-Bug you are talking about?
Thanks, Karl
Cri S
unread,
Oct 8, 2017, 1:46:46 PM10/8/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ope...@googlegroups.com
inside XML, the CDATA[] Tag allows to send chars including binary data
that otherwise is
not legal inside xml documents. As example the sequence
CDATA[\030\030\030] should
encode 3 times 0x18 binary data.
Unfortunatly the xml library named SAX that is used in this project
have implemented
CDATA but only for printable characters and \n \r \t and problably \v .
> --
> 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
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to OpenPnP
I now added this lines
if(command != null) { command = command.replaceAll("HEX_0x18", "\030"); // TODO 4: replace with a proper parser, to evaluate the HEX-number }
to the function in the GcodeDriver public void actuate(ReferenceActuator actuator, boolean on)
To avoid, that the invisible character is trimmed (see String.trim() ), the actual COMMAND in the machine setup is surrounded by some visible characters, in my case questionmarks: ?HEX_0x18?
Cri S
unread,
Oct 9, 2017, 4:08:05 AM10/9/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ope...@googlegroups.com
for Grbl, it is important to use that inside Connect and especially
during Stop, so
just inside actuate it is maybe insufficient.
> --
> 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