RFID_PROTECT not run the command (# 28440)
mack_1989
Posts: 3
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!
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!
Comments
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
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
Ttailspin is correct in that you must use the RFID_Login command, with appropriate password (default is 00 00 00 00), before you send the "RFID_Protect" command & mode.
' Login to tag with password
SEROUT RFID_TX, Baud, ["!RW", RFID_Login, $00, $00, $00, $00]
SERIN RFID_RX, Baud, [err] ' Get status byte
(your status check code here)
SERIN RFID_RX, Baud, [err] ' Get status byte
The delay between sending the RFID_Login & RFID_Protect commands/data, must not be to great (<= .01 seconds is just a guess), or the Tag login will expire. If your using a terminal emulation program to send/receive bytes from you computer through a USB to USART converter connected to the RFID reader, you must send these 2 commands/data, back to back. If you send just the login command and then send the protect command, you will get an error code back because the login expired..
Also, make sure you enter the correct password when logging in. If its not the default password and you don't know the actual password, you will also get an error.
Good luck,
Larry