mossblaser / py_silhouette

A Cross-Platform, Open Silhouette Portrait Cutter/Plotter Driver
http://jhnet.co.uk/projects/plotter
28 stars 5 forks source link

Silhouette Cameo 4: use 2nd tool #7

Open arthursw opened 1 month ago

arthursw commented 1 month ago

Thanks again for this great library : )

I would like to use the 2nd tool of the Cameo 4 pro ; is it possible? Or should we reverse engineer it?

mossblaser commented 1 month ago

That sounds like a cool thing to do! Reverse engineering will be needed though! Let me know if you're able to figure out the commands and I'll try and figure out how to integrate it!

On Sat, 10 Aug 2024, at 3:15 PM, Arthur Masson wrote:

Thanks again for this great library : )

I would like to use the 2nd tool of the Cameo 4 pro ; is it possible? Or should we reverse engineer it?

— Reply to this email directly, view it on GitHub https://github.com/mossblaser/py_silhouette/issues/7, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABPH2RJHFLJNLLQISZHQ7TZQYN7RAVCNFSM6AAAAABMJ32VSOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ2TSMJRGA3DGMA. You are receiving this because you are subscribed to this thread.Message ID: @.***>

arthursw commented 1 month ago

No I don't know how to reverse engineer. I guess I need to monitor USB traffic, and I guess I need special hardware to do so ; or could it be done by software?

mossblaser commented 1 month ago

I've used wireshark's USB monitoring to do it in the past. (This was my first reverse engineering project too, and it's fairly approachable.) Take a look at the existing code for some discussion of what many of the commands do as a starter. From there it's a case of plotting different things with different settings and seeing what happens! I would bet there is just a very tiny difference in commands, perhaps an extra one to switch blade or something like that.

If you can upload any captures you make (along with notes about what the device was doing when you captured it) it would be great context for others later too!

On Sat, 10 Aug 2024, at 5:38 PM, Arthur Masson wrote:

No I don't know how to reverse engineer. I guess I need to monitor USB traffic, and I guess I need special hardware to do so ; or could it be done by software?

— Reply to this email directly, view it on GitHub https://github.com/mossblaser/py_silhouette/issues/7#issuecomment-2282204057, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABPH2R27KJDBN2NXSTYPM3ZQY6XVAVCNFSM6AAAAABMJ32VSOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOBSGIYDIMBVG4. You are receiving this because you commented.Message ID: @.***>

arthursw commented 1 month ago

Great! I just realized my plotter is broken (circles are plotted as ellipses, maybe because the drive wheel are loose ; have you every have such problem?) but it makes me curious ; I might try it. Also because I think the force is always at maximum on my machine (no matter the option I give), which is a problem to plot my drawings.

arthursw commented 1 month ago

(Ok, I had this problem, a screw was not tightened. But this is not the end, my circles are still not perfect.)

mossblaser commented 1 month ago

Sad times! Luckily my old 12 year old Portrait is staggeringly still as good as new! Glad the fix helped! hope you get to the bottom of the circles!

arthursw commented 1 month ago

Thanks :)

kritzikratzi commented 4 weeks ago

inkscape-silhouette has some explanations: https://github.com/fablabnbg/inkscape-silhouette/blob/main/Commands.md

overal i think silhouette uses the DMPL command set.

mossblaser commented 4 weeks ago

From those notes, the most promising lead I can see from a quick scan is:

Jn,(m)                               New Pen                (G)  n is labeled as running from 1 to 8, and is
                                                            presumably the pen/tool number; not clear what m is

Maybe keep an eye out for that in your captures!

arthursw commented 3 weeks ago

Thanks! I will try to find time for this.