6.Discovery
It allows a client to register its services to the Discovery Server. It also allows CCU to find services from the Discovery Server. Discovery service is implemented in Subsystem Manager component.
Require: none
Inherit from: none
6.1 Service Behavior
6.1.1 State Diagram
Figure 5 Discovery State Diagram
6.1.2 State Actions
State | Actions |
---|---|
READY |
|
6.1.3 Internal Events
Event | Parameters | Parameters |
---|---|---|
ieReceiveMessage | Indicate a message is received |
6.1.4 Transitions
Transition | Trigger | Condition | Action |
---|---|---|---|
A | ieReceiveMessage | Process received message |
6.2 Protocol
6.2.1 Incoming Message Set
# | ID | Message |
---|---|---|
1 |
H:0x00000001 L:0x0000010D |
Query Identification |
2 |
H:0x00000001 L:0x0000010E |
Register Comp Services |
3 |
H:0x00000001 L:0x0000010F |
Query Comp Services |
4 |
H:0x00000001 L:0x00000110 |
Query Comp Services List |
6.2.2 Outgoing Message Set
# | ID | Message |
---|---|---|
1 |
H:0x00000001 L: 0x00000111 |
Report Identification |
2 |
H:0x00000001 L: 0x00000112 |
Report Comp Services |
3 |
H:0x00000001 L: 0x00000113 |
Report Comp Services List |
6.3 Parameters
- CYCLEINTERVAL double, time interval in seconds of each cycle, default=0.1.
- SUBSYSTEMTYPE string, type of the subsystem. The value can be “UNKNOWN”, “NEURO_NETWORK”, WAREHOUSE”, “MANUFACTURING”, “UMAN_VEHICLE”, “SENSOR_NETWORK”, or “CONTROLLER”, default=”UNKNOWN”.
- SUBSYSTEMNAME string, name of this subsystem. Note: Report Identification message reports the name.
- DATATIMEOUT double, timeout in seconds not receiving updates of the registered services, default=10.0.
- DATACHECKINTERVAL double, time in seconds the registered services is check for timeout, default=2.0.