Keyboard Shortcuts
Likes
- Bpq32
- Messages
Search
Re: Setting up AXIP
#bpq32
toggle quoted message
Show quoted text
-------- Original message -------- From: Brian Vodvarka <brianvod@...> Date: 2/17/21 8:32 AM (GMT-06:00) Subject: Re: [bpq32] Setting up AXIP #bpq32 OK thanks for info! ? Sent from for Windows 10 ? From: John G8BPQ ? To use an AXIP link to need to find a station to link to and exchange IP address / Host Name information. Once the link is configured you can test by trying to connect to your partner's call. On 17/02/2021 12:48, brianvod@... wrote:
? ? |
Re: Setting up AXIP
#bpq32
¿ªÔÆÌåÓýOK thanks for info! ? Sent from for Windows 10 ? From: John G8BPQ
Sent: Wednesday, February 17, 2021 7:42 AM To: [email protected] Subject: Re: [bpq32] Setting up AXIP #bpq32 ? To use an AXIP link to need to find a station to link to and exchange IP address / Host Name information. Once the link is configured you can test by trying to connect to your partner's call. On 17/02/2021 12:48, brianvod@... wrote:
? ? |
Re: Setting up AXIP
#bpq32
¿ªÔÆÌåÓýTo use an AXIP link to need to find a station to link to and exchange IP address / Host Name information. Once the link is configured you can test by trying to connect to your partner's call.73, John On 17/02/2021 12:48, brianvod@...
wrote:
HI, |
Setting up AXIP
#bpq32
HI,
Is there a way to test the AXIP ports to know they are working ok? I am just setting this all up using a signalink clone not a external TNC. It seems the program is working ok and sending and receiving packets ok,? but I have not tried anything with AXIP ports yet not quite sure how to test it to see if its working or if my setup is all goofy. Thanks, Brian WD9HXC |
Re: New bpq32 install connection refused
¿ªÔÆÌåÓýThat looks better!You may be able to find what Direwolf is complaining about by turning on KISS Network debugging by adding -d n to the direwolf command line. 73, John On 17/02/2021 01:51, Carmine Prestia
wrote:
Progress! |
Re: New bpq32 install connection refused
Carmine Prestia
Progress!
toggle quoted message
Show quoted text
On Tue, Feb 16, 2021 at 08:48 AM, John G8BPQ wrote: ? COMPORT=/dev/ttyAMA0? ? ? ? ? ? ? ? ? ? ? ? ? ; Serial portI made the above change and when I started linbpq I get this: BPQ AX25 Packet Switch System Version 6.0.21.24 February 2021
Copyright ? 2001-2021 John Wiseman G8BPQ
Current Directory is /home/pi/linbpq
?
Configuration file Preprocessor.
Using Configuration file /home/pi/linbpq/bpq32.cfg
Conversion (probably) successful
?
PORTS 0x21f9c8 LINKS 0x222410 DESTS 0x225310 ROUTES 0x22b8a0 L4 0x22d2a0 BUFFERS 0x233768
?
Route/Node recovery file BPQNODES.dat not found - Continuing without it
Initialising Port 01? ? ?TCPKISS IP 127.0.0.1 Port 8001 Chan A?
Initialising Port 02? ? ?Telnet Server?
Initialising Port 03? ? ?AXIP?
Starting Mail
Config File is /home/pi/linbpq/linmail.cfg
Config File not found - creating a default config
Config Processed
Config File /home/pi/linbpq/WP.cfg Line 0 - file I/O error
Mail Started
slave device: /dev/pts/3. symlink to /home/pi/BPQ/com10 created
TNC Emulator Init Complete Now, when I open Chromium and enter ?I connect to the K3CWP-1 node. However Direwolf is sending me dire (pun intended) messages: KISS TCP: Something unexpected from client application.
Is client app treating this like an old TNC with command mode?
This can be caused by the application sending commands to put a
traditional TNC into KISS mode.? It is usually a harmless warning.
?
I'm going to stop for the evening and work on it tomorrow sometime.Thanks for the help.? I'm sure I'll be asking for more. Carmine, K3CWP |
Re: New bpq32 install connection refused
Carmine Prestia
John:
I followed these instructions explicitly.? All seemed to work as expected except as noted. now open your file system, open linbpq, right-click on the HTMLPages.zip and select Extract Here. Then right-click on that HTMLPages folder to change the name to just HTML. Then right-click and delete the zip file. No HTMLPages folder appeared in the linbpq directory. Open a new terminal and start direwolf with just: direwolf This results in: Dire Wolf DEVELOPMENT version 1.7 A (Dec? 6 2020)
Includes optional support for:? gpsd hamlib cm108-ptt
ERROR - Could not open config file /home/pi/direwolf.conf
Try using -c command line option for alternate location.
Audio device for both receive and transmit: default? (channel 0)
Channel 0: 1200 baud, AFSK 1200 & 2200 Hz, A+, 44100 sample rate / 3.
Note: PTT not configured for channel 0. (Ignore this if using VOX.)
Ready to accept AGW client application 0 on port 8000 ...
Ready to accept KISS TCP client application 0 on port 8001 ...
?
In the linbpq terminal, start linbpq with: ./linbpqThis results in: G8BPQ AX25 Packet Switch System Version 6.0.21.24 February 2021
Copyright ? 2001-2021 John Wiseman G8BPQ
Current Directory is /home/pi/linbpq
?
Configuration file Preprocessor.
Using Configuration file /home/pi/linbpq/bpq32.cfg
Conversion (probably) successful
?
PORTS 0x21f9c8 LINKS 0x222410 DESTS 0x225310 ROUTES 0x22b8a0 L4 0x22d2a0 BUFFERS 0x233768
?
Route/Node recovery file BPQNODES.dat not found - Continuing without it
?
In the Direwolf window I can see that Direwolf is decoding traffic on the packet channel.I tried browser connection to http://127.0.0.1:8010 and Telnet to 127.0.0.1 8010.? Both of these result in 'connection refused' messages. Carmine, K3CWP |
Re: Connect script via telnet connection
#telnet
Thanks John...
That is a combination of commands that I had tried previously, but not using the FBB port for the remote station. Lo and behold, using your example, a successful connection followed! A shame I did not spot that within the online documentation :-( 73 and keep up the good work, Mike |
Re: New bpq32 install connection refused
It also looks like you might want to start from scratch, because your current version doesn't seem to initialize any of the ports for some reason. If you already changed the name of your BPQ directory to linbpq, change it to oldlinbpq so you can start over: open a new terminal for the following commands: mkdir linbpq cd linbpq wget https://www.cantab.net/users/john.wiseman/Downloads/Beta/pilinbpq mv pilinbpq linbpq chmod a+x linbpq sudo setcap "CAP_NET_ADMIN=ep CAP_NET_RAW=ep CAP_NET_BIND_SERVICE=ep" linbpq wget http://www.cantab.net/users/john.wiseman/Downloads/Beta/HTMLPages.zip now open your file system, open linbpq, right-click on the HTMLPages.zip and select Extract Here. Then right-click on that HTMLPages folder to change the name to just HTML. Then right-click and delete the zip file. Now take your existing bpq32.cfg file and copy that into the linbpq folder. Open a new terminal and start direwolf with just: direwolf In the linbpq terminal, start linbpq with: ./linbpq |
Re: New bpq32 install connection refused
You only need -p with direwolf if you need to create a kissattach to an axport to use a terminal with direwolf.
Not needed for bpq, as it has it's own ax stack and is just using direwolf as a TCP TNC. Just start direwolf without the -p. For that port in bpq, change that in the config to this: ;? Port 1? PORT ?? PORTNUM=1???????????????????????????????????? ; Port number ?? ID=145.030 MHz 1200 bps?????????????????????? ; PORTS command text ?? TYPE=ASYNC??????????????????????????????????? ; RS232 connection ?? PROTOCOL=KISS???????????????????????????????? ; KISS protocol ?? KISSOPTIONS=NOPARAMS????????????????????????? ; KISS options for TNC ?? FULLDUP=1 ?? IPADDR=127.0.0.1 ?? TCPPORT=8001 ?? SPEED=1200?????????????????????????????????? ; Serial port speed? ? ?? CHANNEL=A???????????????????????????????????? ; TNC channel ?? MAXFRAME=2??????????????????????????????????? ; Max outstanding frames ?? FRACK=7000??????????????????????????????????? ; Level 2 timeout (ms) ?? RESPTIME=1000???????????????????????????????? ; Level 2 delayed ACK (ms) ?? RETRIES=10??????????????????????????????????? ; Level 2 max retries ?? PACLEN=128??????????????????????????????????? ; Max packet length (bytes) ?? TXDELAY=500?????????????????????????????????? ; Transmit keyup delay (ms) ?? SLOTTIME=100????????????????????????????????? ; CMSA interval timer (ms) ?? PERSIST=64??????????????????????????????????? ; Persist(256/(# transmissions-1) ?? DIGIFLAG=1??????????????????????????????????? ; Allow Digipeat on this port ENDPORT The line that says noparams means it's going to skip a few items here and rely on direwolf.conf or direwolf default settings. Your direwolf startup shows that there is no direwolf.conf in your home directory, so you should also save the following to a text file called direwolf.conf in /home/pi/ with the following: ############################ #? Configuration file for Dire Wolf? # #? Simple Linux version for linbpq # ############################ ADEVICE? plughw:1,0 #change this to the results of arecord -l ACHANNELS 1 CHANNEL 0 MYCALL K3CWP-7,? MODEM 1200 1200:2200 TXDELAY 40 TXTAIL 10 AGWPORT 8000 KISSPORT 8001 FIX_BITS 1 AX25 MAXV22 0 |
Re: New bpq32 install connection refused
¿ªÔÆÌåÓýOk, There is something wrong with bpq startup. When I run your config I getG8BPQ AX25 Packet Switch System Version 6.0.21.23 February 2021 Copyright ? 2001-2021 John Wiseman G8BPQ Current Directory is /home/pi/linbpq Configuration file Preprocessor. Using Configuration file /home/pi/linbpq/bpq32.cfg Conversion (probably) successful PORTS 0x21f9c8 LINKS 0x222410 DESTS 0x225310 ROUTES 0x22b8a0 L4 0x22d2a0 BUFFERS 0x233768 Initialising Port 01???? ASYNC /dev/ttyAMA0 Chan A Initialising Port 02???? Telnet Server Initialising Port 03???? AXIP Starting Mail Config File is /home/pi/linbpq/linmail.cfg Config Processed Mail Started slave device: /dev/pts/1. symlink to /home/pi/linbpq/com10 created TNC Emulator Init Complete If you don't get the Initialising Ports message then you haven't opened the TCP ports. This is odd, as I wouldn't expect linbpq to start without a port definiton. It is just possible that linbpq is hanging trying to open /dev/ttyAMA0. That doesn't happen here, but it might be worth changing the config to one of the suggestions below, or remove that port temporarily, and see what happens. Direwolf can either use a TCP connection or create a pty pair that allows it to be accessed as a serial port. You can use -p to enable the serial port. You should then use /tmp/kisstnc in the COMPORT line - the pts number may vary but /tmp/kisstnc will always be symlinked to it. Alternatively you can use the TCP connection. Replace ? COMPORT=/dev/ttyAMA0? ? ? ? ? ? ? ? ? ? ? ? ? ; Serial port ? SPEED=19200? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?; Serial port
speed
with ? ?IPADDR=127.0.0.1 ?TCPPORT=8001 73, John On 16/02/2021 12:56, Carmine Prestia
wrote:
John: |
Re: New bpq32 install connection refused
Carmine Prestia
John:
Is that the whole of the startup message? You should have lines starting "Initialising Port". Yes. This is probably a stupid question, but does linbpq keep running? Ie does it exit? I believe it does.? The terminal window stays open until I type ^C or exit using the X on the terminal window. To check that the ports are listening, use netstat -n -a | grep 8008??? ??? ??? ??? ??? (repeat for 8010, 8011) Tried this for all three ports and nothing returns, just the command line prompt. You should be able to test with telnet 127.0.0.1 8010 or browser to 127.0.0.1:8008 (assuming the browser is on the same machine as linbpq - if not use IP address of the linbpq machine instead of 127.0.0.1 Tried all three of these using Telnet and get the connection refused message. ?Not related to your connection refused problem, but your KISS port definition is for a physical TNC connected to the Pi header. For Direwolf you need to use a KISS over TCP connection. I started thinking about this and remember that elsewhere someone suggested starting Direwolf with the -p command line option.? I made that part of the start line in the menu and now the Direwolf startup message looks like this: Dire Wolf DEVELOPMENT version 1.7 A (Dec? 6 2020)
Includes optional support for:? gpsd hamlib cm108-ptt
ERROR - Could not open config file /home/pi/direwolf.conf
Try using -c command line option for alternate location.
Audio device for both receive and transmit: default? (channel 0)
Channel 0: 1200 baud, AFSK 1200 & 2200 Hz, A+, 44100 sample rate / 3.
Note: PTT not configured for channel 0. (Ignore this if using VOX.)
Ready to accept KISS TCP client application 0 on port 8001 ...
Virtual KISS TNC is available on /dev/pts/1
Created symlink /tmp/kisstnc -> /dev/pts/1
Ready to accept AGW client application 0 on port 8000 ...
?
Does this mean that I should change the line in Port 1 from:COMPORT=/dev/ttyAMA0?? to COMPORT=/dev/pts/1 I also note that I don't see ports 8000 or 8001 anywhere in the bpq32.cfg file.? Should they be in there? Thank you. Carmine, K3CWP |
Re: Connect script via telnet connection
#telnet
¿ªÔÆÌåÓýMike,The user, password and application should all be given on the connect line: ATTACH p C Hostname TCPport [NEEDLF][TELNET} User Password [Command]So I used: att 2 BPQ:G8BPQ-2} Ok c 192.168.1.44 8011 john xxxxxxxx bbs *** Connected to Server POGO4:G8BPQ-9} Connected to BBS [BPQ-6.0.21.20-B2FWIHJM$] de G8BPQ> For BPQ<>BPQ you don't need NEEDLF or TELNET and you should connect to FBBPORT on the remote system. This will give a transparent connection, suitable for compressed forwarding. 73, John On 16/02/2021 10:44, Mike wrote:
Hello John and group.... I have been trying to compile a BPQmailbox forwarding script to connect from my BPQmailbox into another BPQmailbox via that station's node; via my telnet port connection [rather than via the AXIP/mapped routing connection that was available via UK broadband but does not work under my current internet connection via my mobile phone] I tried earlier this year via a Windows setup that also failed to connect.... but the latest combination I am using is now a RPi4 that has the terminal logon screen: mike@Mike-Pi:~/bpq $ ./pilinbpq G8BPQ AX25 Packet Switch System Version 6.0.21.24 February 2021 Copyright ? 2001-2021 John Wiseman G8BPQ Current Directory is /home/mike/bpq Configuration file Preprocessor. Using Configuration file /home/mike/bpq/bpq32.cfg Conversion (probably) successful PORTS 0x21f9c8 LINKS 0x224058 DESTS 0x226e9c ROUTES 0x233e9c L4 0x23589c BUFFERS 0x23bea8 Initialising Port 01 AXIP Initialising Port 02 ASYNC /dev/ttyUSB0 Chan A Initialising Port 03 ASYNC /dev/ttyUSB1 Chan A Initialising Port 04 ASYNC /dev/ttyUSB2 Chan A Initialising Port 05 Telnet Server Using Shared Memory /BPQAPRSSharedMem Map APRS Shared Memory Allocated at 0x43000000 APRS Digi/Gateway Enabled Starting Chat Config File is /home/mike/bpq/chatconfig.cfg Chat Started Starting Mail Config File is /home/mike/bpq/linmail.cfg Config Processed Config File /home/mike/bpq/WP.cfg Line 0 - file I/O error Mail Started = = = = My connect script for this BBS is currently [as above, my telnet port is nr 5]: Idletime 60 att 5 c GB7XXX.DYNDNS.org 8010 telnet g4fvg pause 3 passwordxxxxx c gb7xxx [ or entering BBS command] = = == Using the above does get me to the remote station's normal node prompt [after my login password was accepted], but fails to send [or react to] the last line where I ask the remote node to connect me to the BBS. The distant node then times out and disconnects after the 60 seconds have elapsed. Does anyone have a working connect script that works/forwards when connecting via an outgoing telnet connection? 73 Mike |
Connect script via telnet connection
#telnet
Hello John and group....
I have been trying to compile a BPQmailbox forwarding script to connect from my BPQmailbox into another BPQmailbox via that station's node; via my telnet port connection [rather than via the AXIP/mapped routing connection that was available via UK broadband but does not work under my current internet connection via my mobile phone] I tried earlier this year via a Windows setup that also failed to connect.... but the latest combination I am using is now a RPi4 that has the terminal logon screen: mike@Mike-Pi:~/bpq $ ./pilinbpq G8BPQ AX25 Packet Switch System Version 6.0.21.24 February 2021 Copyright ? 2001-2021 John Wiseman G8BPQ Current Directory is /home/mike/bpq Configuration file Preprocessor. Using Configuration file /home/mike/bpq/bpq32.cfg Conversion (probably) successful PORTS 0x21f9c8 LINKS 0x224058 DESTS 0x226e9c ROUTES 0x233e9c L4 0x23589c BUFFERS 0x23bea8 Initialising Port 01 AXIP Initialising Port 02 ASYNC /dev/ttyUSB0 Chan A Initialising Port 03 ASYNC /dev/ttyUSB1 Chan A Initialising Port 04 ASYNC /dev/ttyUSB2 Chan A Initialising Port 05 Telnet Server Using Shared Memory /BPQAPRSSharedMem Map APRS Shared Memory Allocated at 0x43000000 APRS Digi/Gateway Enabled Starting Chat Config File is /home/mike/bpq/chatconfig.cfg Chat Started Starting Mail Config File is /home/mike/bpq/linmail.cfg Config Processed Config File /home/mike/bpq/WP.cfg Line 0 - file I/O error Mail Started = = = = My connect script for this BBS is currently [as above, my telnet port is nr 5]: Idletime 60 att 5 c GB7XXX.DYNDNS.org 8010 telnet g4fvg pause 3 passwordxxxxx c gb7xxx [ or entering BBS command] = = == Using the above does get me to the remote station's normal node prompt [after my login password was accepted], but fails to send [or react to] the last line where I ask the remote node to connect me to the BBS. The distant node then times out and disconnects after the 60 seconds have elapsed. Does anyone have a working connect script that works/forwards when connecting via an outgoing telnet connection? 73 Mike |
Re: New bpq32 install connection refused
¿ªÔÆÌåÓýIs that the whole of the startup message? You should have lines starting "Initialising Port".This is probably a stupid question, but does linbpq keep running? Ie does it exit? To check that the ports are listening, use netstat -n -a | grep 8008??? ??? ??? ??? ??? (repeat for 8010, 8011) You should see tcp??????? 0????? 0 0.0.0.0:8008 ?????????? 0.0.0.0:*?????????????? LISTEN You should be able to test with telnet 127.0.0.1 8010 or browser to 127.0.0.1:8008 (assuming the browser is on the same machine as linbpq - if not use IP address of the linbpq machine instead of 127.0.0.1 ?Not related to your connection refused problem, but your KISS port definition is for a physical TNC connected to the Pi header. For Direwolf you need to use a KISS over TCP connection. 73 John On 15/02/2021 22:52, Carmine Prestia
wrote:
Jeff: |
Re: New bpq32 install connection refused
It's also worth noting that John recommends changing the name of pilinbpq to linbpq before use, and naming that directory that everything is in linbpq.
"I suggest you create a directory linbpq to hold the software and files. The simplest way to download is to use wget. If you use the pi version, rename to linbpq after downloading." |
Re: New bpq32 install connection refused
Carmine Prestia
Jeff et al.:
2. On your home router, do you have ports 8008, 8010, 8011 and 10093 forwarded for the IP address of your linbpq machine? I'm a newbie to RPi and Linux and don't know if I'm doing this right but based on some other posts in another topic I tried the commands netstat, SS, and cat and in none of the reports did I see the above ports as listening. Could that mean something? Carmine, K3CWP |