Seeking some design advice
Posted: Sun Jun 13, 2010 10:27 am
Hi folks,
I am looking for some advice relative to a software application currently in design to run on NetBurner modules under uc/OS.
Essentially the applications calls for the equivalent of a central event loop that handles input/output over SSH, Telnet, Local Serial Port and will relay this input/output to another local serial port. The central event loop will also handle the instrumentation calls from the SNMP agent.
My questions focus upon the following aspect:
- is it simpler to create a separate OSTask for each input output/port as well as the SNMP agent, use fifo queues to exchange messages between tasks and rely upon the OSFifoPend() call?
- is it simpler to use a primary/central OSTask for all input/output ports, plus use a localhost port to connect the SNMP agent task to the primary task and rely upon the select() call?
Either approach will in all likelihood work just fine- but if one approach is considerably less complex and easier to code and test, then that would be preferred.
I appreciate all suggestions and comments!
- Mark
I am looking for some advice relative to a software application currently in design to run on NetBurner modules under uc/OS.
Essentially the applications calls for the equivalent of a central event loop that handles input/output over SSH, Telnet, Local Serial Port and will relay this input/output to another local serial port. The central event loop will also handle the instrumentation calls from the SNMP agent.
My questions focus upon the following aspect:
- is it simpler to create a separate OSTask for each input output/port as well as the SNMP agent, use fifo queues to exchange messages between tasks and rely upon the OSFifoPend() call?
- is it simpler to use a primary/central OSTask for all input/output ports, plus use a localhost port to connect the SNMP agent task to the primary task and rely upon the select() call?
Either approach will in all likelihood work just fine- but if one approach is considerably less complex and easier to code and test, then that would be preferred.
I appreciate all suggestions and comments!
- Mark