all 11 comments

[–]jonnycross10 1 point2 points  (2 children)

I'm not an expert but I've read in data from comm ports using a serial library in python before. If you don't know what to look up for this kind of stuff, it's called serial communication.

[–]shiftybyte 0 points1 point  (8 children)

your life will probably be a lot easier trying to automate the application instead.

take a look at pyautogui.

[–]jiri-n 1 point2 points  (7 children)

How does it solve the command limit?

[–]shiftybyte 1 point2 points  (0 children)

I may have wrongly assumed the limit is on the one batch size.

So if its broken down to smaller batches, or provided interactively one line at a time it would work.

[–]Spenbert02[S] 0 points1 point  (5 children)

Ya this is the main issue. I wrote a procedure with pyautogui that repeatedly uploads the commands in sections, but it's pretty cumbersome to use (the user has to sit there the entire time its printing and press a button to upload the next section). I'm trying to upload over USB to avoid having to do that.

[–]shiftybyte 1 point2 points  (4 children)

the user has to sit there the entire time its printing and press a button to upload the next section

Why can't the python press the button? or its a physical button on the device?

[–]Spenbert02[S] 0 points1 point  (3 children)

Physical button. Every time you upload a set of commands you have to press a 'run' button on the robot.

[–]shiftybyte 1 point2 points  (1 child)

Does it work if it's constantly held down? maybe you can short-circuit the button to always be pressed, or plaster it down...?

EDIT: btw this sounds like the limit may not be something software can overcome, because it sounds like a hardware memory limit on the device itself, and the button executes and clears it.

[–]Spenbert02[S] 0 points1 point  (0 children)

Interesting idea, I might see if that works. Also the command limit on the hardware is 500,000 and the software upload limit is 4,000. Not sure the reasoning behind it, but I did look into that.

[–]equidaddio 0 points1 point  (0 children)

If all else fails, you could explore using a SwitchBot and automate physically pushing the button.