CommonAPI-SomeIP, adding event groups

Manfred.Bathelt at bmw.de Manfred.Bathelt at bmw.de
Tue Apr 18 04:43:31 EDT 2017


Hi Bence,

is it possible you did not define an attribute “sayHello” in the Franca IDL (fidl) file (you did not attach it to your last mail)?
It might also be an issue to define an attribute and a method with same name here, better use unique names within an interface.

Best regards

Manfred

From: genivi-projects [mailto:genivi-projects-bounces at lists.genivi.org] On Behalf Of FIXED-TERM Kocsis Bence (AE/EEC4)
Sent: Wednesday, April 12, 2017 3:25 PM
To: Klaus Birken <kbirken at itemis.de>
Cc: genivi-projects at lists.genivi.org
Subject: RE: CommonAPI-SomeIP, adding event groups

Hi Klaus,

Thanks for you answer, I attach the file.

Üdvözlettel / Best regards

Bence Kocsis
AE/EEC4

From: Klaus Birken [mailto:kbirken at itemis.de]
Sent: 2017. április 12. 14:24
To: FIXED-TERM Kocsis Bence (AE/EEC4) <fixed-term.Bence.Kocsis2 at hu.bosch.com<mailto:fixed-term.Bence.Kocsis2 at hu.bosch.com>>
Cc: genivi-projects at lists.genivi.org<mailto:genivi-projects at lists.genivi.org>
Subject: Re: CommonAPI-SomeIP, adding event groups

Hi Bence,

it seems there is a syntax error in your fdepl file (probably on the lexer level). Can you post the whole file so we can have a look?

Regards,
Klaus


Am 12.04.2017 um 12:43 schrieb FIXED-TERM Kocsis Bence (AE/EEC4) <fixed-term.Bence.Kocsis2 at hu.bosch.com<mailto:fixed-term.Bence.Kocsis2 at hu.bosch.com>>:

Dear Colleagues,

Thank you for the compiling tip. I built everything, copied to the Raspberry Pi and everything runs.

I need to produce SomeIP-SD frames that include event groups, and I am having problems, even after I declare them on the vsomeip JSON configuration, as they do not show up on the packets.

My best guess is that the generated CommonAPI code needs to include the methods. Based on the examples I’ve found for instance in

https://github.com/GENIVI/capicxx-someip-tools/tree/master/CommonAPI-Examples/fidl

I added these lines to the .fdepl file, adding a method and attribute to an existing interface with Service ID:

    method sayHello {
        SomeIpMethodID = 1500
    }

    attribute sayHello {
        SomeIpNotifierID = 33002
                SomeIpEventGroups = { 33002 }
    }

But I get the following error when I try to generate the code:

Executing CommonAPI SomeIP Code Generation...

Using Franca Version 0.9.1.201412191134
Error: SomeIP validation: mismatched input 'attribute' expecting '}' in HelloWorld.fdepl line: 11
Error: SomeIP validation: mismatched input 'attribute' expecting '}' (file:/home/vagrant/generators/../x_project/HelloWorldProject/fidl/HelloWorld.fdepl line : 11)
/home/vagrant/generators/../x_project/HelloWorldProject/fidl/HelloWorld.fdepl contains validation errors !

So I would like to ask for your help, how should the .fidl and .fdepl files look like, in order to have generated code which can handle event groups.

Üdvözlettel / Best regards

Bence Kocsis
AE/EEC4


_______________________________________________
genivi-projects mailing list
genivi-projects at lists.genivi.org<mailto:genivi-projects at lists.genivi.org>
http://lists.genivi.org/cgi-bin/mailman/listinfo/genivi-projects

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genivi.org/pipermail/genivi-projects_lists.genivi.org/attachments/20170418/c45b0f0b/attachment.html>


More information about the genivi-projects mailing list