Ezirel / libmsr

Automatically exported from code.google.com/p/libmsr
Other
1 stars 0 forks source link

MSR206 raw write #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

I have a problem writing raw data to my cards. I get wring data on the card. 
The written data it's not random, it's deterministic, so I thought about an 
encoding error or so.

I used a Windows program which came with the writer which allowed me to write 
the card successfully. So the problem had to be with the library. I sniffed the 
communications using wireshark-usb and I saw that the write command triggered 
by the Windows software was sending different data but in the end, after a 
write, I could read my data perfectly.

So the conclusion is: in order to write the cards correctly I have to send the 
data reversing the bits in each byte. I don't know if that's a problem, an 
issue or a feature, but the fact it's that libmsr won't write my cards.

I've patched it so the write operation takes care to reverse the bitorder.

Is anyone interested in my patch? I can upload it if you want.

Thank you for the source BTW!

Original issue reported on code.google.com by da...@davidgf.es on 15 Feb 2012 at 10:29

GoogleCodeExporter commented 9 years ago
I've got the same issue, although I've got an MSR605 (but it seems almost 
identical).
If you could attach a patch, that'd be awesome!

Cheers.

Original comment by aquab...@gmail.com on 30 Sep 2012 at 8:50

GoogleCodeExporter commented 9 years ago
My pleasure!
Here it goes the diff. It would be nice that some mantainer commented on it.

Original comment by da...@davidgf.es on 30 Sep 2012 at 12:19

Attachments: