No response from device when using rs485
I've been stuck on this issue for quite some time. I am trying to use an arduino to communicate with another device using RS485. The problem is that I can see the data being sent but, the device does not reply at all. Here's the break down so far:
I am using a hardware serial port and a Max487 rs485 transceiver which is attached to a custom sheild.
I am able to get the device working over RS232 using a library I have written so, I don't believe its a software issue.
I have also been able to communicate with the device using a usb to rs485 converter. This wasn't attached to my arduino, I sent the data using realterm. So, i don't think its a problem with the device.
I am using a sheilded cable with 2 twisted pairs. One pair I am using for ground, the other for the Non-inverting/inverting signals. The cable has an impedance of 120Ohms. My cable is about 11m long.
I have a 120 ohm terminating resistor on my pcb and have enabled the biasing termination on the device. (The iverting line is 5V biased, the non inverting is at 0v).
When I look at the traces, I can see that all the data is being sent, along with the parity and stop bits. I have attached a picture of the 2 traces and the result of (non inverting line - inverting line)
I am writing !(Receiver Enable) and Driver Enable pins high when transmitting, and low as soon as the transmission is complete.
When I couldn't get it working with my first sheild, I made another. Unfortunately, I am still haing trouble.
In summary, I don't think its a software issue. I've done a lot of reading but, haven't managed to find anything that helped. Does anyone have any suggestions for what could be preventing the device from responding? Any help would be greatly appreciated
Thanks in advance