GithubHelp home page GithubHelp logo

thombles / ax25-rs Goto Github PK

View Code? Open in Web Editor NEW
54.0 54.0 10.0 104 KB

Utilities for Packet Radio in Rust. AX.25 encoding/decoding and radio interfacing.

License: Apache License 2.0

Rust 100.00%
amateur-radio ax25 ham-radio packet

ax25-rs's People

Contributors

thombles avatar wsh 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ax25-rs's Issues

Compilation failure with `thumbv6m-none-eabi` target

I'm using the ax25 v0.3.0 crate, which is giving me trouble when I try to compile it for a thumbv6m-none-eabi target on an RP2040 microcontroller. The compilation process fails with some import-related errors:

658 | fn parse_ui_frame(bytes: &[u8]) -> Result<FrameContent, FrameParseError> {
    |                                    ^^^^^^ not found in this scope
    |
help: consider importing one of these items
    |
1   + use alloc::fmt::Result;
    |
1   + use core::fmt::Result;
    |
1   + use core::result::Result;
    |
1   + use crate::frame::fmt::Result;

I think that issues in the ax25 crate, and i've clone ax25-rs repository and run checks for all libs. Checks passes for x86_64-unknown-linux-gnu target without any issues, but failed for thumbv6m-none-eabi with same errors:

~/ax25-rs (master) » cargo check --lib --target thumbv6m-none-eabi
... skipped a lot of duplicating lines

error[E0425]: cannot find function, tuple struct or tuple variant `Ok` in this scope
   --> ax25/src/frame.rs:727:5
    |
727 |     Ok(FrameContent::FrameReject(FrameReject {
    |     ^^ not found in this scope
    |
help: consider importing this tuple variant
    |
1   + use core::result::Result::Ok;
    |

error[E0412]: cannot find type `Result` in this scope
   --> ax25/src/frame.rs:745:35
    |
745 | fn parse_content(bytes: &[u8]) -> Result<FrameContent, FrameParseError> {
    |                                   ^^^^^^ not found in this scope
    |
help: consider importing one of these items
    |
1   + use alloc::fmt::Result;
    |
1   + use core::fmt::Result;
    |
1   + use core::result::Result;
    |
1   + use crate::frame::fmt::Result;

Is it library and target incompatibility issue or maybe my build toolchain issue? How can I use this library on arm6 targets?

Paclen restrictions are not exposed

For example when you define a radio in /etc/ax25/axports there is a paclen parameter.

paclen - is the default maximum packet size for this interface.

man page

If you try to transmit packets greater than this length then it will fail (at least in my previous testing). The linuxif TNC (and any others that work similarly) should query this information and make it available on the Tnc so the application can perform appropriate fragmentation.

Stateful connections

Are there any plans to add stateful connections to this library? I noticed it wasn't on the roadmap. Alternatively, if I implemented stateful connections, would a PR be accepted?

Awesome project, by the way!

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.