Multi-broker not connecting to federates #1603
-
I'm pretty sure I've found a bug but I wanted to start the discussion here just in case this was user error. (We can easily move this over to the Issues forum once we confirm its a legit bug.) Short version: I've tried manually adjusting the port numbers in the federates so they are using the ones specified for the multi-broker but the federates still aren't able to connect. Long version: I'm working on an example demonstrating the user of a multi-broker (that is, multi-protocol broker). I've posted the federation to HELICS-examples if you want to see everything. But here are the details I think that matter: multi_broker_config.json: {
"comms": [
{
"type": "zmq",
"interfaceport": 23410
},
{
"type": "zmq",
"interfaceport": 23700
}
]
} Charger federate config (excerpt): {
"name": "Charger",
"coreType": "zmq",
"brokerPort": 23410,
...
} Controller federate config (excerpt): {
"name": "Controller",
"coreType": "zmq",
"brokerPort": 23410,
...
} Battery federate config (excerpt): {
"name": "Battery",
"coreType": "zmq",
"brokerPort": 23700,
...
} And the helics_cli config: {
"federates": [
{
"directory": ".",
"exec": "helics_broker -f 4 --loglevel=7",
"host": "localhost",
"name": "broker"
},
{
"directory": ".",
"exec": "python -u Charger.py 1",
"host": "localhost",
"name": "Charger",
"loglevel": 1
},
{
"directory": ".",
"exec": "python -u Controller.py 1",
"host": "localhost",
"name": "Controller",
"loglevel": 1
},
{
"directory": ".",
"exec": "python -u Battery.py 1",
"host": "localhost",
"name": "Battery",
"loglevel": 1
},
{
"directory": ".",
"exec": "python -u Filter.py ",
"host": "localhost",
"name": "Filter",
"loglevel": 1
}
],
"name": "EV_toy"
} When I run this, none of the federates are able to connect to the broker and the get the following messages: Controller:
Charger:
And Battery:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I've been able to get this working and I'm pretty sure it was related to similar problems I was having in Issue #1574. The working example is a part of the User Guide examples here. |
Beta Was this translation helpful? Give feedback.
I've been able to get this working and I'm pretty sure it was related to similar problems I was having in Issue #1574. The working example is a part of the User Guide examples here.