# Making the ModbusExample work for RTU

**URL:** <https://forum.inductiveautomation.com/t/making-the-modbusexample-work-for-rtu/10101>\
**Category:** 3rd Party Modules\
**Created:** [June 8, 2015, 11:43am UTC](https://forum.inductiveautomation.com/t/making-the-modbusexample-work-for-rtu/10101 "2015-06-08T11:43:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amarth](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarth/32/3313_2.png) [@Amarth](https://forum.inductiveautomation.com/u/Amarth)\
**Post date:** [June 8, 2015, 11:43am UTC](https://forum.inductiveautomation.com/t/making-the-modbusexample-work-for-rtu/10101/1 "2015-06-08T11:43:58Z")

</div>

Hello,

I’m trying to make the ModbusExample (the one that comes with the SDK) work for the serial support. I figured how to enable the serial driver (it seems that all needed has already been written).  
However, i’m facing two problems:

- I can not display the “Addresses” page. Whatever I change in the code, only the title is displayed.
- I’m stuck with the first instruction of the connect() method from SerialIODelegate:

```auto
SerialPortLocal serialPort = new SerialPortLocal(serialConfig);
```

The serialConfig seems correct as serialConfig.getSettingsString() returns the good parameters. In the Gateway console I can see no error about the execution. Moreover, I can access (open/read/write/close) the serial port from an external application.

My question is : Is the RTU part of the ModbusExample is supposed to be fully functionnal ?

I can provide logs and code if needed.

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [June 8, 2015, 12:30pm UTC](https://forum.inductiveautomation.com/t/making-the-modbusexample-work-for-rtu/10101/2 "2015-06-08T12:30:53Z")

</div>

We just discovered there’s a build issue that prevents one of the necessary serial-related jars from getting packaged in the module. If you modified the examples slightly you’d be able to catch a ClassNotFoundException when it tries to instantiate a SerialPortLocal or AsyncSerialoSession (forget which). Once we fix this issue it should work again.

---

<div class="post-metadata">

**Author:** ![Amarth](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarth/32/3313_2.png) [@Amarth](https://forum.inductiveautomation.com/u/Amarth)\
**Post date:** [June 18, 2015, 2:51pm UTC](https://forum.inductiveautomation.com/t/making-the-modbusexample-work-for-rtu/10101/3 "2015-06-18T14:51:09Z")

</div>

Thank you Kevin.
