Skip to content

Issue when updating from v3 to v4 #509

@rwuthric

Description

@rwuthric

We updated our Agents from version 2.3.0.4 to 2.4.0.7 (we use the Docker image built from this repository).

In our case the updated Agent seems no longer to understand or device.xml files and does no longer map the DataItems.

Here the device.xml we use (a minimal version to illustrate the issue we face):

<MTConnectDevices>
  <Devices>
    <Device uuid="MINIMAL" id="minimal" name="Minimal-Device">
      <Description>
         A minmal device to test the agent
      </Description>
      <DataItems>
        <DataItem category="EVENT" id="avail" name="avail" type="AVAILABILITY"/>
      </DataItems>
    </Device>
  </Devices>
</MTConnectDevices>

The agent connects to the adapter, but when the adapter sends the SHDR message |avail|AVAILABLE, we get this error in the Agent version 2.4.0.7:

[info] Connector::connected: Connected with: 10.0.0.229:7878
[info] Connector::reader->Connector::parseSocketBuffer->Connector::processLine->ShdrAdapter::processData->DataItemMapper.ShdrTokenMapper.operator->DataItemMapper.ShdrTokenMapper.mapTokensToDataItem: Could not find data item: avail

Using the Agent version 2.3.0.4 everything works fine as expected.

Do we have an error in our device.xml (and accidentally it just worked fine so far) ? Or did the SHDR protocol change with version 2.4.0.7 ? Or do we have to change something in our agent.cfg file?

For reference this is the agent.cfg we use:

Devices = device.xml
SchemaVersion = 2.4

Port = 5000

Adapters {

    Adapter {
       Host   = 10.0.0.229
       Port   = 7878
    }

}

Files {
    schemas {
        Path = /mtconnect/data/schemas
        Location = /schemas/
    }
    styles {
        Path = /mtconnect/data/styles
        Location = /styles/
    }
    Favicon {
        Path = /mtconnect/data/styles/favicon.ico
        Location = /favicon.ico
    }
}

DevicesStyle {
    Location = /styles/styles.xsl
}
StreamsStyle {
    Location = /styles/styles.xsl
}

logger_config
{
    logging_level = info
    output = file /home/agent/mtc_agent.log
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions