So, I built a 3d printer from a kit. The preferred software to inderface with the printer is in python. Unfortunately, it's in python 2, apple installs python 3, and attempting to make this software go involved a brief and swiftly abandoned descent into python library hell.
So, I tried writing something in java using usb4java. But I soon realised that this going to get complicated.
Got online, found out about the unix 'screen' command. But no matter what baud rate I specified, I only ever got garbage, and there were these weird 'cant get PTY' messages.
Then I realised: the arduino IDE already has a terminal that talks to the arduino. Can I send gcode with that? And yep - works beautifully. I connect at 250000, send M119, and the printer tells me about its endstops.
But this isn't a solution for sending a file. But, I could write something that uses the stuff that the IDE uses, which I know works.
So: what's a solution for this? Is there some coms software that will run on OSX and on Raspberry Pi, that will talk to a USB device at 250000, that will let you type interactively and will permit you to transmit gcode? That isn't a python app and doesnt involve a load of setup and install?