Skip to content

MSR206 raw write #5

@GoogleCodeExporter

Description

@GoogleCodeExporter

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions