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:
Create a protocol-adapter that listens to a specific queue
Add a protocol-info record that uses this queue for the requests
Configure the device in osgp-core, so that it will use this new protocol-info
Configure the name of the JMS queue on which the protocol adpater will listen for requests.
By using a different outgoing_requests_property_prefix value, osgp-core can use a separate JMS queue for the requests.
Column | Example value | Description |
---|---|---|
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
A device can be configured to use the specific protocol adapter, by pointing it to the new protocol_info record
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
device_identification
E0049007469584219
Identification of the device
protocol_info_id
1
Reference to id in Protocol Info table