GithubHelp home page GithubHelp logo

Comments (7)

wsobel avatar wsobel commented on July 26, 2024

from cppagent_dev.

hulinning2 avatar hulinning2 commented on July 26, 2024

Will,
I change both, agent.cfg and devices.xml since a different spec requires different agent configuration also.
Thanks

from cppagent_dev.

wsobel avatar wsobel commented on July 26, 2024

from cppagent_dev.

wsobel avatar wsobel commented on July 26, 2024

also, please provide an adapter data set as well. it looks like the data items no longer match.

from cppagent_dev.

hulinning2 avatar hulinning2 commented on July 26, 2024

Will,
Data items will be changed according to the current spec. It could be more or less.
Thanks
Schemas.zip
Devices.zip
Agents.zip

from cppagent_dev.

hulinning2 avatar hulinning2 commented on July 26, 2024

Still happens when spec is changed from 1.2 to 1.3
2.0.0.12 RC18

Microsoft Windows [Version 10.0.19044.1889]
(c) Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>d:

D:>cd D:\Program Files\Okuma\Okuma MT Connect Adapter

D:\Program Files\Okuma\Okuma MT Connect Adapter>agent debug
Configuration search path: "D:\Program Files\Okuma\Okuma MT Connect Adapter" and "D:\Program Files\Okuma\Okuma MT Connect Adapter"
MTConnect Agent Version 2.0.0.12 (_RC18) - built on Wed Jul 13 09:12:45 2022
[2022-08-29 12:42:22.146810] [0x000035e8] [info] Loading configuration from: "D:\Program Files\Okuma\Okuma MT Connect Adapter\agent.cfg"
Loading configuration from:"D:\Program Files\Okuma\Okuma MT Connect Adapter\agent.cfg"2022-08-29T16:42:22.149812Z (0x000035e8) [info] MAIN->AgentConfiguration::initialize->AgentConfiguration::loadConfig: Starting agent on port 5000
2022-08-29T16:42:22.168811Z (0x000035e8) [warning] MAIN->AgentConfiguration::initialize->AgentConfiguration::loadConfig->AgentConfiguration::loadAdapters: Cannot locate device name 'OKUMA.Machine.Adapter', trying default
2022-08-29T16:42:22.168811Z (0x000035e8) [info] MAIN->AgentConfiguration::initialize->AgentConfiguration::loadConfig->AgentConfiguration::loadAdapters: Assigning default device OKUMA to adapter
2022-08-29T16:42:22.168811Z (0x000035e8) [info] MAIN->AgentConfiguration::initialize->AgentConfiguration::loadConfig->AgentConfiguration::loadAdapters: shdr: Adding adapter for OKUMA: OKUMA.Machine.Adapter
2022-08-29T16:42:22.169811Z (0x000035e8) [debug] MAIN: Waiting for monitor thread to exit to restart agent
2022-08-29T16:42:22.169811Z (0x000035e8) [debug] MAIN->AgentConfiguration::monitorThread: Monitoring files: "D:\Program Files\Okuma\Okuma MT Connect Adapter\agent.cfg" and D:\Program Files\Okuma\Okuma MT Connect Adapter\Devices.xml, will warm start if they change.
2022-08-29T16:42:22.169811Z (0x000035e8) [debug] MAIN->AgentConfiguration::monitorThread: Setting device and config times
2022-08-29T16:42:22.175816Z (0x000035e8) [debug] MAIN->Agent::start->Connector::connect: Connecting to data source: localhost on port: 7878
2022-08-29T16:42:22.176812Z (0x000035e8) [warning] MAIN->Agent::start->pipeline.deliver: Could not find data item: _7714929c63_asset_update_rate, exiting metrics
2022-08-29T16:42:22.176812Z (0x000035e8) [warning] MAIN->Agent::start->pipeline.deliver: Could not find data item: _7714929c63_observation_update_rate, exiting metrics
2022-08-29T16:42:22.500813Z (0x00006258) [info] SessionImpl::requested: ReST Request: From [127.0.0.1:35258]: GET /current
2022-08-29T16:42:24.211818Z (0x00006258) [info] Connector::connected: Connected with: 127.0.0.1:7878
2022-08-29T16:42:24.212821Z (0x00006258) [debug] Connector::connected->Connector::sendCommand: (Port:35260) Sending PING
2022-08-29T16:42:24.217820Z (0x00006258) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine: Processing command: adapterversion: *adapterVersion:5.0.0.0
2022-08-29T16:42:24.218818Z (0x00006258) [warning] Connector::reader->Connector::parseSocketBuffer->Connector::processLine: Cannot find data item for the Agent device when processing command adapterversion with value 5.0.0.0 for adapter _7714929c63
2022-08-29T16:42:24.219819Z (0x00006258) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine: Processing command: adapterversion: *adapterVersion:5.0.0.0
2022-08-29T16:42:24.221819Z (0x00006258) [warning] Connector::reader->Connector::parseSocketBuffer->Connector::processLine: Cannot find data item for the Agent device when processing command adapterversion with value 5.0.0.0 for adapter _7714929c63
2022-08-29T16:42:24.223819Z (0x00006258) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine: Processing command: mtconnectversion: *mtconnectVersion:1.3
2022-08-29T16:42:24.225819Z (0x00006258) [warning] Connector::reader->Connector::parseSocketBuffer->Connector::processLine: Cannot find data item for the Agent device when processing command mtconnectversion with value 1.3 for adapter _7714929c63
2022-08-29T16:42:24.226817Z (0x00006258) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine: (Port:35260) Received a PONG for localhost on port 7878
2022-08-29T16:42:24.231820Z (0x00006258) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine->Connector::startHeartbeats: (Port:35260)Received PONG, starting heartbeats every 10000ms
2022-08-29T16:42:32.185847Z (0x00006258) [debug] AgentConfiguration::monitorThread: Monitoring files: "D:\Program Files\Okuma\Okuma MT Connect Adapter\agent.cfg" and D:\Program Files\Okuma\Okuma MT Connect Adapter\Devices.xml, will warm start if they change.
2022-08-29T16:42:32.508850Z (0x00006258) [info] SessionImpl::requested: ReST Request: From [127.0.0.1:35258]: GET /probe
2022-08-29T16:42:32.943885Z (0x00006258) [info] SessionImpl::requested: ReST Request: From [127.0.0.1:35258]: GET /current
2022-08-29T16:42:32.952851Z (0x00006258) [info] SessionImpl::requested: ReST Request: From [127.0.0.1:35258]: GET /sample?from=1&count=200&interval=500
2022-08-29T16:42:34.234855Z (0x00006258) [debug] Connector::heartbeat: Sending heartbeat
2022-08-29T16:42:34.235854Z (0x00006258) [debug] Connector::heartbeat->Connector::sendCommand: (Port:35260) Sending PING
2022-08-29T16:42:34.239855Z (0x00006258) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine: (Port:35260) Received a PONG for localhost on port 7878
2022-08-29T16:42:42.022918Z (0x00006258) [info] SessionImpl::requested: ReST Request: From [127.0.0.1:35268]: GET /current
2022-08-29T16:42:42.193921Z (0x00006258) [debug] AgentConfiguration::monitorThread: Monitoring files: "D:\Program Files\Okuma\Okuma MT Connect Adapter\agent.cfg" and D:\Program Files\Okuma\Okuma MT Connect Adapter\Devices.xml, will warm start if they change.
2022-08-29T16:42:44.242925Z (0x00006258) [debug] Connector::heartbeat: Sending heartbeat
2022-08-29T16:42:44.243928Z (0x00006258) [debug] Connector::heartbeat->Connector::sendCommand: (Port:35260) Sending PING
2022-08-29T16:42:44.244926Z (0x00006258) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine: (Port:35260) Received a PONG for localhost on port 7878
2022-08-29T16:42:52.204955Z (0x00006258) [debug] AgentConfiguration::monitorThread: Monitoring files: "D:\Program Files\Okuma\Okuma MT Connect Adapter\agent.cfg" and D:\Program Files\Okuma\Okuma MT Connect Adapter\Devices.xml, will warm start if they change.
2022-08-29T16:42:54.255979Z (0x00006258) [debug] Connector::heartbeat: Sending heartbeat
2022-08-29T16:42:54.255979Z (0x00006258) [debug] Connector::heartbeat->Connector::sendCommand: (Port:35260) Sending PING
2022-08-29T16:42:54.261978Z (0x00006258) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine: (Port:35260) Received a PONG for localhost on port 7878
2022-08-29T16:43:02.220008Z (0x00006258) [debug] AgentConfiguration::monitorThread: Monitoring files: "D:\Program Files\Okuma\Okuma MT Connect Adapter\agent.cfg" and D:\Program Files\Okuma\Okuma MT Connect Adapter\Devices.xml, will warm start if they change.
2022-08-29T16:43:04.270049Z (0x00006258) [debug] Connector::heartbeat: Sending heartbeat
2022-08-29T16:43:04.271014Z (0x00006258) [debug] Connector::heartbeat->Connector::sendCommand: (Port:35260) Sending PING
2022-08-29T16:43:04.272015Z (0x00006258) [debug] Connector::reader->Connector::parseSocketBuffer->Connector::processLine: (Port:35260) Received a PONG for localhost on port 7878
2022-08-29T16:43:04.277013Z (0x00006258) [error] Connector::reader: End of file: End of file
2022-08-29T16:43:04.278014Z (0x00006258) [error] Connector::reader->Connector::reconnect->Connector::close: Closing localhost:7878 (Local Port:35260)
2022-08-29T16:43:04.279013Z (0x00006258) [debug] Connector::reader->Connector::reconnect->Connector::close: Disconnected from adapter, setting all values to UNAVAILABLE
2022-08-29T16:43:04.281013Z (0x00006258) [info] Connector::reader->Connector::reconnect: reconnect: retry connection in 10000ms
2022-08-29T16:43:12.038597Z (0x00006258) [warning] SessionImpl::requested->Session::fail: Operation failed: Could not read request
2022-08-29T16:43:12.040564Z (0x00006258) [warning] SessionImpl::requested->Session::fail: Closing: The socket was closed due to a timeout - The socket was closed due to a timeout
2022-08-29T16:43:12.042564Z (0x00006258) [warning] SessionImpl::requested->Session::fail: Operation failed: Could not read request
2022-08-29T16:43:12.044563Z (0x00006258) [warning] SessionImpl::requested->Session::fail: Closing: The socket was closed due to a timeout - The socket was closed due to a timeout
2022-08-29T16:43:12.238595Z (0x00006258) [debug] AgentConfiguration::monitorThread: Monitoring files: "D:\Program Files\Okuma\Okuma MT Connect Adapter\agent.cfg" and D:\Program Files\Okuma\Okuma MT Connect Adapter\Devices.xml, will warm start if they change.
2022-08-29T16:43:12.239564Z (0x00006258) [warning] AgentConfiguration::monitorThread: Detected change in configuration files. Will reload when youngest file is at least 1 seconds old
2022-08-29T16:43:12.244562Z (0x000035e8) [info] MAIN->Agent::receiveDevice: Updating device OKUMA.123456 to new device model
2022-08-29T16:43:12.245561Z (0x000035e8) [info] MAIN->Agent::receiveDevice: Device OKUMA.123456 changed, updating mappings

D:\Program Files\Okuma\Okuma MT Connect Adapter>

from cppagent_dev.

hulinning2 avatar hulinning2 commented on July 26, 2024

Fixed in RC25

from cppagent_dev.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.