Code Monkey home page Code Monkey logo

readsb-protobuf's People

Contributors

amoore avatar antirez avatar bjd avatar bovine avatar csfa avatar ddeitterick avatar dervomsee avatar drakeapps avatar elverde avatar ertyu avatar hhm0 avatar jburgess777 avatar kamadas avatar m30164 avatar malcolmrobb avatar matthewbrandes avatar maxried avatar mictronics avatar mutability avatar nina-pashinina avatar papasven avatar rgeissert avatar rxseger avatar steve-m avatar tanerh avatar termigrator avatar tslocum avatar ukuehn avatar wiedehopf avatar wizardishungry avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

readsb-protobuf's Issues

Error sem_timedwait ETIMEDOUT in readsbrrd.c

Hi,
i get often messeges like this in my journald:
readsbrrd[4259]: /var/lib/collectd/rrd/localhost/readsb/aircraft_gps.rrd: illegal attempt to update using time 1596799197 when last update time is 1596799197 (minimum one second step)
I the issue is, that sem_timedwait in readsbrrd.c, line 582 returns with errno ETIMEDOUT

sem_timedwait(stats_semptr, &ts);

4.0.3 range stats looks empty

My graphs are all doing the right thing, except 'range'. It is empty:
image
rrdtool dump range_max.rrd | grep -v NaN says this:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rrd SYSTEM "https://oss.oetiker.ch/rrdtool/rrdtool.dtd">
<!-- Round Robin Database Dump -->
<rrd>
	<version>0003</version>
	<step>60</step> <!-- Seconds -->
	<lastupdate>1710983984</lastupdate> <!-- 2024-03-21 12:19:44 AEDT -->

	<ds>
		<name> value </name>
		<type> GAUGE </type>
		<minimal_heartbeat>120</minimal_heartbeat>
		<min>0.0000000000e+00</min>

		<!-- PDP Status -->
		<last_ds>0</last_ds>
		<value>0.0000000000e+00</value>
		<unknown_sec> 0 </unknown_sec>
	</ds>

	<!-- Round Robin Archives -->
	<rra>
		<cf>AVERAGE</cf>
		<pdp_per_row>1</pdp_per_row> <!-- 60 seconds -->

		<params>
		<xff>5.0000000000e-01</xff>
		</params>
		<cdp_prep>
			<ds>
			<primary_value>0.0000000000e+00</primary_value>
			<unknown_datapoints>0</unknown_datapoints>
			</ds>
		</cdp_prep>
		<database>
			<!-- 2024-03-20 14:59:00 AEDT / 1710907140 --> <row><v>0.0000000000e+00</v></row>
			<!-- 2024-03-20 15:00:00 AEDT / 1710907200 --> <row><v>0.0000000000e+00</v></row>
			<!-- 2024-03-20 15:01:00 AEDT / 1710907260 --> <row><v>0.0000000000e+00</v></row>
			<!-- 2024-03-20 15:02:00 AEDT / 1710907320 --> <row><v>0.0000000000e+00</v></row>
			<!-- 2024-03-20 15:03:00 AEDT / 1710907380 --> <row><v>0.0000000000e+00</v></row>
			<!-- 2024-03-20 15:04:00 AEDT / 1710907440 --> <row><v>0.0000000000e+00</v></row>
			<!-- 2024-03-20 15:05:00 AEDT / 1710907500 --> <row><v>0.0000000000e+00</v></row>
			<!-- 2024-03-20 15:06:00 AEDT / 1710907560 --> <row><v>0.0000000000e+00</v></row>
<snip, it's zeroes all the way down, I think>

I believe I have set SiteLat and SiteLon properly, same as CenterLat and CentreLon, and the marker is in the right position, and the map makes sense when it is freshly painted.

I will do more digging, but it is 30 years since I last used MRTG(?!) and I am a babe in the woods of ADS-B.

High CPU usage on RPi4

I have also reported this under sdr-enthusiasts/docker-readsb-protobuf#17.

I am using readsb-protobuf on a Raspberry Pi 4 (4Gb), using the docker container mikenye/readsb-protobuf:latest. Readsb is continuously using up one CPU core completely. As far as I recall, this only happened since a couple of days, performance statistics also show an increase.

Is this normal behavior and if not: do you have a clue what's causing this?

ICAO hash table full, increase ICAO_FILTER_SIZE

Hello,
I am running readsb in net_mode and feeding with about 2000 aircraft
but I got message ICAO hash table full, increase ICAO_FILTER_SIZE, which show up to 4096 at the moment.

Could you consider to increase to solve this issue, say to 32768?

Thank you.

dh-systemd

When I got the prerequisites, dh-systemd was not available (debian 12.5, Bookworm, Linux 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64 GNU/Linux)

I looked up dh-systemd over here https://packages.debian.org/buster/dh-systemd

Package: dh-systemd (12.1.1)
debhelper add-on to handle systemd unit files - transitional package
This package is for transitional purposes and can be removed safely.

I feel that I have probably "transitioned", and that I could safely remove it (from the readsb build)....
I did, and the result was that it everything built and installed and ran correctly

I don't know if it helps, but apt said, and still says, these things for me:

$ apt list dh-sys*
Listing... Done
dh-sysuser/stable 1.3.9+really1.4.3 all
$ apt list debhelp*
Listing... Done
debhelper/stable,now 13.11.4 all [installed]

Corona RP8D1

Sorry for opening this issue, but I want to contact you because of yout rev-eng of the RP8D1 receiver. I was unable to get yout email / contact in the first place.

Unmet dependencies?

Hi there, I've followed the build instructions as stated, yet when I attempt to build I get the error

"Unmet build dependencies: dh-systemd librrd-dev libprotobuf-c-dev protobuf-c-compiler (>= 1.3)"

This might be an issue on my end, but I'm not sure so just to check, I'm putting this here to see what happens.

Have to build w/ make -j1 to prevent compile error

I maintain the readsb AUR package for this and wondered if there was something Makefile that could be done?

From just make BLADERF=yes RTLSDR=yes PLUTOSDR=yes

rm -f readsb.pb-c.c readsb.pb-c.h
protoc-c --c_out=. readsb.proto
protoc-c --c_out=. readsb.proto
make: *** No rule to make target 'readsb.pb-c.h', needed by 'geomag.o'.  Stop.
make: *** Waiting for unfinished jobs....
cc -D_FORTIFY_SOURCE=2 -DMODES_READSB_VERSION=\"'v4.0.0'\" -DMODES_READSB_VARIANT=\"Mictronics\" -D_GNU_SOURCE -DENABLE_RTLSDR -DENABLE_BLADERF -DENABLE_PLUTOSDR -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=c11 -O2 -g -W -D_DEFAULT_SOURCE -Wall -Werror -fno-common -I/usr/include/ -I/usr/include/libusb-1.0  -I/usr/include/   -c readsb.pb-c.c -o readsb.pb-c.o

Using make -j1 BLADERF=yes RTLSDR=yes PLUTOSDR=yes

rm -f readsb.pb-c.c readsb.pb-c.h                                                                                                                                                                                                                                                       protoc-c --c_out=. readsb.proto                                                                                                                                                                                                                                                         protoc-c --c_out=. readsb.proto                                                                                                                                                                                                                                                         cc -D_FORTIFY_SOURCE=2 -DMODES_READSB_VERSION=\"'v4.0.0'\" -DMODES_READSB_VARIANT=\"Mictronics\" -D_GNU_SOURCE -DENABLE_RTLSDR -DENABLE_BLADERF -DENABLE_PLUTOSDR -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=c11 -O2 -g -W -D_DEFAULT_SOURCE -Wall -Werror -fno-common -I/usr/include/ -I/usr/include/libusb-1.0  -I/usr/include/   -c readsb.pb-c.c -o readsb.pb-c.o                                                                                                                                                                                                 cc -D_FORTIFY_SOURCE=2 -DMODES_READSB_VERSION=\"'v4.0.0'\" -DMODES_READSB_VARIANT=\"Mictronics\" -D_GNU_SOURCE -DENABLE_RTLSDR -DENABLE_BLADERF -DENABLE_PLUTOSDR -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=c11 -O2 -g -W -D_DEFAULT_SOURCE -Wall -Werror -fno-common -I/usr/include/ -I/usr/include/libusb-1.0  -I/usr/include/   -c geomag.c -o geomag.o                                                                                                                                                                                                           cc -D_FORTIFY_SOURCE=2 -DMODES_READSB_VERSION=\"'v4.0.0'\" -DMODES_READSB_VARIANT=\"Mictronics\" -D_GNU_SOURCE -DENABLE_RTLSDR -DENABLE_BLADERF -DENABLE_PLUTOSDR -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=c11 -O2 -g -W -D_DEFAULT_SOURCE -Wall -Werror -fno-common -I/usr/include/ -I/usr/include/libusb-1.0  -I/usr/include/   -c readsb.c -o readsb.o
cc -D_FORTIFY_SOURCE=2 -DMODES_READSB_VERSION=\"'v4.0.0'\" -DMODES_READSB_VARIANT=\"Mictronics\" -D_GNU_SOURCE -DENABLE_RTLSDR -DENABLE_BLADERF -DENABLE_PLUTOSDR -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=c11 -O2 -g -W -D_DEFAULT_SOURCE -Wall -Werror -fno-common -I/usr/include/ -I/usr/include/libusb-1.0  -I/usr/include/   -c anet.c -o anet.o
cc -D_FORTIFY_SOURCE=2 -DMODES_READSB_VERSION=\"'v4.0.0'\" -DMODES_READSB_VARIANT=\"Mictronics\" -D_GNU_SOURCE -DENABLE_RTLSDR -DENABLE_BLADERF -DENABLE_PLUTOSDR -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=c11 -O2 -g -W -D_DEFAULT_SOURCE -Wall -Werror -fno-common -I/usr/include/ -I/usr/include/libusb-1.0  -I/usr/include/   -c interactive.c -o interactive.o
cc -D_FORTIFY_SOURCE=2 -DMODES_READSB_VERSION=\"'v4.0.0'\" -DMODES_READSB_VARIANT=\"Mictronics\" -D_GNU_SOURCE -DENABLE_RTLSDR -DENABLE_BLADERF -DENABLE_PLUTOSDR -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=c11 -O2 -g -W -D_DEFAULT_SOURCE -Wall -Werror -fno-common -I/usr/include/ -I/usr/include/libusb-1.0  -I/usr/include/   -c mode_ac.c -o mode_ac.o
cc -D_FORTIFY_SOURCE=2 -DMODES_READSB_VERSION=\"'v4.0.0'\" -DMODES_READSB_VARIANT=\"Mictronics\" -D_GNU_SOURCE -DENABLE_RTLSDR -DENABLE_BLADERF -DENABLE_PLUTOSDR -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=c11 -O2 -g -W -D_DEFAULT_SOURCE -Wall -Werror -fno-common -I/usr/include/ -I/usr/include/libusb-1.0  -I/usr/include/   -c mode_s.c -o mode_s.o
cc -D_FORTIFY_SOURCE=2 -DMODES_READSB_VERSION=\"'v4.0.0'\" -DMODES_READSB_VARIANT=\"Mictronics\" -D_GNU_SOURCE -DENABLE_RTLSDR -DENABLE_BLADERF -DENABLE_PLUTOSDR -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=c11 -O2 -g -W -D_DEFAULT_SOURCE -Wall -Werror -fno-common -I/usr/include/ -I/usr/include/libusb-1.0  -I/usr/include/   -c comm_b.c -o comm_b.o
cc -D_FORTIFY_SOURCE=2 -DMODES_READSB_VERSION=\"'v4.0.0'\" -DMODES_READSB_VARIANT=\"Mictronics\" -D_GNU_SOURCE -DENABLE_RTLSDR -DENABLE_BLADERF -DENABLE_PLUTOSDR -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=c11 -O2 -g -W -D_DEFAULT_SOURCE -Wall -Werror -fno-common -I/usr/include/ -I/usr/include/libusb-1.0  -I/usr/include/   -c net_io.c -o net_io.o
cc -D_FORTIFY_SOURCE=2 -DMODES_READSB_VERSION=\"'v4.0.0'\" -DMODES_READSB_VARIANT=\"Mictronics\" -D_GNU_SOURCE -DENABLE_RTLSDR -DENABLE_BLADERF -DENABLE_PLUTOSDR -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=c11 -O2 -g -W -D_DEFAULT_SOURCE -Wall -Werror -fno-common -I/usr/include/ -I/usr/include/libusb-1.0  -I/usr/include/   -c crc.c -o crc.o
cc -D_FORTIFY_SOURCE=2 -DMODES_READSB_VERSION=\"'v4.0.0'\" -DMODES_READSB_VARIANT=\"Mictronics\" -D_GNU_SOURCE -DENABLE_RTLSDR -DENABLE_BLADERF -DENABLE_PLUTOSDR -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=c11 -O2 -g -W -D_DEFAULT_SOURCE -Wall -Werror -fno-common -I/usr/include/ -I/usr/include/libusb-1.0  -I/usr/include/   -c demod_2400.c -o demod_2400.o
cc -D_FORTIFY_SOURCE=2 -DMODES_READSB_VERSION=\"'v4.0.0'\" -DMODES_READSB_VARIANT=\"Mictronics\" -D_GNU_SOURCE -DENABLE_RTLSDR -DENABLE_BLADERF -DENABLE_PLUTOSDR -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=c11 -O2 -g -W -D_DEFAULT_SOURCE -Wall -Werror -fno-common -I/usr/include/ -I/usr/include/libusb-1.0  -I/usr/include/   -c stats.c -o stats.o
cc -D_FORTIFY_SOURCE=2 -DMODES_READSB_VERSION=\"'v4.0.0'\" -DMODES_READSB_VARIANT=\"Mictronics\" -D_GNU_SOURCE -DENABLE_RTLSDR -DENABLE_BLADERF -DENABLE_PLUTOSDR -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=c11 -O2 -g -W -D_DEFAULT_SOURCE -Wall -Werror -fno-common -I/usr/include/ -I/usr/include/libusb-1.0  -I/usr/include/   -c cpr.c -o cpr.o
cc -D_FORTIFY_SOURCE=2 -DMODES_READSB_VERSION=\"'v4.0.0'\" -DMODES_READSB_VARIANT=\"Mictronics\" -D_GNU_SOURCE -DENABLE_RTLSDR -DENABLE_BLADERF -DENABLE_PLUTOSDR -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=c11 -O2 -g -W -D_DEFAULT_SOURCE -Wall -Werror -fno-common -I/usr/include/ -I/usr/include/libusb-1.0  -I/usr/include/   -c icao_filter.c -o icao_filter.o
cc -D_FORTIFY_SOURCE=2 -DMODES_READSB_VERSION=\"'v4.0.0'\" -DMODES_READSB_VARIANT=\"Mictronics\" -D_GNU_SOURCE -DENABLE_RTLSDR -DENABLE_BLADERF -DENABLE_PLUTOSDR -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=c11 -O2 -g -W -D_DEFAULT_SOURCE -Wall -Werror -fno-common -I/usr/include/ -I/usr/include/libusb-1.0  -I/usr/include/   -c track.c -o track.o
cc -D_FORTIFY_SOURCE=2 -DMODES_READSB_VERSION=\"'v4.0.0'\" -DMODES_READSB_VARIANT=\"Mictronics\" -D_GNU_SOURCE -DENABLE_RTLSDR -DENABLE_BLADERF -DENABLE_PLUTOSDR -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=c11 -O2 -g -W -D_DEFAULT_SOURCE -Wall -Werror -fno-common -I/usr/include/ -I/usr/include/libusb-1.0  -I/usr/include/   -c util.c -o util.o
cc -D_FORTIFY_SOURCE=2 -DMODES_READSB_VERSION=\"'v4.0.0'\" -DMODES_READSB_VARIANT=\"Mictronics\" -D_GNU_SOURCE -DENABLE_RTLSDR -DENABLE_BLADERF -DENABLE_PLUTOSDR -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=c11 -O2 -g -W -D_DEFAULT_SOURCE -Wall -Werror -fno-common -I/usr/include/ -I/usr/include/libusb-1.0  -I/usr/include/   -c convert.c -o convert.o
cc -D_FORTIFY_SOURCE=2 -DMODES_READSB_VERSION=\"'v4.0.0'\" -DMODES_READSB_VARIANT=\"Mictronics\" -D_GNU_SOURCE -DENABLE_RTLSDR -DENABLE_BLADERF -DENABLE_PLUTOSDR -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=c11 -O2 -g -W -D_DEFAULT_SOURCE -Wall -Werror -fno-common -I/usr/include/ -I/usr/include/libusb-1.0  -I/usr/include/   -c sdr_ifile.c -o sdr_ifile.o
cc -D_FORTIFY_SOURCE=2 -DMODES_READSB_VERSION=\"'v4.0.0'\" -DMODES_READSB_VARIANT=\"Mictronics\" -D_GNU_SOURCE -DENABLE_RTLSDR -DENABLE_BLADERF -DENABLE_PLUTOSDR -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=c11 -O2 -g -W -D_DEFAULT_SOURCE -Wall -Werror -fno-common -I/usr/include/ -I/usr/include/libusb-1.0  -I/usr/include/   -c sdr_beast.c -o sdr_beast.o
cc -D_FORTIFY_SOURCE=2 -DMODES_READSB_VERSION=\"'v4.0.0'\" -DMODES_READSB_VARIANT=\"Mictronics\" -D_GNU_SOURCE -DENABLE_RTLSDR -DENABLE_BLADERF -DENABLE_PLUTOSDR -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=c11 -O2 -g -W -D_DEFAULT_SOURCE -Wall -Werror -fno-common -I/usr/include/ -I/usr/include/libusb-1.0  -I/usr/include/   -c sdr.c -o sdr.o
cc -D_FORTIFY_SOURCE=2 -DMODES_READSB_VERSION=\"'v4.0.0'\" -DMODES_READSB_VARIANT=\"Mictronics\" -D_GNU_SOURCE -DENABLE_RTLSDR -DENABLE_BLADERF -DENABLE_PLUTOSDR -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=c11 -O2 -g -W -D_DEFAULT_SOURCE -Wall -Werror -fno-common -I/usr/include/ -I/usr/include/libusb-1.0  -I/usr/include/   -c ais_charset.c -o ais_charset.o
cc -D_FORTIFY_SOURCE=2 -DMODES_READSB_VERSION=\"'v4.0.0'\" -DMODES_READSB_VARIANT=\"Mictronics\" -D_GNU_SOURCE -DENABLE_RTLSDR -DENABLE_BLADERF -DENABLE_PLUTOSDR -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=c11 -O2 -g -W -D_DEFAULT_SOURCE -Wall -Werror -fno-common -I/usr/include/ -I/usr/include/libusb-1.0  -I/usr/include/   -c sdr_rtlsdr.c -o sdr_rtlsdr.o
cc -D_FORTIFY_SOURCE=2 -DMODES_READSB_VERSION=\"'v4.0.0'\" -DMODES_READSB_VARIANT=\"Mictronics\" -D_GNU_SOURCE -DENABLE_RTLSDR -DENABLE_BLADERF -DENABLE_PLUTOSDR -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=c11 -O2 -g -W -D_DEFAULT_SOURCE -Wall -Werror -fno-common -I/usr/include/ -I/usr/include/libusb-1.0  -I/usr/include/   -c sdr_bladerf.c -o sdr_bladerf.o
cc -D_FORTIFY_SOURCE=2 -DMODES_READSB_VERSION=\"'v4.0.0'\" -DMODES_READSB_VARIANT=\"Mictronics\" -D_GNU_SOURCE -DENABLE_RTLSDR -DENABLE_BLADERF -DENABLE_PLUTOSDR -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=c11 -O2 -g -W -D_DEFAULT_SOURCE -Wall -Werror -fno-common -I/usr/include/ -I/usr/include/libusb-1.0  -I/usr/include/   -c sdr_ubladerf.c -o sdr_ubladerf.o
cc -D_FORTIFY_SOURCE=2 -DMODES_READSB_VERSION=\"'v4.0.0'\" -DMODES_READSB_VARIANT=\"Mictronics\" -D_GNU_SOURCE -DENABLE_RTLSDR -DENABLE_BLADERF -DENABLE_PLUTOSDR -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=c11 -O2 -g -W -D_DEFAULT_SOURCE -Wall -Werror -fno-common -I/usr/include/ -I/usr/include/libusb-1.0  -I/usr/include/   -c sdr_plutosdr.c -o sdr_plutosdr.o
cc -g -o readsb readsb.pb-c.o geomag.o readsb.o anet.o interactive.o mode_ac.o mode_s.o comm_b.o net_io.o crc.o demod_2400.o stats.o cpr.o icao_filter.o track.o util.o convert.o sdr_ifile.o sdr_beast.o sdr.o ais_charset.o sdr_rtlsdr.o sdr_bladerf.o sdr_ubladerf.o sdr_plutosdr.o  -pthread -lpthread -lm -lrt -lncurses -lprotobuf-c -lrrd -lrtlsdr -lusb-1.0 -L/usr/lib/ -lbladeRF  -liio -lad9361
cc -D_FORTIFY_SOURCE=2 -DMODES_READSB_VERSION=\"'v4.0.0'\" -DMODES_READSB_VARIANT=\"Mictronics\" -D_GNU_SOURCE -DENABLE_RTLSDR -DENABLE_BLADERF -DENABLE_PLUTOSDR -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=c11 -O2 -g -W -D_DEFAULT_SOURCE -Wall -Werror -fno-common -I/usr/include/ -I/usr/include/libusb-1.0  -I/usr/include/   -c readsbrrd.c -o readsbrrd.o
cc -g -o readsbrrd readsb.pb-c.o readsbrrd.o  -pthread -lpthread -lm -lrt -lncurses -lprotobuf-c -lrrd
cc -D_FORTIFY_SOURCE=2 -DMODES_READSB_VERSION=\"'v4.0.0'\" -DMODES_READSB_VARIANT=\"Mictronics\" -D_GNU_SOURCE -DENABLE_RTLSDR -DENABLE_BLADERF -DENABLE_PLUTOSDR -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -std=c11 -O2 -g -W -D_DEFAULT_SOURCE -Wall -Werror -fno-common -I/usr/include/ -I/usr/include/libusb-1.0  -I/usr/include/   -c viewadsb.c -o viewadsb.o
cc -g -o viewadsb readsb.pb-c.o geomag.o viewadsb.o anet.o interactive.o mode_ac.o mode_s.o comm_b.o net_io.o crc.o stats.o cpr.o icao_filter.o track.o util.o ais_charset.o  -pthread -lpthread -lm -lrt -lncurses -lprotobuf-c -lrrd

Error message "InvalidStateError: A mutation operation was attempted on a database that did not allow mutations." on readsb webinterface

Setup: Docker container readsb-protobuf running on headless Arch Linux. Container is checked daily and updated if necessary.
About 2 weeks ago everything was fine. Today accessing the readsb webinterface (default port :8080) leads to the message
"InvalidStateError: A mutation operation was attempted on a database that did not allow mutations."
Afterwards the map loads as usual, but no planes are listed or shown.

new DB versioning scheme?

The aircraft db version went from version 344 to version 16 in this commit: 3254ac7

This is throwing off some of the deployments we have where it looks like the new DB is not compatible with the old one? This is what is shown in a pop-up in the webapp:
image

When I went back through history, it appears that this happened in the past as well -- here it went wrong 1a5f682 and here it got fixed again: 593d231

thanks!

General help and or forum?

Hi,
Sorry to use an issue for this general question, I couldn't find a forum for discussion and new user questions.

I'm working on a simple ADSB receiver (https://github.com/JBKingdon/ADSB_Alert) and a friend suggested that I use this project to validate the output while I'm working on the protocol decoding stage. I implemented the beast AVR format output via usb vcp, currently for df17 and df18 messages only. The output data decodes with pyModeS and looks reasonable. I've confirmed that reading from the port with cat /dev/ttyACM1 shows the expected output.

Running readsb with ./readsb --device-type modesbeast --beast-serial=/dev/ttyACM1 --beast-mlat-off --interactive starts successfully, shows the header bar with a rotating | symbol at the end, but never populates with any entries. Any suggestions for what I'm doing wrong would be great. Is there any debug I can enable to confirm what readsb is seeing from my device? I was wondering if there is any start-up handshake between readsb and the device that I need to support, or if more message types than just df17 * 18 are needed?

Regards and thanks!

Web Mapping

This is more of a question than an issue, but I'm wondering if this repo has the feature of displaying the aircrafts onto a global map. I notice there is a webapp folder, but I can't seem to understand if the mapping is accessible and if it is, how to do so. Thanks, any help would be appreciated.

Sometimes the UI shows no planes

More conversation over at a Docker container that uses this tool.

The main symptom is that the UI loads but there's a script load failure due to the wrong URL being passed to the server. The more I experience it, the more I wonder if it's some kind of weird race condition in the base URL.

I stumbled on the problem again today on a browser that was working fine before. This time was an error attempting to load aircraftCollection.js. I will note that the readsb UI is running behind a reverse proxy that adds a layer to the path, so the UI is at https://hostname/planes. The script at uiBody.ts (line 44) was attempting to load "./script/readsb/backend/aircraftCollection.js" which was, for some reason, resolving to https://hostname/script/readsb/backend/aircraftCollection.js instead of https://hostname/planes/script/readsb/backend/aircraftCollection.js.

While I was experiencing the bug I loaded the page in an incognito window. It worked fine! I went back to the normal browser and it was still broken. I pressed Ctrl-Shift-R, I browsed through the code in the Chrome DevTools, I reloaded a few times, went back and forth ... eventually it magically started working again in the normal browser and I don't know why. Now it's working again. The browser asks for the correct URL for aircraftCollection.js.

Note that my original bug report on the other page was not running behind a reverse proxy.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.