AX25 über TCP/IP Port einrichten und senden benötige HILFE!

Antworten
Benutzeravatar
picrard
Santiago 1
Beiträge: 30
Registriert: Mo 26. Okt 2015, 23:13
Standort in der Userkarte: Stolpe
Wohnort: Stolpe

AX25 über TCP/IP Port einrichten und senden benötige HILFE!

#1

Beitrag von picrard »

Hallo Liebe Forumsgemeinschaft,

ich habe eine Frage zum versenden von Paketen über TCP/IP->AX25.

Ich benutze Ubuntu-Linux und wollte mir die ax25tools zur Hilfe nehmen um im Kiss-Modus
zu senden. Ich benutze ein TNC2400 und ein EPROM mit TF2.7b.

Ich bin so vorgegangen:

Code: Alles auswählen

sudo /usr/sbin/kissattach /dev/ttyS0 afsk 10.0.0.1
sudo kissparms -p afsk -t 100 -s 100 -r 25
sudo /sbin/route add -net 10.0.0.0 netmask 255.255.255.0 ax0
sudo /sbin/route add default ax0
Der Port wurde eingerichtet und ich konnte auch 10.0.0.1 anpingen.
Leider wurde bei ping 10.0.0.2 (so habe ich ein weiteres TNC über einen anderen Rechner
angemeldet) mit Host unreachable quittiert und das TNC schickte keine Pakete raus.

Bei einem anderen Versuch habe ich vorher im seriellen Terminal mittels @K den Kiss-Modus vorsichtshalber
aktiviert(Muss ich den überhaupt aktivieren???, Ist das Blinken der LEDS STA und CON eine Rückmeldung gewesen???)

nach dem Eintrag von sudo /sbin/route add default ax0 ist meine Internetverbindung down,
aber 10.0.0.1 ist immer noch anpingbar, nur leider verschickt das TNC keine Pakete???

Kann mir jemand beim einrichten des Ports helfen?

Ich würde gerne so etwas probieren, das klingt für mich interessant:
https://www.youtube.com/watch?v=qdayzRIPEMk

Das kann doch eigentlich nicht so schwer sein, meine Quellen sind:
http://www.linuxhaven.de/dlhp/HOWTO/DE- ... WTO-7.html
http://www.jusch.ch/dokus/howto-de/DE-AX25-HOWTO-6.html
http://www.tldp.org/HOWTO/AX25-HOWTO/x1194.html
http://www.tldp.org/HOWTO/AX25-HOWTO/x2329.html

kann mir jemdand weiter helfen???
-- STABO - FAN --
Benutzeravatar
13TH672
Santiago 6
Beiträge: 480
Registriert: Do 1. Jul 2004, 13:16
Standort in der Userkarte: Berlin Gruenau
Wohnort: Berlin

Re: AX25 über TCP/IP Port einrichten und senden benötige HIL

#2

Beitrag von 13TH672 »

Moin.

Die 2 blinkenden LED am TNC passen, der ist damit im KISS-Mode. Mehr kann ich Dir leider nicht sagen, ich bin seit 10 Jahren raus aus der Materie.
Ich kann Dir erst mal nur Anleitungen wie http://www.linuxhaven.de/dlhp/HOWTO/DE- ... WTO-6.html anbieten.

MfG, Matthias
Biber (13TH672, 13CT570, Q13BBR, DAB563) - Matthias - Berlin - JO62SK
salat
Santiago 6
Beiträge: 479
Registriert: Sa 18. Dez 2010, 17:26
Standort in der Userkarte: Balingen

Re: AX25 über TCP/IP Port einrichten und senden benötige HIL

#3

Beitrag von salat »

picrard hat geschrieben:

Code: Alles auswählen

sudo /usr/sbin/kissattach /dev/ttyS0 afsk 10.0.0.1
nach dem Eintrag von sudo /sbin/route add default ax0 ist meine Internetverbindung down,
aber 10.0.0.1 ist immer noch anpingbar, nur leider verschickt das TNC keine Pakete???
Wenn du 10.0.0.1 anpingst antwortet logischerweise dein eigener Rechner, da die IP dem Interface ax0 zugewiesen ist.
Es ist nicht nötig, die Defaultroute über ax0 zu leiten, das brauchst Du nur wenn alle IP Pakete, für die keine genauere Route existiert über ax0 routen willst.

Ich würde zuerst prüfen, ob dein TNC überhaupt unter /dev/ttyS0 erreichbar ist, bzw. im KISS Mode ist:
Evtl. muss man mit

Code: Alles auswählen

stty -F /dev/ttyS0 9600
die Baudrate des Ports setzen. Dann sollte man z.B. mit einem Terminalprogramm wie minicom mit dem TNC reden können.
Falls da keine Rückmeldung kommt würde ich Port und vom TNC erwartete Badrate prüfen.

Den TNC muss man für kissattach natürlich in den KISS Mode bringen. Dein Befehl war richtig:
ESC @K Einschalten des eingebauten KISS/SMACK-Modus. (nicht TNC7multi)
Das kann man z.B. auch mit

Code: Alles auswählen

echo -en "\r\033@K\r" > /dev/ttyS0
vor dem kissattach machen..

73, Sascha
Benutzeravatar
picrard
Santiago 1
Beiträge: 30
Registriert: Mo 26. Okt 2015, 23:13
Standort in der Userkarte: Stolpe
Wohnort: Stolpe

Re: AX25 über TCP/IP Port einrichten und senden benötige HIL

#4

Beitrag von picrard »

Erst einmal vielen Dank für die Infos...

... ich habe es nochmal anders versucht, da ich irgendwo auch gehört/gelesen habe, dass
SAMBA AVAHI etc. aus sein müssten, habe ich die DAEMONS ausgeschaltet und es etwas anders nach:
http://www.tldp.org/HOWTO/AX25-HOWTO/x1194.html
probiert, trotzdem keine Erfolg.

Code: Alles auswählen

picrard@server:~$ sudo service avahi-daemon stop
avahi-daemon stop/waiting
picrard@server:~$ sudo service smbd stop
smbd stop/waiting
picrard@server:~$ sudo service nmbd stop
nmbd stop/waiting
picrard@server:~$ stty -F /dev/ttyS0 9600
picrard@server:~$ echo -en "\r\033@K\r" > /dev/ttyS0
picrard@server:~$ sudo /usr/sbin/kissattach -i 44.136.8.5 -m 512 /dev/ttyS0 afsk
kissattach: -i flag depreciated, use new command line format instead.
AX.25 port afsk bound to device ax0
picrard@server:~$ sudo kissparms -p afsk -t 100 -s 100 -r 25
picrard@server:~$ sudo /sbin/route add -net 44.136.8.0 netmask 255.255.255.0 ax0
picrard@server:~$ ping -i 5 44.136.8.58
PING 44.136.8.58 (44.136.8.58) 56(84) bytes of data.
From 44.136.8.5 icmp_seq=1 Destination Host Unreachable
From 44.136.8.5 icmp_seq=2 Destination Host Unreachable
From 44.136.8.5 icmp_seq=3 Destination Host Unreachable
From 44.136.8.5 icmp_seq=4 Destination Host Unreachable
From 44.136.8.5 icmp_seq=5 Destination Host Unreachable
^C
--- 44.136.8.58 ping statistics ---
6 packets transmitted, 0 received, +5 errors, 100% packet loss, time 25009ms
Das Destination Host Unreachable ist klar, da ich ja kein weiteres TNC eingerichtet habe,
aber er versucht auch gar nicht erst wie in diesem Video über das TNC zu pingen....
https://www.youtube.com/watch?v=qdayzRIPEMk
oder hier:
https://www.youtube.com/watch?v=rO4lr5lYwJ4

mit stty -F /dev/ttyS0 9600 initiiere eine 9600Bd Verbindung zu ttyS0
mit echo -en "\r\033@K\r" > /dev/ttyS0 initiiere ich den KISS-Mode (klappt auch STA und CON blinken 2x)
nach sudo /usr/sbin/kissattach -i 44.136.8.5 -m 512 /dev/ttyS0 afsk leuchtet STA konstant....

:clue:
-- STABO - FAN --
dct645
Santiago 2
Beiträge: 88
Registriert: Do 29. Dez 2011, 09:35
Standort in der Userkarte: bergen auf rügen
Wohnort: Bergen auf Rügen
Kontaktdaten:

Re: AX25 über TCP/IP Port einrichten und senden benötige HIL

#5

Beitrag von dct645 »

viel zu kompliziert das ganze geht auch einfacher unter linux
mit dem linbpq ;-)

http://www.cantab.net/users/john.wiseman/Downloads/




PORT
PORTNUM=1 ; Optional but sets port number if stated
ID=BPQ 27.235 MHz ; Displayed by PORTS command
TYPE=ASYNC ; Port is RS232 Com
PROTOCOL=KISS ; TNC is used in KISS or JKISSmode
FULLDUP=0 ; Only meaningful for KISS or JKISS devices
IOADDR=1 ; 1 = SERIAL PORT COM1 ETC.
SPEED=9600 ; RS232 COM PORT SPEED
CHANNEL=A ; A for single channel TNC, A or B for multichannel
PERSIST=64 ; PERSIST=256/(# of transmitters-1)
SLOTTIME=100 ; CMSA interval timer in milliseconds
TXDELAY=270 ; Transmit keyup delay in milliseconds
TXTAIL=30 ; TX key down, in milliseconds, at packet end
QUALITY=0 ; Quality factor applied to node broadcasts heard on
MINQUAL=0 ; Entries in the nodes table with qualities greater or
MAXFRAME=1 ; Max outstanding frames (1 thru 7)
FRACK=5000 ; Level 2 timout in milliseconds
RESPTIME=1000 ; Level 2 delayed ack timer in milliseconds
RETRIES=25 ; Level 2 maximum retry value
PACLEN=236 ; Default max packet length for this port
UNPROTO=ID ; BTEXT broadcast addrs format: DEST[,digi1[,digi2]]
BCALL=CT2NET ; BTEXT call. unstated defaults to APPL1CALL
L3ONLY=0 ; 1=No user downlink connects on this port
DIGIFLAG=1 ; Digipeat: 0=OFF, 1=ALL, 255=UI Only
DIGIPORT=1,2,6
DIGIMASK=65535 ; Digi UI Frames to all ports
USERS=0 ; Maximum number of L2 sessions, 0 = no limit
MHEARD=99

ENDPORT
PORT
PORTNUM=2 ; Optional but sets port number if stated
ID=Axudp Internet links ; Displayed by PORTS command
TYPE=EXTERNAL ; Calls an external module
DLLNAME=BPQAXIP.DLL ; Uses BPQAXIP.DLL
QUALITY=255 ; Quality factor applied to node broadcasts heard on
; this port, unless overridden by a locked route
; entry. Setting to 0 stops node broadcasts
MINQUAL=1 ; Entries in the nodes table with qualities greater or
; equal to MINQUAL will be sent on this port. A value
; of 0 sends everything.
MAXFRAME=7 ; Max outstanding frames (1 thru 7)

FRACK=5000 ; Level 2 timout in milliseconds
RESPTIME=1000 ; Level 2 delayed ack timer in milliseconds
RETRIES=10 ; Level 2 maximum retry value
PACLEN=236 ; Max = 236
CONFIG ; BPQAXIP.cfg has been deprecated. Instead the AXIP
; configuration occurs here:
MHEARD ;Opens AXIP MHEARD window
; UDP 93 ;Listens for UDP packets on this port number
UDP 93 ; Listens for UDP packets on this UDP port number
; UDP 10094 ; Listens for UDP packets on this additional UDP port number
;DONTCHECKSOURCECALL ;This option allows entries in the NODES table from
;stations sending you nodes broadcasts without the
;corresponding node being configured in bpqaxip.cfg.
AUTOADDMAP ;This option automatically adds the node call and
;address of a node for which you do not have a
;pre-arranged fixed entry in bpqaxip.cfg. If the
;option DONTCHECKSOURCECALL is specified then the
;AUTOADDMAP option is ignored.

BROADCAST NODES
MAP Host ct1net.ddns.net UDP 93
MAP CT1NET 192.168.0.11 UDP 193
MAP CA9FRS-10 ca9frs.ddns.net UDP 93
MAP nl6nod nl6nod.aprs.x-6.nl UDP 93
MAP CB0ESN 88.80.197.64 UDP 93
MAP DNX399 85.214.42.234 UDP 93
MAP FU6NET dkm666.ddns.net KEEPALIVE 30 UDP 96
MAP FRNOD fra485.no-ip.org UDP 93
MAP DIG396 85.88.28.182 UDP 93
MAP DIG233 82.165.141.43 UDP 93
MAP CB0DDT 82.165.141.43 UDP 95
MAP DNX587 dnx587.mx-host.de UDP 93
MAP CB0DLN-8 CB0DLN-8.NO-IP.ORG UDP 93
MAP CB0GLA cb0gla.ddns.net UDP 93
MAP DOK346 dok346.dyndns.org UDP 93
MAP DNO266 dno266.ddns.net UDP 98
MAP FRB001-10 frb001.ddns.net UDP 93
MAP FRA199-10 NANTES.DDNS.ME UDP 93
MAP NOD001 FRA001.NO-IP.ORG UDP 93
MAP DNO493 87.140.195.0 UDP 813 B
MAP CT2NET-3 127.0.0.1 UDP 93 B
MAP CT2NET-4 192.168.0.10 UDP 193 B
MAP CT2NET-7 192.168.0.11 UDP 93 B
MAP CT2NET-5 192.168.0.11 UDP 193 B
MAP NODES ct1net.ddns.net UDP 93
MAP ID ct1net.ddns.net UDP 93
MAP NODES ct1net.ddns.net UDP 193
MAP ID ct1net.ddns.net UDP 193
MAP FRB013-10 FRB013.DDNS.NET UDP 101 B
MAP FU7NET dkm666.ddns.net UDP 99 B
;MAP G8BPQ-7 208.77.188.166 UDP 10095 B ; Send UDP to port 10093 including node broadcasts.
;MAP G8BPQ-7 10.2.77.1 B ; Using AXIP to a local machine on your LAN and include node broadcasts
; If INP3 routing (experimental at this point) is utilized the 'B' command
; should not be included:
;MAP BB9BB-6 example.com UDP 10093
; Steve Conrad, VE9SC, provides a service which displays a map of BPQMailChat
; nodes dynamically updated: http://guardian.no-ip.org/bpqmap/ChatNetwork.htm
; To include your chat node on the map remove the ';' from the MAP DUMMY
; statement which follows. The rest of the statement must remain exactly as
; shown.
MAP CT2NET-6 chatmap.g8bpq.net UDP 10090
; MAP DUMMY CHATMAP.G8BPQ.NET UDP 10090
; A keepalive may be needed if you have not properly configured your
; router to direct incoming UDP traffic to the specific machine on you
; LAN which is running BPQ32. You should properly configure your router
; so that the keepalive is unneeded, as this ploy is not completely
; reliable!

; In the exceptional case where your ISP is dropping your incoming traffic
; testing has found that the keepalive might help 'keep the door open'.
; In the following example a keepalive packet is sent every 30 seconds:
;MAP AA1AA-1 example.net KEEPALIVE 30 UDP 10093 B

; An experimental TCP communication mode was added with the 2009/Aug/28 Beta
; release. The purpose is to circumvent router issues which are almost certain
; when 'your side', which we will call the client side, cannot control access
; to direct incoming UDP packets to your machine. Instead you will originate
; a connection via TCP. TCP is a connected protocol, all routers should
; automatically set up the return path to your machine.

; An example would be your BPQ32 node, with a node call of MYCALL-5, on a
; laptop at a public access WiFI site. To connect to AA1AA-1 via this method
; you will need this entry in your MAP list (without the ; of course):
;MAP AA1AA-1 example.net TCP-Master 10093 B

; AA1AA-1 is the node call of the remote side, e.g. server side. The server
; side must have the ability to program its router to direct incoming TCP
; traffic with the specified port number to the machine running BPQ32 Node
; AA1AA-1, just as it does for UDP.

; BPQ32 Node AA1AA-1 at URL=example.net would add the folllowing entry to its
; MAP list:
;MAP MYCALL-5 0.0.0.0 TCP-Slave 10093 B

; As a result AA1AA-1 will listen for TCP packets on port 10093 from MYCALL-5.
; When heard, a TCP connection will result over which AX.25 traffic will flow.
; The server side obtains the client side ip address when the connection
; request is received.

; As currently implemented the client side will have to make advance
; arrangements with the server side so that the correct MAP entries will be in
; effect, as well as to specify a unique TCP port number for each prearranged
; client.
ENDPORT
ROUTES: ; Locked routes (31 maximum)
DNX399,255,2,0,0,0,1
CB0ESN,255,2,0,0,0,1
FU6NET,255,2,0,0,0,1
FRNOD ,255,2,0,0,0,1
NL9ZZE,255,2,0,0,0,1
DIG396,255,2,0,0,0,1
DIG233,255,2,0,0,0,1
CB0DDT,255,2,0,0,0,1
DNX587,255,2,0,0,0,1
CB0DLN-8,255,2,0,0,0,1
CB0GLA,255,2,0,0,0,1
DOK346,255,2,0,0,0,1
DNO266,255,2,0,0,0,1
HE1NET,255,2,0,0,0,1
NL6NOD,255,2,0,0,0,1
FIND,255,2,0,0,0,1
CT1NET,255,2,0,0,0,1
CA9FRS-10,255,2,0,0,0,1
FRB001-10,255,2,0,0,0,1
DNO493,255,2,0,0,0,1
FU7NET,255,2,0,0,0,1
FRB013-10,255,2,0,0,0,1


ich denke mal damit hast du zu 100% erfolg den comport noch ändern
und schon gehts , und das tnc sollte im kiss gesetzt sein

73 de dct645
dct645
Santiago 2
Beiträge: 88
Registriert: Do 29. Dez 2011, 09:35
Standort in der Userkarte: bergen auf rügen
Wohnort: Bergen auf Rügen
Kontaktdaten:

Re: AX25 über TCP/IP Port einrichten und senden benötige HIL

#6

Beitrag von dct645 »

wenn du noch den telnetserverport einträgst
hast du auch gleich ein terminal programm

PORT
Portnum=3
ID=Telnet Server
DRIVER=Telnet
CONFIG
LOGGING=1
DisconnectOnClose=1
TCPPORT=9010
FBBPORT=8011 23
HTTPPORT=80
CMDPORT=9023
LOGINPROMPT=user:
PASSWORDPROMPT=password:
MAXSESSIONS=10
FALLBACKTORELAY=1
IPV4=1
CMS=1
CMSCALL=CT2NET-10
CMSPASS=00000

CTEXT=Welcome to G8BPQ's Telnet Server\nEnter ? for list of commands\n\n

USER=John,PaSsWoRd,G8BPQ
USER=JohnBBS,password,g8bpq,BBS
USER=gast,gast,gast
USER=deincall,deinpw,deincall,"",SYSOP


ENDPORT


danach kannst du vom internet explorer welchen du auch immer hast
das node aufrufen 127.0.0.1


73 de dct645 ct1net.ddns.net
dct645
Santiago 2
Beiträge: 88
Registriert: Do 29. Dez 2011, 09:35
Standort in der Userkarte: bergen auf rügen
Wohnort: Bergen auf Rügen
Kontaktdaten:

Re: AX25 über TCP/IP Port einrichten und senden benötige HIL

#7

Beitrag von dct645 »

picrard hat geschrieben:Erst einmal vielen Dank für die Infos...

... ich habe es nochmal anders versucht, da ich irgendwo auch gehört/gelesen habe, dass
SAMBA AVAHI etc. aus sein müssten, habe ich die DAEMONS ausgeschaltet und es etwas anders nach:
http://www.tldp.org/HOWTO/AX25-HOWTO/x1194.html
probiert, trotzdem keine Erfolg.



:clue:
deinem tnc mußt du erstmal sagen wo es antworten , währe mit eprom x1j4
das einfachste
zb für port 1 (B) :
ipr 127.0.0.1 +1

zb für den hf radio port (A) :
ipr 127.0.0.1 +0
Antworten

Zurück zu „PR - Allgemein“