user11659: I get the data from a sensor which is in RS485. I am using RS485-RS232 Converter. Then its given to uart usb converter and I get the data in TTL. I am able to receive the data in uart (hyperterminal). I have connected the TX, RX, GND pins to 10, 11, GND pins of Arduino UNO.
I want to communicate it with Arduino UNO through SoftSerial and here is the code
#include <SoftwareSerial.h>
#define rxPin 10
#define txPin 11

SoftwareSerial mySerial =  SoftwareSerial(rxPin, txPin);

void setup() {   
    pinMode(rxPin, INPUT);
    pinMode(txPin, OUTPUT);
    mySerial.begin(9600);
    Serial.begin(9600);  
}

void loop()
{  
    while (mySerial.available() > 0) {
        Serial.println("Data is available");
        Serial.println(mySerial.read());
    }
} 

But I'm not able to see the data on serial monitor.

user26354: I had a problem similar to yours recently.  
The thing that got me was that the RS232 from the Arduino is reverse. This is because it would usually go through a RS232 IC that produces +12 and -12 signals.  
A sensor or RS232 backpack on a LCD cannot deal with the reverse signals.  
The SoftwareSerial library has an undocumented feature that will reverse the RS232 output for you.  
When you configure your interface do the following:
SoftwareSerial mySerial(3, 2, true);  

The true option instructs the library to reverse the RS232 signals.
Hope this helps you out since this post was a long time ago.

11659: 

<p>I get the data from a sensor which is in RS485. I am using RS485-RS232 Converter. Then its given to uart usb converter and I get the data in TTL. I am able to receive the data in uart (hyperterminal). I have connected the TX, RX, GND pins to 10, 11, GND pins of Arduino UNO.
I want to communicate it with Arduino UNO through SoftSerial and here is the code</p>

<pre class="lang-C++ prettyprint-override"><code>#include &lt;SoftwareSerial.h&gt;
#define rxPin 10
#define txPin 11

SoftwareSerial mySerial =  SoftwareSerial(rxPin, txPin);

void setup() {   
    pinMode(rxPin, INPUT);
    pinMode(txPin, OUTPUT);
    mySerial.begin(9600);
    Serial.begin(9600);  
}

void loop()
{  
    while (mySerial.available() &gt; 0) {
        Serial.println("Data is available");
        Serial.println(mySerial.read());
    }
} 
</code></pre>

<p>But I'm not able to see the data on serial monitor.</p>
 26354: <p>I had a problem similar to yours recently.  </p>

<p>The thing that got me was that the RS232 from the Arduino is reverse. This is because it would usually go through a RS232 IC that produces +12 and -12 signals.  </p>

<p>A sensor or RS232 backpack on a LCD cannot deal with the reverse signals.  </p>

<p>The SoftwareSerial library has an undocumented feature that will reverse the RS232 output for you.  </p>

<p>When you configure your interface do the following:</p>

<pre><code>SoftwareSerial mySerial(3, 2, true);  
</code></pre>

<p>The true option instructs the library to reverse the RS232 signals.
Hope this helps you out since this post was a long time ago.</p>
