Click here to Skip to main content
14,428,244 members
Rate this:
Please Sign up or sign in to vote.
See more:
I am working on the RFID tags.I am using Speedway Revolution Reader(R-420) for reading the tags.[^]
I am using Confidex Steelware Micro ETSI Monza tags (Product No. 3000127)([^].
I am facing the problem that when I am trying to Lock User memory then I am getting error.

I am using this code :-
Using System;
using Impinj.OctaneSdk;

namespace OctaneSdkExamples
    class Program
        // Create an instance of the ImpinjReader class.
        static ImpinjReader reader = new ImpinjReader();

        static void Main(string[] args)
                // Connect to the reader.
                // Change the ReaderHostname constant in SolutionConstants.cs 
                // to the IP address or hostname of your reader.

                // Assign the TagOpComplete event handler.
                // This specifies which method to call
                // when tag operations are complete.
                reader.TagOpComplete += OnTagOpComplete;

                // Configure the reader with the default settings.

                // Create a tag operation sequence.
                // You can add multiple read, write, lock, kill and QT
                // operations to this sequence.
                TagOpSequence seq = new TagOpSequence();                

                // Define a tag write operation that sets the access password. 
                TagWriteOp writeOp = new TagWriteOp();
                // Assumes that current access password is not set
                // (zero is the default)
                writeOp.AccessPassword = null;
                // The access password is in the Reserved memory bank.
                writeOp.MemoryBank = MemoryBank.Reserved;
                // A pointer to the start of the access password.
                writeOp.WordPointer = WordPointers.AccessPassword;
                // The new access password to write.
                writeOp.Data = TagData.FromHexString("11112222");

                // Add this tag write op to the tag operation sequence.

                // Create a tag lock operation to lock the 
                // access password and User memory.
                TagLockOp lockOp = new TagLockOp();
                lockOp.AccessPasswordLockType = TagLockState.Lock;
                lockOp.EpcLockType = TagLockState.Lock;
                // Add this tag lock op to the tag operation sequence.

                // Add the tag operation sequence to the reader.
                // The reader supports multiple sequences.

                // Start the reader
            catch (OctaneSdkException e)
                // Handle Octane SDK errors.
                Console.WriteLine("Octane SDK exception: {0}", e.Message);
            catch (Exception e)
                // Handle other .NET errors.
                Console.WriteLine("Exception : {0}", e.Message);

            // Wait for the user to press enter.
            Console.WriteLine("Press enter to exit.");

            // Stop reading.

            // Disconnect from the reader.

        // This event handler will be called when tag 
        // operations have been executed by the reader.
        static void OnTagOpComplete(ImpinjReader reader, TagOpReport report)
            // Loop through all the completed tag operations
            foreach (TagOpResult result in report)
                if (result is TagWriteOpResult)
                    // These are the results of settings the access password.
                    // Cast it to the correct type.
                    TagWriteOpResult writeResult = result as TagWriteOpResult;
                    // Print out the results.
                    Console.WriteLine("Set access password complete.");
                    Console.WriteLine("EPC : {0}", writeResult.Tag.Epc);
                    Console.WriteLine("Status : {0}", writeResult.Result);
                    Console.WriteLine("Number of words written : {0}", writeResult.NumWordsWritten);
                else if (result is TagLockOpResult)
                    // Cast it to the correct type.
                    // These are the results of locking the access password or user memory.
                    TagLockOpResult lockResult = result as TagLockOpResult;
                    // Print out the results.
                    Console.WriteLine("Lock operation complete.");
                    Console.WriteLine("EPC : {0}", lockResult.Tag.Epc);
                    Console.WriteLine("Status : {0}", lockResult.Result);

I am getting the Error as "No Response from Tag".
Updated 17-Jul-13 21:46pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100