Circutor / gosem

An implementation of DLMS/COSEM en/decoder in Golang
MIT License
1 stars 2 forks source link

Facing issue with example #1

Open ngoyal16 opened 2 years ago

ngoyal16 commented 2 years ago

Not able to get data when using NewSettingsWithLowAuthentication or NewSettingsWithLowAuthenticationAndCiphering

panic: error sending AARQ: error sending: read failed: EOF

jduranf commented 2 years ago

@ngoyal16 seems the device isn't replying the AARQ.

The issue is in this line, when the library expects the device reply, but doesn't have any reply. You should check why the device doesn't reply.

ngoyal16 commented 2 years ago

@jduranf device is replying when there is no auth. but as soon as auth added it start thorwing the error.

ngoyal16 commented 2 years ago

/reopen

jduranf commented 2 years ago

@ngoyal16 the device isn't replying, for any reason. Can you attach the sent frame using gosem library, and the expected frame by the device?

ngoyal16 commented 2 years ago

how would i know what would be the expected frame?

jduranf commented 2 years ago

how would I know why the device doesn't reply? you can use another DLMS software and capture the frames

ngoyal16 commented 2 years ago

@jduranf

sent frame using lib: 000100200001005F605DA109060760857405080103A60A040848504C37323939388A0207808B0760857405080201AC12801031313131313131313131313131313131BE230421211F2000003C8D3B9BB4B244668FB489D7C2823D474292D6DC41E224872D1F7024

expected frame for meter: 00010020000100536051a109060760857405080103a60a040848504c37323939388a0207808b0760857405080201ac12801031313131313131313131313131313131be 170415 2113200000 0f1b 023efd292ccf1ee3209cd2363622

ngoyal16 commented 2 years ago

Also do we have plan to add Release request feature? while disconnect

jduranf commented 2 years ago

@ngoyal16 what do you mean with Release request feature? After disconnect there is nothing else to do...

Regarding the attached frames, can you send the frames using NewSettingsWithLowAuthentication?

Using NewSettingsWithLowAuthenticationAndCiphering the frames aren't the same probably due Ciphering settings. If you want, you can check generateUserInformation function, specially getInitiateRequest function to see if there is something wrong, or just review you Ciphering settings.

ngoyal16 commented 2 years ago

@jduranf release request mean RLRQ and RLRE