SoftwareSerial 7-E-1 problem

Try to replace that line

ir.print("/?!\r\n");

by

ir.write(0xAF); // "/"
ir.write(0x3F); // "?"
ir.write(0x21); // "!"
ir.write(0x8D); // "\r"
ir.write(0x0A); // "\n"

That's your string but even parity precalculated. The standard version of SoftwareSerial doesn't calculate parity bits.

Another possibility: use just the USB2Serial converter of the UNO. Connect the TTL-IR-Read-Write head to the Arduino's serial interface (pin 0 and 1) but crossed over and load an empty sketch before (the Blink example is perfect for this because it doesn't use the serial interface). That way the ATmega16U2 just converts the USB serial port to a TTL level signal and the PC settings come to an immediate effect.
Die andere Möglichkeit wäre, die Kontrolle vom PC aus zu machen und nur den USB2Serial converter zu benutzen. Dazu müsstest Du d