I tried not setting the protocol version however I still got the same result:
S-> 7ea03803811068e6e6e600602aa1090607608574050801028a0207808b0760857405080200be10040e01000000065f1f04001c0b200000137c7e
And as per your question, yes I am using Gurux Android ( but only for the first aarq req that i showed above, the second one is copied from .map110 software). I have implemented these packages into my app:
implementation 'com.github.gurux:gurux.common.android:-SNAPSHOT'
implementation 'com.github.gurux:gurux.serial.android:-SNAPSHOT'
implementation 'com.github.gurux:gurux.dlms.android:-SNAPSHOT'
I have also tried not adding "BLOCK_TRANSFER_WITH_SET_OR_WRITE" and not setting max PDU size but I get the same result as the rest. The reason i did those including setting the protocol version is to get as close as possible to the request that works.
The only difference I see between the two signals above is that the one that doesn't work has these two additional lines:
<SenderACSERequirements Value="1" />
<MechanismName Value="None" />
Are you sure that you are running version from GitHub? I made a new project added your source code and there is no version. What is your Android Studio version?
I am using Android Studio 3.6.3, and i'm pretty sure that it's your github version since it says github in the implementation itself implementation 'com.github.gurux:gurux.serial.android:-SNAPSHOT'. Did you add your library the same way? Which version do you not have, are you talking about ProposedDlmsVersionNumber or ProtocolVersion?
Also today I downloaded your github code and modified your method 'getAuthenticationString' to suppress ACSE-requirements field (in the previous comments I used the unmodified github version) and it worked.
Hi Alex,
Hi Alex,
Don't set Protocol version. I believe that you are not using Gurux Android component?
BR,
Mikko
Hi Mikko,
Hi Mikko,
I tried not setting the protocol version however I still got the same result:
S-> 7ea03803811068e6e6e600602aa1090607608574050801028a0207808b0760857405080200be10040e01000000065f1f04001c0b200000137c7e
R<- 7ea036810330006fe6e7006128a109060760857405080102a203020101a305a10302010ebe0f040d0800065f04001802200960fa00203b7e
And as per your question, yes I am using Gurux Android ( but only for the first aarq req that i showed above, the second one is copied from .map110 software). I have implemented these packages into my app:
implementation 'com.github.gurux:gurux.common.android:-SNAPSHOT'
implementation 'com.github.gurux:gurux.serial.android:-SNAPSHOT'
implementation 'com.github.gurux:gurux.dlms.android:-SNAPSHOT'
And the way I init the client is:
client = new GXDLMSClient();
client.setUseLogicalNameReferencing(false);
client.setInterfaceType(gurux.dlms.enums.InterfaceType.HDLC);
client.setServerAddress(1);
client.setClientAddress(64);
client.setAuthentication(Authentication.NONE);
client.getProposedConformance().add(Conformance.BLOCK_TRANSFER_WITH_SET_OR_WRITE);
client.setMaxReceivePDUSize(0);
...
Send -> client.aarqRequest();
I have also tried not adding "BLOCK_TRANSFER_WITH_SET_OR_WRITE" and not setting max PDU size but I get the same result as the rest. The reason i did those including setting the protocol version is to get as close as possible to the request that works.
The only difference I see between the two signals above is that the one that doesn't work has these two additional lines:
<SenderACSERequirements Value="1" />
<MechanismName Value="None" />
Could I somehow remove those 2?
BR,
Alex
Hi,
Hi,
Are you sure that you are running version from GitHub? I made a new project added your source code and there is no version. What is your Android Studio version?
BR,
Mikko
Hi,
Hi,
I am using Android Studio 3.6.3, and i'm pretty sure that it's your github version since it says github in the implementation itself implementation 'com.github.gurux:gurux.serial.android:-SNAPSHOT'. Did you add your library the same way? Which version do you not have, are you talking about ProposedDlmsVersionNumber or ProtocolVersion?
Also today I downloaded your github code and modified your method 'getAuthenticationString' to suppress ACSE-requirements field (in the previous comments I used the unmodified github version) and it worked.
S-> 7ea0340381105c71e6e6006026a1090607608574050801028b0760857405080200be10040e01000000065f1f04001c0b200000551b7e
R<- 7ea037810330bb73e6e7006128a109060760857405080102a203020100a305a103020100be0f040d0800065f1f04001802200960fa000aa87e
Why would that be an issue?
BR,
Alex
Hi,
Hi,
You are right. I accidentally use a different version that is not published yet. This is fixed. Get the latest version.
BR,
Mikko
Thank you for your help.
Thank you for your help.
BR,
Alex