Loopback test will not work because RS485 unlike RS232 works in half-duplex mode (to support two wire mode) and the receiver is disabled while transmitter is active. To troubleshoot your problem check the wiring (is the ground connected?) and serial device settings- baud rate, parity, etc.