Skip to content

Instantly share code, notes, and snippets.

@dudmuck
dudmuck / chirpstack.md
Last active April 10, 2026 09:13
chirpstack setup instructions

welcome to the ghetto of network servers

(aka chirpstack installation steps)

platforms

The typical installation likely is into a virtual machine or into remote instance on the cloud. However when installing directly onto local machine, ansible probably doesnt do much for you.

Chirpstack installs on debian based platforms, eg Ubuntu or raspberry pi. Other distributions with different packaging management would require downloading chirpstack binaries.

If you're a windows 10 user, you may chose to practice installation on WSL2. Although WSL would never be used for actual server (by any sane person), its useful to run virtual machine to familiarize yourself with install / setup procedure of chirpstack. Watch this video if you havent already got WSL2 on windows 10. Be sure to set default to WSL2

Program received signal SIGSEGV, Segmentation fault.
0x00000000000123d6 in ?? ()
(gdb) bt
#0 0x00000000000123d6 in ?? ()
#1 0x00007f1ef4965091 in ?? ()
#2 0x00007f1ef4bcfee0 in ?? ()
#3 0x0000000002331600 in ?? ()
#4 0x000000000007c1c8 in ?? ()
#5 0x000000371688289f in PyDict_GetItemString (v=<unknown at remote 0x3716bbff78>, key=<optimized out>)
at /usr/src/debug/Python-2.7.5/Objects/dictobject.c:2435
@dudmuck
dudmuck / gist:8010809
Created December 17, 2013 19:09
AM test of SDR hardware: open with gnuradio-companion
<?xml version='1.0' encoding='ASCII'?>
<flow_graph>
<timestamp>Fri Dec 13 18:19:13 2013</timestamp>
<block>
<key>options</key>
<param>
<key>id</key>
<value>am_uhd_loopback</value>
</param>
<param>
@dudmuck
dudmuck / gist:7995852
Created December 16, 2013 22:44
thread backtraces of stalled
(gdb) info threads
Id Target Id Frame
7 Thread 0x7fd32f8f5700 (LWP 5847) "python" 0x00000037046eb7fd in poll () at ../sysdeps/unix/syscall-template.S:81
6 Thread 0x7fd32f0f4700 (LWP 5848) "python" 0x00000037046eb7fd in poll () at ../sysdeps/unix/syscall-template.S:81
5 Thread 0x7fd32e8f3700 (LWP 5849) "python" pthread_cond_timedwait@@GLIBC_2.3.2 ()
at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
4 Thread 0x7fd32e0f2700 (LWP 5850) "python" pthread_cond_timedwait@@GLIBC_2.3.2 ()
at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
3 Thread 0x7fd32c8ef700 (LWP 5855) "python" pthread_cond_timedwait@@GLIBC_2.3.2 ()
@dudmuck
dudmuck / gist:7995634
Created December 16, 2013 22:30
start/stop test with UHD src and file sink only
#!/usr/bin/env python
##################################################
# Gnuradio Python Flow Graph
# Title: Uhdrx Filesink
# Generated: Mon Dec 16 14:23:53 2013
#
# to use: watch -n1 'ls -l rx_out' # in another terminal
##################################################
from gnuradio import blocks
@dudmuck
dudmuck / gist:7995420
Created December 16, 2013 22:15
uhd RX start/stop test on top_block
#!/usr/bin/env python
##################################################
# Gnuradio Python Flow Graph
# Title: Uhd Rx
# Generated: Mon Dec 16 14:05:31 2013
##################################################
from gnuradio import analog
from gnuradio import audio
from gnuradio import blocks
#1 0x00007ffff50a5017 in bool boost::condition_variable::timed_wait<lut_result_completed>(boost::unique_lock<boost::mutex>&, boost::posix_time::ptime const&, lut_result_completed) ()
from /usr/local/lib64/libuhd.so.003
#2 0x00007ffff50a6d4c in libusb_zero_copy_impl::get_recv_buff(double) ()
from /usr/local/lib64/libuhd.so.003
#3 0x00007ffff520c219 in fifo_ctrl_excelsior_impl::handle_msg1() () from /usr/local/lib64/libuhd.so.003
#4 0x00007ffff520c848 in fifo_ctrl_excelsior_impl::handle_msg() () from /usr/local/lib64/libuhd.so.003
#5 0x00007ffff531c983 in task_impl::task_loop(boost::function<void ()> const&) ()
from /usr/local/lib64/libuhd.so.003
#6 0x000000372220c0da in boost::(anonymous namespace)::thread_proxy (param=<optimized out>)
at libs/thread/src/pthread/thread.cpp:165
Open On-Chip Debugger 0.8.0-dev-00272-gbb8c0d5 (2013-12-05-10:43)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
User : 13 5 command.c:546 command_print(): debug_level: 3
Debug: 14 5 configuration.c:44 add_script_search_dir(): adding /home/wroberts/.openocd
Debug: 15 5 configuration.c:44 add_script_search_dir(): adding /usr/local/share/openocd/site
Debug: 16 5 configuration.c:44 add_script_search_dir(): adding /usr/local/share/openocd/scripts
Debug: 17 5 configuration.c:84 find_file(): found tcl/interface/stlink-v2.cfg
Debug: 18 5 command.c:145 script_debug(): command - ocd_command ocd_command type ocd_interface hla
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff69de9cc in pmt::string_to_symbol(std::string const&) () from /usr/local/lib64/libgnuradio-pmt-3.7.3git.so.0.0.0
(gdb) bt
#0 0x00007ffff69de9cc in pmt::string_to_symbol(std::string const&) () from /usr/local/lib64/libgnuradio-pmt-3.7.3git.so.0.0.0
#1 0x00007ffff4b011b7 in _GLOBAL__sub_I_usrp_source_impl.cc () from /usr/local/lib64/libgnuradio-uhd-3.7.2git.so.0.0.0
#2 0x000000370420f4f3 in call_init (env=0x7fffffffdde8, argv=0x7fffffffddd8, argc=1, l=<optimized out>) at dl-init.c:82
#3 _dl_init (main_map=0x3704422208, argc=1, argv=0x7fffffffddd8, env=0x7fffffffdde8) at dl-init.c:131
#4 0x000000370420145a in _dl_start_user () from /lib64/ld-linux-x86-64.so.2
#5 0x0000000000000001 in ?? ()
#6 0x00007fffffffe13d in ?? ()