I'm using Arduino Mega Serial1 port for communicating with rfid RS485 device. I use TTL to RS485 converter with my Mega on pins TX1(18), Rx1(19). I need to send specific ASCII frame to this device, to get back answer:
If I use terminal window on my computer to send this frame to the rfid device, I get an answer like it should be, but If I send it with mega, I ain't get an answer at all. I also use terminal window for sniffing port traffic.
First thanks for fast answer.
Yes, but I should see in terminal window an answer, right?
You thought that if I wan't to see it in monitor window, I should write this?:
if (Serial1.available())
{
Serial.write(Serial1.read());
}
I’m no expert with serial but I noticed your byte array is 8 bytes but you’re only writing 7. I don’t know enough to know if that’s the problem just something I noticed.