jr_000
December 20, 2022, 1:03pm
1
Hello !
I'm trying to write data on programmable T5577 card by using an Arduino Uno and a RDM6300. My wiring is as follow :
I'm having a hard time to figure out how to set the T5577 to write mode ? And further than that, how to write into the card ? I've tried to monitor the status of the card with availableForWrite() but it always return '0'.
Any thought/suggestion would be very helpful !
horace
December 20, 2022, 1:57pm
2
you state you have already written and tested some code
post it using code tags </> indicating the problems you have
jr_000
December 20, 2022, 2:24pm
3
Hi Horace,
Here you go :
#include <AltSoftSerial.h>
AltSoftSerial T5577_Serial(8, 9); // RX : 8 - TX : 9
const int T5577_WRITE_COMMAND = 0xA0; // Command to put the T5577 card into write mode
void setup() {
Serial.begin(9600);
T5577_Serial.begin(9600);
Serial.println("Setup Completed !");
}
void loop() {
char c;
T5577_Serial.write(T5577_WRITE_COMMAND);
if (T5577_Serial.availableForWrite()) {
Serial.print("Available For Write !");
//T5577_Serial.write("000000123456");
}
if (T5577_Serial.available()) {
c = T5577_Serial.read();
Serial.print(c);
}
}
I've tried multiple values for "T5577_WRITE_COMMAND" but without success.
Also I've seen someone advise to use .flush() on another post, but not sure where to use it.
horace
December 20, 2022, 2:39pm
4
can you give details of the T7755 board you are using
the AltSoftSerial() code of post #1 is using pins 8 and 9 but your diagram shows connections to pins 8 and 6
jr_000
December 20, 2022, 2:55pm
5
The specs of the T5577 :
https://www.asiarfid.com/wp-content/uploads/2021/03/T5577-RFID-Card.pdf
For the pins allocation : I will update the pic, I've uploaded the wrong one, my bad.
system
Closed
June 18, 2023, 2:56pm
6
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.