Git Product home page Git Product logo

psila's Introduction

Psila

Psila is a European genus of flies member of the family Psilidae or Rust Flies.

This is a work in progress implementation of handing Z**bee packages.

This project has not undergone any cerification or extensive testing, it is simply a hobby project

Goal

The goal is to be able to use a Nordic nRF52840 SoC as a device endpoint. Handling the on/off profile in home automation.

Organisation

The implementation has been divided into a few separate crates.

psila-data

Implements packing and unpacking of packets.

psila-crypto

Defines traits for cryptographical backend for use with Psila.

psila-crypto-rust-crypto

A implementation of the psila-cryto using Rust Crypto crates.

psila-service

A implementation of a service that handles and produce packages.

psila-host

A tool which listens on specially encoded packets over serial port and decodes these packets.

License

Licensed under the MIT license.

psila's People

Contributors

blueluna avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

psila's Issues

std lib

Are there plans to not use the std lib? I know nothing about embedded devices, but it looks like would be nicer to have no std in this one. I'm trying to put it into the ESP32 and had to activate std stuff.

I don't know, it looks like this MCU is too slow for std

IEEE 802.15.4 Implementation.

I wish to implement the 6LoWPAN standard on no_std rust. Right now I'm searching for IEEE 802.15.4 link-layer implementations. It would be really helpful If you can point me towards the relevant sections. Right now Im looking at the psila-data crate. Thank You!

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, and similarly would have to figure out data-structures that fit both our use-cases.

If you're interested, we could continue the conversation here, or feel free to e-mail me at [email protected].

Frans-willem

Unknown cluster codes

I just got a esp32 and when interpreting the mac frame with psila, I get packets with strange cluster and profile numbers:

################
nwk: NetworkHeader { control: FrameControl { frame_type: InterPan, protocol_version: 14, discover_route: EnableDiscovery, multicast: true, security: false, contains_source_route_frame: false, contains_destination_ieee_address: false, contains_source_ieee_address: false }, destination_address: ShortAddress(0), source_address: ShortAddress(0), radius: 0, sequence_number: 0, destination_ieee_address: None, source_ieee_address: None, multicast_control: None, source_route_frame: None }, used: 2

security header: SecurityHeader { control: SecurityControl { level: Integrity64, identifier: Network, has_source_address: false }, counter: 785921159, source: None, sequence: Some(4) }
APS: ApplicationServiceHeader { control: FrameControl { frame_type: InterPan, delivery_mode: Unicast, acknowledge_format: true, security: true, acknowledge_request: false, extended_header: true }, destination: None, group: None, cluster: Some(13323), profile: Some(0), source: None, counter: 0 }
SEC SecurityHeader { control: SecurityControl { level: EncryptedIntegrity64, identifier: KeyLoad, has_source_address: false }, counter: 72418744, source: None, sequence: None }
payload loaded, size: 96

which when converted to hexadecimal have nothing to do with the cluster and profiles listed on zigbee's documentation. Is it possible that this library is just interpreting random stuff as an APS header? I'm still waiting for my sniffer to arrive so I can look better on wireshark.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.