Comments (22)
I would love to give this a go. If you could send me the example code and documentation, I'll take a crack at it.
from wl2k-go.
from wl2k-go.
Quick update: I've been making some progress on this over the summer. I believe I've found a good approach for managing the TNC state by demultiplexing the incoming frames to various goroutines. I have done some preliminary testing with two Pat instances (P2P) and a small "chat" app I wrote just to see how the TNC (Direwolf) behaves.
I still haven't tested with the original AGWPE application on Windows, but hopefully the two TNCs behave the same 🤞.
I've also started to fiddle with a solution for having multiple transports supporting the ax25:// scheme in Pat, with a config option to select the default driver.
To be continued...
from wl2k-go.
I've pushed a branch of Pat that uses this transport if anyone wants to check it out: https://github.com/la5nta/pat/tree/feature/agwpe-engine.
from wl2k-go.
I would personally vote for the AGW route as this would allow you to leverage Direwolf's AX25 v2.2 stack and all of it's built-in intelligence vs. dumb things down via the KISS interface.
from wl2k-go.
@martinhpedersen I actually received some code and documentation from @wb2osz yesterday that I have started looking through.
from wl2k-go.
I have received some example C code from @wb2osz, and some documentation. If someone is willing to give this a go, then please let me know so I can forward the files.
I am considering to prioritize this feature soon... but I haven't found the time yet :/
from wl2k-go.
I wouldn't mind seeing those files, but I know nothing of the code in this project to help at this time.
from wl2k-go.
I'm very glad to hear that! I've sent an inquiry to the original author today, requesting permission to share the code with you :)
Thank you!
from wl2k-go.
AGWPE has a security feature that would be prudent to include for full AGWPE functionality. However, I believe Direwolf does not implement this.
From the documentation:
Login/Password validation.
The AGW Packet Engine user has now the ability to prohibit access of agwpe for other programs. The Security levels are 3.
- Allow any program to use agwpe.
- Allow only programs that run in his LAN.
- Allow only programs that run in his computer.
If the security level is set to 2 or 3. Then a program can gain access with a login validation procedure.
This is done using the new frame ‘P’ (capital letter P).
This is fairly simple to implement as it only requres sending the login frame to AGW. However, I don't see any straight forward way right now to pass AGW username and password information into the TNC open/init functions. It doesn't look like it can be done cleanly via the dialer url anyways.
What are our thoughts on this? Also, please let me know if this is the best place to post questions and seek feedback as I'm working on this.
from wl2k-go.
Also, please let me know if this is the best place to post questions and seek feedback as I'm working on this.
Sure, we can continue the discussion here :) But feel free to email directly if you prefer.
However, I don't see any straight forward way right now to pass AGW username and password information into the TNC open/init functions. It doesn't look like it can be done cleanly via the dialer url anyways.
It sounds to me like this is something that we could add in a separate config section for agw, and pass to the TNC as part of the open/init function.
Dave Cheney's Functional options for friendly APIs comes to find as a nice way to open up for this but still maintain a good and uncluttered API.
Another approach could be to let Open() take an optional Config-struct Options-struct, similar to boltdb's API.
AGWPE has a security feature that would be prudent to include for full AGWPE functionality. However, I believe Direwolf does not implement this.
I suspect that most users will prefer Direwolf over AGWPE, simply because more than 95% of Pat users run Linux. So IMHO, I think we can defer this security feature. But that's for you to decide 👍
Thanks for taking the time to work on this!
from wl2k-go.
For the record. https://github.com/la5nta/pat/wiki/Adding-transports was added today, as discussed in la5nta/pat#175.
from wl2k-go.
Has there been any development on this feature addition? I would love to use pat without having to deal with kernel ax.25 or kiss. AGW is my preferred interface for APRS clients and is much, much easier to set up for users (I've been struggling with this the last several days).
from wl2k-go.
This feature would be very beneficial. Setting up AX.25 for Linux is complicated and a new bug was discovered recently. https://groups.io/g/direwolf/message/5074
from wl2k-go.
Adding voice in support of this. Thank you!
from wl2k-go.
Sent my very first WinLink via RF packets tonight... Linux Ax.25 implementation made it terrible, with more obtuse configuration than expected and some kind of bug in reconnecting. I don't think the implementation feels ready for prime time.
from wl2k-go.
I've started working on a transport package implementing this. Will probably take some time 🐌.
from wl2k-go.
from wl2k-go.
Sure, it would be great if you could share what you've found so far 👍
I'll try to push my branch within a couple of days so you can have a look at it. Maybe we can work on this together somehow 🙂
I have been using direwolf as my test modem, and it looks like the login procedure is not required at all. I've managed to register a callsign+port and also initiated the dialing operation by sending a 'c' frame to direwolf. Direwolf have some very handy logging capabilities, so that's going to be very helpful I think.
So far I have written code for encoding/decoding frames, and started implementing a TNC
type to represent the AGWPE connection. I don't have a clear picture on how to manage the TNC state yet. From my own experience writing the ARDOP and WINOR packages, that's the hardest thing to get right when it comes to writing a transport driver. Especially for modems supporting concurrent connections. My plan is to do some experimenting with different designs to come up with a good approach for handling the TNC/port/connection states correctly, without too much complexity.
I've been using this as my protocol reference so far: https://www.on7lds.net/42/sites/default/files/AGWPEAPI.HTM.
from wl2k-go.
@martinhpedersen Sounds great! Do you have code I could test and compare to what I have right now?
from wl2k-go.
@KI7ODK - I've pushed the branch now :) Will push relevant changes to the Pat repo as soon as I have done my own review of the code.
from wl2k-go.
Here is the chat app I've been using for testing purposes:
https://go.dev/play/p/b_5rTBdTKi4
from wl2k-go.
Related Issues (20)
- fbb: Support yet another undocumented date header layout (2006-01-02 15:04) HOT 1
- lzhuf: port to Go
- ardop: Migrate to the new host interface introduced in v0.5 HOT 1
- ardop: Host interface changed yet again HOT 2
- Support for KISS over TCP HOT 5
- Switch to github.com/tarm/serial HOT 2
- ardop: panic: close of closed channel
- ardop: support version 2 HOT 1
- transport: Native KISS+AX.25 support HOT 9
- Add support for ICS forms HOT 2
- Add support for VARA HOT 4
- Linux NetROM support HOT 10
- Dangling socket on failed connection HOT 2
- FBB: More lenient date\time parsing HOT 3
- CLI client for manual WL2K commands?
- Issue with Hurricane form HOT 1
- ARDOP: Enable FSKONLY mode HOT 6
- Error handling B2F message with leading CRLFs
- Connection failure using agwpe implementation HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wl2k-go.