Handshake/Queue Request

From the original Synthetos forum (2011–2025)

Started by LTECH on in TinyG Support. 4 replies, last activity Apr 15, 2017.

#

Hello,
at this time I want to build a new software to work with TinyG in G-Code mode.
I have big problems with the XON/XOFF handshake.
After several lines conection is broken down.
I try the same G-Code file with a other software (JCNC) and it runns perfect.
Is there anyone make a software use the queue request for push the data?
I cant find a good literature to help my self...
Please, if some one have information or a snippet in C (vb) please let me know!
Regards Kai

Staff #

Gcode sender programming is really out of scope for this tinyG user Forum.

Xon/Xoff has been around for a long time, and is usually handled by the serial driver layer. Are you planning to develop the entire sender, including the serial I/O handler? Big job, timing is critical. You could also use RTS/CTS (hardware) flow control.

You ask about queue based flow management. The only implementation I have heard of is Chilipeppr and the SPJS(serial port json server). It is all open source, but way beyond a "snipet" in scope and complexity

Good luck with your project.

#

Thank you for your response!

Ive read about the queue report in Tinys wiki as a good solution.
OK on the other hand if the XON/XOFF control works proper I will use it.
But I have the feeling that the String produce an overflow at Tinys buffer. If I send small files 100 Bytes no Problem but every file more than 150 bytes make problems sometime. I am also able to test with a serialport program to check both side of the communication (RX/TX). I send all the G-Code as String...

Private Sub Button7_Click(sender As Object, e As EventArgs) Handles Button7.Click
Dim Senden As String = RichTextBox1.Text
SerialPort1.Write(Senden & vbCrLf) 'Zeichensatz plus nachfolgendes CrLf zur Datenübernahme
This could be the problem...
Regards
Kai

#

I ve solve the problem with the communication several weeks ago.
The App I have built works well with Tiny...

Is it possible to work with Tiny and G68 command?
Regards
Kai

This topic is from the original forum (April 2017). Your reply starts a new discussion linked to it.

Reply

Different problem? Ask a new question

Back to TinyG Support or latest activity.