Hi
Using Gurux DLMS CPP i managed to create cpp server. as of now i'm able to setup its parameter for connection and add registers as well as the profile generics. currently the server is using Low authentication, now i would like the server to have HighGMac authentication. in Gurux C it looks quite simple, just need to declare the security object, add its association, and add its security setup.
How can i do this in cpp? any hint in the code for me to look up to? thanks in advance
Regards
jack
Hi, This is done in the same…
Hi,
This is done in the same way. You need to add security object and association object. Then update the correct authentication and block cipher keys in isTarget.
You can check this if you use the default block cipher and authentication keys and just add new association view object and set the authentication level to GMAC.
You can get the default keys from here:
https://github.com/Gurux/Gurux.DLMS.cpp/blob/1d48796032ed936a61debc615a…
BR,
Mikko
Hi, thanks for the response…
Hi, thanks for the response.
As per your suggestion, I tried to do it like this
2. GXDLMSBase.cpp
currently it shows
`Access error : Device reports a undefined object.`
i tried multiple times before, it either give me
`Segmentation fault`
or
I tried to follow the structure of C code. please show me where i did wrong. is it the object declaration? perhaps the usage or the place of code is wrong? can you provide minimal example on how to do this in cpp?
Thank you.
Regards,
jack
Hi, You don't need to add…
Hi,
You don't need to add CGXCipher if you are only implementing GMAC authentication.
CGXCipher is used with secure connections.
It's possible that the small example will be done in August after the summer holiday season is over in Finland.
BR,
Mikko
Hi Mikko I'm looking forward…
Hi Mikko
I'm looking forward for new example to be done, thank you for that.
I actually plan to have at least a connection with low authentication (password) and a connection with HighGMAC authentication, i presume that's what all of those headers file in include used for (GXDLMSServerLN, GXDLMSServerLN_47, GXDLMSServerSN, GXDLMSServerSN_47), am i right?
Hi, GXDLMSServerLN…
Hi,
GXDLMSServerLN implements a Logical Name meter that uses HDLC framing.
GXDLMSServerSN implements a Short Name meter that uses HDLC framing.
GXDLMSServerLN_47 implements a Logical Name meter that uses WRAPPER framing.
GXDLMSServerSN_47 implements a Short Name meter that uses WRAPPER framing.
HDLC is used with serial port connections and WRAPPER with TCP/IP connections.
BR,
Mikko
Hi Mikko, thank you, it's…
Hi Mikko, thank you, it's clear now
So if i want to add different security, what would be the best place for the code? can I just make another header file? or should i just put it inside the CGXDLMSBase::Init ?
Regards,
jack
Hi, If you want to add a new…
Hi,
If you want to add a new security, you need to add your own association for that. You can do that in CGXDLMSBase::Init.
BR,
Mikko
Hi Mikko, thank you for the…
Hi Mikko, thank you for the prompt response. I will try and report back to you.
Regards
jack
Hi Mikko, how're you doing?…
Hi Mikko, how're you doing?
I have tried adding highGMAC auth and a separate association, but haven't managed to do it. Will there be a new example of this in CPP?
Thank you
jack
Hi Jack, Customers are…
Hi Jack,
Customers are keeping us busy, but this is released at the end of this month.
BR,
Mikko
Hi Mikko, thank you for the…
Hi Mikko, thank you for the update on the schedule. In the meantime, i'll try again and report back my result here.
Regards
jack
Hi Mikko, hope you have a…
Hi Mikko, hope you have a good day. Is there any update regarding HighGMAC example in C++?
Regards,
jack