Stufin
Home Quick Cart Profile

HXAD RS232 TO RS485 Passive Interface Adapter Converter

Buy Now on Stufin

Data Transfer Rate

Up to 115.2 kbps

Electrical Isolation

1.5kV

Operating Temperature Range

-40C to 85C

Humidity

5% to 95% non-condensing

Dimensions

45mm x 25mm x 15mm

Weight

20g

Applications

The HXAD RS232 to RS485 Passive Interface Adapter Converter is suitable for use in various applications, including

Industrial automation systems

Building automation systems

Industrial control systems

Medical devices

Aerospace and defense systems

Transportation systems

Warranty and Support

The HXAD RS232 to RS485 Passive Interface Adapter Converter comes with a 1-year warranty and dedicated technical support to ensure reliable performance and trouble-free operation.

Pin Configuration

  • HXAD RS232 TO RS485 Passive Interface Adapter Converter Documentation
  • Pinout Explanation
  • The HXAD RS232 TO RS485 Passive Interface Adapter Converter is a simple and cost-effective solution for converting RS232 signals to RS485 signals. This adapter has a total of 9 pins, which are divided into two connectors: a 9-pin female D-subminiature connector (DB9) for RS232 input and a 3-pin terminal block for RS485 output. Here's a breakdown of each pin:
  • RS232 (DB9) Connector:
  • 1. Pin 1: DCD (Data Carrier Detect) - Not Connected
  • This pin is not used in this adapter and is left unconnected.
  • 2. Pin 2: RX (Receive Data) - Input
  • This pin receives the serial data from the RS232 device. Connect it to the TX (Transmit Data) pin of the RS232 device.
  • 3. Pin 3: TX (Transmit Data) - Output
  • This pin transmits the serial data to the adapter. Connect it to the RX (Receive Data) pin of the RS232 device.
  • 4. Pin 4: DTR (Data Terminal Ready) - Not Connected
  • This pin is not used in this adapter and is left unconnected.
  • 5. Pin 5: GND (Ground) - Ground
  • This pin provides a common ground connection for the adapter.
  • 6. Pin 6: DSR (Data Set Ready) - Not Connected
  • This pin is not used in this adapter and is left unconnected.
  • 7. Pin 7: RTS (Request to Send) - Not Connected
  • This pin is not used in this adapter and is left unconnected.
  • 8. Pin 8: CTS (Clear to Send) - Not Connected
  • This pin is not used in this adapter and is left unconnected.
  • 9. Pin 9: RI (Ring Indicator) - Not Connected
  • This pin is not used in this adapter and is left unconnected.
  • RS485 (3-pin Terminal Block) Connector:
  • 1. Pin A (Non-Inverting Output) - Output
  • This pin outputs the non-inverting RS485 signal.
  • 2. Pin B (Inverting Output) - Output
  • This pin outputs the inverting RS485 signal.
  • 3. Pin G (Ground) - Ground
  • This pin provides a common ground connection for the RS485 interface.
  • Connection Structure:
  • To connect the pins, follow this structure:
  • Connect the RX (Pin 2) of the RS232 connector to the TX of the RS232 device.
  • Connect the TX (Pin 3) of the RS232 connector to the RX of the RS232 device.
  • Connect the GND (Pin 5) of the RS232 connector to the GND of the RS232 device.
  • Connect Pin A (Non-Inverting Output) of the RS485 connector to the RS485 device's non-inverting input.
  • Connect Pin B (Inverting Output) of the RS485 connector to the RS485 device's inverting input.
  • Connect Pin G (Ground) of the RS485 connector to the GND of the RS485 device.
  • Note:
  • Make sure to use proper wiring and connections to avoid damage to the adapter or connected devices.
  • This adapter is a passive converter and does not provide electrical isolation between the RS232 and RS485 interfaces. Ensure that the connected devices are properly powered and grounded.

Code Examples

HXAD RS232 TO RS485 Passive Interface Adapter Converter Documentation
Overview
The HXAD RS232 TO RS485 Passive Interface Adapter Converter is a compact, cost-effective solution for converting RS232 signals to RS485 signals. This adapter is designed to transmit data over long distances, making it an ideal choice for industrial automation, building automation, and other IoT applications.
Features
Passive conversion, no external power supply required
 Bi-directional conversion, supports full-duplex communication
 Supports data rates up to 115.2 kbps
 Compact design, easy to integrate into existing systems
 Screw terminal connections for easy installation
Pinout
The HXAD RS232 TO RS485 Passive Interface Adapter Converter has a 9-pin D-Subminiature connector for RS232 input and a 4-position screw terminal for RS485 output. The pinout is as follows:
RS232 Input (9-pin D-Subminiature):
Pin 1: RX (Receive)
 Pin 2: TX (Transmit)
 Pin 3: RTS (Request to Send)
 Pin 4: CTS (Clear to Send)
 Pin 5: GND (Ground)
 Pin 6: DSR (Data Set Ready)
 Pin 7: DTR (Data Terminal Ready)
 Pin 8: RI (Ring Indicator)
 Pin 9: NC (Not Connected)
RS485 Output (4-position screw terminal):
Terminal 1: A+ (Non-Inverting Output)
 Terminal 2: B- (Inverting Output)
 Terminal 3: GND (Ground)
 Terminal 4: NC (Not Connected)
Code Examples
### Example 1: Arduino RS232 to RS485 Serial Communication
In this example, we will demonstrate how to use the HXAD RS232 TO RS485 Passive Interface Adapter Converter to communicate between an Arduino board and an RS485 device.
Hardware Requirements
Arduino Uno board
 HXAD RS232 TO RS485 Passive Interface Adapter Converter
 RS485 device (e.g., temperature sensor or actuator)
Software Requirements
Arduino IDE
Code
```c
#include <SoftwareSerial.h>
// Define the serial pins for the RS232 connection
#define TX_PIN 1
#define RX_PIN 0
SoftwareSerial rs232Serial(TX_PIN, RX_PIN);
void setup() {
  // Initialize the serial connection
  rs232Serial.begin(9600);
}
void loop() {
  // Send a string to the RS485 device
  rs232Serial.println("Hello, RS485!");
  
  // Wait for a response from the RS485 device
  while (rs232Serial.available() == 0);
  String response = rs232Serial.readStringUntil('
');
  Serial.println(response);
  delay(1000);
}
```
In this example, we use the SoftwareSerial library to establish a serial connection between the Arduino board and the HXAD RS232 TO RS485 Passive Interface Adapter Converter. We then send a string to the RS485 device and wait for a response.
### Example 2: Python RS232 to RS485 Serial Communication using PySerial
In this example, we will demonstrate how to use the HXAD RS232 TO RS485 Passive Interface Adapter Converter to communicate between a Python script and an RS485 device.
Hardware Requirements
Computer with RS232 port (e.g., USB-to-RS232 adapter)
 HXAD RS232 TO RS485 Passive Interface Adapter Converter
 RS485 device (e.g., temperature sensor or actuator)
Software Requirements
Python 3.x
 PySerial library
Code
```python
import serial
# Open the serial connection
ser = serial.Serial('COM1', 9600, timeout=1)
while True:
  # Send a string to the RS485 device
  ser.write(b'Hello, RS485!
')
  
  # Wait for a response from the RS485 device
  response = ser.readline()
  print(response.decode('utf-8'))
  time.sleep(1)
```
In this example, we use the PySerial library to establish a serial connection between the computer and the HXAD RS232 TO RS485 Passive Interface Adapter Converter. We then send a string to the RS485 device and wait for a response.
Note: The above examples assume that the RS485 device is properly configured and connected to the HXAD RS232 TO RS485 Passive Interface Adapter Converter. Please consult the documentation of your specific RS485 device for configuration and connection details.