felixwrt / sml-rs

Smart Message Language parser written in Rust
Other
11 stars 3 forks source link

SML Attention #34

Closed Arne91 closed 5 days ago

Arne91 commented 3 months ago

Hello there,

The project is very interesting for us. But I am missing parts like parsing the sml attention responses. It would be useful to have it as a separate parse event or part of the message start (as part of the streaming parser).

Are there any plans to implement this in the future?

I am interested in your opinion.

Best regards, Arne

felixwrt commented 3 months ago

As far as I know, this crate has up to now only been used to passively listen to the data stream sent by smart meters, so there's never been a use case for attention responses. I'm open to implement support though. Could you share your use case? That would make it easier for me to understand what's needed and how it should be implemented. It would also make for good tests.

Best regards, Felix

Arne91 commented 3 months ago

One use case might be to log a communication between two devices as a passive listener. One device sends commands and the other device sends responses. In this case, the requested smart meter could throw an attention message, which may be interesting for debugging or logging purposes.

Best regards, Arne

felixwrt commented 3 months ago

Could you provide test data for such a scenario? I'd like to have some real world data to test the implementation.

I don't have much time for this project currently so I can't make any promises. If you'd be interested in doing the implementation though, I'd try to offer assistance and reviews.

felixwrt commented 5 days ago

Hi @Arne91, I'm closing this as I haven't heard back from you. Feel free to reopen if you're still interested in the topic.