-
Notifications
You must be signed in to change notification settings - Fork 66
Fixing multiple issues #36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Useful, when you need to create a custom objects. It is easier than duplicating whole GXDLMS class.
Hi, Thank you for pointing out the following issues and they are now fixed.
I can't accept those changes: I need to verify the key info and check how customers are using it at the moment. I need to think about whether the object creation moved to its own class. BR, |
I was using the setInvocationCounter to set the object to null, hence it disables the invocation counter check on the server side. And I checked what I used the public settings for and it was to get the SourceSystemTitle in the initialize the connection, to check what is the real server system title in creating encrypted connections. |
@gurux-kurumi I just found another issue regarding the GSM Diagnostics. Also I think, that in this case, the use of comment is redundant. It is much more readable, when I can see all the enums without the use of comments, that say the same thing. Here is the updated enum: |
Hi Mikko,
I'm using this library for about a 7 years. I found multiple issues during this time. Some are already resolved, but here are some that are not fixed yet. I split each of them to different commit.
GXAPDU
there was incorrect condition in adding Calling-AP-System-Title. It should add it when ciphering is used or when one of these HLS are used (GMAC, SHA256 and ECDSA)GXSecure
there is ignored len tag for KeyInfo, which is optional, so when there is no information, it would fail. Now this length tag is properly managed.GXDLMSGSMDiagnostic
there was small mistake in the setting up the operator value from recieved data.One extra change I'm suggesting is in the extraction of a code, that creates a new DLMS object into new class. It enables users to create manufacturer specific objects more easily, whitout the need of cloning the
GXDLMS
class (this class is changing almost everytime). I named this classGXCreateObject
and placed it into objects package.