Skip to content

Comments

IMC.xml: adds HealthCheck msg#35

Merged
paulosousadias merged 1 commit intoLSTS:feature/unifyfrom
ineeve:feature/healthcheck
Mar 8, 2023
Merged

IMC.xml: adds HealthCheck msg#35
paulosousadias merged 1 commit intoLSTS:feature/unifyfrom
ineeve:feature/healthcheck

Conversation

@ineeve
Copy link

@ineeve ineeve commented Mar 2, 2023

The HealthCheck message is part of new developments at OceanScan for self-testing of payload and sensors.

@paulosousadias
Copy link
Member

Can't this:

<field name="Entity Name" abbrev="entity_name" type="plaintext">
      <description>Entity Label of the task that's replying to the request</description>
</field>

be

<field name="Entity Name" abbrev="entity_name" type="plaintext">
      <description>Entity label of the request/reply</description>
</field>

This is because evem in the request this will be filled, right?

@ineeve
Copy link
Author

ineeve commented Mar 2, 2023

In our case we use the destination entity from the header to make requests to a specific sensor. If we want to request self-testing on all sensors we put the destination entity to 255.

@paulosousadias
Copy link
Member

paulosousadias commented Mar 2, 2023

Ok, but then this is what? if you use the header, the response header will also identify the responding entity, so what is the point of this field. We can always get the name of an entity in the EntityList

@ineeve
Copy link
Author

ineeve commented Mar 2, 2023

With this field you are not dependent on querying the EntityList. You can send an initial HealthCheck with OP=Query and dstEnt = 255 and receive the entity ids and names of all tasks that implement the HealthCheck protocol.

@paulosousadias
Copy link
Member

paulosousadias commented Mar 2, 2023

But that is why EntityList. exists, so we don't need to add the label on every msgs we need the label of an entity.

@ineeve
Copy link
Author

ineeve commented Mar 3, 2023

It's a balance between protocol simplification vs a few bytes of memory. It's not a message that is sent periodically, so having an extra field is not as relevant as in other messages.

@zepinto
Copy link
Member

zepinto commented Mar 6, 2023 via email

@paulosousadias
Copy link
Member

paulosousadias commented Mar 7, 2023 via email

@zepinto
Copy link
Member

zepinto commented Mar 8, 2023 via email

@paulosousadias paulosousadias merged commit 3ae4ed6 into LSTS:feature/unify Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants