I have updated my Gurux lib from 1.2 to 1.4 recently and I have some problems.
In the new class GXDLMSSNCommandHandler, in handleRead() method I have noticed a new check in the code that didn't exist in my old Gurux version :
// Return error if connection is not established.
if (!settings.isConnected()
&& (!e.isAction() || e.getTarget().getShortName() != 0xFA00
|| e.getIndex() != 8)) {
replyData.set(GXDLMSServer.generateConfirmedServiceError(
ConfirmedServiceError.INITIATE_ERROR, ServiceError.SERVICE,
Service.UNSUPPORTED.getValue()));
return;
}
I understand that you check if client and server have already made association (AARQ/AARE) before we can read a COSEM object ? It can be a problem in our context we have public objects that can be read without association, so how can we deal with them ?
Thank you from this information. This is request from one of our clients.
We will think how to solve this. Usually AARQ/AARE info is needed to set
size of PDU and authentication level.
Hi,
Thank you for your response, you are right for the most part of our COSEM object AARQ/AARE is needed but in our context, they only let a few COSEM objects readable directly (like LAN configuration, Firmware version, ...).
I think you can rely on gurux.dlms.enums.AccessMode (READ, AUTHENTICATED_READ, ...) in order to know if association is needed ?
I have juste review the detail of the new version (2.1.5) and I can see the new property "AllowAnonymousAccess" only in GXDLMSServer2 and not in GXDLMSServer.
What is the difference and the purpose of these 2 classes GXDLMSServer & GXDLMSServer2 ?
GXDLMSServer2 is new server class that we are using. We have implement pre- and post-events for all methods (read, write, action). Let me know if you can't use that and I'll ask to add AllowAnonymousAccess to GXDLMSServer.
Error "connection is not established"
Hi,
Thank you from this information. This is request from one of our clients.
We will think how to solve this. Usually AARQ/AARE info is needed to set
size of PDU and authentication level.
BR,
Mikko
Error "connection is not established"
Hi,
Thank you for your response, you are right for the most part of our COSEM object AARQ/AARE is needed but in our context, they only let a few COSEM objects readable directly (like LAN configuration, Firmware version, ...).
I think you can rely on gurux.dlms.enums.AccessMode (READ, AUTHENTICATED_READ, ...) in order to know if association is needed ?
Mansour.
Error "connection is not established"
Hi,
Nothing new for this feature request ?
Thanks
Mansour
Error "connection is not established"
Hi Mansour,
Sorry for slow reply. It take some time to verify this from DLMS UA, but it's possible to do and we
are still pass CCT tests.
We try to release new version for Java and C# today or latest tomorrow.
BR,
Mikko
Error "connection is not established"
Hi,
We released new version last week. There is a new property: AllowAnonymousAccess .
Set that to true if value can read without AARQ/AARE.
BR,
Mikko
Hi MIkko,
Hi MIkko,
Thank you very much, we are going to test the new property.
Very usefull for us :)
Mansour
Error "connection is not established"
Hi Mikko,
I have juste review the detail of the new version (2.1.5) and I can see the new property "AllowAnonymousAccess" only in GXDLMSServer2 and not in GXDLMSServer.
What is the difference and the purpose of these 2 classes GXDLMSServer & GXDLMSServer2 ?
Thanks
Mansour
Error "connection is not established"
Hi,
GXDLMSServer2 is new server class that we are using. We have implement pre- and post-events for all methods (read, write, action). Let me know if you can't use that and I'll ask to add AllowAnonymousAccess to GXDLMSServer.
Read more from here:
http://www.gurux.fi/newAPI
BR,
Mikko