RS232 TTL does not send data

Hello!
I do not know English well and write via google translator. Thank you in advance!
I need to connect arduino to rfid reader. The reader has an output rs232
there are only three wires that are connected to 2, 3, 5 pins.
I bought TTL rs232 for arduino.
connected rs232 to arduino:
GND - GND;
VCC - 5v;
RXD - pin10;
TXD - pin11;
There is a special program for rfid rmder.
When you connect the computer and the reader everything works.
connected arduino and reader in this way:


nothing works
Then I connected the arduino to my computer. Data reading works, sending does not work.

Code:

#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11); // RX, TX


void loop() {
  if(mySerial.available() > 0) {
    Serial.println(mySerial.read());
  }
  if(Serial.available() > 0) {
    mySerial.write(Serial.read()); //or print()
  }
}

The read function works, the write function does not work.
P.S I wanted to send 3 photos only one

That code doesn't work, the necessary setup() routine got lost somewhere.

What does that exactly mean? Do you receive everything from the reader but you can't send anything? In this case the wiring is wrong. Unfortunately the picture doesn't provide enough information about the wiring.

Poking wires into connectors is doomed to failure too , wire up correctly !

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.