Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does the Silhouette Cameo 4 Plus works with this script? #21

Open
Counterfeiter opened this issue Jul 5, 2020 · 23 comments
Open

Does the Silhouette Cameo 4 Plus works with this script? #21

Counterfeiter opened this issue Jul 5, 2020 · 23 comments

Comments

@Counterfeiter
Copy link

Has anyone tested this successful with this plotter?

What are the necessary steps to debug this?

@SpareVolts
Copy link

I recently got a Cameo 4, but I haven't been able to get it to show up and a network shared printer in windows 10, so I haven't been able to send the output to it from gerber2graphtec.

Anyone know how to do that? I can only get the Cameo to show up under "USB Printing Support"

@mikhailmihalkov
Copy link

Silhouette Portrait 3 not working (

@pmonta
Copy link
Owner

pmonta commented Feb 21, 2022

For the Cameo 4 and the Portrait 3, can anyone capture the traffic sent to the device using the proprietary tools (with simple artwork such as a single rectangle)? If the command set is similar to prior devices, I can make what small changes might be required. If the API has totally changed, then things are less certain unless the API is reverse-engineered or otherwise becomes known.

@pmonta
Copy link
Owner

pmonta commented Feb 21, 2022

Other forks of this software may have made progress here as well

@mikhailmihalkov
Copy link

Thank you!!! I tried to intercept the stream in win10.. Tell me the name of the program, how can you intercept then win\linux?

@mikhailmihalkov
Copy link

This is what sends Portrait 3 when using silhouette studio

@mikhailmihalkov
Copy link

mikhailmihalkov commented Feb 21, 2022

With this utility, the plotter is determined by a jerk of the head and the data is transmitted by the LED flashing but it is in place.
pmonta tomorrow I will try to disassemble and connect usb uart + PuTTY

@mikhailmihalkov
Copy link

log 1.txt

@mikhailmihalkov
Copy link

log 2 Portrait 3.txt

@mikhailmihalkov
Copy link

pmonta log 1 and log 2 is a square cutting from Silhouette Studio Portrait 3

@mikhailmihalkov
Copy link

https://github.com/mossblaser/py_silhouette/tree/master/test I checked with this library portrait 3 and it works passes the test successfully

@mikhailmihalkov
Copy link

Result dump - wireshark usb dump
usb_dump_Silhouette Portrait3.zip

@pmonta
Copy link
Owner

pmonta commented Feb 22, 2022

Good to know that the Portrait 3 can be driven by py_silhouette and that its command set looks very similar to prior devices. Let me see if it's easy to extract any Portrait 3-specific information from py_silhouette (or you can do so if you like---patches welcome). That library might be a good basis for the entire back end of the Gerber tool if it tracks the newer hardware.

I also found some recent information on the Silhouette command set here:

https://github.com/fablabnbg/inkscape-silhouette/blob/master/Commands.md

It includes some discussion of the Cameo 4 Pro at the end.

@mikhailmihalkov
Copy link

Unfortunately I'm not a programmer and I really hope for your help... Because the plotter got up

@mikhailmihalkov
Copy link

How the Silhouette Portrait3 plotter test was performed
Clone repo https://github.com/mossblaser/py_silhouette.git:
~/git_repos/clone/py_silhouette
Copy repo:
cp -r /git_repos/clone/py_silhouette /tmp/test/

in py_silhouette/device.py added lines:
--- ~/git_repos/clone/py_silhouette/py_silhouette/device.py
+++ ~/tmp/test/py_silhouette/py_silhouette/device.py
@@ -185,6 +185,17 @@
"Silhouette Portrait2",
usb_vendor_id=0x0B4D,
usb_product_id=0x1132,

  • area_width_min=inch2mm(3.0),
  • area_width_max=inch2mm(8.0),
  • area_height_min=inch2mm(3.0),
  • area_height_max=inch2mm(40.0),
  • tool_depth_min=0,
  • tool_depth_max=10,
  • ),
  • DeviceParameters(
  • "Silhouette Portrait3",
  • usb_vendor_id=0x0B4D,
  • usb_product_id=0x113A,
    area_width_min=inch2mm(3.0),
    area_width_max=inch2mm(8.0),
    area_height_min=inch2mm(3.0),

Running the test:
Important! Print the test page /git_repos/clone/py_silhouette/test/test_sheet.pdf or /git_repos/clone/py_silhouette/test/test_sheet.svg.
Install a test page in the plotter.

  1. cd ${HOME}/tmp/test/py_silhouette
  2. export PYTHONPATH=${PYTHONPATH}:${HOME}/tmp/test/py_silhouette
  3. in the terminal, run:
    python3 test/test_sheet.py
    Follow the instructions.

@ilya301444
Copy link

ilya301444 commented Apr 26, 2022

Good to know that the Portrait 3 can be driven by py_silhouette and that its command set looks very similar to prior devices. Let me see if it's easy to extract any Portrait 3-specific information from py_silhouette (or you can do so if you like---patches welcome). That library might be a good basis for the entire back end of the Gerber tool if it tracks the newer hardware.

I also found some recent information on the Silhouette command set here:

https://github.com/fablabnbg/inkscape-silhouette/blob/master/Commands.md

It includes some discussion of the Cameo 4 Pro at the end.

Do you have a result.txt file for Portret 3 that the plotter cuts with? With my file it doesn't print

result.txt

.

@mikhailmihalkov
Copy link

pmonta will be able to help with the launch of Portrait 3?

@mikhailmihalkov
Copy link

Managed to launch portrait 3... The code itself did not change the comments on the lines in the files ahead of the printer and he began to cut!
SMTCut-master portrait 3.zip

mikhailmihalkov referenced this issue in Jeinzi/SMTCut Sep 9, 2022
See f9289c4#commitcomment-83310649
for mikhails comment, the source code is attached to the next comment.
@mikhailmihalkov
Copy link

pmonta Tell me where can there be an error in the code? The problem is that no matter how many degrees I turn gerber file in gerbv (180/90/270) Portrait 3 stubbornly cuts from 90 degrees angles relative to the fiducial. Where in the code is this parameter?
If you look at the resulting pdf, there it flips in the desired direction but the plotter cuts with a clockwise rotation angle of 90 degrees

@hraftery
Copy link

Excuse the Portrait 3 interruption, but did anyone get any insight into the Cameo 4 that kicked off this issue? My Cameo 4 seems mighty confused by the output of file2graphtec, basically jerking to life but making no cuts, regardless of the input file. Different protocol again, or slight variation?

@mikhailmihalkov
Copy link

mikhailmihalkov commented Sep 30, 2022

As far as I understand the common management language remained the same, but new commands were added and initialization was removed at the level of the plotter firmware itself. Have you tried to run my script from portrait 3? https://github.com/fablabnbg/inkscape-silhouette/blob/main/Commands.md

@mikhailmihalkov
Copy link

The main problem is to get a library of commands from the plotter manufacturer

@hraftery
Copy link

Thanks, I will give it a go. Yes, a lot of arduous reverse engineering effort if we can’t get an library. This is the reason I bought a Cameo, so could be a marketing opportunity, but not sure they’re interested in extending their use cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants