eclipse-opendut / opendut

Test Electronic Control Units around the world in a transparent network.
https://opendut.eclipse.dev
Apache License 2.0
25 stars 15 forks source link

Establish a measurement/action communication link #90

Open eet1mu3 opened 9 months ago

eet1mu3 commented 9 months ago

We need to discuss and decide the underlying technology. Current options are:

eet1mu3 commented 9 months ago

Some of my considerations, please chime in!

eet1mu3 commented 8 months ago
<Peer>/<Device>/<Channel>/…

<Device>
model (string)
e.g.: "Manson HCS-3404"

<Channel>:
Standard:
•   enable (bool)  (<- do we need an "enabled_target"?)
•   I (float)
•   U (float)
•   U_target (float)

Standard for relay:
•   enable (bool)
•   (anything else?)

Others possible sensors:
•   Temp
•   CPU
•   Memory
kKdH commented 8 months ago

if i understand you correctly an example for a topic to consume the current would be:

/25fedc11-d37f-4752-b20b-0f60aa1541f6/Manson-HCS-3404/I

Right?

eet1mu3 commented 8 months ago

This would make connecting multiple power supplies of the same model impossible.

So the idea was more like this: /25fedc11-d37f-4752-b20b-0f60aa1541f6/main-supply1/0/I

Where /25fedc11-d37f-4752-b20b-0f60aa1541f6/powersupply1/model = "Manson HCS-3404"

The would then be usable for power supplies and especially relay boards with multiple channels. Of course the powersupply name would be arbitrary, so it could also be directly named Manson-HCS-3404; and if there is a second one, that could be named, for example, Manson-HCS-3404-2. Would make it easier for lab personnel to identify and handle the device.

Of course, we could just not use the channel sub-topic when the device only has one channel?

kKdH commented 8 months ago

ah. model is a sub-topic and "Manson HCS-3404" it's value. got it. Thank you.

For a test bench with one powersupply providing two channels it would look like this:

/25fedc11-d37f-4752-b20b-0f60aa1541f6/powersupply_0/model
/25fedc11-d37f-4752-b20b-0f60aa1541f6/powersupply_0/0/I
/25fedc11-d37f-4752-b20b-0f60aa1541f6/powersupply_0/0/U
/25fedc11-d37f-4752-b20b-0f60aa1541f6/powersupply_0/1/I
/25fedc11-d37f-4752-b20b-0f60aa1541f6/powersupply_0/1/U

May i suggest to write current instead of I and voltage instead of U?

eet1mu3 commented 7 months ago

Added mqqt clients, one for Manson power supply and a demo one for cpu / mem /network stats: https://github.com/eclipse-opendut/opendut/commit/3074aa74bebcb33040f6f71ccef82d34e7068f2c