psila
psila copied to clipboard
Request for cooperation
Hi Erik,
I noticed you've found my Zigbee/Rust experimentation, and in turn I've stumbled upon your project. It turns out that there's quite a big overlap, and I would like to have a chat to see if we could split off the parts of our projects that we could use together (e.g. mostly the 802.15.4 & Zigbee data structures).
I'm quite fond of your Pack trait (in contrast to my Serialize/Deserialize traits), and I could port my automated deriving for basics structs and enums over to that trait.
The point of contention I do see is that you're bound by no-std, while I'd like to enjoy the comforts of std in my hub implementation, so we'd have to figure out a pack function that could either take a pre-allocated &mut [u8] as well as a &mut Vec
If you're interested, we could continue the conversation here, or feel free to e-mail me at [email protected].
Frans-willem
Hello Frans-Willem,
Sorry for the late response. Thank you for your interest in my project. As you have discovered, I found you project some time ago and have had a look. I did not reach out to you since we seemed to have different constraints and goals, but I agree that there probably is quite some overlap between our projects. Unfortunately I am in a period where I do not have much time for this project, and probably won't for the next coming months. But I am happy to answer any questions or comments on improvements that you have. You are welcome to take any code and/or inspiration for my work.
With regards to std and no_std. The psila_data
and psila_service
crates should use std if not the core
feature is used. I have had to cut corners to provide no_std functionality though.
Regards, Erik
No worries, I'm not always working on the same project either :) When you have time, see if my definitions of Pack, PackTagged, and ExtEnum (including automatic derivation) would be useful to you too. If they are, we can extract them to a separate package ('ieee802154-packing' maybe?) and then possibly work together on the other structures/enums used by Zigbee.
Sure, interesting. I will have a look. For 802.15.4 I am using https://github.com/braun-embedded/rust-ieee802.15.4 which I have contributed a bit to.