You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm analyzing the file modbus_core.c and noticed that the function modbus_rx_handler appears to be invoked by the kernel, but it's not immediately clear how this happens under the hood.
A few specific questions:
How is modbus_rx_handler registered or linked into the system so that it gets called by the kernel?
Is it tied to an interrupt or callback mechanism, such as via a UART or DMA receive interrupt?
It seems that the handler is only invoked when data is actually sent to the Modbus device. Is this correct? Or are there edge cases where it might be called in other contexts as well?
Is it possible to delay the invocation of modbus_rx_handler or triggering the sending the data back to modbus client by a user defined delay length and not through a KConfig Config?
Any clarification on the internal flow or pointers to where this linkage happens would be appreciated.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I'm analyzing the file modbus_core.c and noticed that the function modbus_rx_handler appears to be invoked by the kernel, but it's not immediately clear how this happens under the hood.
A few specific questions:
How is modbus_rx_handler registered or linked into the system so that it gets called by the kernel?
Is it tied to an interrupt or callback mechanism, such as via a UART or DMA receive interrupt?
It seems that the handler is only invoked when data is actually sent to the Modbus device. Is this correct? Or are there edge cases where it might be called in other contexts as well?
Is it possible to delay the invocation of modbus_rx_handler or triggering the sending the data back to modbus client by a user defined delay length and not through a KConfig Config?
Any clarification on the internal flow or pointers to where this linkage happens would be appreciated.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions