thombles / ax25-rs Goto Github PK
View Code? Open in Web Editor NEWUtilities for Packet Radio in Rust. AX.25 encoding/decoding and radio interfacing.
License: Apache License 2.0
Utilities for Packet Radio in Rust. AX.25 encoding/decoding and radio interfacing.
License: Apache License 2.0
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.
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.
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!
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?
I'm not sure how you're implementing no_std, but as of right now it's unable to be used from crates.io.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.