Hello sir,
I am working on establishing inter-process communication between a CommonAPI Some/IP C++ server (Which uses FRANCA IDL and associated deployment files) and a Some/IP python client.
Python Some/IP client
Library used for python Some/IP client:
someip 0.1.0, Pysomeip (https://pypi.org/project/someip/ )
import someip.header
from someip.sd import SOMEIPDatagramProtocol
Franca C++ Server
The C++ server that is used was setup as per the following link:
https://at.projects.genivi.org/wiki/pages/viewpage.action?pageId=5472320
Work done till now:
(C++ vsomeip server) <-------------------------- > (python client) Result: RPC Worked here.
Tried Some/IP IPC using a basic C++ vsomeip server (Which does not include CommonAPI and Franca) and the python client.
Server C++
Used the “Request/Response” example from the following link as the C++ server:
https://github.com/GENIVI/vsomeip/wiki/vsomeip-in-10-minutes
Snapshot 1 having log message on the Server Terminal Side.
Client Python
And the following example as the python client:
https://github.com/afflux/pysomeip/blob/master/tools/get.py
Snapshot 2 have the snapshot at the python side terminal log
I am attaching the snapshot of the IPC between the server and client:
Server
:
Fig: Snapshot 1
Client:
Fig: Snapshot 2
Issue Details:
On using the same client code to establish communication with the C++server code (Containing franca and commonAPI as mentioned in https://at.projects.genivi.org/wiki/pages/viewpage.action?pageId=5472320) the C++ server returns back an error saying “Malformed Message” as shown in snapshot 3:
Fig: Snapshot 3
The server here uses a .fidl file while the client does not contain any franca file for binding.
Are there any code generators for python which would take .fidl files and generate python codes for the same which could then be used at the client end?
Any other suggestion as to what direction to proceed on would be very much appreciated.
Thanks in advance.
Hello,unfortunately, I do not know about any Python code generator which produces CommonAPI compatible code (let alone for the SOME/IP stack). The current CommonAPI C++ tools and runtime implementation relies heavily on C++ language concepts. But as the generated server in your example will emanate correct SOME/IP messages and adheres to the protocol, it should be possible to manually implement a Python client or even build a code generator which produces Python code from *.fidl files. If you decide to progress in that direction, I would recommend to pick a Franca IDL subset in order to reduce your implementation effort.
If you encounter specific problems of vsomeip or CommonAPI related issues, this is not the correct forum. Pls choose from one of the following github-repositories and create an issue for your problem:
CommonAPI C++ is being developed by a different team, not by the Franca IDL tooling project.
--
You received this message because you are subscribed to the Google Groups "Franca" group.
To unsubscribe from this group and stop receiving emails from it, send an email to franca-framewo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/franca-framework/fd57536d-1db8-4b2b-8a51-079feb045eaan%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Franca" group.
To unsubscribe from this group and stop receiving emails from it, send an email to franca-framewo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/franca-framework/CAPrOUH2ERvQGieWh%3DQEVyhbr83HATLzE0sVmxLZKvXL2xf8YzQ%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Franca" group.
To unsubscribe from this group and stop receiving emails from it, send an email to franca-framewo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/franca-framework/CAPrOUH2ERvQGieWh%3DQEVyhbr83HATLzE0sVmxLZKvXL2xf8YzQ%40mail.gmail.com.