Hello Torsten,
I am unfamiliar with the WA8DED host mode, but this sounds very promising! I would love to include support for it in Pat.
I will do my best to explain the details for you. The key concept to understand is that Pat talks to the various transports through a few common
interfaces.
As you can see from these interfaces, your socket connection type must implement the
net.Conn-interface.
I am currently in the process of re-writing how Pat manages it's listeners (for incoming P2P connections), so my suggestion is that you focus on the Dialer-interface first.
Pat uses URIs to represent a station's address, where the URI scheme identifies which transport it should use to call the other station (E.g. telnet://, winmor://, ax25://, ardop://).
For "telnet", the package itself registers as a dialer upon import:
For WINMOR, it is a bit more complicated since we need to initialize the TNC before registering it:
The transport.URL structure was designed to include any information needed to configure/talk to a TNC.
The string syntax should be able to hold most information needed (I hope):
* wa8ded://mycall@/targetcall?host=/dev/ttyS0&baudrate=115200&... (?)
* ax25://mycall@axport/digi1/digi2/target
Many of these parameters have defaults added by Pat (host,mycall,baudrate etc.) from the JSON configuration:
If you have any questions, please let me know and I will try to assist you as best I can.
Please keep us posted on your progress, as I am sure there are plenty of people interested in this!
--
Martin / LA5NTA