I'm having some issues sending G-code with ChiliPeppr and TinyG2 on an Arduino Due.

I’m having some issues sending G-code with ChiliPeppr and TinyG2 on an Arduino Due.
I’m using Chrome on Windows 10, Json Server 1.94_windows_386.
These are my systems parameters:

[fb] firmware build 100.26
[fbs] firmware build “100.26-4-g6519-dirty”
[fbc] firmware config “settings_burkp.h”
[fv] firmware version 0.99
[hp] hardware platform 3.00
[hv] hardware version 0.00
[id] g2core ID 0084-9429-29c6-8ce
[jt] junction integrgation time 0.75
[ct] chordal tolerance 0.0100 mm
[sl] soft limit enable 0 [0=disable,1=enable]
[lim] limit switch enable 0 [0=disable,1=enable]
[saf] safety interlock enable 1 [0=disable,1=enable]
[m48e] overrides enabled 1 [0=disable,1=enable]
[mfoe] manual feed override enab 0 [0=disable,1=enable]
[mfo] manual feedrate override 1.000 [0.05 < mfo < 2.00]
[mtoe] manual traverse over enab 0 [0=disable,1=enable]
[mto] manual traverse override 1.000 [0.05 < mto < 1.00]

I am able to connect to the arduino board without issues.
But initially I was unable to send single commands by the serial console. Then I switched to “Send No Init Cmds” mode and now I am able to send single commands like “g0 x100” an the motor will turn.

But when I try to run the sample g-code the motor stopps after a couple of lines (see screenshot below). The buffer counter will go up and the checkmarks in the serial console reamain yellow.

Can someone help me?

Thank you!
Patrick

Yeah, you’re not in JSON mode with your TinyG. You’re in text mode which means ChiliPeppr doesn’t know the state of your TinyG. The TinyG G2 firmware is supposed to default to JSON mode, not text mode. So any idea why it would be in text mode? You can force it to JSON mode by manually typing in a command to your serial console, or adding a startup config script in cog wheel icon in serial port list.

@jlauer Switching to JSON mode solved the problem! I didn’t know it had to be on JSON mode. I did set it to Text mode because it’s more convenient to read.
Just got a big step further in my CNC project!
Thanks a lot!

@Patrick_Burkli You could try setting $ej=2, Auto Mode. If you send (from CLI) a text command, it should respond in text.
SPJS works hard to keep tinyG/G2core in JSON mode, sending a $ej=1 frequently, so you may not see the desired effect.
Chilipeppr and SPJS were built to match up with tinyG, where Auto mode was always on. So the G2core version of Auto mode will likely not produce text reliably.