-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linux NetROM support #72
Comments
Sounds interesting 🙂 With regards to SoC I think a new package and URL scheme (netrom://) are in order. Possibly re-using some functionality from the ax25 package (which will require some refactoring). I'm not familiar with Net/ROM, so I can't help you with those aspects. What I can tell you is that writing such low-level code in Go can be a challenging task depending on how familiar you are with the language, Cgo and/or the But to get you going, you will need to clone both wl2k-go and pat into adjecent folders and use the
More on |
By the way, there is a Wiki page explaining how to implement a new transport driver here: |
Aha! Thanks, I'll see how far I can get with this. |
Good luck 🙂 Don't hesitate to reach out if you find yourself stuck down the road! |
Stuck! In the
This is the struct from the C header files:
The problem seems to be that the bare
isn't the same type as the required pointer to the C struct. I suspect I'm up against something interesting about the cgo stuff. If I wanted to pass a pointer to a subcomponent, that seems to be possible, as in the ax25 transport. How do I pass a pointer to the whole thing?
Sorry, this note is a bit upside down, it's late. ;) |
Hmm.. 🤔 It's been a while since I had to struggle with Cgo. But could it be as simple as |
Probably not. See this: wl2k-go/transport/ax25/ax25_linux.go Line 353 in 8d29296
Looks like you have to use
|
Thank you. That got it to compile, at least. |
The Pat session:
The
Clearly more testing is in order, as this was a minimal session, and there's some fiddly stuff required with the callsigns and such, but it basically worked! |
I've been moving actual mail through this thing for a few days now without issues. I've moved binary attachments both directions, too. Next hacking session, I'll try to clean up the callsign/alias issues &c. |
I'm interested in having NetROM support for outbound connections. I'm really not a go programmer, so some of the knowledge I'd need to start this project are missing -- building pat + wl2k-go with local mods, etc.
From a brief investigation, I think the changes would mostly consist of using AF_NETROM for the socket, calling nr_config_load_ports instead of the ax_ version, adding a netrom: url scheme, not using digis. Not sure whether this would be better done as a separate transport, or as conditionals in the ax25 path.
Thoughts?
The text was updated successfully, but these errors were encountered: