Hello, El_Supremo.
I'm having a problem with the same reader.
This is the code I'm implementing
#include <SoftwareSerial.h>
SoftwareSerial antenna(8, 9);
unsigned char data;
const int com_len = 9;
unsigned char command[com_len] = { 0x0a, 0x00, 0x35, 0x01, 0x06, 0x04, 0x00, 0x01, 0x05 };
void setup() {
Serial.begin(115200);
Serial.println("Starting");
antenna.begin(57600);
delay(100);
Serial.println(crc_cal(command,com_len),HEX);
sendCommand();
}
void sendCommand() {
Serial.println("Sending...");
antenna.write(0x0a); //Length
antenna.write(byte(0x00)); //Address
antenna.write(0x35); //Command
antenna.write(0x01); //Active mode
antenna.write(0x06); //RS232 Output
antenna.write(0x04); //Memory intentory
antenna.write(byte(0x00)); //First address
antenna.write(0x01); //Word number
antenna.write(byte(0x05)); //Tag time
antenna.write(0xEB); //CRC-LSB
antenna.write(0x8F); //CRC-MSB
}
void loop() {
while(antenna.available()) {
data = antenna.read();
Serial.print(data, HEX);
Serial.print(" ");
}
}
But the respond from the reader is not the one I want:
FC FC F8 FE F8 FC F8 F8 F8 FC FF
Also, according to the command I'm sending (Page 35-36) I tried to put the buzzer off to see if the command was right but no good results.
So perhaps I'm missing something I'm not aware of.
Mind helping out?
Thanks