# DLMS protocol adapter configuration

A specific protocol adapter can be used for a specific protocol The protocol-adapter that will be used by the device, is configured in the protocol\_info field of the device. The following steps are required to configure and use a specific protocol-adapter:

1. Create a protocol-adapter that listens to a specific queue
2. Add a protocol-info record that uses this queue for the requests
3. Configure the device in osgp-core, so that it will use this new protocol-info

## 1. osgp-protocol-adapter-dlms

Configure the name of the JMS queue on which the protocol adpater will listen for requests.

```
jms.dlms.requests.queue=protocol-dlms.1_0.osgp-core.1_0.cdma.requests
```

## 2. osgp-core

### Protocol Info table

By using a different outgoing\_requests\_property\_prefix value, osgp-core can use a separate JMS queue for the requests.

| Column                                | Example value                             | Description                                             |
| ------------------------------------- | ----------------------------------------- | ------------------------------------------------------- |
| id                                    | 1                                         | Auto generated ID                                       |
| protocol                              | SMR\_CDMA                                 | Identifier of the configuration                         |
| protocol\_version                     | 5.1                                       | Version identifier of the configuration                 |
| incoming\_requests\_property\_prefix  | jms.protocol.dlms.incoming.requests       | Property prefix of the JMS queue for incoming requests  |
| outgoing\_requests\_property\_prefix  | jms.protocol.dlms.outgoing.cdma.requests  | Property prefix of the JMS queue for outgoing requests  |
| incoming\_responses\_property\_prefix | jms.protocol.dlms.incoming.responses      | Property prefix of the JMS queue for incoming responses |
| outgoing\_responses\_property\_prefix | jms.protocol.dlms.outgoing.cdma.responses | Property prefix of the JMS queue for outgoing responses |

### osgp-core.properties

The property with the prefix specified in the protocol-info table must be configured in the osgp-core.properties file The value is the name of the JMS queue. This is the same name as the name of the JMS queue specified in the osgp-protocol-adapter-dlms

```
jms.protocol.dlms.outgoing.cdma.requests.queue=protocol-dlms.1_0.osgp-core.1_0.cdma.requests
```

## 3. Connecting the device to the protocol-info

A device can be configured to use the specific protocol adapter, by pointing it to the new protocol\_info record

| Column                 | Example value     | Description                            |
| ---------------------- | ----------------- | -------------------------------------- |
| device\_identification | E0049007469584219 | Identification of the device           |
| protocol\_info\_id     | 1                 | Reference to id in Protocol Info table |
