Our Sites:  RFQwork  :: Google+ :: Our Facebook :: Our YouTube

Page 1 of 15 12311 ... LastLast
Results 1 to 10 of 146

Thread: Stratasys eeprom programmer

              
   
  1. #1
    Hyperaddict
    Join Date
    Dec 2013
    Location
    Burnley, UK
    Posts
    314
    Downloads
    0
    Uploads
    0

    Stratasys eeprom programmer

    I made myself this to take the drudge out of rewriting the cartridge.

    Very easy with a Raspi.


  2. #2
    Newcomer
    Join Date
    Apr 2014
    Posts
    7
    Downloads
    0
    Uploads
    0
    What type of cartridges are you programming there? Looks like a similar idea to using pogo pins. Can you post more details?? Github sources maybe? Such as eagle or gerber files, BOM, software & build instructions?

  3. #3
    Hyperaddict
    Join Date
    Dec 2013
    Location
    Burnley, UK
    Posts
    314
    Downloads
    0
    Uploads
    0
    768 BST

    Get a Raspi and put Rasbian onit.

    Edit /etc/modules and add:

    w1-gpio
    w1-ds2433

    to load the relevant modules on boot.

    Connect your eeprom between ground and GPIO4 with a 4.7k pullup to 5 volt.

    If you did that right then the eprom ID and files are in /sys/devices/w1_bus_master1/"eprom serial number"

    Get the EEprom data file, use stratasys-ng to reset it to whatever you want and copy it back to the directory from whence it came, job done. I don't use stratasys-ng right now but it is a better way to do it than my way. I couldn't get stratasys-ng to work but have spoken to the guy that wrote it and he has found a bug and is fixing it this weekend.

    If you want LEDs and stuff then you need to stick it all in a bash script and drive the IO lines to light the LEDs as required.

    This is my script:

    #!/bin/bash

    main_dir="/sys/devices/w1_bus_master1"

    echo "0" > /sys/class/gpio/gpio17/value #LED1 on

    while ! ls /sys/devices/w1_bus_master1/23* &> /dev/null
    do
    # files do not exist
    sleep 1
    true
    done
    # Files exists, change lit LED
    echo "1" > /sys/class/gpio/gpio17/value #LED1 off
    echo "0" > /sys/class/gpio/gpio27/value #LED2 on
    sleep 2 # Delay to make sure it is connected OK
    # Get files
    cart_id=$(ls /sys/devices/w1_bus_master1/ |grep 23)
    cp ${main_dir}"/"$cart_id/name ./
    cp ${main_dir}"/"$cart_id/eeprom ./
    cp ${main_dir}"/"$cart_id/id ./

    # Have all the info needed now so make the string.
    # Decrypt files
    ./makeinput # my C programme to make the string (strtstring) for decrypting the EEPROM file
    inputstr_de=$(cat ./strtstring)
    ./stratasys $inputstr_de # Decrypt EEPROM file

    # Read decrypted file
    ./parse_binary.py eeprom2.bin > eedat
    # Create strings for new binary
    ./readeedat

    outputstr=$(cat ./outstring) # Created with readeedat
    outstr1="2014-01-01 01:02:03" # Manufacturing date
    outstr2="2018-01-01 01:02:03" # Use by date
    outstr3=$(cat ./out_k) # Created with readeedat
    # Create new unencrypted file
    ./create_binary.py $outputstr "$outstr1" -u "$outstr2" $outstr3

    # Encrypt new file
    #$ ./bin/stratasys -e -m 123456789abcdef0 -u 123456789abcdef0 -i ./canister.bin -o ./crypted_canister.bin

    # Change lit LED
    echo "1" > /sys/class/gpio/gpio27/value #LED2 off
    echo "0" > /sys/class/gpio/gpio22/value #LED3 on
    I think the next step is to rewrite it all in C which I am not very good at.

    STL file for the holder should you want it.
    Attached Files Attached Files
    Last edited by Mjolinor; 04-05-2014 at 04:39 PM.

  4. #4
    Newcomer
    Join Date
    Apr 2014
    Posts
    7
    Downloads
    0
    Uploads
    0
    Thanks. Guess you are a shell script kind of guy ha? I would have figured that you used python.

  5. #5
    Hyperaddict
    Join Date
    Dec 2013
    Location
    Burnley, UK
    Posts
    314
    Downloads
    0
    Uploads
    0
    Don't do python, don't do bash, that script took me several days.

    Assembler and hardware is very firmly where I sit.

  6. #6
    Newcomer
    Join Date
    Apr 2014
    Posts
    11
    Downloads
    0
    Uploads
    0
    For those of us without the makeinput and readeedat C scripts:
    How are you structuring your data for the ./stratascript -d -m command?
    Is it just a straight hex dump, with the 8-byte serial number as the first line, followed by the 512 bytes on the ROM?

  7. #7
    Hyperaddict
    Join Date
    Dec 2013
    Location
    Burnley, UK
    Posts
    314
    Downloads
    0
    Uploads
    0
    Files, sorry about that. These may not be actually concurrent with each other so you will need to check it and you also need something to configure the LEDs that I can't post right now as the Pi isn't here and I don't have it on this PC.

    Next time I power it up I will FTP the whole root folder somewhere and post a link.

    from_PI.zip

    The PI reads binary data and it stays that way throughout the process. The encryption part just takes the first 114? bytes then the rest of the eeprom is copied directly to the new file from the old file but it could be left zeroed if you prefer, it isn't used so it doesn't matter.

    How come I can attach a zip and not a tar.gz?

  8. #8
    Newcomer
    Join Date
    Apr 2014
    Posts
    11
    Downloads
    0
    Uploads
    0
    Wow, thank for the prompt reply!
    I have to admit, I wasn't sure what I was missing there for a while. I had a whole host of other issues to work on before I got to the point where I realized I was missing a piece or two in this puzzle. ("Is it me, or....?")

    Can I ask what is the logic behind what the scripts do to the hex data from the EEPROM?

    What were you referring to about there being a bug in the stratasys-cli.py script?
    Has that issue ever been resolved?

    If more of the inner workings of all of this were documented and explained a little bit more, I’m sure the community could make some significant headway on simplifying the process and getting it all worked out.

    I'm currently reading the EEPROM with an Arduino Mega 1280, and working on a Debian system.
    Getting close.

  9. #9
    Hyperaddict
    Join Date
    Dec 2013
    Location
    Burnley, UK
    Posts
    314
    Downloads
    0
    Uploads
    0
    The stratasys encryption and decryption problem has been solved last week. The guy has uploaded the new version to git.

    The scripts just automates the problem of writing the eeprom and lighting LEDs to show what it is doing. The command lines and process for using the python scripts is a bit complicated so I made it easier for me, it just increments the serial so the printer doesn't recognise the cartridge and sets it to 100%. This is what is needed most of the time. It also takes a backup of the original files.

    Admittedly there are times when you want to change a cartridge contents from support to soluble support or ABS or you want to use the last bits in a cartridge because the printer is totally over the top at knocking a few % off here and there and in that case you can't use the script, you have to do it manually.

    Here is the STL for the holder with it's base, I changed it a bit. The base will fit theone above if you already made one.

    eeprom.zip

  10. #10
    Newcomer
    Join Date
    Apr 2014
    Posts
    11
    Downloads
    0
    Uploads
    0
    Nice. I'm working on those C scripts right now. I compiled them with gcc to make the executables, and now I'm sorta puzzling over what they do, since there are no flags or arguments supplied. What files do they operate on, and what (sub) directories are they expected to be in?
    I'll check out git in a little while.

Page 1 of 15 12311 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 5 users browsing this thread. (0 members and 5 guests)

Similar Threads

  1. UAV Manufacturing with Stratasys 3D Printers
    By 3DPFadmin in forum Aerospace 3D Printing
    Replies: 1
    Last Post: 02-28-2017, 05:34 AM
  2. Stratasys Test Post
    By Marc in forum Test Forums
    Replies: 1
    Last Post: 03-12-2014, 01:52 PM
  3. News Stratasys to be Acquired?
    By 3DPFadmin in forum Manufacturer News & Announcements
    Replies: 0
    Last Post: 02-06-2014, 12:58 AM
  4. News Stratasys Japan Announces New CEO
    By 3DPFadmin in forum Manufacturer News & Announcements
    Replies: 0
    Last Post: 01-30-2014, 12:18 PM
  5. DISCUSSION Stratasys, sues Afinia
    By hobbit666 in forum Manufacturer News & Announcements
    Replies: 1
    Last Post: 01-01-2014, 04:43 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •