# RS485/Analog Datalogger (MacSync) RS485 Configuration

URL: https://www.macnman.com/docs/lorawan/datalogger-lorawan-macsync/macsync_rs485_configurations
Section: User Manual › Lorawan › Datalogger Lorawan Macsync

## RS485 Selection

#### How to configure RS485 Deivce in Macsync ? (Video Demo) :

<div class="youtube-video-wrapper">
  <iframe loading="lazy" 
    src="https://www.youtube.com/embed/8IIWk9jCm1E?autoplay=0&mute=1&controls=1&rel=0&modestbranding=1" 
    title="YouTube video" 
    frameborder="0" 
    allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" 
    allowfullscreen>
  </iframe>
</div>

<br/>

#### Step-by-Step Configuration Guide : 

![rs485 selection](/img/datalogger/selection_rs485.svg)

- **RS485 & Analog Mode Switching**  
To connect a sensor, first select the appropriate mode — either RS485 or Analog — depending on the sensor type.

- **RS485 Address Configuration**  
  Once **RS485 mode** is selected, **navigate to the RS485 Address** section to configure the device address and other communication parameters required for the sensor to function correctly.

--- 
## Power Output & Initialization Settings - RS485 

![power output](/img/datalogger/power_output.svg)

- **Power Output**  
Select the appropriate **output power level** from the list based on your sensor’s operating voltage or current requirements. This determines how much power the device supplies to the connected sensor.

- **Sensor Initialization Time**  
  Enter the **initialization time (range: 0–2000 ms)** required by your sensor to stabilize and begin operating after power is applied.

****Power Consumption** : The connected sensor will draw power directly from the device:**

****Sensor Warmup Time**: Some sensors need a brief warm-up period before they can start sending accurate data.:**

## Baud Rate

![baud rate](/img/datalogger/baud_rate.svg)

Select the **baud rate** that **matches your sensor or device’s communication speed**.
Using the correct baud rate ensures proper data transmission over RS485 or similar serial interfaces.

- **Common values:**  
  `9600` , `19200` ,`38400`,`115200`, - (check your sensor’s datasheet).

## Parity

![baud rate](/img/datalogger/parity.svg)

Choose the parity type — `None`, `Even`, or `Odd` — based on your sensor’s communication protocol.
Parity is used for basic error detection in serial communication.

Refer to your sensor’s documentation to select the correct setting. **Mismatched parity** can **result in failed or corrupted data** transfers.

## RS485 Field Setup  

Follow the steps below to configure RS485-based sensors or devices through the Maya app:

![baud rate](/img/datalogger/rs485_one.svg)

**01. Enable RS485 Field**  
- Toggle the “Enable Field” switch to activate RS485 configuration for a specific channel.

**01. Enable RS485 Field**  
- Toggle the **“Enable Field”** switch to activate RS485 configuration for a specific channel.

**02. Parameter Name (Optional)**  
- Assign a custom **parameter name** for easier identification in reports or the Maya app.  
*Example: `Soil_Moisture`, `Energy_Meter_KW`*

**03. Slave ID**  
- Enter the **Slave ID** of the RS485 device.  
*Example: `1`, `2`, `10`* (Check your device's Modbus documentation)

**04. Function Code**  
Select the appropriate **Modbus Function Code**:  
- `0x03` – Read Holding Registers  
- `0x04` – Read Input Registers

**05. Data Type**  
- Choose the correct **data format** expected from the device:  
- `INT16`, `UINT16`, `INT32`, `FLOAT32`, etc.  
Make sure this matches the sensor’s Modbus register definition.

**06. Register Address**  
- Enter the **starting register address** to read from.  
Refer to your device’s Modbus register map.

**07. Number of Parameters (Group Read)**  
- Define how many **registers** to read in a single request.  
*Example: `2` for `FLOAT32`, `1` for `INT16`*

**08. Check Values**  
- Click the **“Check”** button to verify that the device is returning valid data using the selected configuration.

## Related Resources

- Datasheet: [MacSync LX1 RS485 Modbus RTU and analog to LoRaWAN datalogger datasheet](/product/lorawan/dataloggers/rs485-analog-to-lorawan-converter-macsync-lx1)
- Start of this manual: [RS485/Analog Datalogger (MacSync) Introduction](/lorawan/datalogger-lorawan-macsync/macsync_rs485_lorawan_introduction)
- Help: [Contact Macnman support](/help/help)
