Memory Limited Embedded Device #238
Replies: 1 comment 1 reply
-
Hi @sputnik-jy, I get the general idea that you are trying to fit LibOSDP in some low/no memory embedded device. Can you give me some information about your target so I get a sense of your constraints?
Are you facing some performance issues? If so, how many PDs are we talking about?
For PD mode we have this static allocation concept. OTOH, CP mode is often never run on anything so small that it cannot do dynamic memory allocation. But this should certainly be possible if you need to do this.
Again, possible but not very elegant. For instance a busy PD could starve others.
Sending with a local buffer is not the issue -- we use the RX buffer to build the packet only because it's lying around. Having on receiving buffer for all PDs might be the real problem. LibOSDP supports mutiple PDs belonging to the same channel and many such channels in one OSDP context. Maybe this can be done with some care but IMHO, it's not worth the effort. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello folks, writing this to ask for confirmation whether we can modify this library in some way so that for a given CP, it's capable to poll more PDs.
My understanding so far is for example when setting up 1 CP, it will dynamically allocate memory for each PD that's initialized for it. The limit of the PD that the cp_ctx could have is bound by the available heap size. So maybe I want to discuss
Appreciate your kind advices.
Beta Was this translation helpful? Give feedback.
All reactions