Version 1.93 is out.

Version 1.93 is out. It contains the new Cayenn commands and fixes some bugs from 1.92. https://github.com/chilipeppr/serial-port-json-server/releases

I still don’t have a way to compile Mac binaries if anybody might be able to compile for me so I can add the binary.

Hey @jlauer - i’ve uploaded a mac binary here. https://dl.dropboxusercontent.com/u/194358/serial-port-json-server

i will take a look at the source code later as we also need a route to push things into grbl at the front of the queue. or perhaps you know if this is a quick fix?

@Justin_Adie you rock. Just added your binary to the releases page on Github. I added the tools folder as well to program your avr and sam boards.

As for the grbl buffer, take a look at line 292 in bufferflow_grbl.go and add to the regexp other commands that should skip buffer and move to front of line.

func (b BufferflowGrbl) SeeIfSpecificCommandsShouldSkipBuffer(cmd string) bool {
// remove comments
//cmd = regexp.MustCompile("\(.
?\)").ReplaceAllString(cmd, “”)
//cmd = regexp.MustCompile(";.*").ReplaceAllString(cmd, “”)
if match, _ := regexp.MatchString("[!~\?]|(\u0018)", cmd); match {
log.Printf(“Found cmd that should skip buffer. cmd:%v\n”, cmd)
return true
}
return false
}

perfetto. grazi.

I change the match string, build and … it works!! :smiley:

great @Luca_Nervetti

are you going to do a pull request? if so, when done I can regenerate a binary for @jlauer

can we add this to the new version?

Yeah, let’s go to version 1.94 then with these changes once you guys are happy. Get everything in there you want.

Can you change that max buffer size to 126 to be safe, maybe even 125 in cash it’s a double byte and/or a newline sneaks in the command bypassing the buffer. There needs to be an extra byte reserved for these commands that skip the queue so you never drop a character or byte.

@Luca_Nervetti do we need to pick up the new $J= jog commands in the code? it’s not really a ‘real-time’ command so perhaps not.

Ok John, should I do a Pull Request? Justin jog commands are not like real-time command as you said, so its ok like that.

Yes, do pull request.

done! thank you

I can not wait to use this!!