Skip to content
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

More Examples #95

Open
smart4energy opened this issue Feb 18, 2021 · 6 comments
Open

More Examples #95

smart4energy opened this issue Feb 18, 2021 · 6 comments
Labels

Comments

@smart4energy
Copy link

I started working with libsml. So i try to understand this library.

The server example is good. But I miss an example for creating a SML Message to request values from an bidrectional meter.

An perhaps a short example to create a client Example. Creating list_response_message.

So could someone who are familar with sml can create such examples ? Or help howto create these Messages.

So I can test the request/response on my machine with the Server and a Client.

@devZer0
Copy link

devZer0 commented Feb 18, 2021

what type of meter do you use? i think you are talking about what's being called "pullseq" in vzlogger. i'm not sure if libsml is being used for that, at least i did not see it yet. maybe there is code in libsml for that, afaik, libsml came from a theoretical/academical background, i.e. there was a spec and someone built a library based on that spec (someone correct me if i'm wrong)

@r00t-
Copy link
Collaborator

r00t- commented Feb 18, 2021

sml is not a bi-directional protocol, if a meter accepts input (like to trigger sending data), that input is not in sml format.

the only senders of sml are meters, and receivers are software, i don't think libsml even implements sending, as there's no use-case for it.
(while from a purely academic point of view it might be useful for testing, we could only ever test against ourselves anyway.)

@smart4energy
Copy link
Author

smart4energy commented Feb 18, 2021

SML is also a bidrectional protocol, because we have an requests Message and response Message in this protocol. So it also can used for this Case.
In Germany a Meter Like ehz has a ir Interface for customer and in the back a ir Interface for the meter operator. And im interested to read from the back interface because of Security.
The protocol is bidrectional sml protocol.
Also the bidrectional is described in German Papers about this protocol.

Open requests Message
Messages to request for example get list request
Close request Message

The answer would

Open response Message
Get list Response // this will be Periodic Pushed by the Front Interface. But then it is called get list Response without request.
Close Response Message

So i have to create These Messages with this library i think it is possible ?

A possible Meter is from the emh metering company.

@andig
Copy link

andig commented Feb 18, 2021

You‘re welcome to join the mailing list for open discussions. An issue tracker is likely not the best place for doing so.

@andig andig added the question label Feb 18, 2021
@antonmeyer
Copy link

here is an example of sending SML message.
https://github.com/dom3141/LMN_Communication_Example/blob/master/sources/sml.cpp
at least I got some inspiration
I want to disable the PIN via the MSB interface (MSB = MessStellenBetreiber)

@andig what mailing list you refer to?

@andig
Copy link

andig commented Mar 19, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants