¿ªÔÆÌåÓý

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

How To : ser2net - Serial to Network Media Converter with a Raspberry Pi


 

Thought I'd share some my experiences with setting up the ser2net service on my raspberry pi to act like a USB/serial to network media converter.

I installed the ser2net service with one command : sudo apt-get install ser2net

The config file is located at /etc/ser2net.yaml.? I removed almost all of the default config and started from scratch.? If you do this, save the original with sudo cp /etc/ser2net.yaml /etc/ser2net.yaml_old.

%YAML 1.1
---
# This is a ser2net configuration file, tailored to be rather
# simple.
#
# Find detailed documentation in ser2net.yaml(5)
# A fully featured configuration file is in
# /usr/share/doc/ser2net/examples/ser2net.yaml.gz
#
# If you find your configuration more useful than this very simple
# one, please submit it as a bugreport
?
define: &banner \r\nser2net port \p device \d [\B] (Debian GNU/Linux)\r\n\r\n
?
admin:
? ? accepter: tcp,8000
?
connection: &nr8001
? ? accepter: tcp,8001
? ? enable: on
? ? connector: serialdev,
? ? ? ? ? ? ? ?/dev/ttyACM0,
? ? ? ? ? ? ? ?38400n81,local
?
connection: &nr8002
? ? accepter: tcp,8002
? ? enable: on
? ? connector: serialdev,
? ? ? ? ? ? ? ?/dev/ttyACM1,
? ? ? ? ? ? ? ?38400n81,local


Let's break down one of the serial to network configs

connection: &nr8001 - this is the name of the connection.? I used nr for Node Red and the port number
accepter: tcp,8001 - this is what protocol to listen on the network side and what port number to use to make a connection to the connector.? In the example, it's listening on tcp port 8001.
enable: on - this is to enable connections
connector -? this is the other side of the connection
?- serialdev - specifying a serial device
?- /dev/ttyAMC1 - this is the path to the device (I would substitute the full path here, check Dave WO2X's video on how to find the full ID path)
?- 38400n81 - this is the speed, baud rate, polarity and stop bits
?- local - specifying the device is local?

The man page for ser2net calls out all the different connection types (there is a lot).

There is bug in the bullseye distribution Raspberry Pi config and sometimes the ser2net starts up before the networking starts up, so we need to add the following lines in the /lib/systemd/system/ser2net.service file

Add these two lines in the [Unit] stanza
After=network-online.target
Wants=network-online.target

pi@elayerrack:/lib/systemd/system $ more ser2net.service
[Unit]
Description=Serial port to network proxy
Documentation=man:ser2net(8)
After=network-online.target
Wants=network-online.target
?
[Service]
EnvironmentFile=-/etc/default/ser2net
ExecStart=/usr/sbin/ser2net -n -c $CONFFILE -P /run/ser2net.pid
Type=exec
Restart=on-failure
?
[Install]
WantedBy=multi-user.target
pi@elayerrack:/lib/systemd/system $

After your done editing all the files, restart the service with sudo systemctl restart ser2net.service or?sudo service ser2net restart.

Issuing the command netstat -l will show you all the ports your Pi is listening on.? Look for the TCP ports specified in your ser2net.yaml config file.? You should see something like the below (but more output).

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address? ? ? ? ? ?Foreign Address? ? ? ? ?State
tcp6? ? ? ?0? ? ? 0 [::]:8002? ? ? ? ? ? ? ?[::]:*? ? ? ? ? ? ? ? ? LISTEN
tcp6? ? ? ?0? ? ? 0 [::]:8001? ? ? ? ? ? ? ?[::]:*? ? ? ? ? ? ? ? ? LISTEN
tcp6? ? ? ?0? ? ? 0 [::]:8000? ? ? ? ? ? ? ?[::]:*? ? ? ? ? ? ? ? ? LISTEN
Active UNIX domain sockets (only servers)

Now you can replace the serial nodes with TCP nodes.? For example.


There is a downside.? It's a 1:1 communication path to network to serial device, or at least my experience is every device I've tried.? Unless that's an advanced setting within the connection config in the yaml file, once a device is communicating through the ser2net service via TCP, no other devices can communicate to that serial device.??

Troubleshooting : if you telnet into port 8000 (the admin port) you can monitor the TCP or serial side.? Be aware anything you type will be echoed out to the screen.? Typing help at the command prompt will get you a list of commands.?

73
Kyle
AA0Z

?


 

Freakin' great document!

Thanks and best regards to all for? the holidays!

Neal
K3NC


On Fri, Dec 23, 2022 at 10:36 PM Kyle K <kylekrieg@...> wrote:
Thought I'd share some my experiences with setting up the ser2net service on my raspberry pi to act like a USB/serial to network media converter.

I installed the ser2net service with one command : sudo apt-get install ser2net

The config file is located at /etc/ser2net.yaml.? I removed almost all of the default config and started from scratch.? If you do this, save the original with sudo cp /etc/ser2net.yaml /etc/ser2net.yaml_old.

%YAML 1.1
---
# This is a ser2net configuration file, tailored to be rather
# simple.
#
# Find detailed documentation in ser2net.yaml(5)
# A fully featured configuration file is in
# /usr/share/doc/ser2net/examples/ser2net.yaml.gz
#
# If you find your configuration more useful than this very simple
# one, please submit it as a bugreport
?
define: &banner \r\nser2net port \p device \d [\B] (Debian GNU/Linux)\r\n\r\n
?
admin:
? ? accepter: tcp,8000
?
connection: &nr8001
? ? accepter: tcp,8001
? ? enable: on
? ? connector: serialdev,
? ? ? ? ? ? ? ?/dev/ttyACM0,
? ? ? ? ? ? ? ?38400n81,local
?
connection: &nr8002
? ? accepter: tcp,8002
? ? enable: on
? ? connector: serialdev,
? ? ? ? ? ? ? ?/dev/ttyACM1,
? ? ? ? ? ? ? ?38400n81,local


Let's break down one of the serial to network configs

connection: &nr8001 - this is the name of the connection.? I used nr for Node Red and the port number
accepter: tcp,8001 - this is what protocol to listen on the network side and what port number to use to make a connection to the connector.? In the example, it's listening on tcp port 8001.
enable: on - this is to enable connections
connector -? this is the other side of the connection
?- serialdev - specifying a serial device
?- /dev/ttyAMC1 - this is the path to the device (I would substitute the full path here, check Dave WO2X's video on how to find the full ID path)
?- 38400n81 - this is the speed, baud rate, polarity and stop bits
?- local - specifying the device is local?

The man page for ser2net calls out all the different connection types (there is a lot).

There is bug in the bullseye distribution Raspberry Pi config and sometimes the ser2net starts up before the networking starts up, so we need to add the following lines in the /lib/systemd/system/ser2net.service file

Add these two lines in the [Unit] stanza
After=network-online.target
Wants=network-online.target

pi@elayerrack:/lib/systemd/system $ more ser2net.service
[Unit]
Description=Serial port to network proxy
Documentation=man:ser2net(8)
After=network-online.target
Wants=network-online.target
?
[Service]
EnvironmentFile=-/etc/default/ser2net
ExecStart=/usr/sbin/ser2net -n -c $CONFFILE -P /run/ser2net.pid
Type=exec
Restart=on-failure
?
[Install]
WantedBy=multi-user.target
pi@elayerrack:/lib/systemd/system $

After your done editing all the files, restart the service with sudo systemctl restart ser2net.service or?sudo service ser2net restart.

Issuing the command netstat -l will show you all the ports your Pi is listening on.? Look for the TCP ports specified in your ser2net.yaml config file.? You should see something like the below (but more output).

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address? ? ? ? ? ?Foreign Address? ? ? ? ?State
tcp6? ? ? ?0? ? ? 0 [::]:8002? ? ? ? ? ? ? ?[::]:*? ? ? ? ? ? ? ? ? LISTEN
tcp6? ? ? ?0? ? ? 0 [::]:8001? ? ? ? ? ? ? ?[::]:*? ? ? ? ? ? ? ? ? LISTEN
tcp6? ? ? ?0? ? ? 0 [::]:8000? ? ? ? ? ? ? ?[::]:*? ? ? ? ? ? ? ? ? LISTEN
Active UNIX domain sockets (only servers)

Now you can replace the serial nodes with TCP nodes.? For example.


There is a downside.? It's a 1:1 communication path to network to serial device, or at least my experience is every device I've tried.? Unless that's an advanced setting within the connection config in the yaml file, once a device is communicating through the ser2net service via TCP, no other devices can communicate to that serial device.??

Troubleshooting : if you telnet into port 8000 (the admin port) you can monitor the TCP or serial side.? Be aware anything you type will be echoed out to the screen.? Typing help at the command prompt will get you a list of commands.?

73
Kyle
AA0Z

?


 

Kyle, nicely done. I wonder if this would be worth posting as a "how to" in the Wiki section.?

Happy holidays!
Ron WB2WGH?

On Fri, Dec 23, 2022, 10:36 PM Kyle K <kylekrieg@...> wrote:
Thought I'd share some my experiences with setting up the ser2net service on my raspberry pi to act like a USB/serial to network media converter.

I installed the ser2net service with one command : sudo apt-get install ser2net

The config file is located at /etc/ser2net.yaml.? I removed almost all of the default config and started from scratch.? If you do this, save the original with sudo cp /etc/ser2net.yaml /etc/ser2net.yaml_old.

%YAML 1.1
---
# This is a ser2net configuration file, tailored to be rather
# simple.
#
# Find detailed documentation in ser2net.yaml(5)
# A fully featured configuration file is in
# /usr/share/doc/ser2net/examples/ser2net.yaml.gz
#
# If you find your configuration more useful than this very simple
# one, please submit it as a bugreport
?
define: &banner \r\nser2net port \p device \d [\B] (Debian GNU/Linux)\r\n\r\n
?
admin:
? ? accepter: tcp,8000
?
connection: &nr8001
? ? accepter: tcp,8001
? ? enable: on
? ? connector: serialdev,
? ? ? ? ? ? ? ?/dev/ttyACM0,
? ? ? ? ? ? ? ?38400n81,local
?
connection: &nr8002
? ? accepter: tcp,8002
? ? enable: on
? ? connector: serialdev,
? ? ? ? ? ? ? ?/dev/ttyACM1,
? ? ? ? ? ? ? ?38400n81,local


Let's break down one of the serial to network configs

connection: &nr8001 - this is the name of the connection.? I used nr for Node Red and the port number
accepter: tcp,8001 - this is what protocol to listen on the network side and what port number to use to make a connection to the connector.? In the example, it's listening on tcp port 8001.
enable: on - this is to enable connections
connector -? this is the other side of the connection
?- serialdev - specifying a serial device
?- /dev/ttyAMC1 - this is the path to the device (I would substitute the full path here, check Dave WO2X's video on how to find the full ID path)
?- 38400n81 - this is the speed, baud rate, polarity and stop bits
?- local - specifying the device is local?

The man page for ser2net calls out all the different connection types (there is a lot).

There is bug in the bullseye distribution Raspberry Pi config and sometimes the ser2net starts up before the networking starts up, so we need to add the following lines in the /lib/systemd/system/ser2net.service file

Add these two lines in the [Unit] stanza
After=network-online.target
Wants=network-online.target

pi@elayerrack:/lib/systemd/system $ more ser2net.service
[Unit]
Description=Serial port to network proxy
Documentation=man:ser2net(8)
After=network-online.target
Wants=network-online.target
?
[Service]
EnvironmentFile=-/etc/default/ser2net
ExecStart=/usr/sbin/ser2net -n -c $CONFFILE -P /run/ser2net.pid
Type=exec
Restart=on-failure
?
[Install]
WantedBy=multi-user.target
pi@elayerrack:/lib/systemd/system $

After your done editing all the files, restart the service with sudo systemctl restart ser2net.service or?sudo service ser2net restart.

Issuing the command netstat -l will show you all the ports your Pi is listening on.? Look for the TCP ports specified in your ser2net.yaml config file.? You should see something like the below (but more output).

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address? ? ? ? ? ?Foreign Address? ? ? ? ?State
tcp6? ? ? ?0? ? ? 0 [::]:8002? ? ? ? ? ? ? ?[::]:*? ? ? ? ? ? ? ? ? LISTEN
tcp6? ? ? ?0? ? ? 0 [::]:8001? ? ? ? ? ? ? ?[::]:*? ? ? ? ? ? ? ? ? LISTEN
tcp6? ? ? ?0? ? ? 0 [::]:8000? ? ? ? ? ? ? ?[::]:*? ? ? ? ? ? ? ? ? LISTEN
Active UNIX domain sockets (only servers)

Now you can replace the serial nodes with TCP nodes.? For example.


There is a downside.? It's a 1:1 communication path to network to serial device, or at least my experience is every device I've tried.? Unless that's an advanced setting within the connection config in the yaml file, once a device is communicating through the ser2net service via TCP, no other devices can communicate to that serial device.??

Troubleshooting : if you telnet into port 8000 (the admin port) you can monitor the TCP or serial side.? Be aware anything you type will be echoed out to the screen.? Typing help at the command prompt will get you a list of commands.?

73
Kyle
AA0Z

?


 

Kyle,

There is a downside.? It's a 1:1 communication path to network to serial device, or at least my experience is every device I've tried.? Unless that's an advanced setting within the connection config in the yaml file, once a device is communicating through the ser2net service via TCP, no other devices can communicate to that serial device.??
You might consider adding the max-connections option to increase the allowed number of TCP connections.? ? This allows the Node-Red connection and the OEM software at the same time.

connection: &nr8001
? ? accepter: tcp,8001
? ? enable: on
? ??
options:
? ? ? ?max-connections: 3
? ? connector: serialdev,
? ? ? ? ? ? ? ?/dev/ttyACM0,
? ? ? ? ? ? ? ?38400n81,local


If you are still on version 3.5 ser2net (or older), the old conf file (/etc/ser2net.conf) format would look something like this:
ipv4,6000:raw:600:/dev/ttyUSB_rotor:4800 8DATABITS NONE 1STOPBIT max-connections=3

This also starts the TCP listener only on ipv4 instead of both ipv4 and ipv6

Warren, KD4Z


 

Ah ah!!!! Perfect Warren! Thanks for the update and insight.? I knew there had to be a way to accept more than 1 TCP connection.? Awesome!!!!??

I'm running version 4.3.3, which I think is the newest.? I'll add the max-connections under options to my config file.?

Kyle
AA0Z


 

¿ªÔÆÌåÓý

Kyle, once you make the changes, send me the write up and I will add it to the WiKi section. Thanks to both you and Warren for sharing!

73
Dave wo2x

Sent from my waxed string and tin cans.?

On Dec 24, 2022, at 10:34 AM, Kyle K <kylekrieg@...> wrote:

?Ah ah!!!! Perfect Warren! Thanks for the update and insight.? I knew there had to be a way to accept more than 1 TCP connection.? Awesome!!!!??

I'm running version 4.3.3, which I think is the newest.? I'll add the max-connections under options to my config file.?

Kyle
AA0Z


 

¿ªÔÆÌåÓý

Hi

?

As a curiosity related to the ser2net program. I contacted its author Corey in 2019 since I was looking for the option of being able to support several simultaneous connections, so that it would allow several TCP connections to the serial port. Corey provided me with version 3.5, which was already working, although he told me that V4 would be coming soon. At the configuration level they are very different since, for example, version 4 is configured from a YAML file, so it is very different.

?

But the greatest anecdote is that Corey belongs to our community, he is AE5KM

?

73s Pablo EA4TX

?

De: [email protected] <[email protected]> En nombre de Kyle K
Enviado el: s¨¢bado, 24 de diciembre de 2022 16:34
Para: [email protected]
Asunto: Re: [nodered-hamradio] How To : ser2net - Serial to Network Media Converter with a Raspberry Pi

?

Ah ah!!!! Perfect Warren! Thanks for the update and insight.? I knew there had to be a way to accept more than 1 TCP connection.? Awesome!!!!??

I'm running version 4.3.3, which I think is the newest.? I'll add the max-connections under options to my config file.?

Kyle
AA0Z


 

HI Kyle

I have the ser2net and K3ng Arduino board running....?However, after reboot, the `ser2net` service isn't running and I have add the command line in the [Unit]

any idea what is wrong at my place ???




73" OZ1CT Ben


 

You probably need to enable the ser2net service with the command sudo systemctl enable ser2net.service.??

73
Kyle
AA0Z


 

HI Kyle

I did the command "sudo systemctl enable ser2net.service" and the here is the result:

image.png

BUT it didn't?start :-(

the only way to start is to type "sudo service ser2net restart"? then it start....!

73" OZ1CT Ben


Den tor. 29. dec. 2022 kl. 04.54 skrev Kyle K <kylekrieg@...>:

You probably need to enable the ser2net service with the command sudo systemctl enable ser2net.service.??

73
Kyle
AA0Z


 

Hi Ben,?
I want to use some flow like you for my 2m array too..
haveing also trouble to get ser2net working. NO GLUE anymore
I did all I could find here and tried different flows. ?Here is my ser2net config?

?

?

dg5cst@raspberrypi:~ $ netstat -l?

Active Internet connections (only servers)

Proto Recv-Q Send-Q Local Address ? ? ? ? ? Foreign Address ? ? ? ? State ? ? ?

tcp? ? ? ? 0? ? ? 0 0.0.0.0:ssh ? ? ? ? ? ? 0.0.0.0:* ? ? ? ? ? ? ? LISTEN? ? ?

tcp? ? ? ? 0? ? ? 0 localhost:ipp ? ? ? ? ? 0.0.0.0:* ? ? ? ? ? ? ? LISTEN? ? ?

tcp? ? ? ? 0? ? ? 0 0.0.0.0:5900? ? ? ? ? ? 0.0.0.0:* ? ? ? ? ? ? ? LISTEN? ? ?

tcp? ? ? ? 0? ? ? 0 0.0.0.0:1880? ? ? ? ? ? 0.0.0.0:* ? ? ? ? ? ? ? LISTEN? ? ?

tcp6 ? ? ? 0? ? ? 0 [::]:ssh? ? ? ? ? ? ? ? [::]:*? ? ? ? ? ? ? ? ? LISTEN? ? ?

tcp6 ? ? ? 0? ? ? 0 localhost:ipp ? ? ? ? ? [::]:*? ? ? ? ? ? ? ? ? LISTEN? ? ?

tcp6 ? ? ? 0? ? ? 0 [::]:30001? ? ? ? ? ? ? [::]:*? ? ? ? ? ? ? ? ? LISTEN? ? ? ? ? after manually start it .. ?

tcp6 ? ? ? 0? ? ? 0 [::]:5900 ? ? ? ? ? ? ? [::]:*? ? ? ? ? ? ? ? ? LISTEN? ? ?

tcp6 ? ? ? 0? ? ? 0 [::]:3000 ? ? ? ? ? ? ? [::]:*? ? ? ? ? ? ? ? ? LISTEN? ? ?

tcp6 ? ? ? 0? ? ? 0 [::]:3001 ? ? ? ? ? ? ? [::]:*? ? ? ? ? ? ? ? ? LISTEN? ? ?

tcp6 ? ? ? 0? ? ? 0 [::]:2001 ? ? ? ? ? ? ? [::]:*? ? ? ? ? ? ? ? ? LISTEN? ? ?

udp? ? ? ? 0? ? ? 0 0.0.0.0:55184 ? ? ? ? ? 0.0.0.0:* ? ? ? ? ? ? ? ? ? ? ? ? ?

udp? ? ? ? 0? ? ? 0 0.0.0.0:bootpc? ? ? ? ? 0.0.0.0:* ? ? ? ? ? ? ? ? ? ? ? ? ?

udp? ? ? ? 0? ? ? 0 0.0.0.0:mdns? ? ? ? ? ? 0.0.0.0:* ? ? ? ? ? ? ? ? ? ? ? ? ?

udp? ? ? ? 0? ? ? 0 0.0.0.0:631 ? ? ? ? ? ? 0.0.0.0:* ? ? ? ? ? ? ? ? ? ? ? ? ?

udp6 ? ? ? 0? ? ? 0 [::]:mdns ? ? ? ? ? ? ? [::]:*? ? ? ? ? ? ? ? ? ? ? ? ? ? ?

udp6 ? ? ? 0? ? ? 0 [::]:dhcpv6-client? ? ? [::]:*? ? ? ? ? ? ? ? ? ? ? ? ? ? ?

udp6 ? ? ? 0? ? ? 0 [::]:43749? ? ? ? ? ? ? [::]:*? ? ? ? ? ? ? ? ? ? ? ? ? ? ?

raw6 ? ? ? 0? ? ? 0 [::]:ipv6-icmp? ? ? ? ? [::]:*? ? ? ? ? ? ? ? ? 7 ? ? ? ? ?

Active UNIX domain sockets (only servers)

Proto RefCnt Flags ? ? ? Type ? ? ? State ? ? ? ? I-Node ? Path

unix? 2? ? ? [ ACC ] ? ? STREAM ? ? LISTENING ? ? 895? ? ? /run/user/1000/systemd/private

unix? 2? ? ? [ ACC ] ? ? STREAM ? ? LISTENING ? ? 901? ? ? /run/user/1000/bus

unix? 2? ? ? [ ACC ] ? ? STREAM ? ? LISTENING ? ? 903? ? ? /run/user/1000/gnupg/S.dirmngr

unix? 2? ? ? [ ACC ] ? ? STREAM ? ? LISTENING ? ? 905? ? ? /run/user/1000/gnupg/S.gpg-agent.browser

unix? 2? ? ? [ ACC ] ? ? STREAM ? ? LISTENING ? ? 907? ? ? /run/user/1000/gnupg/S.gpg-agent.extra

unix? 2? ? ? [ ACC ] ? ? STREAM ? ? LISTENING ? ? 909? ? ? /run/user/1000/gnupg/S.gpg-agent.ssh

unix? 2? ? ? [ ACC ] ? ? STREAM ? ? LISTENING ? ? 911? ? ? /run/user/1000/gnupg/S.gpg-agent

unix? 2? ? ? [ ACC ] ? ? STREAM ? ? LISTENING ? ? 913? ? ? /run/user/1000/pipewire-0

unix? 2? ? ? [ ACC ] ? ? STREAM ? ? LISTENING ? ? 915? ? ? /run/user/1000/pk-debconf-socket

unix? 2? ? ? [ ACC ] ? ? STREAM ? ? LISTENING ? ? 917? ? ? /run/user/1000/pulse/native

unix? 2? ? ? [ ACC ] ? ? STREAM ? ? LISTENING ? ? 10088? ? /run/systemd/private

unix? 2? ? ? [ ACC ] ? ? STREAM ? ? LISTENING ? ? 10090? ? /run/systemd/userdb/io.systemd.DynamicUser

unix? 2? ? ? [ ACC ] ? ? STREAM ? ? LISTENING ? ? 10091? ? /run/systemd/io.system.ManagedOOM

unix? 2? ? ? [ ACC ] ? ? STREAM ? ? LISTENING ? ? 16509? ? /run/user/1000/pcmanfm-socket--0

unix? 2? ? ? [ ACC ] ? ? STREAM ? ? LISTENING ? ? 12093? ? /run/systemd/fsck.progress

unix? 2? ? ? [ ACC ] ? ? STREAM ? ? LISTENING ? ? 17560? ? /run/user/1000/menu-cached-:0

unix? 2? ? ? [ ACC ] ? ? STREAM ? ? LISTENING ? ? 12102? ? /run/systemd/journal/stdout

unix? 2? ? ? [ ACC ] ? ? SEQPACKET? LISTENING ? ? 12104? ? /run/udev/control

unix? 2? ? ? [ ACC ] ? ? STREAM ? ? LISTENING ? ? 11142? ? /run/dhcpcd.sock

unix? 2? ? ? [ ACC ] ? ? STREAM ? ? LISTENING ? ? 11143? ? /run/dhcpcd.unpriv.sock

unix? 2? ? ? [ ACC ] ? ? STREAM ? ? LISTENING ? ? 12154? ? /run/systemd/journal/io.systemd.journal

unix? 2? ? ? [ ACC ] ? ? STREAM ? ? LISTENING ? ? 15949? ? /tmp/.vnc-vncservice/vncserver-x11.CtrlComms

unix? 2? ? ? [ ACC ] ? ? STREAM ? ? LISTENING ? ? 14950? ? /tmp/.X11-unix/X0

unix? 2? ? ? [ ACC ] ? ? STREAM ? ? LISTENING ? ? 1002 ? ? /tmp/ssh-xEY1WbeScsC2/agent.688

unix? 2? ? ? [ ACC ] ? ? STREAM ? ? LISTENING ? ? 13232? ? /tmp/ssh-UmdDK31R7P4F/agent.821

unix? 2? ? ? [ ACC ] ? ? STREAM ? ? LISTENING ? ? 14586? ? /run/avahi-daemon/socket

unix? 2? ? ? [ ACC ] ? ? STREAM ? ? LISTENING ? ? 14588? ? /run/cups/cups.sock

unix? 2? ? ? [ ACC ] ? ? STREAM ? ? LISTENING ? ? 14590? ? /run/dbus/system_bus_socket

unix? 2? ? ? [ ACC ] ? ? STREAM ? ? LISTENING ? ? 14592? ? /run/thd.socket

unix? 2? ? ? [ ACC ] ? ? STREAM ? ? LISTENING ? ? 14949? ? @/tmp/.X11-unix/X0

dg5cst@raspberrypi:~ $ sudo nano /etc/ser2net.yaml
?
%YAML 1.1

---

# This is a ser2net configuration file, tailored to be rather

# simple.

#

# Find detailed documentation in ser2net.yaml(5)

# A fully featured configuration file is in

# /usr/share/doc/ser2net/examples/ser2net.yaml.gz

#?

# If you find your configuration more useful than this very simple

# one, please submit it as a bugreport
define: &banner \r\nser2net port \p device \d [\B] (Debian GNU/Linux)\r\n\r\n

?

connection: &nr30001

? ? accepter: tcp,30001

? ? enable: on

? ? options:

? ? ? max-connections: 3

? ? ? banner: *banner

? ? ? kickolduser: true

? ? ? telnet-brk-on-sync: true

? ? connector: serialdev,

? ? ? ? ? ? ? /dev/ttyUSB0,

? ? ? ? ? ? ? 9600n81,local


did I do something wrong there? no flow would talk to the k3ng controller. When I connect it to my laptop via serial console I can talk to it via the Yaesu commands?

Many thanks for the help?
Seb
dg5cst?


 

Do I need to edit any startup files to make sure SER2NET starts automatically upon bootup?
Tnx es 73 de ArnieW8DU


 

Hello guys and gals,? please see below.? this is what i am getting out? ?and below that is my config file.? what am I missing.? I did the restart, I rebooted the pi and nothing so far.??





tcp? ? ? ? 0? ? ? 0 localhost:ipp? ? ? ? ? ?0.0.0.0:*? ? ? ? ? ? ? ?LISTEN
tcp? ? ? ? 0? ? ? 0 0.0.0.0:ssh? ? ? ? ? ? ?0.0.0.0:*? ? ? ? ? ? ? ?LISTEN
tcp? ? ? ? 0? ? ? 0 0.0.0.0:1880? ? ? ? ? ? 0.0.0.0:*? ? ? ? ? ? ? ?LISTEN
tcp6? ? ? ?0? ? ? 0 [::]:ssh? ? ? ? ? ? ? ? [::]:*? ? ? ? ? ? ? ? ? LISTEN
tcp6? ? ? ?0? ? ? 0 localhost:ipp? ? ? ? ? ?[::]:*? ? ? ? ? ? ? ? ? LISTEN
tcp6? ? ? ?0? ? ? 0 [::]:5900? ? ? ? ? ? ? ?[::]:*? ? ? ? ? ? ? ? ? LISTEN
udp? ? ? ? 0? ? ? 0 0.0.0.0:41395? ? ? ? ? ?0.0.0.0:*
udp? ? ? ? 0? ? ? 0 0.0.0.0:6666? ? ? ? ? ? 0.0.0.0:*
udp? ? ? ? 0? ? ? 0 0.0.0.0:6666? ? ? ? ? ? 0.0.0.0:*
udp? ? ? ? 0? ? ? 0 0.0.0.0:6666? ? ? ? ? ? 0.0.0.0:*
udp? ? ? ? 0? ? ? 0 0.0.0.0:6667? ? ? ? ? ? 0.0.0.0:*
udp? ? ? ? 0? ? ? 0 0.0.0.0:6667? ? ? ? ? ? 0.0.0.0:*
udp? ? ? ? 0? ? ? 0 0.0.0.0:6667? ? ? ? ? ? 0.0.0.0:*
udp? ? ? ? 0? ? ? 0 0.0.0.0:631? ? ? ? ? ? ?0.0.0.0:*

?This is a ser2net configuration file, tailored to be rather
# simple.
#
# Find detailed documentation in ser2net.yaml(5)
# A fully featured configuration file is in
# /usr/share/doc/ser2net/examples/ser2net.yaml.gz
#
# If you find your configuration more useful than this very simple
# one, please submit it as a bugreport
?
define: &banner \r\nser2net port \p device \d [\B] (Debian GNU/Linux)\r\n\r\n
?
admin:
? ? accepter:tcp,8000
?
connection: &kat
? ? accepter: tcp,8001
? ? enable: on
? ? options:
? ? ? max-connections: 5
? ? connector: serialdev,
? ? ? ? ? ? ?/dev/ttyUSB0,
? ? ? ? ? ? ? 38400n81,local
?
connection: &kpa500
? ? accepter: tcp,localhost,8002
? ? enable: on
? ? options:
? ? ? max-connections: 5
? ? connector: serialdev,
? ? ? ? ? ? ? /dev/ttyUSB1,
? ? ? ? ? ? ? 38400n81,local
?


 

Here is the error i get?

Mar 13 21:51:28 hampi systemd[1]: Starting ser2net.service - Serial port to network proxy...
Mar 13 21:51:28 hampi systemd[1]: Started ser2net.service - Serial port to network proxy.
Mar 13 21:51:28 hampi ser2net[3886]: /etc/ser2net.yaml:0(column 1): Unexpected scalar value
Mar 13 21:51:28 hampi ser2net[3886]: /etc/ser2net.yaml:0(column 1): Unexpected scalar value
?


 

Ok got it now connected? and its showing.? ?I tried the KPA and KAT program and it shows connect but no? data coming back. program stays blank.? ?any thoughts?


 

Let me see if I can help you, I was using ser2net at one time but stopped.? I have a python program that will run on a Pi and let you use the Elecraft apps if you are looking to do that.? Can you post your latest ser2net configuration and netstat?


 

BoB:
I would be interested in that python program you mentioned. Can? you give me some info as to how it accesses the Elecraft uitls and perhaps share the python code?
Tnx es 73 de Arnie W8DU


 

There is a project on github that used a Pi Pico to implement a webserver for KPA/KAT control or using the elecraft utilities KAT500 Remote and KPA500 Remote from the Elecraft site?? The github site is?? The original project configures the Pico wifi? and uses micropython or cpython for the web and tcp servers and accesses the UARTS on the Pico to connect to the KPA and KAT.? I was running this on a Pi4 that was also running Hamclock and some other applications as well as this server.? To run it standlone you make some simple changes to the code from the github site.? I can send you a zip file of the modified repo files rather than post them here since they aren't really node red material.? I also have a systemd script to start it on boot.? The python code implements the same service endpoints that the elecraft utilities provide when run in their client/server mode.? The website that it provides is usable but I preferred the Elecraft application utilities.? I don't use these since I implemented the node-red flows for the KPA/KAT now but they worked well when I was using them.? If you want the zip of the modified files let me know where to send them.? You can email me at the address on qrz.com if you like.


 

Hello.? Thanks Kyle for the information!? I'm following your instructions and also using the YouTube video to install Ser2Net.? My goal is to make use of the NodeRed flow to control the RAAS-8a Antenna Switch by WA4MCM.? ?I have the RAAS plug into my RASP PI's USB port.? The Rasp Pi is also running Nodered.? I have run into snag.? The? /dev/serial/by-id folder is not present.? The RAAS-8a is the only item plugged into any of the Rasp Pi USB ports.? How can I get the folder by-id to be present??
--
Domenick - WA2GOT? ? 73s


 

¿ªÔÆÌåÓý

Hi Domenick

Is it possible the USB device is showing as a USB HID device?

The LP700 wattmeter is like that.?

What happens when you plug it into a USB port on the PC?

73
Dave wo2x
Sent from my waxed string and tin cans.?

On May 15, 2025, at 11:23?AM, Domenick Fusca via groups.io <domenickfusca@...> wrote:

?
Hello.? Thanks Kyle for the information!? I'm following your instructions and also using the YouTube video to install Ser2Net.? My goal is to make use of the NodeRed flow to control the RAAS-8a Antenna Switch by WA4MCM.? ?I have the RAAS plug into my RASP PI's USB port.? The Rasp Pi is also running Nodered.? I have run into snag.? The? /dev/serial/by-id folder is not present.? The RAAS-8a is the only item plugged into any of the Rasp Pi USB ports.? How can I get the folder by-id to be present??
--
Domenick - WA2GOT? ? 73s