Short question
What would be easier to emulate (in Python) a complex (SAE J1939) communication stack from an existing embedded C library:
1) Full port - value manually converts all C functions to python modules
2) Wrap the stack in a Python shell - this means calling real c code in Python
Background Information
I already wrote small parts of this stack in Python, however they are very non-standard for implementation with 100% coverage. For this reason, we recently purchased a SAE J1939 stack on a shelf for our embedded platforms. To clarify, I know that parts affecting the hardware level must be re-created and mapped to PC drivers.
I hope to find someone here on SO who or even looked at porting the 5K LOC C library to Python. If there are C tools for Python that work well, that would be useful for me and for learning.
source share