bvanheu / stratatools

Stratasys EEPROM tool
BSD 3-Clause "New" or "Revised" License
88 stars 40 forks source link

BP_Read.Py Windows Error #8

Closed bmalcheski closed 9 years ago

bmalcheski commented 9 years ago

After installing Python 2.7.8, pycrypto, and pyserial on my Windows installation the read script will find my eeproms and report their 8 bit ID but after that I get the following error:

C:\Users\Ben\Desktop\stratasys-master\helper>python bp_read.py COM3 eepromRead Device found: 0x23 0x6E 0xBC 0x60 0x01 0x00 0x00 0x2D Reading... Done! Traceback (most recent call last): File "bp_read.py", line 147, in f.write(hex2bin(memory)) File "bp_read.py", line 40, in hex2bin return hexadecimal.replace("0x", "").replace(" ", "").decode("hex") AttributeError: 'NoneType' object has no attribute 'replace'

Is there something I'm doing wrong? If I'm not, is there any chance at fixing it?

bvanheu commented 9 years ago

Hey!

You're not doing anything wrong, i haven't tested the script on Windows. It looks like "memory" variable is still None, so the reading procedure is not operating correctly.

You could try to dump the EEPROM by hand using the buspirate and a terminal. You might have more insight of what's happening / the problem.

The following commands should do it: Set the BP in 1-wire mode:

m 2

cycle one-wire power:

w W

Enable pull-up:

P

Scan for devices on the bus:

(0xF0)

Read 512 bytes:

r:512

bmalcheski commented 9 years ago

Thanks for the reply. I used to do it manually but it was just a re-learning process every time I did it as I don't use this that frequently. It's probably less hassle for me to do it on a Linux install than it is to do the BP manually. I have a working system on my laptop, was just hoping I could use it on my primary Windows machine was all.

Thanks!

On Sun, Nov 9, 2014 at 7:58 PM, Benjamin Vanheuverzwijn < notifications@github.com> wrote:

Hey!

You're not doing anything wrong, i haven't tested the script on Windows. It looks like "memory" variable is still None, so the reading procedure is not operating correctly.

You could try to dump the EEPROM by hand using the buspirate and a terminal. You might have more insight of what's happening / the problem.

The following commands should do it: Set the BP in 1-wire mode:

m 2

cycle one-wire power:

w W

Enable pull-up:

P

Scan for devices on the bus:

(0xF0)

Read 512 bytes:

r:512

— Reply to this email directly or view it on GitHub https://github.com/bvanheu/stratasys/issues/8#issuecomment-62331748.