Search code examples
c#cmemoryrfid

Source code to access LTO cartridge memory (C/C#)


I can read a LTO Tape without problem in C#.

There is also a Cartridge Memory (LTO-CM) in each cartridge. http://en.wikipedia.org/wiki/Linear_Tape-Open

How can I read/write some bytes in this chip in C#, or C?


Solution

  • There's this project in C: https://github.com/scangeo/lto-cm

    It is made to read and write the "text attribute" that is supposed to be used by applications or users. Most of the other fields are reserved for the drive and tape vendors and manufacturers.

    It uses the reader integrated in the tape drives through SCSI commands.

    For now it has been tested with HP and IBM LTO-4 drives and probably needs some tuning for other hardware. For some reason it also works only with some SCSI cards.

    We use it to write a tape label identifying the tape and providing a complete MD5 checksum of the tape, for future integrity checks, that we calculate after writing the whole tape.