60 likes | 65 Views
This concept explores the structure and process of a gateway system that facilitates communication between upstream and downstream clients, using various queues and events for message passing. It also includes a resource provider, broker, and task relations. Supported message types include MQTT and MQTT-Sn, with events such as Publish, Connect, and Broadcast. The framework utilizes topics, helper classes, mutex, semaphores, timers, and exception handling for efficient task management.
E N D
Process Framework Process Multi Task Process Thread Task 0 Resource Provider Task 1 Task n Program Structure
Concept of the Gateway Upstream Gateway Clients Broker Downstream
Task Relations Gateway Main Task Resource Provider Broker Send Queue Gateway Event Queue Client Send Queue Broker Send Task Broker Receive Task Client Receive Task Client Send Task Broker Clients
Event Queue Structure Message Queue upstream < MQTT Message > Event Queue <Template> Message Queue downstream < MQTT Message > Client Node MessageQueue upstream < MQTT-Sn Message > Event MQTT-Sn Message Message Queue downstream < MQTT-Sn Message > Type of Events - Broker Send - Broker Recv - Client Send - Client Recv - Broadcast - Timeout Broadcast - SERCHGW - GWINFO - PUBLISH MQTT Message Connect
Resource Class clients Gateway Event Queue Client Node Broker Send Queue Message Queue< > Topics Client Send Queue Topic Resource Class Helper Class
Process Framework Class Process Multi Task Process Thread Mutex Semaphor Timer Exception EventQue< >