¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: New bpq32 install connection refused


 

¿ªÔÆÌåÓý

Ok, There is something wrong with bpq startup. When I run your config I get

G8BPQ 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:

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


Join [email protected] to automatically receive all group messages.