nonoo / kappanhang Goto Github PK
View Code? Open in Web Editor NEWRemotely open audio channels and a serial port to an Icom RS-BA1 server (for ex. Icom IC-705 transceiver).
License: Other
Remotely open audio channels and a serial port to an Icom RS-BA1 server (for ex. Icom IC-705 transceiver).
License: Other
Hi,
I tried to configure a systemd service for kappanhang so that it can connect and run in the background on my raspberry pi.
kappanhang runs fine when launched from the terminal
I've created this simple service file:
[Unit]
Description=kappanhang
After=syslog.target network.target
[Service]
Type=simple
ExecStart=/home/pi/go/bin/kappanhang
ExecReload=/bin/kill -HUP $MAINPID
RestartSec=60
Restart=always
User=pi
[Install]
WantedBy=multi-user.target
when I run the service it starts but then it crashes with a "panic: runtime error: invalid memory address or nil pointer dereference" error.
-- Boot 862a41e8329e47ca9e15a2f94f7bbeaa --
Jan 21 14:47:59 satpi systemd[1]: Started kappanhang.
Jan 21 14:47:59 satpi kappanhang[1481]: 2022-01-21T14:47:59.147+0100 info main: kappanhang (devel) by Norbert Varga HA2NON and Akos Marton ES1AK>
Jan 21 14:47:59 satpi kappanhang[1481]: 2022-01-21T14:47:59.150+0100 info streamcommon: control/connecting to IC-705:50001
Jan 21 14:48:00 satpi kappanhang[1481]: 2022-01-21T14:48:00.179+0100 error main@59: control/expect timeout - the server did not answer, check if>
Jan 21 14:48:00 satpi kappanhang[1481]: 2022-01-21T14:48:00.179+0100 info main: waiting 1 seconds...
Jan 21 14:48:01 satpi kappanhang[1481]: 2022-01-21T14:48:01.180+0100 info main: restarting control stream...
Jan 21 14:48:01 satpi kappanhang[1481]: 2022-01-21T14:48:01.180+0100 info streamcommon: control/connecting to IC-705:50001
Jan 21 14:48:01 satpi kappanhang[1481]: 2022-01-21T14:48:01.302+0100 info controlstream: got serial and audio request success, device name: IC-7>
Jan 21 14:48:01 satpi kappanhang[1481]: 2022-01-21T14:48:01.302+0100 info streamcommon: serial/connecting to IC-705:50002
Jan 21 14:48:01 satpi kappanhang[1481]: 2022-01-21T14:48:01.311+0100 info serialtcpsrv: exposing serial port on tcp port 4531
Jan 21 14:48:01 satpi kappanhang[1481]: 2022-01-21T14:48:01.326+0100 info serialstream: stream started
Jan 21 14:48:01 satpi kappanhang[1481]: 2022-01-21T14:48:01.328+0100 info streamcommon: audio/connecting to IC-705:50003
Jan 21 14:48:01 satpi kappanhang[1481]: 2022-01-21T14:48:01.416+0100 error controlstream@299: audio/Connection failure: Connection refused
Jan 21 14:48:01 satpi kappanhang[1481]: pa_context_connect() failed: Connection refused
Jan 21 14:48:01 satpi kappanhang[1481]: 2022-01-21T14:48:01.917+0100 info streamcommon: control/disconnecting
Jan 21 14:48:01 satpi kappanhang[1481]: 2022-01-21T14:48:01.918+0100 info streamcommon: serial/disconnecting
Jan 21 14:48:01 satpi kappanhang[1481]: 2022-01-21T14:48:01.919+0100 info main: waiting 1 seconds...
Jan 21 14:48:02 satpi kappanhang[1481]: 2022-01-21T14:48:02.919+0100 info main: restarting control stream...
Jan 21 14:48:02 satpi kappanhang[1481]: 2022-01-21T14:48:02.919+0100 info streamcommon: control/connecting to IC-705:50001
Jan 21 14:48:03 satpi kappanhang[1481]: 2022-01-21T14:48:03.038+0100 info controlstream: got serial and audio request success, device name: IC-7>
Jan 21 14:48:03 satpi kappanhang[1481]: 2022-01-21T14:48:03.039+0100 info streamcommon: serial/connecting to IC-705:50002
Jan 21 14:48:03 satpi kappanhang[1481]: 2022-01-21T14:48:03.063+0100 info serialstream: stream started
Jan 21 14:48:03 satpi kappanhang[1481]: 2022-01-21T14:48:03.066+0100 info streamcommon: audio/connecting to IC-705:50003
Jan 21 14:48:03 satpi kappanhang[1481]: 2022-01-21T14:48:03.158+0100 error controlstream@299: audio/Connection failure: Connection refused
Jan 21 14:48:03 satpi kappanhang[1481]: pa_context_connect() failed: Connection refused
Jan 21 14:48:03 satpi kappanhang[1481]: 2022-01-21T14:48:03.659+0100 info streamcommon: control/disconnecting
Jan 21 14:48:03 satpi kappanhang[1481]: 2022-01-21T14:48:03.659+0100 info streamcommon: serial/disconnecting
Jan 21 14:48:03 satpi kappanhang[1481]: 2022-01-21T14:48:03.660+0100 info main: waiting 1 seconds...
Jan 21 14:48:04 satpi kappanhang[1481]: 2022-01-21T14:48:04.660+0100 info main: restarting control stream...
Jan 21 14:48:04 satpi kappanhang[1481]: 2022-01-21T14:48:04.660+0100 info streamcommon: control/connecting to IC-705:50001
Jan 21 14:48:04 satpi kappanhang[1481]: 2022-01-21T14:48:04.825+0100 info controlstream: got serial and audio request success, device name: IC-7>
Jan 21 14:48:04 satpi kappanhang[1481]: 2022-01-21T14:48:04.825+0100 info streamcommon: serial/connecting to IC-705:50002
Jan 21 14:48:04 satpi kappanhang[1481]: 2022-01-21T14:48:04.850+0100 info serialstream: stream started
Jan 21 14:48:04 satpi kappanhang[1481]: 2022-01-21T14:48:04.852+0100 info streamcommon: audio/connecting to IC-705:50003
Jan 21 14:48:04 satpi kappanhang[1481]: 2022-01-21T14:48:04.933+0100 error controlstream@299: audio/Connection failure: Connection refused
Jan 21 14:48:04 satpi kappanhang[1481]: pa_context_connect() failed: Connection refused
Jan 21 14:48:05 satpi kappanhang[1481]: 2022-01-21T14:48:05.435+0100 info streamcommon: control/disconnecting
Jan 21 14:48:05 satpi kappanhang[1481]: 2022-01-21T14:48:05.435+0100 info streamcommon: serial/disconnecting
Jan 21 14:48:05 satpi kappanhang[1481]: 2022-01-21T14:48:05.436+0100 info main: waiting 1 seconds...
Jan 21 14:48:06 satpi kappanhang[1481]: 2022-01-21T14:48:06.436+0100 info main: restarting control stream...
Jan 21 14:48:06 satpi kappanhang[1481]: 2022-01-21T14:48:06.436+0100 info streamcommon: control/connecting to IC-705:50001
Jan 21 14:48:06 satpi kappanhang[1481]: 2022-01-21T14:48:06.578+0100 info controlstream: got serial and audio request success, device name: IC-7>
Jan 21 14:48:06 satpi kappanhang[1481]: 2022-01-21T14:48:06.578+0100 info streamcommon: serial/connecting to IC-705:50002
Jan 21 14:48:06 satpi kappanhang[1481]: 2022-01-21T14:48:06.604+0100 info serialstream: stream started
Jan 21 14:48:06 satpi kappanhang[1481]: 2022-01-21T14:48:06.607+0100 info streamcommon: audio/connecting to IC-705:50003
Jan 21 14:48:06 satpi kappanhang[1481]: 2022-01-21T14:48:06.680+0100 error controlstream@299: audio/Connection failure: Connection refused
Jan 21 14:48:06 satpi kappanhang[1481]: pa_context_connect() failed: Connection refused
Jan 21 14:48:07 satpi kappanhang[1481]: 2022-01-21T14:48:07.182+0100 info streamcommon: control/disconnecting
Jan 21 14:48:07 satpi kappanhang[1481]: 2022-01-21T14:48:07.182+0100 info streamcommon: serial/disconnecting
Jan 21 14:48:07 satpi kappanhang[1481]: 2022-01-21T14:48:07.182+0100 info main: waiting 1 seconds...
Jan 21 14:48:08 satpi kappanhang[1481]: 2022-01-21T14:48:08.182+0100 info main: restarting control stream...
Jan 21 14:48:08 satpi kappanhang[1481]: 2022-01-21T14:48:08.183+0100 info streamcommon: control/connecting to IC-705:50001
Jan 21 14:48:08 satpi kappanhang[1481]: 2022-01-21T14:48:08.261+0100 info controlstream: got serial and audio request success, device name: IC-7>
Jan 21 14:48:08 satpi kappanhang[1481]: 2022-01-21T14:48:08.261+0100 info streamcommon: serial/connecting to IC-705:50002
Jan 21 14:48:08 satpi kappanhang[1481]: 2022-01-21T14:48:08.290+0100 info serialstream: stream started
Jan 21 14:48:08 satpi kappanhang[1481]: 2022-01-21T14:48:08.291+0100 info streamcommon: audio/connecting to IC-705:50003
Jan 21 14:48:08 satpi kappanhang[1481]: 2022-01-21T14:48:08.374+0100 error controlstream@299: audio/Connection failure: Connection refused
Jan 21 14:48:08 satpi kappanhang[1481]: pa_context_connect() failed: Connection refused
Jan 21 14:48:08 satpi kappanhang[1481]: 2022-01-21T14:48:08.875+0100 info streamcommon: control/disconnecting
Jan 21 14:48:08 satpi kappanhang[1481]: 2022-01-21T14:48:08.875+0100 info streamcommon: serial/disconnecting
Jan 21 14:48:08 satpi kappanhang[1481]: 2022-01-21T14:48:08.876+0100 info main: waiting 1 seconds...
Jan 21 14:48:09 satpi kappanhang[1481]: 2022-01-21T14:48:09.876+0100 info main: restarting control stream...
Jan 21 14:48:09 satpi kappanhang[1481]: 2022-01-21T14:48:09.878+0100 info streamcommon: control/connecting to IC-705:50001
Jan 21 14:48:10 satpi kappanhang[1481]: 2022-01-21T14:48:10.966+0100 error main@59: control/expect timeout - the server did not answer, check if>
Jan 21 14:48:10 satpi kappanhang[1481]: 2022-01-21T14:48:10.966+0100 info streamcommon: control/disconnecting
Jan 21 14:48:10 satpi kappanhang[1481]: 2022-01-21T14:48:10.967+0100 info main: waiting 1 seconds...
Jan 21 14:48:11 satpi kappanhang[1481]: 2022-01-21T14:48:11.967+0100 info main: restarting control stream...
Jan 21 14:48:11 satpi kappanhang[1481]: 2022-01-21T14:48:11.967+0100 info streamcommon: control/connecting to IC-705:50001
Jan 21 14:48:12 satpi kappanhang[1481]: 2022-01-21T14:48:12.152+0100 info controlstream: got serial and audio request success, device name: IC-7>
Jan 21 14:48:12 satpi kappanhang[1481]: 2022-01-21T14:48:12.152+0100 info streamcommon: serial/connecting to IC-705:50002
Jan 21 14:48:12 satpi kappanhang[1481]: 2022-01-21T14:48:12.173+0100 info serialstream: stream started
Jan 21 14:48:12 satpi kappanhang[1481]: 2022-01-21T14:48:12.174+0100 info streamcommon: audio/connecting to IC-705:50003
Jan 21 14:48:12 satpi kappanhang[1481]: 2022-01-21T14:48:12.254+0100 error controlstream@299: audio/Connection failure: Connection refused
Jan 21 14:48:12 satpi kappanhang[1481]: pa_context_connect() failed: Connection refused
Jan 21 14:48:12 satpi kappanhang[1481]: 2022-01-21T14:48:12.255+0100 info controlstream: got serial and audio request success, device name: IC-7>
Jan 21 14:48:12 satpi kappanhang[1481]: 2022-01-21T14:48:12.255+0100 info streamcommon: serial/connecting to IC-705:50002
Jan 21 14:48:12 satpi kappanhang[1481]: 2022-01-21T14:48:12.266+0100 error controlstream@299: serial/dial udp :50002->192.168.146.187:50002: bin>
Jan 21 14:48:12 satpi kappanhang[1481]: panic: runtime error: invalid memory address or nil pointer dereference
Jan 21 14:48:12 satpi kappanhang[1481]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x19d160]
Jan 21 14:48:12 satpi kappanhang[1481]: goroutine 192 [running]:
Jan 21 14:48:12 satpi kappanhang[1481]: main.(*streamCommon).send(0x18d4410, 0x18aac40, 0x10, 0x10, 0x10, 0x182cfc0)
Jan 21 14:48:12 satpi kappanhang[1481]: /home/pi/go/src/github.com/nonoo/kappanhang/streamcommon.go:30 +0x18
Jan 21 14:48:12 satpi kappanhang[1481]: main.(*pkt0Type).sendTrackedPacket(0x18d4434, 0x18d4410, 0x18aac40, 0x10, 0x10, 0x0, 0x0)
Jan 21 14:48:12 satpi kappanhang[1481]: /home/pi/go/src/github.com/nonoo/kappanhang/pkt0.go:139 +0xe0
Jan 21 14:48:12 satpi kappanhang[1481]: main.(*pkt0Type).sendIdle(0x18d4434, 0x18d4410, 0x1, 0x1, 0x1)
Jan 21 14:48:12 satpi kappanhang[1481]: /home/pi/go/src/github.com/nonoo/kappanhang/pkt0.go:164 +0xdc
Jan 21 14:48:12 satpi kappanhang[1481]: main.(*pkt0Type).loop(0x18d4434, 0x18d4410)
Jan 21 14:48:12 satpi kappanhang[1481]: /home/pi/go/src/github.com/nonoo/kappanhang/pkt0.go:178 +0x128
Jan 21 14:48:12 satpi kappanhang[1481]: created by main.(*pkt0Type).startPeriodicSend
Jan 21 14:48:12 satpi kappanhang[1481]: /home/pi/go/src/github.com/nonoo/kappanhang/pkt0.go:201 +0xf4
Jan 21 14:48:12 satpi systemd[1]: kappanhang.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Jan 21 14:48:12 satpi systemd[1]: kappanhang.service: Failed with result 'exit-code'.
Norbert,
It appears that kappanhang attempts to open UDP sockets with the same local port number as it communicates to on the radio:
func (s *streamCommon) init(name string, portNumber int) error {
...
hostPort := fmt.Sprint(connectAddress, ":", portNumber)
...
raddr, err := net.ResolveUDPAddr("udp", hostPort)
...
s.conn, err = net.DialUDP("udp", &net.UDPAddr{Port: portNumber}, raddr)
I have other software that I run on my machine that apparently also prefers to use one of the 5000x ports by default, and if I have it running when I start kappanhang, kappanhang fails to run. In order to have both running I have to ensure kappanhang runs first so that it can take the port and the other software then chooses another. This is awkward and catches me out many times.
Is there any reason that the local UDP ports could not be randomly assigned? Does the protocol mandate this behaviour?
regards
Terry
Great project! A joy to see it!
On my Debian Buster system, WSJTX RX worked pretty much out of the box, but the output of TX is interrupted and garbled.
I enclose, in the accompanying kappanhang-sound-problem.zip:
pacmd dump
before kappanhang
was even startedpacmd dump
with kappanhang
and wsjtx
both runningFWIW: I run a self-compiled version of kappanhang
, as the precompiled does not work, with error message
/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./kappanhang_1.2)
73 es gl de Andreas, dj3ei
I attempted to perform the compile instructions as follows:
user@yogas:~/go $ go version
go version go1.14.10 linux/amd64
user@yogas:~/go $ go env | grep PATH
GOPATH="/home/user/go"
user@yogas:~/go $ go get https://github.com/nonoo/kappanhang
package https:/github.com/nonoo/kappanhang: https:/github.com/nonoo/kappanhang: invalid import path: malformed import path "https:/github.com/nonoo/kappanhang": invalid char ':'
...Providing feedback to improve the README.md. Thanks!!
First of all, thanks for writing such a great bit of code.
Is there a way to enable ALSA support for the audio? A number of software modems that I use, such as Direwolf and Ardop, only have support for ALSA and not pulseaudio.
Unfortunately, this means that I have to plug a USB cable in just to use the software modems.
Also, is there a way to present the GPS feed from the radio as a second virtual serial device?
Thanks in advance,
Andy, UK
I'm new to this so I could be missing something basic. However it seems that the internal rigctld process does not support the extended version of the commands. The pat winlink client seems to be issuing those commands when using hamlib as rig control.
STR:
Notice in the kappanhang console the following line:
error rigctld@409: got unknown cmd \get_freq
Alternatively if I telnet to rigctld directly and try get_freq or other variation I get an error. If I type f I get the proper response.
Hi Norbert:
Is it possible to carry RTS (Request To Send) and DCD (Data Carrier Detect) signalling (i.e. DTR) via the virtual serial port? It would be useful to have these features enabled so that Direwolf (Modem) can use them for AX.25 Packet.
Thanks in advance,
Andy
Running kappanhang commit a998382
Raspberry pi 4
Go installed from binaries and resides in /usr/local/go/bin
go version go1.15.6 linux/arm
Connecting to a ICOM-705 on 192.168.88.186
./go/bin/kappanhang -a 192.168.88.186 -u -p
...many good output lines...
... I start js8call version 2.2.0 or wsjtx version 2.2.2
2020-12-26T10:06:53.563-0500 error rigctld@409: got unknown cmd POST /RPC2 HTTP/1.1
2020-12-26T10:06:53.563-0500 error rigctld@409: got unknown cmd User-Agent: XMLRPC++ 0.8
2020-12-26T10:06:53.563-0500 error rigctld@409: got unknown cmd Host: 127.0.0.1:12345
2020-12-26T10:06:53.563-0500 error rigctld@409: got unknown cmd Content-type: text/xml
2020-12-26T10:06:53.564-0500 error rigctld@409: got unknown cmd Content-length: 89
2020-12-26T10:06:53.564-0500 info rigctld: client 127.0.0.1:42108 disconnected
panic: runtime error: index out of range [0] with length 0 rfg 65% sql 19%
2020-12-26T10:06:53.742-0500 S0 10.130720 TS1 USB 8.1V txpwr 6%
goroutine 39 [running]:-0500 up 1m5s rtt 5ms up 951 B/s down 100.0 kB/s retx 1 /1m lost 0/1m
main.(*rigctldStruct).processCmd(0x3371d0, 0x31b3b0, 0x0, 0x0, 0x0, 0x0)
/home/pi/go/src/github.com/nonoo/kappanhang/rigctld.go:138 +0x15f8
main.(*rigctldStruct).clientLoop(0x3371d0)
/home/pi/go/src/github.com/nonoo/kappanhang/rigctld.go:407 +0x2d8
created by main.(*rigctldStruct).loop
/home/pi/go/src/github.com/nonoo/kappanhang/rigctld.go:440 +0x2c
I will get this error even if I set -s 12345
My ICOM-705 firmware is version 1.12
Super excited to discover this project yesterday! I've been wanting to learn go, and this seems like a good place to dig in.
When I cloned and built kappanhang, on my system I get:
dave@roslap2:~/Documents/repos/contrib/kappanhang$ go run ./
2020-12-06T15:55:50.253-0800 info main: kappanhang (devel) by Norbert Varga HA2NON and Akos Marton ES1AKOS https://github.com/nonoo/kappanhang
2020-12-06T15:55:50.253-0800 info streamcommon: control/connecting to IC-705:50001
2020-12-06T15:55:50.626-0800 info controlstream: got serial and audio request success, device name: IC-705
2020-12-06T15:55:50.629-0800 info streamcommon: serial/connecting to IC-705:50002
2020-12-06T15:55:50.651-0800 info serialtcpsrv: exposing serial port on tcp port 4531
2020-12-06T15:55:50.686-0800 info serialstream: stream started
2020-12-06T15:55:50.686-0800 info streamcommon: audio/connecting to IC-705:50003
2020-12-06T15:55:50.779-0800 error controlstream@299: audio/Failure: Module initialization failed
2020-12-06T15:55:50.729-0800 S0 14.019430 CW txpwr 100%
2020-12-06T15:55:51.279-0800 info streamcommon: control/disconnecting
2020-12-06T15:55:51.279-0800 info streamcommon: serial/disconnecting
2020-12-06T15:55:51.280-0800 info main: waiting 1 seconds...
So... it looks like my configuration is close to correct, but somehow the audio stream is not starting up. Any clues for me?
73, Dave N6NZ
Trying to install on a Raspberry PI
I encounter
root@raspberrypi:# go get https://github.com/nonoo/kappanhang#
package https:/github.com/nonoo/kappanhang: https:/github.com/nonoo/kappanhang: invalid import path: malformed import path "https:/github.com/nonoo/kappanhang": invalid char ':'
root@raspberrypi:
Please advise
//SM0TSC - Johan
Is there a way to send GPS data from the 705 to the Pi over WLAN as a time source for Chrony?
I attempted to install kappanhang on my Raspberry Pi 3B+ running 32-bit bullseye and got the following messages:
go get github.com/nonoo/kappanhang
go install github.com/nonoo/kappanhang
found packages unix (affinity_linux.go) and main (mkasm.go) in /home/pi/go/src/golang.org/x/sys/unix
go/src/github.com/mattn/go-isatty/isatty_tcgets.go:8:8: found packages unix (affinity_linux.go) and main (mkasm.go) in /home/pi/go/src/golang.org/x/sys/unix
This is on a fresh install of Raspberry Pi OS and I have had it work before on other installations a very long time ago.
Hi,
Thanks for the nice product, it looks, that it's exactly what I need if it will allow me to send/receive audio via WiFi on IC-705.
Config:
Network control is ON, Raspberry Pi and IC-705 are in the same network, "Network user1" set to ID="beer" and password="12345678".
But when I am trying to run the app, I get this log:
/home/pi/go/bin/kappanhang -u=beer -p=12345678
2021-02-28T14:55:05.411+0100 info streamcommon: control/connecting to IC-705:50001
2021-02-28T14:55:06.615+0100 error main@59: control/expect timeout - the server did not answer, check if it's running
2021-02-28T14:55:06.616+0100 info streamcommon: control/disconnecting
2021-02-28T14:55:06.617+0100 info main: waiting 1 seconds...
2021-02-28T14:55:07.618+0100 info main: restarting control stream...
2021-02-28T14:55:07.618+0100 info streamcommon: control/connecting to IC-705:50001
2021-02-28T14:55:07.994+0100 error main@59: invalid username/password
2021-02-28T14:55:07.994+0100 info streamcommon: control/disconnecting
2021-02-28T14:55:07.995+0100 info main: exiting
I tried also to change the password to "beerbeer", later changed it to "12345678", no difference.
Any ideas? I use the last firmware from Icom, maybe they changed something in the auth algorithm?
Thanks.
Is it possible to have direwolf and ardopc transmit when using kappanhang?
I created a virtual sound card which pipes the audio to/from Kappanhang-705 using pulse which works perfect for receive. The issue I am having is with TX/PTT. In the direwolf.conf, I tried:
PTT RIG 2 localhost:4532
but PTT isn't working. I receive the following errors in the direwolf terminal:
Hamlib Error: rig_set_ptt command for channel 0 PTT
IO error
read_string called, rxmax=1024
read_string(): read() failed - Success
rig.c(2755):rig_set_ptt return(-6)
With kappanhang running, I can run:
echo "\set_ptt 1" | nc localhost 4532
and the radio will go into transmit and
echo "\set_ptt 0" | nc localhost 4532
to reset the transmit on the radio. This leads me to believe it is possible PTT possible in direwolf.
FWIW, JS8Call & WSJTX are working perfectly.
73, de KM4ACK
What I am trying to do: Install kappenhang.
What I expect: Install completes and I can run the program and connect to an IC-705.
What happened: Errors.
Here is the transcript:
bchabot@penguin:~$ sudo apt-get install golang
{snip long useless info.}
Setting up golang (2:1.11~1) ...
Setting up g++ (4:8.3.0-1) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
Processing triggers for man-db (2.8.5-2) ...
bchabot@penguin:~$ sudo apt-get install libpulse-dev
{snip long useless info.}
bchabot@penguin:~$ go get github.com/nonoo/kappanhang
# go.uber.org/multierr
go/src/go.uber.org/multierr/error.go:249:6: undefined: errors.As
go/src/go.uber.org/multierr/error.go:262:6: undefined: errors.Is
bchabot@penguin:~$ go install github.com/nonoo/kappanhang
# go.uber.org/multierr
go/src/go.uber.org/multierr/error.go:249:6: undefined: errors.As
go/src/go.uber.org/multierr/error.go:262:6: undefined: errors.Is
bchabot@penguin:~$
bchabot@penguin:~$ cat /etc/debian_version
10.11
bchabot@penguin:~$
bchabot@penguin:~$ free -g
total used free shared buff/cache available
Mem: 14 0 14 0 0 14
Swap: 0 0 0
bchabot@penguin:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vdb 32G 6.6G 25G 21% /
none 492K 0 492K 0% /dev
devtmpfs 7.1G 0 7.1G 0% /dev/tty
/dev/vdb 32G 6.6G 25G 21% /dev/kvm
tmpfs 100K 0 100K 0% /dev/lxd
tmpfs 100K 0 100K 0% /dev/.lxd-mounts
run 7.2G 28K 7.2G 1% /dev/.host_ip
/dev/root 422M 290M 124M 71% /dev/.ssh/sshd_config
9p 7.8G 776K 7.8G 1% /mnt/chromeos
tmpfs 7.2G 0 7.2G 0% /mnt/external
/dev/vda 53M 53M 0 100% /opt/google/cros-containers
tmpfs 7.2G 0 7.2G 0% /dev/shm
tmpfs 7.2G 120K 7.2G 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 7.2G 0 7.2G 0% /sys/fs/cgroup
tmpfs 1.5G 24K 1.5G 1% /run/user/1000
bchabot@penguin:~$ top -b -n 1
top - 00:46:54 up 22 min, 0 users, load average: 0.19, 0.22, 0.15
Tasks: 29 total, 1 running, 28 sleeping, 0 stopped, 0 zombie
%Cpu(s): 0.0 us, 1.5 sy, 0.0 ni, 95.5 id, 0.0 wa, 0.0 hi, 0.0 si, 3.0 st
MiB Mem : 14541.2 total, 14507.3 free, 9.1 used, 24.8 buff/cache
MiB Swap: 0.0 total, 0.0 free, 0.0 used. 14532.1 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
210 bchabot 20 0 644520 35468 22144 S 200.0 0.2 0:35.55 ld-linux-x86-64
1 root 20 0 104972 10316 7884 S 0.0 0.1 0:01.08 systemd
34 root 20 0 52244 19204 18092 S 0.0 0.1 0:00.52 systemd-journal
44 root 20 0 20652 5080 3804 S 0.0 0.0 0:00.09 systemd-udevd
53 root 20 0 318176 9924 8600 S 0.0 0.1 0:00.11 ModemManager
54 root 20 0 19520 7252 6352 S 0.0 0.0 0:00.18 systemd-logind
55 message+ 20 0 9536 4792 3800 S 0.0 0.0 0:00.63 dbus-daemon
56 root 20 0 19764 5820 5204 S 0.0 0.0 0:00.01 wpa_supplicant
65 root 20 0 239988 9396 8068 S 0.0 0.1 0:00.06 polkitd
95 root 20 0 9484 5752 4476 S 0.0 0.0 0:00.02 dhclient
143 root 20 0 5380 2064 1944 S 0.0 0.0 0:00.00 agetty
145 root 20 0 15848 6620 5784 S 0.0 0.0 0:00.00 sshd
146 bchabot 20 0 21432 9516 7828 S 0.0 0.1 0:00.13 systemd
151 bchabot 20 0 23124 3108 940 S 0.0 0.0 0:00.00 (sd-pam)
188 bchabot 20 0 6828 3444 2976 S 0.0 0.0 0:00.03 ld-linux-x86-64
190 bchabot 20 0 36976 17268 13472 S 0.0 0.1 0:00.07 ld-linux-x86-64
197 bchabot 20 0 6828 3608 3128 S 0.0 0.0 0:00.05 ld-linux-x86-64
198 bchabot 20 0 36984 17328 13532 S 0.0 0.1 0:00.06 ld-linux-x86-64
209 bchabot 20 0 644484 34964 21664 S 0.0 0.2 0:00.21 ld-linux-x86-64
293 bchabot 20 0 753776 11900 10460 S 0.0 0.1 0:01.13 ld-linux-x86-64
317 bchabot 20 0 14076 9244 8520 S 0.0 0.1 0:00.75 ld-linux-x86-64
318 root 20 0 16936 8252 7136 S 0.0 0.1 0:00.03 sshd
322 bchabot 20 0 8496 5344 3744 S 0.0 0.0 0:00.40 bash
335 bchabot 20 0 16936 4936 3816 S 0.0 0.0 0:00.01 sshd
336 bchabot 20 0 16936 3224 2100 S 0.0 0.0 0:00.00 sshd
5270 root 20 0 361560 17544 14164 S 0.0 0.1 0:08.70 packagekitd
6255 avahi 20 0 8284 3484 3156 S 0.0 0.0 0:00.04 avahi-daemon
6256 avahi 20 0 8152 328 0 S 0.0 0.0 0:00.00 avahi-daemon
7519 bchabot 20 0 11016 3480 3092 R 0.0 0.0 0:00.00 top
bchabot@penguin:~$
System info:
Machine is a Google Pixelbook Model C0A, 16G RAM, 512G storage, Core i7-7Y75.
Google Chrome | 96.0.4664.111 (Official Build) (64-bit) |
---|---|
Revision | d9aa4162631f5327235a143589de62a47cc34394-refs/branch-heads/4664@{#1287} |
Platform | 14268.67.0 (Official Build) stable-channel eve |
Firmware Version | Google_Eve.9584.201.0 |
================================================ |
Is it possible to build it under osx system?
Have latest golang, installed libpulse by brew, but cannot find libpulse-dev for osx.
go install github.com/nonoo/kappanhang
# github.com/nonoo/kappanhang
./audiostream.go:88:2: undefined: audio
./audiostream.go:137:15: undefined: audio
./audiostream.go:156:12: undefined: audio
./controlstream.go:135:44: undefined: audioSampleRate
./controlstream.go:136:20: undefined: audioSampleRate
./hotkeys.go:8:3: undefined: audio
./hotkeys.go:10:3: undefined: audio
./main.go:153:2: undefined: audio
./main.go:154:2: undefined: serialPort
./main.go:157:3: undefined: keyboard
./main.go:157:3: too many errors
Just wante to say thank you!
I made it work on Raspberry pi 4 and icom 705!
Seems stable :)
Thank you
I'm attempting to use this on Ubuntu 22.10 (kinetic) and getting an error with the audio. I suspect it is because 22.10 has switched to PipeWire vs PulseAudio. Error below. Can anyone confirm this is indeed the problem? Any other info I can provide?
$ kappanhang -a 10.8.20.105 -u tux -p tux12345
2022-11-17T12:31:07.961-0500 info main: kappanhang by Norbert Varga HA2NON and Akos Marton ES1AKOS https://github.com/nonoo/kappanhang
2022-11-17T12:31:07.961-0500 info streamcommon: control/connecting to 10.8.20.105:50001
2022-11-17T12:31:08.299-0500 info controlstream: got serial and audio request success, device name: IC-705
2022-11-17T12:31:08.302-0500 info streamcommon: serial/connecting to 10.8.20.105:50002
2022-11-17T12:31:08.302-0500 info serialtcpsrv: exposing serial port on tcp port 4531
2022-11-17T12:31:08.316-0500 info serialstream: stream started
2022-11-17T12:31:08.317-0500 info streamcommon: audio/connecting to 10.8.20.105:50003
2022-11-17T12:31:08.317-0500 error controlstream@299: audio/
2022-11-17T12:31:08.818-0500 info streamcommon: control/disconnecting
2022-11-17T12:31:08.818-0500 info streamcommon: serial/disconnecting
I think I may have a versioning problem here...but I'm not an expert gopher. Trying to install on a HamPi image...
pi@k3xs-hampi:~ $ sudo apt-get install golang
[sudo] password for pi:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
golang-1.15 golang-1.15-doc golang-1.15-go golang-1.15-src golang-doc
golang-go golang-src
Suggested packages:
bzr | brz mercurial
The following NEW packages will be installed:
golang golang-1.15 golang-1.15-doc golang-1.15-go golang-1.15-src
golang-doc golang-go golang-src
0 upgraded, 8 newly installed, 0 to remove and 154 not upgraded.
Need to get 59.6 MB of archives.
After this operation, 336 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf golang-1.15-src armhf 1.15.15-1~deb11u4+rpi1 [13.9 MB]
Get:2 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf golang-1.15-go armhf 1.15.15-1~deb11u4+rpi1 [43.2 MB]
Get:3 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf golang-1.15-doc all 1.15.15-1~deb11u4+rpi1 [2,455 kB]
Get:4 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf golang-1.15 all 1.15.15-1~deb11u4+rpi1 [28.1 kB]
Get:5 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf golang-src armhf 2:1.15~1 [4,856 B]
Get:6 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf golang-go armhf 2:1.15~1 [23.9 kB]
Get:7 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf golang-doc all 2:1.15~1 [4,888 B]
Get:8 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf golang armhf 2:1.15~1 [4,844 B]
Fetched 59.6 MB in 27s (2,216 kB/s)
Selecting previously unselected package golang-1.15-src.
(Reading database ... 285016 files and directories currently installed.)
Preparing to unpack .../0-golang-1.15-src_1.15.15-1~deb11u4+rpi1_armhf.deb ...
Unpacking golang-1.15-src (1.15.15-1~deb11u4+rpi1) ...
Selecting previously unselected package golang-1.15-go.
Preparing to unpack .../1-golang-1.15-go_1.15.15-1~deb11u4+rpi1_armhf.deb ...
Unpacking golang-1.15-go (1.15.15-1~deb11u4+rpi1) ...
Selecting previously unselected package golang-1.15-doc.
Preparing to unpack .../2-golang-1.15-doc_1.15.15-1~deb11u4+rpi1_all.deb ...
Unpacking golang-1.15-doc (1.15.15-1~deb11u4+rpi1) ...
Selecting previously unselected package golang-1.15.
Preparing to unpack .../3-golang-1.15_1.15.15-1~deb11u4+rpi1_all.deb ...
Unpacking golang-1.15 (1.15.15-1~deb11u4+rpi1) ...
Selecting previously unselected package golang-src:armhf.
Preparing to unpack .../4-golang-src_2%3a1.15~1_armhf.deb ...
Unpacking golang-src:armhf (2:1.15~1) ...
Selecting previously unselected package golang-go.
Preparing to unpack .../5-golang-go_2%3a1.15~1_armhf.deb ...
Unpacking golang-go (2:1.15~1) ...
Selecting previously unselected package golang-doc.
Preparing to unpack .../6-golang-doc_2%3a1.15~1_all.deb ...
Unpacking golang-doc (2:1.15~1) ...
Selecting previously unselected package golang:armhf.
Preparing to unpack .../7-golang_2%3a1.15~1_armhf.deb ...
Unpacking golang:armhf (2:1.15~1) ...
Setting up golang-1.15-src (1.15.15-1~deb11u4+rpi1) ...
Setting up golang-src:armhf (2:1.15~1) ...
Setting up golang-1.15-go (1.15.15-1~deb11u4+rpi1) ...
Setting up golang-1.15-doc (1.15.15-1~deb11u4+rpi1) ...
Setting up golang-go (2:1.15~1) ...
Setting up golang-1.15 (1.15.15-1~deb11u4+rpi1) ...
Setting up golang-doc (2:1.15~1) ...
Setting up golang:armhf (2:1.15~1) ...
Processing triggers for man-db (2.9.4-2) ...
pi@k3xs-hampi:~ $ sudo apt-get install libpulse-dev
[sudo] password for pi:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
libpulse-mainloop-glib0 libpulse0 libpulsedsp pulseaudio
pulseaudio-module-bluetooth pulseaudio-utils
Suggested packages:
pavumeter paprefs
The following packages will be upgraded:
libpulse-dev libpulse-mainloop-glib0 libpulse0 libpulsedsp pulseaudio
pulseaudio-module-bluetooth pulseaudio-utils
7 upgraded, 0 newly installed, 0 to remove and 147 not upgraded.
Need to get 1,729 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.raspberrypi.org/debian bullseye/main armhf libpulse-dev armhf 14.2-2+rpt1 [104 kB]
Get:2 http://archive.raspberrypi.org/debian bullseye/main armhf libpulse-mainloop-glib0 armhf 14.2-2+rpt1 [42.0 kB]
Get:3 http://archive.raspberrypi.org/debian bullseye/main armhf libpulsedsp armhf 14.2-2+rpt1 [50.4 kB]
Get:4 http://archive.raspberrypi.org/debian bullseye/main armhf pulseaudio-utils armhf 14.2-2+rpt1 [82.3 kB]
Get:5 http://archive.raspberrypi.org/debian bullseye/main armhf pulseaudio-module-bluetooth armhf 14.2-2+rpt1 [87.5 kB]
Get:6 http://archive.raspberrypi.org/debian bullseye/main armhf pulseaudio armhf 14.2-2+rpt1 [1,107 kB]
Get:7 http://archive.raspberrypi.org/debian bullseye/main armhf libpulse0 armhf 14.2-2+rpt1 [256 kB]
Fetched 1,729 kB in 2s (1,104 kB/s)
Reading changelogs... Done
(Reading database ... 295789 files and directories currently installed.)
Preparing to unpack .../0-libpulse-dev_14.2-2+rpt1_armhf.deb ...
Unpacking libpulse-dev:armhf (14.2-2+rpt1) over (14.2-2+rpi1) ...
Preparing to unpack .../1-libpulse-mainloop-glib0_14.2-2+rpt1_armhf.deb ...
Unpacking libpulse-mainloop-glib0:armhf (14.2-2+rpt1) over (14.2-2+rpi1) ...
Preparing to unpack .../2-libpulsedsp_14.2-2+rpt1_armhf.deb ...
Unpacking libpulsedsp:armhf (14.2-2+rpt1) over (14.2-2+rpi1) ...
Preparing to unpack .../3-pulseaudio-utils_14.2-2+rpt1_armhf.deb ...
Unpacking pulseaudio-utils (14.2-2+rpt1) over (14.2-2+rpi1) ...
Preparing to unpack .../4-pulseaudio-module-bluetooth_14.2-2+rpt1_armhf.deb ...
Unpacking pulseaudio-module-bluetooth (14.2-2+rpt1) over (14.2-2+rpi1) ...
Preparing to unpack .../5-pulseaudio_14.2-2+rpt1_armhf.deb ...
Unpacking pulseaudio (14.2-2+rpt1) over (14.2-2+rpi1) ...
Preparing to unpack .../6-libpulse0_14.2-2+rpt1_armhf.deb ...
Unpacking libpulse0:armhf (14.2-2+rpt1) over (14.2-2+rpi1) ...
Setting up libpulse0:armhf (14.2-2+rpt1) ...
Setting up libpulsedsp:armhf (14.2-2+rpt1) ...
Setting up libpulse-mainloop-glib0:armhf (14.2-2+rpt1) ...
Setting up pulseaudio-utils (14.2-2+rpt1) ...
Setting up libpulse-dev:armhf (14.2-2+rpt1) ...
Setting up pulseaudio (14.2-2+rpt1) ...
Setting up pulseaudio-module-bluetooth (14.2-2+rpt1) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for dbus (1.12.20-2) ...
Processing triggers for libc-bin (2.31-13+rpt2+rpi1+deb11u2) ...
pi@k3xs-hampi:~ $ go get [github.com/nonoo/kappanhang](http://github.com/nonoo/kappanhang)
go install [github.com/nonoo/kappanhang](http://github.com/nonoo/kappanhang)
# [go.uber.org/atomic](http://go.uber.org/atomic)
go/src/go.uber.org/atomic/error.go:55:12: x.v.CompareAndSwap undefined (type Value has no field or method CompareAndSwap)
go/src/go.uber.org/atomic/error.go:61:24: x.v.Swap undefined (type Value has no field or method Swap)
go/src/go.uber.org/atomic/string.go:58:12: x.v.CompareAndSwap undefined (type Value has no field or method CompareAndSwap)
go/src/go.uber.org/atomic/string.go:64:12: x.v.Swap undefined (type Value has no field or method Swap)
pi@k3xs-hampi:~ $ go install [github.com/nonoo/kappanhang](http://github.com/nonoo/kappanhang)
# [go.uber.org/atomic](http://go.uber.org/atomic)
go/src/go.uber.org/atomic/error.go:55:12: x.v.CompareAndSwap undefined (type Value has no field or method CompareAndSwap)
go/src/go.uber.org/atomic/error.go:61:24: x.v.Swap undefined (type Value has no field or method Swap)
go/src/go.uber.org/atomic/string.go:58:12: x.v.CompareAndSwap undefined (type Value has no field or method CompareAndSwap)
go/src/go.uber.org/atomic/string.go:64:12: x.v.Swap undefined (type Value has no field or method Swap)
pi@k3xs-hampi:~ $
Hi
Attempting to install this on raspbarian with recently installed golang package I get this error
go/src/go.uber.org/multierr/error.go:197:6: undefined: errors.As
go/src/go.uber.org/multierr/error.go:210:6: undefined: errors.Is
I am able to install other packages, and have tried this on two raspberry PI 4's
Any suggestions welcome.
Daniel
It will work on recent Ubuntu (20.04 and not 18.04), and for i386 solution is Debian 10.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.