TinyG G2 build 100.15 (ArduinoDue + gShield) test :(:(:( Originally shared by Sebastian Szafran

TinyG G2 build 100.15 (ArduinoDue + gShield) test :(:(:frowning:

Originally shared by Sebastian Szafran

TinyG G2 (ArduinoDue + gShield) build 100.15 test:
I have compiled latest g2 edge firmware (cloned from github): make BOARD=gShield SETTINGS_FILE=settings_3040.h and after connecting to SPJS board is non-responsive. Chilipeppr shows TinyG G2 100.15 but nothing else works - see screenshot attached. There is one serial port listed (COM46) while the same board flashed with 87.01 firmware build have shown two COM ports here and is fully operational

The PC used to clone and compile FW is ubuntu 16.04 with all recent updates and necessary tools installed.
settings_3040.h file is a copy of settings_shapeoko2.h adapted to work with Chinese 3040 CNC machine: using 3 stepper motors, modified velocity and mm/rev settings.

Hmm, try to send $clr, maybe ur board is in alarm state.

Well, there are some commands in the planner and status shows ‘Ready’… The same board works fine with older firmware.

I planned to check autolevel feature, as it was working weird previously on Due G2 and has been announced as corrected not long ago.

Sure, plz connect ur serial port via putty and send this {“ej”:""}, after that check if the board in alarm state via $state. If u like we make a hangout and i can explain why is this happend. One of a version of g2 has this problem.

since 100.14 the default config only exposes 1 USB Port.
So this is intended.
See https://github.com/synthetos/g2/releases/tag/100.14

But unfortunately i also can not connect to Board through SPJS.
SPJS works, but not possible to connect to chilipeppr.

aha… i did connect to the serial console of the board with gtkterm on ubuntu.
Be sure to connect to /dev/ttyACM0 with baud 115200.

and issued a {“ej”:""} like Frank Hermann advised.

now i can connect to ArduinoDue with gShield on g2core 100.15

THX to all of you!

Thanks @Andre_S ​​, although it doesn’t work for me. I tried {“ej”:""} and board reacts to it as long as I type {“ej”:""} followed by a status command e.g. $ or $$, but every time I need to repeat {“ej”:""} before each command. Typing second command immediately after the first one (no {“ej”:""} between) freezes the board. Tried with putty and coolterm on Windows and gtkterm on Linux.

UPDATE
Investigating more I found that after connecting to terminal I can run any command from $h list ($sys, $1/2/3/4, $x/y/z/a/b/c, $m, $q, $o, $h) but not $$. Each time I type $$ I get partial output and board gets frozen till I press RESET push button on Due.

Are you using the latest edge or maybe other branch?

Here is an output from CoolTerm (echo on to see commands typed into the console):

{“r”:{“fv”:0.99,“fb”:100.15,“fbs”:“100.15-5-g295d”,“fbc”:“settings_default.h”,“hp”:3,“hv”:0,“id”:“0084-d639-29c6-8ce”,“msg”:“SYSTEM READY”},“f”:[1,0,1]}
$h

g2core CONFIGURATION Help

These commands are active for configuration:
$sys Show system (general) settings
$1 Show motor 1 settings (or whatever motor you want 1,2,3,4)
$x Show X axis settings (or whatever axis you want x,y,z,a,b,c)
$m Show all motor settings
$q Show all axis settings
$o Show all offset settings
$$ Show all settings
$h Show this help screen

Each $ command above also displays the token for each setting in [ ] brackets
To view settings enter a token:

$

For example $yfr to display the Y max feed rate

To update settings enter token equals value:

$=

For example $yfr=800 to set the Y max feed rate to 800 mm/minute
For configuration details see: https://github.com/synthetos/g2/wiki/g2-Configuration

Note: g2core generates automatic status reports by default
This can be disabled by entering $sv=0
See the wiki below for more details.

For detailed g2core info see: Home · synthetos/g2 Wiki · GitHub
For the latest firmware see: GitHub - synthetos/g2: g2core - The Next Generation
Please log any issues at Issues · synthetos/g2 · GitHub
Have fun
{“r”:{“h”:null},“f”:[1,0,3]}

$sys
{“r”:{“sys”:{“fb”:100.15,“fbs”:“100.15-5-g295d”,“fbc”:“settings_default.h”,“fv”:0.99,“hp”:3,“hv”:0,“id”:"0084-d639-29c6-

8ce",“jt”:0.75,“ct”:0.01,“sl”:0,“lim”:1,“saf”:1,“m48e”:1,“mfoe”:0,“mfo”:1,“mtoe”:0,“mto”:1,“mt”:2,“spep”:1,“spdp”:0,“spph”:1,“spdw”:1,“ssoe”:0,“sso”:1,“cofp”:1,“comp”:1,“coph”:1,“tv”:1,"e

j":1,“jv”:2,“qv”:0,“sv”:1,“si”:250,“gpl”:0,“gun”:1,“gco”:1,“gpa”:2,“gdi”:0}},“f”:[1,0,5]}

$1
{“r”:{“1”:{“ma”:0,“sa”:1.8,“tr”:1.25,“mi”:8,“su”:1280,“po”:0,“pm”:0,“pl”:0}},“f”:[1,0,3]}

$2
{“r”:{“2”:{“ma”:1,“sa”:1.8,“tr”:40,“mi”:8,“su”:40,“po”:0,“pm”:0,“pl”:0}},“f”:[1,0,3]}

$3
{“r”:{“3”:{“ma”:2,“sa”:1.8,“tr”:1.25,“mi”:8,“su”:1280,“po”:1,“pm”:0,“pl”:0}},“f”:[1,0,3]}

$4
{“r”:{“4”:{“ma”:3,“sa”:1.8,“tr”:360,“mi”:8,“su”:4.44444,“po”:0,“pm”:0,“pl”:0}},“f”:[1,0,3]}

$x
{“r”:{“x”:{“am”:0,“vm”:1000,“fr”:1000,“tn”:0,“tm”:0,“jm”:1000,“jh”:1000,“hi”:0,“hd”:0,“sv”:500,“lv”:100,“lb”:4,“zb”:2}},“f”:[1,0,3]}

$y
{“r”:{“y”:{“am”:0,“vm”:1000,“fr”:1000,“tn”:0,“tm”:0,“jm”:1000,“jh”:1000,“hi”:0,“hd”:0,“sv”:500,“lv”:100,“lb”:4,“zb”:2}},“f”:[1,0,3]}

$z
{“r”:{“z”:{“am”:0,“vm”:1000,“fr”:1000,“tn”:0,“tm”:0,“jm”:500,“jh”:500,“hi”:0,“hd”:0,“sv”:250,“lv”:25,“lb”:4,“zb”:2}},“f”:[1,0,3]}

$a
{“r”:{“a”:{“am”:0,“vm”:288000,“fr”:288000,“tn”:-1,“tm”:-1,“jm”:288000,“jh”:288000,“ra”:0.199,“hi”:0,“hd”:0,“sv”:144000,“lv”:28800,“lb”:5,“zb”:2}},“f”:[1,0,3]}

$b
{“r”:{“b”:{“am”:0,“vm”:288000,“fr”:288000,“tn”:-1,“tm”:-1,“jm”:288000,“jh”:288000,“ra”:0.199,“hi”:0,“hd”:0,“sv”:144000,“lv”:28800,“lb”:5,“zb”:2}},“f”:[1,0,3]}

$c
{“r”:{“c”:{“am”:0,“vm”:288000,“fr”:288000,“tn”:-1,“tm”:-1,“jm”:288000,“jh”:288000,“ra”:0.199,“hi”:0,“hd”:0,“sv”:144000,“lv”:28800,“lb”:5,“zb”:2}},“f”:[1,0,3]}

$m
{“r”:{“1”:{“ma”:0,“sa”:1.8,“tr”:1.25,“mi”:8,“su”:1280,“po”:0,“pm”:0,“pl”:0}},“f”:[1,0,3]}
{“r”:{“2”:{“ma”:1,“sa”:1.8,“tr”:40,“mi”:8,“su”:40,“po”:0,“pm”:0,“pl”:0}},“f”:[1,0,1]}
{“r”:{“3”:{“ma”:2,“sa”:1.8,“tr”:1.25,“mi”:8,“su”:1280,“po”:1,“pm”:0,“pl”:0}},“f”:[1,0,1]}
{“r”:{“4”:{“ma”:3,“sa”:1.8,“tr”:360,“mi”:8,“su”:4.44444,“po”:0,“pm”:0,“pl”:0}},“f”:[1,0,1]}

$q
{“r”:{“x”:{“am”:0,“vm”:1000,“fr”:1000,“tn”:0,“tm”:0,“jm”:1000,“jh”:1000,“hi”:0,“hd”:0,“sv”:500,“lv”:100,“lb”:4,“zb”:2}},“f”:[1,0,3]}
{“r”:{“y”:{“am”:0,“vm”:1000,“fr”:1000,“tn”:0,“tm”:0,“jm”:1000,“jh”:1000,“hi”:0,“hd”:0,“sv”:500,“lv”:100,“lb”:4,“zb”:2}},“f”:[1,0,1]}
{“r”:{“z”:{“am”:0,“vm”:1000,“fr”:1000,“tn”:0,“tm”:0,“jm”:500,“jh”:500,“hi”:0,“hd”:0,“sv”:250,“lv”:25,“lb”:4,“zb”:2}},“f”:[1,0,1]}
{“r”:{“a”:{“am”:0,“vm”:288000,“fr”:288000,“tn”:-1,“tm”:-1,“jm”:288000,“jh”:288000,“ra”:0.199,“hi”:0,“hd”:0,“sv”:144000,“lv”:28800,“lb”:5,“zb”:2}},“f”:[1,0,1]}
{“r”:{“b”:{“am”:0,“vm”:288000,“fr”:288000,“tn”:-1,“tm”:-1,“jm”:288000,“jh”:288000,“ra”:0.199,“hi”:0,“hd”:0,“sv”:144000,“lv”:28800,“lb”:5,“zb”:2}},“f”:[1,0,1]}
{“r”:{“c”:{“am”:0,“vm”:288000,“fr”:288000,“tn”:-1,“tm”:-1,“jm”:288000,“jh”:288000,“ra”:0.199,“hi”:0,“hd”:0,“sv”:144000,“lv”:28800,“lb”:5,“zb”:2}},“f”:[1,0,1]}

$o
{“r”:{“g54”:{“x”:0,“y”:0,“z”:0,“a”:0,“b”:0,“c”:0}},“f”:[1,0,3]}
{“r”:{“g55”:{“x”:0,“y”:0,“z”:0,“a”:0,“b”:0,“c”:0}},“f”:[1,0,1]}
{“r”:{“g56”:{“x”:0,“y”:0,“z”:0,“a”:0,“b”:0,“c”:0}},“f”:[1,0,1]}
{“r”:{“g57”:{“x”:0,“y”:0,“z”:0,“a”:0,“b”:0,“c”:0}},“f”:[1,0,1]}
{“r”:{“g58”:{“x”:0,“y”:0,“z”:0,“a”:0,“b”:0,“c”:0}},“f”:[1,0,1]}
{“r”:{“g59”:{“x”:0,“y”:0,“z”:0,“a”:0,“b”:0,“c”:0}},“f”:[1,0,1]}
{“r”:{“g92”:{“x”:0,“y”:0,“z”:0,“a”:0,“b”:0,“c”:0}},“f”:[1,0,1]}
{“r”:{“g28”:{“x”:0,“y”:0,“z”:0,“a”:0,“b”:0,“c”:0}},“f”:[1,0,1]}
{“r”:{“g30”:{“x”:0,“y”:0,“z”:0,“a”:0,“b”:0,“c”:0}},“f”:[1,0,1]}

$
{“r”:{“sys”:{“fb”:100.15,“fbs”:“100.15-5-g295d”,“fbc”:“settings_default.h”,“fv”:0.99,“hp”:3,“hv”:0,“id”:"0084-d639-29c6-

8ce",“jt”:0.75,“ct”:0.01,“sl”:0,“lim”:1,“saf”:1,“m48e”:1,“mfoe”:0,“mfo”:1,“mtoe”:0,“mto”:1,“mt”:2,“spep”:1,“spdp”:0,“spph”:1,“spdw”:1,“ssoe”:0,“sso”:1,“cofp”:1,“comp”:1,“coph”:1,“tv”:1,"e

j":1,“jv”:2,“qv”:0,“sv”:1,“si”:250,“gpl”:0,“gun”:1,“gco”:1,“gpa”:2,“gdi”:0}},“f”:[1,0,2]}

$h

g2core CONFIGURATION Help

These commands are active for configuration:
$sys Show system (general) settings
$1 Show motor 1 settings (or whatever motor you want 1,2,3,4)
$x Show X axis settings (or whatever axis you want x,y,z,a,b,c)
$m Show all motor settings
$q Show all axis settings
$o Show all offset settings
$$ Show all settings
$h Show this help screen

Each $ command above also displays the token for each setting in [ ] brackets
To view settings enter a token:

$

For example $yfr to display the Y max feed rate

To update settings enter token equals value:

$=

For example $yfr=800 to set the Y max feed rate to 800 mm/minute
For configuration details see: https://github.com/synthetos/g2/wiki/g2-Configuration

Note: g2core generates automatic status reports by default
This can be disabled by entering $sv=0
See the wiki below for more details.

For detailed g2core info see: Home · synthetos/g2 Wiki · GitHub
For the latest firmware see: GitHub - synthetos/g2: g2core - The Next Generation
Please log any issues at Issues · synthetos/g2 · GitHub
Have fun
{“r”:{“h”:null},“f”:[1,0,3]}

-----> I AM ABLE TO MODIFY VALUES:
$1tr=4
{“r”:{“tr”:4},“f”:[1,0,7]}

$2tr=4
{“r”:{“tr”:4},“f”:[1,0,7]}

$3tr=4
{“r”:{“tr”:4},“f”:[1,0,7]}

-----> HERE $m SHOWS NEW VALUES
$m
{“r”:{“1”:{“ma”:0,“sa”:1.8,“tr”:4,“mi”:8,“su”:400,“po”:0,“pm”:0,“pl”:0}},“f”:[1,0,3]}
{“r”:{“2”:{“ma”:1,“sa”:1.8,“tr”:4,“mi”:8,“su”:400,“po”:0,“pm”:0,“pl”:0}},“f”:[1,0,1]}
{“r”:{“3”:{“ma”:2,“sa”:1.8,“tr”:4,“mi”:8,“su”:400,“po”:1,“pm”:0,“pl”:0}},“f”:[1,0,1]}
{“r”:{“4”:{“ma”:3,“sa”:1.8,“tr”:360,“mi”:8,“su”:4.44444,“po”:0,“pm”:0,“pl”:0}},“f”:[1,0,1]}

$$
{“r”:{“sys”:{“fb”:100.15,“fbs”:“100.15-5-g295d”,“fbc”:“settings_default.h”,“fv”:0.99,“hp”:3,“hv”:0,“id”:"0084-d639-29c6-

8ce",“jt”:0.75,“ct”:0.01,“sl”:0,“lim”:1,“saf”:1,“m48e”:1,“mfoe”:0,“mfo”:1,“mtoe”:0,“mto”:1,“mt”:2,“spep”:1,“spdp”:0,“spph”:1,“spdw”:1,“ssoe”:0,“sso”:1,“cofp”:1,“comp”:1,“coph”:1,“tv”:1,"e

j":1,“jv”:2,“qv”:0,“sv”:1,“si”:250,“gpl”:0,“gun”:1,“gco”:1,“gpa”:2,“gdi”:0}},“f”:[1,0,3]}
{“r”:{“1”:{“ma”:0,“sa”:1.8,“tr”:4,“mi”:8,“su”:400,“po”:0,“pm”:0,“pl”:0}},“f”:[1,0,1]}
{“r”:{“2”:{“ma”:1,“sa”:1.8,“tr”:4,“mi”:8,“su”:400,“po”:0,“pm”:0,“pl”:0}},“f”:[1,0,1]}
{“r”:{“3”:{“ma”:2,“sa”:1.8,“tr”:4,“mi”:8,“su”:400,“po”:1,“pm”:0,“pl”:0}},“f”:[1,0,1]}
{“r”:{“4”:{“ma”:3,“sa”:1.8,“tr”:360,“mi”:8,“su”:4.44444,“po”:0,“pm”:0,“pl”:0}},“f”:[1,0,1]}
{“r”:{“x”:{“am”:0,“vm”:1000,“fr”:1000,“tn”:0,“tm”:0,“jm”:1000,“jh”:1000,“hi”:0,“hd”:0,“sv”:500,“lv”:100,“lb”:4,“zb”:2}},“f”:[1,0,1]}
{“r”:{“y”:{“am”:0,“vm”:1000,“fr”:1000,“tn”:0,“tm”:0,“jm”:1000,“jh”:1000,“hi”:0,“hd”:0,“sv”:500,“lv”:100,“lb”:4,“zb”:2}},“f”:[1,0,1]}
{“r”:{“z”:{“am”:0,“vm”:1000,“fr”:1000,“tn”:0,“tm”:0,“jm”:500,“jh”:500,“hi”:0,“hd”:0,“sv”:250,“lv”:25,“lb”:4,“zb”:2}},“f”:[1,0,1]}
{“r”:{“a”:{“am”:0,“vm”:288000,“fr”:288000,“tn”:-1,“tm”:-1,“jm”:288000,“jh”:288000,“ra”:0.199,“hi”:0,“hd”:0,“sv”:144000,“lv”:28800,“lb”:5,“zb”:2}},“f”:[1,0,1]}
{“r”:{“b”:{“am”:0,“vm”:288000,“fr”:288000,“tn”:-1,“tm”:-1,“jm”:288000,“jh”:288000,“ra”:0.199,“hi”:0,“hd”:0,“sv”:144000,“lv”:28800,“lb”:5,“zb”:2}},“f”:[1,0,1]}
{“r”:{“c”:{“am”:0,“vm”:288000,“fr”:288000,“tn”:-1,“tm”:-1,“jm”:288000,“jh”:288000,“ra”:0.199,“hi”:0,“hd”:0,“sv”:144000,“lv”:28800,“lb”:5,“zb”:2}},“f”:[1,0,1]}
{“r”:{“di1”:{“mo”:0,“ac”:0,“fn”:0}},“f”:[1,0,1]}
{“r”:{“di2”:{“mo”:0,“ac”:0,“fn”:0}},“f”:[1,0,1]}
{“r”:{“di3”:{“mo”:0,“ac”:0,“fn”:0}},“f”:[1,0,1]}
{“r”:{“di4”:{“mo”:0,“ac”:0,“fn”:0}},“f”:[1,0,1]}
{“r”:{“di5”:{“mo”:0,“ac”:0,“fn”:0}},“f”:[1,0,1]}
{“r”:{“di6”:{“mo”:0,“ac”:0,“fn”:0}},“f”:[1,0,1]}
{“r”:{“di7”:{“mo”:0,“ac”:0,“fn”:0}},“f”:[1,0,1]}
{“r”:{“di8”:{“mo”:0,“ac”:0,“fn”:0}},“f”:[1,0,1]}
{“r”:{“di9”:{“mo”:1,“ac”:0,“fn”:0}},“f”:[1,0,1]}
{“r”:{“do1”:{“mo”:1}},“f”:[1,0,1]}
{“r”:{“do2”:{“mo”:1}},“f”:[1,0,1]}
{“r”:{“do3”:{“mo”:1}},“f”:[1,0,1]}
{“r”:{“do4”:{“mo”:1}},“f”:[1,0,1]}
{“r”:{“do5”:{“mo”:1}},“f”:[1,0,1]}
{“r”:{“do6”:{“mo”:1}},“f”:[1,0,1]}
{“r”:{“do7”:{“mo”:1}},“f”:[1,0,1]}
{“r”:{“do8”:{“mo”:1}},“f”:[1,0,1]}
{“r”:{“do9”:{“mo”:1}},“f”:[1,0,1]}
{“r”:{“p1”:{“frq”:100,“csl”:7900,“csh”:12800,“cpl”:0.13,“cph”:0.17,“wsl”:0,“wsh”:0,“wpl”:0.1,“wph”:0.1,“pof”:0.1}},“f”:[1,0,1]}
{“r”:{“g54”:{“x”:0,“y”:0,“z”:0,“a”:0,“b”:0,“c”:0}},“f”:[1,0,1]}
{“r”:{“g55”:{“x”:0,“y”:0,“z”:0,“a”:0,“b”:0,“c”:0}},“f”:[1,0,1]}
{“r”:{“g56”:{“x”:0,“y”:0,“z”:0,“a”:0,“b”:0,“c”:0}},“f”:[1,0,1]}
{“r”:{“g57”:{“x”:0,“y”:0,“z”:0,“a”:0,“b”:0,“c”:0}},“f”:[1,0,1]}
{“r”:{“g58”:{“x”:0,“y”:0,“z”:0,“a”:0,“b”:0,“c”:0}},“f”:[1,0,1]}
{“r”:{“g59”:{“x”:0,“y”:0,“z”:0,“a”:0,“b”:0,“c”:0}},“f”:[1,0,1]}
{“r”:{“g92”:{“x”:0,“y”:0,“z”:0,“a”:0,“b”:0,“c”:0}},“f”:[1,0,1]}
{“r”:{“g28”:{“x”:0,“y”:0,“z”:0,“a”:0,“b”:0,“c”:0}},“f”:[1,0,1]}

-----> HERE BOARD GETS FROZEN AND NO MORE COMMUNICATION IS POSSIBLE UNTIL RESET

$h
$
-----> NO OUTPUT FROM TWO ABOVE COMMANDS

Yeah, you are right @sszafran ​​.
I also wasn’t able to get full communication running.

I Use latest Edge.

I found that sometimes CP sends commands to g2core but doesn’t get an answer, but in serial Client was a Response.

The $$ Status worked for me in serial console. Could you please check with putty or gtkterm or similar?

@Andre_S ​ In my case the outcome is the same, does not matter what terminal program I use. I tested newest edge firmware on 2 different Due boards.

I don’t use bossac for programming but Chilipeppr feature allowing board firmware update directly from the widget, which I found extremely friendly and handy and use for a long time -> thanks @jlauer ​.I don’t think that makes any changes to the whole situation, as board gets programed properly.

Not urgent question, but one day when you eventually have a little time, could you make a favour and do some testing by repeating my commands from a comment above with $$ as the last one and see if you get same or different results?
Maybe we can exchange firmware ‘bin’ files and test it?

Sure,
We can do.

For your information, i used bossac to Flash over program port

Hey @sszafran ,

if you have the same problem with chilipeppr and when connecting via a terminal client it seems not be be a chilipeppr related problem.
(looks like it now for me…)

So may i encourage you to file up an issue in the g2core github?
I will head over with you and help, but i am in a hurry to prepare for CCC Congress in Hamburg, Germany next week :wink:

I agree @Andre_S , this is not a Chilipeppr related problem. I opened new issue on G2 Wiki: https://github.com/synthetos/g2/issues/204

Enjoy Hamburg :slight_smile:

@sszafran did you get it working now, after the fix of aldenhart?

i pulled the 100.17 bleeding from github yesterday and compiled, but i couldn’t get control with chilipeppr?