View Full Version : RFID_PROTECT not run the command (# 28440)
mack_1989
02-03-2012, 10:52 PM
GOOD
FRIENDS I AM WORKING WITH THE CARD # 28 440 (R / W), COMMANDS ARE AT ALL, BUT THE COMMAND RFID_PROTECT I get error:
ERR_NAK 'Received a NAK, Could Be invalid command
I run COMMAND AS FOLLOWS:
SEROUT RFID_TX, Baud, ["! RW", RFID_Protect, 1]
THANK YOU HELP ME!
Ttailspin
02-04-2012, 01:31 PM
Welcome to the forum mack_1989.
Could you post the code you have written so far, It will help us, help you...
If we can look at your code, then we will not have to guess at the problem.
But, if I have to guess at the problem...
You must use RFID_Login or you will get an error, (see Note below).
0x05: RFID_Protect
Enable (lock) or disable (unlock) the tag’s password protection.Input: Mode (1 byte), 0x00 to unlock, 0x01 to lockOutput: Status byte (1 byte)Example:
SEROUT RFID_TX, Baud, ["!RW", RFID_Protect, 1] ' Lock the tag
SERIN RFID_RX, Baud, [err] ' Get status byte
Note: When the tag is locked, a successful login using the RFID_Login command is required before youcan enable/disable password protection, change the tag’s password, or read/write to the tag. If the tag islocked and you are not successfully logged in, the RFID_Read command will return four bytes of 0x00 inplace of the actual user data and the RFID_Write command will return an error.
-Tommy
mack_1989
02-04-2012, 04:53 PM
Welcome to the forum mack_1989.
Could you post the code you have written so far, It will help us, help you...
If we can look at your code, then we will not have to guess at the problem.
But, if I have to guess at the problem...
You must use RFID_Login or you will get an error, (see Note below).
-Tommy
thanks for answering friend
I'm not working with Basim stamp, I'm working with vb.net, I have executed all the commands well, but I have a problem with RFID_PROTECT command, the command I am writing from vb.net as follows:
Dim buffer_datos (4) As Byte
buffer_datos (0) = Asc ("!")
buffer_datos (1) = Asc ("R")
buffer_datos (2) = Asc ("W")
buffer_datos (3) = Hex (5)
buffer_datos (4) = Hex (1)
SerialPort1.Write (buffer_datos, 0, buffer_datos.Length)
I write all the commands as above, and all run well, but I have problems with the command rfid_protect
I run the command first rfid_login, and I have ERR_OK response, but when I run the command rfid_protect, I have Received a NAK response, Could Be invalid command.
thanks
Franklin
02-04-2012, 05:02 PM
mack, you should delete your duplicate post in Basic stamps before anyone responds to it. It is not allowed to double post and you are not using a stamp.
Circuitsoft
02-04-2012, 05:17 PM
mack, you should delete your duplicate post in Basic stamps before anyone responds to it. It is not allowed to double post and you are not using a stamp.
You should also do so in the propeller forum.
mack_1989
02-04-2012, 05:31 PM
I do not know how to remove them but not talk about it, please help with the problem I have ....!
Ttailspin
02-04-2012, 05:40 PM
It is obvious that english is not your first language mack_1989. and that is ok. :smile:
Sometimes a new forum can be overwhelming, especially if there are many to choose from.
I would think that this question is well placed in this general discussion forum, or the sensor forum...
As to your VB.net and RFID_protect problem,
You will have to show where in your code, how you have used rfid_protect.
What you have shown is not enough to help figure out a solution (for me anyway..)
Keep asking, we will help you figure it out.(just keep the same question in one forum..:) )
-Tommy
Circuitsoft
02-04-2012, 06:03 PM
Also, try asking in your native language. Perhaps someone will understand you better than you can translate to English.