Hi All -- Firstly let me say thank you to everyone involved with ChiliPeppr..

Hi All –

Firstly let me say thank you to everyone involved with ChiliPeppr… I bought a Shapeoko 2 several years ago, but due to life getting in the way, I’m just now getting back in to it, and was super excited to find this… I (in theory) no longer need to drag my laptop into the garage to carve!

A little background I guess… as I mentioned I have a ShapeOko 2 w/ a UNO + gShield v5b combo… when I first found ChiliPeppr, I threw SPJS on a Raspberry Pi + Alamode hat (Arduino) + the gShield.

But, I decided to try something maybe a little more crazy… I’m interested in also adding homing/limit switches so I upgraded my UNO to a DUE and threw on the master branch of g2core. The crazy part though is that I also tried to replace my Raspberry Pi with one of my first gen Onion Omega’s (https://onion.io/).

So, I set out to try to get spjs to compile for mips32 (linux) and succeeded. However, go for mips32 doesn’t define Ispeed and oSpeed in the Termios struct. (https://github.com/golang/go/blob/master/src/syscall/ztypes_linux_mips.go)

I really didn’t expect it to work, but I modified the go source and added them and gave it a shot… To my surprise, both compiled with no addl effort! So then I copied the execs (spjs + bossac + avrdude) over and fired up the serialport workspace and again, it works perfectly! If I browse over to the tinyg workspace, it also had no problem…

Unfortunately though, If I close my browser and go straight to the tinyg workspace, spjs crashes:

2017/02/23 06:48:08 feedrateoverride.go:48: The port to write to is:/dev/ttyACM0—
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x38 pc=0x36444c]

goroutine 16 [running]:
main.spFeedRateOverride(0x8974980, 0x12)
/home/sferris/go/src/http://github.com/johnlauer/serial-port-json-server/feedrateoverride.go:54 +0x314
created by main.checkCmd
/home/sferris/go/src/http://github.com/johnlauer/serial-port-json-server/hub.go:218 +0xbfc

Full log here: http://pastebin.com/s0Xwe3cb

I presume my “hack” has something to do with it… but as I can navigate from serialport to tinyg workspaces without it crashing, maybe there’s something else at play? If not, I’ll reach out to the go devs to see why those are missing on mips.

Again… super awesome software… if need be, I’ll go back to a raspberry pi, but this just seemed like a really good combo if it’d work! :smiley:

If you’re using the http://github.com/johnlauer/serial-port-json-server version that is really old. You should be using the http://github.com/chilipeppr/serial-port-json-server version.

Indeed… I think I am… I’ll give it a shot! Thanks John!

That was it… I’m almost sure I was navigating the right repo… I clearly wrote down the wrong instructions for compiling though. I feel like a dummy for not spotting that myself. Thanks again!