Log in

View Full Version : Haspid change


yopyop
March 11th, 2009, 09:06
Hello!

I own a hasp4 M1 dongle.
Last week, i tried to modify the haspid
Using the very good 'undocumented hasp by bajunny', i wrote a C program that allow me to write the location 0 and 1
This locations contains a copy of the haspid

After a seccessfull value change with the C program, when i use haspedit to read the haspid, it did not change

Using, my C program, i can read the new value on the location 0 and 1.

Does anybody have any clue, suggestions?

Is there another location where the haspid is stored?

personmans
March 12th, 2009, 11:13
So, try reading another known value (like location 20), then read it with haspedit. Make sure it is reading properly. (They should give the same value)
If this fails, you are not properly accessing the HASP dongle.

Next, if that works, write down the value on paper (notepad). Then try writing a value to 20. Then read in haspedit, if it writes, then your problem is with writing to the 0 and 1 locations, if it fails, then your problem is your writing to the dongle.

Make sure you are not using an emulator, as they will use persistent memory and not let you change the value.

Lastly, you could post your code and I can take a look at it later.

yopyop
March 13th, 2009, 03:44
I can write a value to location 20 without any problem, and i can read it back using haspedit without any problem.
I think, my writting subroutine is working correctly.

I also can write a value to location 0 and 1 and read it back correctly with my soft.

I think my reading subrountine is ok because first time i read this location i read the haspid value.

After writing this location i read the value i wrote.

I was wondering if these locations were not only a COPY of the haspid that may be progrmmed in the ASIC at the factory stage?

personmans
March 17th, 2009, 13:43
bajunny seemed to be pretty confident that you could change it using only the write command.

Anyhow, are you erasing before you write?
I don't know what else it could be since your code seems to work. Are you using/have you compared with bajunny's code?

It *is* possible that they are a copy of the HASPID, the real question is what does the program see when you are using that dongle? Does it see the value you wrote or the value that haspedit gives you? (Debugging required)

yopyop
March 20th, 2009, 05:04
I tried both : erasing before writing, and writing directly but same results

bajunny in his study used a Memo-hasp i think, i am using a Hasp4 maybe there is a difference in the asic, that now store the haspid?

Unfortunatly, the software see the real haspid, and not the one that i wrote.

If i get the chance to have access to a memo hasp, i will try my soft on it to see if the haspid change.