HAAS NGC Connection #43
Replies: 5 comments 20 replies
-
@nobrainer-de The regular MTConnect MQTT Broker Agent is designed to read from an MTConnect Adapter's SHDR port (usually 7878). It looks like the 8082 port for the NGC MTConnect Agent is the actual MTConnect Agent. I just uploaded the v5.1.0 release that includes the new MQTT Gateway Agents. Gateway Agents are designed to read from an existing MTConnect Agent and forward it to an MQTT broker. It looks like the MTConnect MQTT Broker Gateway Agent may be what you are looking for. The configuration file for your scenario should be similar to: # - HTTP Client Adapter Configuration -
# The Agent is able to receive data by reading from other MTConnect HTTP Agents
clients:
- address: [IP Address that you used to view in a browser]
port: 8282
deviceKey: [The Device Name that is shown in a Probe request in a browser]
# - MQTT Configuration -
# The hostname of the MQTT broker to publish messages to
#server: localhost
# The port number of the MQTT broker to publish messages to
port: 1883 Please let me know if you have any questions or need any assistance with getting this setup. Thanks, |
Beta Was this translation helpful? Give feedback.
-
It looks like it is connecting and then disconnecting from the Haas Agent. Seems like I have heard that the Haas Agent doesn't support streaming, (can anyone confirm this?). I'll look at adding a configuration option to toggle "streaming" vs "polling" in case this is the issue. Are you able to connect to any other MTConnect Agents? Have you tried a public Agent such as the public Mazak Agent? # - HTTP Client Adapter Configuration -
# The Agent is able to receive data by reading from other MTConnect HTTP Agents
clients:
- address: mtconnect.mazakcorp.com
port: 5719
deviceKey: HCN001 If the public Agent works and the Haas Agent doesn't, then we can at least narrow the issue down. Let me know what you find and I will go ahead and add the configuration option just in case that is the issue. Thanks, |
Beta Was this translation helpful? Give feedback.
-
I am trying to use the mqtt gateway with two of our Haas VMC's (vf-5 and vf-10) unfortunalty Haas assinged both of them with the same uuid "000", this is causing the mqtt topics to overlap. I have had non stop issues with the Haas implementationof MTConnect, they originaly set the device name to "VF-5/50" and "VF-10/50", it took me 6 month to convince them that they are not following the MTConnect standard. any sudgestions on how i can get arround this non unique uuid issue with out having to deal with Haas directly? I was thinking about using the device name or creating my own uuid's in the config file? |
Beta Was this translation helpful? Give feedback.
-
I just pushed a new commit with a change that should allow you to add a DeviceConfiguration file (same way you would if you were using a regular non-gateway Agent) that you can set a different Device UUID. The only thing you will need to keep the same is the Device Name between the client configuration and the overriding device configuration. See below: Gateway Agent Configuration (agent.config.yaml) # Override what the Probe gets with this Device file
devices: haas-override.xml
clients:
- address: localhost
port: 5000
deviceKey: Haas-Device haas-override.xml File to override the Http Client Probe. Change the "uuid" to whatever you need but make sure the "name" matches what is in the "deviceKey" for the clients configuration in the Gateway Agent Configuration file. <Device uuid="new-haas-uuid" name="Haas-Device" id="HaasDevice">
...
</Device> Note that the new "haas-override.xml" file will override the entire Device so you may want to copy a typical XML Probe response from the Haas Agent and paste in to the override file and then just change the Device UUID. I only pushed the changes to the repo as of right now but if you are using the installers then let me know and I will create a new Release with these changes in it. Thanks |
Beta Was this translation helpful? Give feedback.
-
@PatrickRitchie I installed latest MTConnect.Net Agent from .exe
I am facing issue where I am not able to update custom uuid in haas-override.xml. I had to keep it same as below in the image. If it is kept different from Haas MTConnect Agent it is just creates h_01 devicestream displaying UNAVAILABLE for all the dataitems while the haas mtconnect data is routed under default "000" uuid devicestream as per below image Kindly guide. |
Beta Was this translation helpful? Give feedback.
-
Hi there,
i just started to play around the MTConnect but stuck at the moment with connection to a HAAS VF-4 with NGC Firmware.
I can view alle MTConnect Data through Web Port 8082, but not able to correctly setup MTConnect MQTT Broker to read all the data.
Is there an example available or how i can debug the connection?
Best Regards
Beta Was this translation helpful? Give feedback.
All reactions