vsomeip icon indicating copy to clipboard operation
vsomeip copied to clipboard

The version in the Find messages might be wrong

Open kheaactua opened this issue 3 years ago • 0 comments
trafficstars

When inspecting with Wireshark, my OFFER messages contain the proper version, but my FIND messages do not.

e.g.

Offer Service Entry (Service ID 0x0602, Instance ID 0x5679, Version: 1.0)
Find Service Entry (Service ID 0x0602, Instance ID 0x5679, Version: 1.4294967295)

It doesn't seem to matter. The client knows the interface version is actually 1.0, as proxy_->getInterfaceVersion()* is a Version(1,0), and the routing manager will still connect these two. But it's still suspicious.

* In addition, in the generated code, my test_service.hpp has:

45:CommonAPI::Version test_service::getInterfaceVersion() {
46:    return CommonAPI::Version(1, 0);

and in test_serviceSomeIPProxy.cpp I have

125:void test_serviceSomeIPProxy::getOwnVersion(uint16_t& ownVersionMajor, uint16_t& ownVersionMinor) const {
126:    ownVersionMajor = 1;
127:    ownVersionMinor = 0;

Basically the version is right everywhere in the code.

kheaactua avatar May 27 '22 00:05 kheaactua