-
Notifications
You must be signed in to change notification settings - Fork 1
Litem requirements
Steam Project administrador edited this page Feb 19, 2019
·
1 revision
This document defines the functional requirements for Litems. Read Concentrator requirements and Manager requirements for getting a full vision of the project requirements.
- A Litem will always be accesible through a network, known as Litem network.
- Litem network: That network shared by a set of Litems.
- Concentrator request: An operation from the concentrator to the Litem addressed to read/set data fields, invoke actions or subscribe to events
- A byte corresponds to 8 bits
- A word corresponds to 16 bits
- A dword corresponds to 32 bits
- Any referencie to UTF-8 must be interpreted as 16 bit fixed lenght
- Event subscription: Action that allows a receiver getting notifications every time that a given event happens in a sender
- Event unsubscription: Cancellation of a current event subscription
- Request message: Inquiry that one entity sends another in order to ask for information, task execution or event subscription/unsubscription
- Response message: Reaction to a request, in which an entity responds with informatio, task execution result or event subscription/unsubscription to a previos request
- Push message: Reaction to an event triggered in an entity for witch another entity has previously subscribed. The reaction message contains information regarding the triggered event
- Every Litem will have a logical address, independent of the network address it had
- Litem will allow the concentrator read/set single data fields
- Litem will allow the concentrator read/set blocks of data fields
- Litem will allow the concentrator invoke actions
- Litem will allow the concentrator to subscribe/unsubscribe to Litem events
- Litem will support byte, word, dword and UTF-8 character datafields
- Litem will support arrays of the above defined types to be stored in data fields
- The first byte of on array will contain the number of items stored in the array, therefore the maximum lenght of an array will be 255 items
- Litem will respond to a concentrator request message with a return code (byte), indicating the request result
- Depending on the concentrator request nature, the Litem response message will contain, additionally to the return code, data of the types defined in the requirement 6
- During the time in which an event subscription was active, the Litem will send push messages to the concentrator every time the event was triggered
- A push message will contain information regarding the event triggered in the Litem