Raspberry Pi3 Model B+ - Raspbian

back to home automation, main page for this machine.

Links

rtl_433,

local links

Newsky TV28T, rtl_433, [z30b], c2,

History

2024-01-11: mmcblk0p2 - rtl433 - build the updated version

tingo@rtl433:~/work/rtl_433 $ cd build

run cmake

tingo@rtl433:~/work/rtl_433/build $ cmake ..
-- The C compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Build type not specified: defaulting to release.
-- Found Git version: refs/heads/master commit 10bd337d91ee2fb43fff1506695c272722e1eb6f from 2024-01-05T23:08:18+0100
-- Using Git version tag: 23.11-29-g10bd337d on master at 202401052308
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29") 
-- IPv6 support enabled.
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Threads support will be compiled.
-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR) 
-- OpenSSL development files not found, TLS won't be possible.
-- Found LibRTLSDR: /usr/lib/arm-linux-gnueabihf/librtlsdr.so (found version "0.6.0") 
-- Found LibUSB: /usr/lib/arm-linux-gnueabihf/libusb-1.0.so (found version "1.0.22") 
-- RTL-SDR device input will be compiled. Found version 0.6.0
-- libusb-1.0 error messages are available. Found version 1.0.22
-- Could NOT find SoapySDR (missing: SoapySDR_DIR)
-- SoapySDR development files not found, SoapySDR device input won't be possible.
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/tingo/work/rtl_433/build

run make

tingo@rtl433:~/work/rtl_433/build $ make
[..]
[ 99%] Building C object tests/CMakeFiles/test_util.dir/__/src/util.c.o
[100%] Linking C executable test_util
[100%] Built target test_util

run sudo make install

tingo@rtl433:~/work/rtl_433/build $ sudo make install
[..]
tingo@rtl433:~/work/rtl_433/build $ sudo make install
[ 92%] Built target r_433
[ 93%] Built target rtl_433
[ 94%] Built target data
[ 95%] Built target style-check
[ 96%] Built target baseband-test
[ 96%] Built target test_bitbuffer
[ 97%] Built target data-test
[ 98%] Built target test_fileformat
[ 99%] Built target test_optparse
[100%] Built target test_util
Install the project...
-- Install configuration: "Release"
-- Up-to-date: /usr/local/share/man
-- Up-to-date: /usr/local/share/man/man1
-- Installing: /usr/local/share/man/man1/rtl_433.1
-- Installing: /usr/local/include/rtl_433.h
-- Installing: /usr/local/include/rtl_433_devices.h
-- Installing: /usr/local/bin/rtl_433
-- Installing: /usr/local/etc/rtl_433/CAME-TOP432.conf
-- Installing: /usr/local/etc/rtl_433/ContinentalRemote.conf
-- Installing: /usr/local/etc/rtl_433/DrivewayAlarm_I8-W1901.conf
-- Installing: /usr/local/etc/rtl_433/DrivewayAlert.conf
-- Installing: /usr/local/etc/rtl_433/EV1527-4Button-Universal-Remote.conf
-- Installing: /usr/local/etc/rtl_433/EV1527-DDS-Sgooway.conf
-- Installing: /usr/local/etc/rtl_433/EV1527-PIR-Sgooway.conf
-- Installing: /usr/local/etc/rtl_433/FAN-53T.conf
-- Installing: /usr/local/etc/rtl_433/GhostControls.conf
-- Installing: /usr/local/etc/rtl_433/HeatmiserPRT-W.conf
-- Installing: /usr/local/etc/rtl_433/LeakDetector.conf
-- Installing: /usr/local/etc/rtl_433/MightyMule-FM231.conf
-- Installing: /usr/local/etc/rtl_433/MondeoRemote.conf
-- Installing: /usr/local/etc/rtl_433/PHOX.conf
-- Installing: /usr/local/etc/rtl_433/Reolink-doorbell.conf
-- Installing: /usr/local/etc/rtl_433/SMC5326-Remote.conf
-- Installing: /usr/local/etc/rtl_433/SWETUP-garage-opener.conf
-- Installing: /usr/local/etc/rtl_433/SalusRT300RF.conf
-- Up-to-date: /usr/local/etc/rtl_433/Skylink_HA-434TL.conf
-- Installing: /usr/local/etc/rtl_433/adlm_fprf.conf
-- Up-to-date: /usr/local/etc/rtl_433/atc-technology_lmt-430.conf
-- Up-to-date: /usr/local/etc/rtl_433/car_fob.conf
-- Up-to-date: /usr/local/etc/rtl_433/chungear_bcf-0019x2.conf
-- Up-to-date: /usr/local/etc/rtl_433/dooya_curtain.conf
-- Installing: /usr/local/etc/rtl_433/elro_ab440r.conf
-- Up-to-date: /usr/local/etc/rtl_433/energy_count_3000.conf
-- Installing: /usr/local/etc/rtl_433/fan-11t.conf
-- Up-to-date: /usr/local/etc/rtl_433/friedlandevo.conf
-- Installing: /usr/local/etc/rtl_433/ge_smartremote_plus.conf
-- Installing: /usr/local/etc/rtl_433/heatilator.conf
-- Installing: /usr/local/etc/rtl_433/honeywell-fan.conf
-- Up-to-date: /usr/local/etc/rtl_433/led-light-remote.conf
-- Up-to-date: /usr/local/etc/rtl_433/pir-ef4.conf
-- Installing: /usr/local/etc/rtl_433/rtl_433.example.conf
-- Up-to-date: /usr/local/etc/rtl_433/silverline_doorbell.conf
-- Up-to-date: /usr/local/etc/rtl_433/sonoff_rm433.conf
-- Up-to-date: /usr/local/etc/rtl_433/steffen_switch.conf
-- Up-to-date: /usr/local/etc/rtl_433/tesla_charge-port-opener.conf
-- Installing: /usr/local/etc/rtl_433/tyreguard400.conf
-- Up-to-date: /usr/local/etc/rtl_433/valeo_car_key.conf
-- Installing: /usr/local/etc/rtl_433/verisure_alarm.conf
-- Installing: /usr/local/etc/rtl_433/xmas-tree-remote-2APJZ-CW002.conf

2024-01-11: mmcblk0p2 - rtl433 - prepare for a new build

tingo@rtl433:~/work/rtl_433 $ mv build build_20210811
tingo@rtl433:~/work/rtl_433 $ mkdir build

2024-01-11: mmcblk0p2 - I updated the repo via git pull, it is now

tingo@rtl433:~/work/rtl_433 $ git describe --tags
nightly-6-g10bd337d
tingo@rtl433:~/work/rtl_433 $ git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean

2024-01-11: mmcblk0p2 - check status of rtl433.

tingo@rtl433:~/work/rtl_433 $ git describe --tags
21.05-60-g18d74de0

same as built, see 2021-08-11 entry.

2021-08-11: mmcblk0p2 - I checked out rtl-sdr

tingo@rtl433:~/work/rtl-sdr $ git remote -v
origin  https://github.com/osmocom/rtl-sdr/ (fetch)
origin  https://github.com/osmocom/rtl-sdr/ (push)

just to get the file rtl-sdr.rules, which I copy

tingo@rtl433:~/work/rtl-sdr $ sudo cp -v rtl-sdr.rules /etc/udev/rules.d/98-rtl-sdr.rules
[sudo] password for tingo: 
'rtl-sdr.rules' -> '/etc/udev/rules.d/98-rtl-sdr.rules'

and then I reload via udevadm

tingo@rtl433:~/work/rtl-sdr $ sudo udevadm control --reload

and finally, can rtl_433 now access the device? No, still needs sudo. Hmm. Ok, after a reboot, the file in question has the right group, and rtl_433 now works without sudo

tingo@rtl433:~ $ ll /dev/bus/usb/001/004
crw-rw---- 1 root plugdev 189, 3 Aug 11 22:04 /dev/bus/usb/001/004

good.

2021-08-11: mmcblk0p2 - build rtl_433 build with cmake

tingo@rtl433:~ $ cd ~/work/rtl_433/
tingo@rtl433:~/work/rtl_433 $ mkdir build
tingo@rtl433:~/work/rtl_433 $ cd build/
tingo@rtl433:~/work/rtl_433/build $ cmake ..
-- The C compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Build type not specified: defaulting to release.
-- Found Git version: refs/heads/master commit 18d74de073b0eede1a3d14766a0505ec276b1ead from 2021-08-07T05:53:16+0200
-- Using Git version tag: 21.05-60-g18d74de0 on master at 202108070553
-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR) 
-- OpenSSL development files not found, TLS won't be possible.
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29") 
-- Found LibRTLSDR: /usr/lib/arm-linux-gnueabihf/librtlsdr.so  
-- Found LibUSB: /usr/lib/arm-linux-gnueabihf/libusb-1.0.so  
-- RTL-SDR device input will be compiled. Found version 0.6.0
-- libusb-1.0 error messages are available. Found version 1.0.22
-- Could NOT find SoapySDR (missing: SoapySDR_DIR)
-- SoapySDR development files not found, SoapySDR device input won't be possible.
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/tingo/work/rtl_433/build

make

tingo@rtl433:~/work/rtl_433/build $ make
[..]
[ 99%] Building C object tests/CMakeFiles/test_util.dir/__/src/util.c.o
[100%] Linking C executable test_util
[100%] Built target test_util

make install

tingo@rtl433:~/work/rtl_433/build $ sudo make install
[ 90%] Built target r_433
[ 91%] Built target rtl_433
[ 93%] Built target data
[ 94%] Built target style-check
[ 95%] Built target baseband-test
[ 96%] Built target test_bitbuffer
[ 97%] Built target data-test
[ 98%] Built target test_fileformat
[ 99%] Built target test_optparse
[100%] Built target test_util
Install the project...
-- Install configuration: "Release"
-- Up-to-date: /usr/local/share/man
-- Installing: /usr/local/share/man/man1
-- Installing: /usr/local/share/man/man1/rtl_433.1
-- Installing: /usr/local/include/rtl_433.h
-- Installing: /usr/local/include/rtl_433_devices.h
-- Installing: /usr/local/bin/rtl_433
-- Installing: /usr/local/etc/rtl_433/CAME-TOP432.conf
-- Installing: /usr/local/etc/rtl_433/EV1527-4Button-Universal-Remote.conf
-- Installing: /usr/local/etc/rtl_433/EV1527-PIR-Sgooway.conf
-- Installing: /usr/local/etc/rtl_433/FAN-53T.conf
-- Installing: /usr/local/etc/rtl_433/HeatmiserPRT-W.conf
-- Installing: /usr/local/etc/rtl_433/MightyMule-FM231.conf
-- Installing: /usr/local/etc/rtl_433/SMC5326-Remote.conf
-- Installing: /usr/local/etc/rtl_433/SalusRT300RF.conf
-- Installing: /usr/local/etc/rtl_433/Skylink_HA-434TL.conf
-- Installing: /usr/local/etc/rtl_433/adlm_fprf.conf
-- Installing: /usr/local/etc/rtl_433/atc-technology_lmt-430.conf
-- Installing: /usr/local/etc/rtl_433/car_fob.conf
-- Installing: /usr/local/etc/rtl_433/chungear_bcf-0019x2.conf
-- Installing: /usr/local/etc/rtl_433/dooya_curtain.conf
-- Installing: /usr/local/etc/rtl_433/energy_count_3000.conf
-- Installing: /usr/local/etc/rtl_433/fan-11t.conf
-- Installing: /usr/local/etc/rtl_433/friedlandevo.conf
-- Installing: /usr/local/etc/rtl_433/led-light-remote.conf
-- Installing: /usr/local/etc/rtl_433/pir-ef4.conf
-- Installing: /usr/local/etc/rtl_433/rtl_433.example.conf
-- Installing: /usr/local/etc/rtl_433/silverline_doorbell.conf
-- Installing: /usr/local/etc/rtl_433/sonoff_rm433.conf
-- Installing: /usr/local/etc/rtl_433/steffen_switch.conf
-- Installing: /usr/local/etc/rtl_433/tesla_charge-port-opener.conf
-- Installing: /usr/local/etc/rtl_433/valeo_car_key.conf
-- Installing: /usr/local/etc/rtl_433/verisure_alarm.conf

built and installed ok. 2021-08-11: mmcblk0p2 - apt - install needed programs

tingo@rtl433:~ $ sudo apt install libtool libusb-1.0-0-dev librtlsdr-dev rtl-sdr build-essential autoconf cmake pkg-config mosquitto-clients
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version (12.6).
pkg-config is already the newest version (0.29-6).
The following additional packages will be installed:
  automake autotools-dev cmake-data libarchive13 libjsoncpp1 libltdl-dev
  libltdl7 libmosquitto1 librhash0 librtlsdr0 libsigsegv2 libusb-1.0-doc
  libuv1 m4
Suggested packages:
  autoconf-archive gnu-standards autoconf-doc gettext cmake-doc ninja-build
  lrzip libtool-doc gfortran | fortran95-compiler gcj-jdk m4-doc
The following NEW packages will be installed:
  autoconf automake autotools-dev cmake cmake-data libarchive13 libjsoncpp1
  libltdl-dev libltdl7 libmosquitto1 librhash0 librtlsdr-dev librtlsdr0
  libsigsegv2 libtool libusb-1.0-0-dev libusb-1.0-doc libuv1 m4
  mosquitto-clients rtl-sdr
0 upgraded, 21 newly installed, 0 to remove and 0 not upgraded.
Need to get 7,675 kB of archives.
After this operation, 32.5 MB of additional disk space will be used.
[..]
Processing triggers for libc-bin (2.28-10+rpi1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for install-info (6.5.0.dfsg.1-4+b1) ...

2021-08-11: mmcblk0p2 - clone the rtl_433 repository:

tingo@rtl433:~ $ mkdir ~/work
tingo@rtl433:~ $ cd ~/work
tingo@rtl433:~/work $ git clone https://github.com/merbanan/rtl_433.git
Cloning into 'rtl_433'...
remote: Enumerating objects: 17846, done.
remote: Counting objects: 100% (945/945), done.
remote: Compressing objects: 100% (428/428), done.
remote: Total 17846 (delta 608), reused 733 (delta 511), pack-reused 16901
Receiving objects: 100% (17846/17846), 6.66 MiB | 3.18 MiB/s, done.
Resolving deltas: 100% (13735/13735), done.

2021-08-11: mmcblk0p2 - apt - install git

tingo@rtl433:~/work $ sudo apt install git
[sudo] password for tingo: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  git-man libcurl3-gnutls liberror-perl
Suggested packages:
  git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk
  gitweb git-cvs git-mediawiki git-svn
The following NEW packages will be installed:
  git git-man libcurl3-gnutls liberror-perl
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 6,137 kB of archives.
After this operation, 32.9 MB of additional disk space will be used.
[..]
Setting up git (1:2.20.1-2+deb10u3) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10+rpi1) ...

2021-08-11: mmcblk0p2 - blacklist modules (the pi needs to be rebooted for this to take effect)

tingo@rtl433:~ $ cat /etc/modprobe.d/blacklist-rtl28xx.conf
blacklist dvb_usb_rtl28xxu
blacklist rtl2832
blacklist rtl2830

and reboot via sudo shutdown -r now. 2021-08-11: mmcblk0p2 - change timezone

tingo@rtl433:~ $ sudo dpkg-reconfigure tzdata
Current default time zone: 'Europe/Oslo'
Local time is now:      Wed Aug 11 19:17:06 CEST 2021.
Universal Time is now:  Wed Aug 11 17:17:06 UTC 2021.

and check status of time

tingo@rtl433:~ $ timedatectl status
               Local time: Wed 2021-08-11 19:19:38 CEST
           Universal time: Wed 2021-08-11 17:19:38 UTC
                 RTC time: n/a
                Time zone: Europe/Oslo (CEST, +0200)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no

2021-08-11: c2 - So write a new RaspiOS image to the SanDisk 16 GB microSD card

tingo@kg-core2$ unzip -p ~/dl/lin/raspbian/2021-05-07-raspios-buster-armhf-lite.zip | sudo dd of=/dev/da5 bs=4M status=progress
  1866465280 bytes (1866 MB, 1780 MiB) transferred 112.006s, 17 MB/s
0+228864 records in
447+0 records out
1874853888 bytes transferred in 112.721145 secs (16632673 bytes/sec)

mount the fat32 partition and enable ssh

tingo@kg-core2$ sudo mount -t msdosfs /dev/da5s1 /mnt
tingo@kg-core2$ sudo touch /mnt/ssh

while we're here check out the default cmdline on a pristine, unbooted raspios card:

tingo@kg-core2$ cat /mnt/cmdline.txt 
console=serial0,115200 console=tty1 root=PARTUUID=9730496b-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet init=/usr/lib/raspi-config/init_resize.sh

interesting stuff. Might come in useful. Unmount

tingo@kg-core2$ sudo umount /mnt

mount the ext4 partition (using lklfuse) and fix a few things (change hostname)

tingo@kg-core2$ sudo lklfuse -o type=ext4 /dev/da5s2 /mnt
tingo@kg-core2$ df -h /mnt
Filesystem    Size    Used   Avail Capacity  Mounted on
/dev/fuse     1.4G    1.1G    280M    80%    /mnt

I used sudo vi /mnt/etc/hostname to change the hostname (and also changed it in /mnt/etc/hosts). That should allow me to boot. While I'm here, check out resize2fs_once

tingo@kg-core2$ sudo more /mnt/etc/init.d/resize2fs_once
#!/bin/sh
### BEGIN INIT INFO
# Provides:          resize2fs_once
# Required-Start:
# Required-Stop:
# Default-Start: 3
# Default-Stop:
# Short-Description: Resize the root filesystem to fill partition
# Description:
### END INIT INFO
. /lib/lsb/init-functions
case "$1" in
  start)
    log_daemon_msg "Starting resize2fs_once"
    ROOT_DEV=$(findmnt / -o source -n) &&
    resize2fs $ROOT_DEV &&
    update-rc.d resize2fs_once remove &&
    rm /etc/init.d/resize2fs_once &&
    log_end_msg $?
    ;;
  *)
    echo "Usage: $0 start" >&2
    exit 3
    ;;
esac

ok, then unmount

tingo@kg-core2$ sudo umount /mnt

and try to boot it. Yes - it boot.

2021-08-10: c2 - I used my FreeBSD workstation to make a copy of the suspect SD card to a file, like so

tingo@kg-core2$ dd if=/dev/da5 of=./rtl433-image.img bs=4M status=progress
  7960788992 bytes (7961 MB, 7592 MiB) transferred 760.409s, 10 MB/s  
1900+0 records in
1900+0 records out
7969177600 bytes transferred in 760.938786 secs (10472824 bytes/sec)

then I switched to a different microSD card in the reader (SanDisk 16 GB) and wrote the image back:

tingo@kg-core2$ sudo dd if=./rtl433-image.img of=/dev/da5 bs=4M status=progress
  7960788992 bytes (7961 MB, 7592 MiB) transferred 463.086s, 17 MB/s
1900+0 records in
1900+0 records out
7969177600 bytes transferred in 463.805921 secs (17182139 bytes/sec)

checked the image with gpart

tingo@kg-core2$ gpart show -p da5
=>      63  31116225    da5  MBR  (15G)
        63      8129         - free -  (4.0M)
      8192    524288  da5s1  fat32lba  (256M)
    532480  15032320  da5s2  linux-data  (7.2G)
  15564800  15551488         - free -  (7.4G)

looked good, so I tried booting it in a Pi again. No - stops on rainbow screen again - close but no cigar. fsck on the fat32 partition checks out

root@kg-core2# fsck -t msdosfs -y /dev/da5s1
** /dev/da5s1
Invalid signature in fsinfo block
Fix? yes
** Phase 1 - Read FAT and checking connectivity
** Phase 2 - Checking Directories
** Phase 3 - Checking for Lost Files
Free space in FSInfo block (0) not correct (418839)
Fix? yes
256 files, 205 MiB free (418839 clusters)

fsck on the ext4 partition

root@kg-core2# e2fsck -y /dev/da5s2
e2fsck 1.46.2 (28-Feb-2021)
rootfs: clean, 49826/469568 files, 381484/1879040 blocks

so they look good. Try booting once more - no, still stops on the rainbow screen.

2021-08-10: I tested the Kingston microSD card in another Pi, with a monitor connected via HDMI. As expected, it didn't boot, it stopped on the multicolored ("rainbow") screen.

2021-08-09: z30b - after a power outage yesterday (local problem - circuit breaker tripped) the Pi wouldn't boot properly, so I'm using my Debian laptop to check the card. parted

tingo@z30b:~$ sudo parted /dev/mmcblk0 print
Model: SD SD8GB (sd/mmc)
Disk /dev/mmcblk0: 7969MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   End     Size    Type     File system  Flags
 1      4194kB  273MB   268MB   primary  fat32        lba
 2      273MB   7969MB  7697MB  primary  ext4

check the fat partition

tingo@z30b:~$ sudo fsck.vfat -y /dev/mmcblk0p1
fsck.fat 4.1 (2017-01-24)
/dev/mmcblk0p1: 256 files, 97351/516190 clusters

check the ext4 partition

tingo@z30b:~$ sudo fsck.ext4 -y /dev/mmcblk0p2
e2fsck 1.44.5 (15-Dec-2018)
rootfs: clean, 49826/469568 files, 381484/1879040 blocks

looks good, must be something else. Still, I see this in /var/log/messages on my laptop

Aug  9 23:19:08 z30b kernel: [ 9264.141482] mmc0: cannot verify signal voltage switch
Aug  9 23:19:09 z30b kernel: [ 9264.293957] mmc0: new ultra high speed SDR104 SDHC card at address 0007
Aug  9 23:19:09 z30b kernel: [ 9264.304129] mmcblk0: mmc0:0007 SD8GB 7.42 GiB
Aug  9 23:19:09 z30b kernel: [ 9264.305011]  mmcblk0: p1 p2
Aug  9 23:27:20 z30b kernel: [ 9755.260720] mmc0: card 0007 removed

Perhaps the card really is broken?

2021-02-11: mmcblk0p2 - newest config

tingo@rtl433:~ $ cat ~/x-cmds
rtl_433 -R 3 -R 19 -F json -M utc | mosquitto_pub -V mqttv311 -h bpi -u homeassistant -P password -t home/rtl_433 -l

mosquitto_sub -V mqttv311 -h bpi -u homeassistant -P password -t home/rtl_433

(no, the password is not "password")

2021-02-11: mmcblk0p2 - media speed

tingo@rtl433:~ $ sudo mii-tool eth0
eth0: negotiated 1000baseT-FD flow-control, link ok

2021-02-11: mmcblk0p2 - cpu version etc

tingo@rtl433:~ $ cat /proc/cpuinfo
processor    : 0
model name    : ARMv7 Processor rev 4 (v7l)
BogoMIPS    : 38.40
Features    : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer    : 0x41
CPU architecture: 7
CPU variant    : 0x0
CPU part    : 0xd03
CPU revision    : 4

processor    : 1
model name    : ARMv7 Processor rev 4 (v7l)
BogoMIPS    : 38.40
Features    : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer    : 0x41
CPU architecture: 7
CPU variant    : 0x0
CPU part    : 0xd03
CPU revision    : 4

processor    : 2
model name    : ARMv7 Processor rev 4 (v7l)
BogoMIPS    : 38.40
Features    : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer    : 0x41
CPU architecture: 7
CPU variant    : 0x0
CPU part    : 0xd03
CPU revision    : 4

processor    : 3
model name    : ARMv7 Processor rev 4 (v7l)
BogoMIPS    : 38.40
Features    : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer    : 0x41
CPU architecture: 7
CPU variant    : 0x0
CPU part    : 0xd03
CPU revision    : 4

Hardware    : BCM2835
Revision    : a020d3
Serial        : 0000000069ce80dc
Model        : Raspberry Pi 3 Model B Plus Rev 1.3

ok

2021-02-11: mmcblk0p2 - build with cmake

tingo@rtl433:~/work $ cd rtl_433/
tingo@rtl433:~/work/rtl_433 $ mkdir build
tingo@rtl433:~/work/rtl_433 $ cd build/
tingo@rtl433:~/work/rtl_433/build $ cmake ..
-- The C compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Build type not specified: defaulting to release.
-- Found Git version: refs/heads/master commit 4b6430411e10a89e9d5797d636641147ba2e1c94 from 2021-02-10T09:13:51+0100
-- Using Git version tag: 20.11-71-g4b643041 on master at 202102100913
-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR)
-- OpenSSL development files not found, TLS won't be possible.
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29")
-- Found LibRTLSDR: /usr/lib/arm-linux-gnueabihf/librtlsdr.so  
-- Found LibUSB: /usr/lib/arm-linux-gnueabihf/libusb-1.0.so  
-- RTL-SDR device input will be compiled.
-- libusb-1.0 error messages are available.
-- Could NOT find SoapySDR (missing: SoapySDR_DIR)
-- SoapySDR development files not found, SoapySDR device input won't be possible.
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Configuring done
-- Generating done
-- Build files have been written to: /home/tingo/work/rtl_433/build

make

tingo@rtl433:~/work/rtl_433/build $ make
[..]
[ 99%] Building C object tests/CMakeFiles/test_util.dir/__/src/util.c.o
[100%] Linking C executable test_util
[100%] Built target test_util

make install

tingo@rtl433:~/work/rtl_433/build $ sudo make install
[ 90%] Built target r_433
[ 91%] Built target rtl_433
[ 93%] Built target data
[ 94%] Built target style-check
[ 95%] Built target baseband-test
[ 96%] Built target test_bitbuffer
[ 97%] Built target data-test
[ 98%] Built target test_fileformat
[ 99%] Built target test_optparse
[100%] Built target test_util
Install the project...
-- Install configuration: "Release"
-- Up-to-date: /usr/local/share/man
-- Installing: /usr/local/share/man/man1
-- Installing: /usr/local/share/man/man1/rtl_433.1
-- Installing: /usr/local/include/rtl_433.h
-- Installing: /usr/local/include/rtl_433_devices.h
-- Installing: /usr/local/bin/rtl_433
-- Installing: /usr/local/etc/rtl_433/CAME-TOP432.conf
-- Installing: /usr/local/etc/rtl_433/EV1527-4Button-Universal-Remote.conf
-- Installing: /usr/local/etc/rtl_433/EV1527-PIR-Sgooway.conf
-- Installing: /usr/local/etc/rtl_433/FAN-53T.conf
-- Installing: /usr/local/etc/rtl_433/HeatmiserPRT-W.conf
-- Installing: /usr/local/etc/rtl_433/MightyMule-FM231.conf
-- Installing: /usr/local/etc/rtl_433/SMC5326-Remote.conf
-- Installing: /usr/local/etc/rtl_433/SalusRT300RF.conf
-- Installing: /usr/local/etc/rtl_433/Skylink_HA-434TL.conf
-- Installing: /usr/local/etc/rtl_433/adlm_fprf.conf
-- Installing: /usr/local/etc/rtl_433/atc-technology_lmt-430.conf
-- Installing: /usr/local/etc/rtl_433/car_fob.conf
-- Installing: /usr/local/etc/rtl_433/chungear_bcf-0019x2.conf
-- Installing: /usr/local/etc/rtl_433/dooya_curtain.conf
-- Installing: /usr/local/etc/rtl_433/energy_count_3000.conf
-- Installing: /usr/local/etc/rtl_433/fan-11t.conf
-- Installing: /usr/local/etc/rtl_433/friedlandevo.conf
-- Installing: /usr/local/etc/rtl_433/led-light-remote.conf
-- Installing: /usr/local/etc/rtl_433/pir-ef4.conf
-- Installing: /usr/local/etc/rtl_433/rtl_433.example.conf
-- Installing: /usr/local/etc/rtl_433/silverline_doorbell.conf
-- Installing: /usr/local/etc/rtl_433/sonoff_rm433.conf
-- Installing: /usr/local/etc/rtl_433/steffen_switch.conf
-- Installing: /usr/local/etc/rtl_433/valeo_car_key.conf
-- Installing: /usr/local/etc/rtl_433/verisure_alarm.conf

ok

2021-02-11: mmcblk0p2 - clone the rtl_433 repository

tingo@rtl433:~/work $ git clone https://github.com/merbanan/rtl_433.git
Cloning into 'rtl_433'...
remote: Enumerating objects: 43, done.
remote: Counting objects: 100% (43/43), done.
remote: Compressing objects: 100% (34/34), done.
remote: Total 16827 (delta 18), reused 20 (delta 9), pack-reused 16784
Receiving objects: 100% (16827/16827), 5.89 MiB | 1.73 MiB/s, done.
Resolving deltas: 100% (13046/13046), done.

ok

2021-02-11: mmcblk0p2 - blacklist modules

tingo@rtl433:~ $ cat /etc/modprobe.d/blacklist-rtl28xx.conf
blacklist dvb_usb_rtl28xxu
blacklist rtl2832
blacklist rtl2830

and reboot the pi.

2021-02-11: mmcblk0p2 - check timesync

tingo@rtl433:~ $ timedatectl status
               Local time: Thu 2021-02-11 21:08:49 CET
           Universal time: Thu 2021-02-11 20:08:49 UTC
                 RTC time: n/a
                Time zone: Europe/Oslo (CET, +0100)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no
tingo@rtl433:~ $ timedatectl timesync-status
       Server: 91.189.182.32 (0.debian.pool.ntp.org)
Poll interval: 17min 4s (min: 32s; max 34min 8s)
         Leap: normal
      Version: 4
      Stratum: 2
    Reference: C23ACB94
    Precision: 1us (-24)
Root distance: 27.404ms (max: 5s)
       Offset: -1.806ms
        Delay: 1.420ms
       Jitter: 658us
 Packet count: 5
    Frequency: -4.507ppm
tingo@rtl433:~ $ timedatectl show-timesync
FallbackNTPServers=0.debian.pool.ntp.org 1.debian.pool.ntp.org 2.debian.pool.ntp.org 3.debian.pool.ntp.org
ServerName=0.debian.pool.ntp.org
ServerAddress=91.189.182.32
RootDistanceMaxUSec=5s
PollIntervalMinUSec=32s
PollIntervalMaxUSec=34min 8s
PollIntervalUSec=17min 4s
NTPMessage={ Leap=0, Version=4, Mode=4, Stratum=2, Precision=-24, RootDelay=9.521ms, RootDispersion=22.644ms, Reference=C23ACB94, OriginateTimestamp=Thu 2021-02-11 20:56:37 CET, ReceiveTimestamp=Thu 2021-02-11 20:56:36 CET, TransmitTimestamp=Thu 2021-02-11 20:56:36 CET, DestinationTimestamp=Thu 2021-02-11 20:56:37 CET, Ignored=no PacketCount=5, Jitter=658us }
Frequency=-295371

ok

2021-02-11: mmcblk0p2 - change local timezone

tingo@rtl433:~ $ sudo dpkg-reconfigure tzdata

Current default time zone: 'Europe/Oslo'
Local time is now:      Thu Feb 11 21:07:19 CET 2021.
Universal Time is now:  Thu Feb 11 20:07:19 UTC 2021.

ok

2021-02-11: mmcblk0p2 - apt - install all packages I need

tingo@rtl433:~ $ sudo apt install libtool libusb-1.0-0-dev librtlsdr-dev rtl-sdr build-essential autoconf cmake pkg-config
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version (12.6).
pkg-config is already the newest version (0.29-6).
The following additional packages will be installed:
  automake autotools-dev cmake-data libarchive13 libjsoncpp1 libltdl-dev libltdl7 librhash0 librtlsdr0 libsigsegv2 libusb-1.0-doc
  libuv1 m4
Suggested packages:
  autoconf-archive gnu-standards autoconf-doc gettext cmake-doc ninja-build lrzip libtool-doc gfortran | fortran95-compiler
  gcj-jdk m4-doc
The following NEW packages will be installed:
  autoconf automake autotools-dev cmake cmake-data libarchive13 libjsoncpp1 libltdl-dev libltdl7 librhash0 librtlsdr-dev
  librtlsdr0 libsigsegv2 libtool libusb-1.0-0-dev libusb-1.0-doc libuv1 m4 rtl-sdr
0 upgraded, 19 newly installed, 0 to remove and 0 not upgraded.
Need to get 7,458 kB of archives.
After this operation, 31.5 MB of additional disk space will be used.
[..]
update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode
Setting up libltdl-dev:armhf (2.4.6-9) ...
Processing triggers for libc-bin (2.28-10+rpi1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for install-info (6.5.0.dfsg.1-4+b1) ...

git and mosquitto-clients also

tingo@rtl433:~ $ sudo apt install git mosquitto-clients
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  git-man libcurl3-gnutls liberror-perl libmosquitto1
Suggested packages:
  git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn
The following NEW packages will be installed:
  git git-man libcurl3-gnutls liberror-perl libmosquitto1 mosquitto-clients
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 6,261 kB of archives.
After this operation, 33.2 MB of additional disk space will be used.
[..]
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10+rpi1) ...

ok

2021-02-11: mmcblk0p2 - apt - upgrade

tingo@rtl433:~ $ sudo apt upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  base-files bluez-firmware ca-certificates device-tree-compiler file firmware-atheros firmware-brcm80211 firmware-libertas
  firmware-misc-nonfree firmware-realtek iproute2 libgnutls30 libldap-2.4-2 libldap-common libmagic-mgc libmagic1 libpam-systemd
  libraspberrypi-bin libraspberrypi-dev libraspberrypi-doc libraspberrypi0 libsystemd0 libudev1 python-rpi.gpio
  raspberrypi-bootloader raspberrypi-kernel raspberrypi-sys-mods raspi-config rpi-eeprom rpi.gpio-common sudo systemd systemd-sysv
  tzdata udev unzip
36 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 142 MB of archives.
After this operation, 3,578 kB of additional disk space will be used.
[..]
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.

ok

2021-02-11: mmcblk0p2 - new image on the card (from 2021-01-11-raspios-buster-armhf-lite.zip)

tingo@rtl433:~ $ cat /etc/debian_version
10.7
tingo@rtl433:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

kernel

tingo@rtl433:~ $ uname -a
Linux rtl433 5.4.83-v7+ #1379 SMP Mon Dec 14 13:08:57 GMT 2020 armv7l GNU/Linux

ok

2021-02-11: this evening, after a power failure (circuit breaker tripped) I found out that both partitions on the 8GB Kingston microSD card was corrupt; fsck.vfat and fsvk.ext4 couldn't fix it. First I'll try to write a new image to the card, using my c2 workstation.

2020-04-10: mmcblk0p2 - rtl_433 - with the new version, '-U' is deprecated, so I need to use '-M utc' instead, like this

rtl_433 -R 3 -R 19 -F json -M utc | mosquitto_pub -V mqttv311 -h bpi -u homeassistant -P password -t home/rtl_433 -l

but now it works

{"time" : "2020-04-10 16:42:24", "model" : "Prologue-TH", "subtype" : 9, "id" : 82, "channel" : 2, "battery_ok" : 0, "temperature_C" : 17.400, "button" : 0}
{"time" : "2020-04-10 16:42:27", "model" : "Prologue-TH", "subtype" : 9, "id" : 86, "channel" : 1, "battery_ok" : 0, "temperature_C" : 22.300, "button" : 0}
{"time" : "2020-04-10 16:43:01", "model" : "Nexus-TH", "id" : 217, "channel" : 1, "battery_ok" : 1, "temperature_C" : 23.800, "humidity" : 12}
{"time" : "2020-04-10 16:43:02", "model" : "Nexus-TH", "id" : 112, "channel" : 1, "battery_ok" : 1, "temperature_C" : 21.100, "humidity" : 25}
{"time" : "2020-04-10 16:43:07", "model" : "Nexus-TH", "id" : 115, "channel" : 2, "battery_ok" : 1, "temperature_C" : 9.000, "humidity" : 23}

and now the prologue sensors report battery_ok is 0 (zero) instead of "LOW", well, I guess that is some kind of progress.

2020-04-10: mmcblk0p2 - apt - install mqtt client

tingo@rtl433:~ $ sudo apt install mosquitto-clients
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following additional packages will be installed:
  libmosquitto1
The following NEW packages will be installed:
  libmosquitto1 mosquitto-clients
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 124 kB of archives.
After this operation, 255 kB of additional disk space will be used.
[..]
Setting up mosquitto-clients (1.5.7-1+deb10u1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10+rpi1) ...

ok

2020-04-10: mmcblk0p2 - build latest rtl_433 using cmake.

tingo@rtl433:~/work/rtl_433 $ mkdir build
tingo@rtl433:~/work/rtl_433 $ cd build
tingo@rtl433:~/work/rtl_433/build $ cmake ..
-- The C compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Build type not specified: defaulting to release.
-- Found Git version: refs/heads/master commit 2f403ebb3b065fe92f37f0561095f5bdaae0045e from 2020-04-09T11:45:22+0200
-- Using Git version tag: 20.02-21-g2f403eb on master at 202004091145
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29")
-- Found LibRTLSDR: /usr/lib/arm-linux-gnueabihf/librtlsdr.so 
-- Found LibUSB: /usr/lib/arm-linux-gnueabihf/libusb-1.0.so 
-- RTL-SDR device input will be compiled.
-- Could NOT find SoapySDR (missing: SoapySDR_DIR)
-- SoapySDR development files not found, SoapySDR device input won't be possible.
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Configuring done
-- Generating done
-- Build files have been written to: /home/tingo/work/rtl_433/build

then make

tingo@rtl433:~/work/rtl_433/build $ make
[..]
Scanning dependencies of target test_util
[ 99%] Building C object tests/CMakeFiles/test_util.dir/__/src/util.c.o
[100%] Linking C executable test_util
[100%] Built target test_util

and sudo make install

tingo@rtl433:~/work/rtl_433/build $ sudo make install
[ 88%] Built target r_433
[ 89%] Built target rtl_433
[ 92%] Built target data
[ 93%] Built target style-check
[ 94%] Built target baseband-test
[ 95%] Built target test_bitbuffer
[ 96%] Built target data-test
[ 97%] Built target test_fileformat
[ 98%] Built target test_optparse
[100%] Built target test_util
Install the project...
-- Install configuration: "Release"
-- Up-to-date: /usr/local/share/man
-- Installing: /usr/local/share/man/man1
-- Installing: /usr/local/share/man/man1/rtl_433.1
-- Installing: /usr/local/include/rtl_433.h
-- Installing: /usr/local/include/rtl_433_devices.h
-- Installing: /usr/local/bin/rtl_433
-- Installing: /usr/local/etc/rtl_433/EV1527-4Button-Universal-Remote.conf
-- Installing: /usr/local/etc/rtl_433/EV1527-PIR-Sgooway.conf
-- Installing: /usr/local/etc/rtl_433/car_fob.conf
-- Installing: /usr/local/etc/rtl_433/chungear_bcf-0019x2.conf
-- Installing: /usr/local/etc/rtl_433/energy_count_3000.conf
-- Installing: /usr/local/etc/rtl_433/fan-11t.conf
-- Installing: /usr/local/etc/rtl_433/led-light-remote.conf
-- Installing: /usr/local/etc/rtl_433/pir-ef4.conf
-- Installing: /usr/local/etc/rtl_433/rtl_433.example.conf
-- Installing: /usr/local/etc/rtl_433/silverline_doorbell.conf
-- Installing: /usr/local/etc/rtl_433/sonoff_rm433.conf
-- Installing: /usr/local/etc/rtl_433/steffen_switch.conf
-- Installing: /usr/local/etc/rtl_433/valeo_car_key.conf
-- Installing: /usr/local/etc/rtl_433/verisure_alarm.conf

ok

2020-04-10: mmcblk0p2 - apt - install libusb-dev

tingo@rtl433:~ $ sudo apt install libusb-dev
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following NEW packages will be installed:
  libusb-dev
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 35.7 kB of archives.
After this operation, 218 kB of additional disk space will be used.
[..]
Setting up libusb-dev (2:0.1.12-32) ...
Processing triggers for man-db (2.8.5-2) ...

does it help? Nope. Aha, per (closed) issue 1235, it is recommended to build via cmake.

2020-04-10: mmcblk0p2 - build latest rtl_433

tingo@rtl433:~/work/rtl_433 $ pwd
/home/tingo/work/rtl_433

autoreconf

tingo@rtl433:~/work/rtl_433 $ autoreconf --install
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:12: installing './compile'
configure.ac:15: installing './config.guess'
configure.ac:15: installing './config.sub'
configure.ac:5: installing './install-sh'
configure.ac:5: installing './missing'
Makefile.am:4: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
src/Makefile.am:1: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
src/Makefile.am: installing './depcomp'

configure

tingo@rtl433:~/work/rtl_433 $ ./configure
[..]
configure: creating ./config.status
config.status: creating rtl433.pc
config.status: creating include/Makefile
config.status: creating src/Makefile
config.status: creating Makefile
config.status: creating Doxyfile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands

make

tingo@rtl433:~/work/rtl_433 $ make
[..]
sdr.c:25:10: fatal error: libusb.h: No such file or directory
 #include <libusb.h> /* libusb_error_name(), libusb_strerror() */
          ^~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:1172: sdr.o] Error 1
make[2]: Leaving directory '/home/tingo/work/rtl_433/src'
make[1]: *** [Makefile:497: all-recursive] Error 1
make[1]: Leaving directory '/home/tingo/work/rtl_433'
make: *** [Makefile:383: all] Error 2

hmm, no libusb? make install

2020-04-10: mmcblk0p2 - check time sync

tingo@rtl433:~ $ man timedatectl
tingo@rtl433:~ $ timedatectl status
               Local time: Fri 2020-04-10 17:41:22 CEST
           Universal time: Fri 2020-04-10 15:41:22 UTC
                 RTC time: n/a
                Time zone: Europe/Oslo (CEST, +0200)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no

ok, is it timesyncd?

tingo@rtl433:~ $ timedatectl timesync-status
       Server: 92.62.34.78 (2.debian.pool.ntp.org)
Poll interval: 8min 32s (min: 32s; max 34min 8s)
         Leap: normal
      Version: 4
      Stratum: 2
    Reference: C0248F82
    Precision: 1us (-24)
Root distance: 50.872ms (max: 5s)
       Offset: -1.052ms
        Delay: 7.941ms
       Jitter: 591us
 Packet count: 5
    Frequency: -4.173ppm

yes. Do the other command too, just for the heck of it

tingo@rtl433:~ $ timedatectl show-timesync
FallbackNTPServers=0.debian.pool.ntp.org 1.debian.pool.ntp.org 2.debian.pool.ntp.org 3.debian.pool.ntp.org
ServerName=2.debian.pool.ntp.org
ServerAddress=92.62.34.78
RootDistanceMaxUSec=5s
PollIntervalMinUSec=32s
PollIntervalMaxUSec=34min 8s
PollIntervalUSec=8min 32s
NTPMessage={ Leap=0, Version=4, Mode=4, Stratum=2, Precision=-24, RootDelay=13.916ms, RootDispersion=43.914ms, Reference=C0248F82, OriginateTimestamp=Fri 2020-04-10 17:34:05 CEST, ReceiveTimestamp=Fri 2020-04-10 17:34:05 CEST, TransmitTimestamp=Fri 2020-04-10 17:34:05 CEST, DestinationTimestamp=Fri 2020-04-10 17:34:05 CEST, Ignored=no PacketCount=5, Jitter=591us }
Frequency=-273513

ok

2020-04-10: mmcblk0p2 - reconfigure timezone

tingo@rtl433:~ $ sudo dpkg-reconfigure tzdata

Current default time zone: 'Europe/Oslo'
Local time is now:      Fri Apr 10 17:34:35 CEST 2020.
Universal Time is now:  Fri Apr 10 15:34:35 UTC 2020.

ok

2020-04-10: mmcblk0p2 - check to see if dvb modules needs blacklisting:

tingo@rtl433:~ $ lsmod | grep rtl
rtl2832                20480  1
i2c_mux                16384  1 rtl2832
dvb_usb_rtl28xxu       32768  0
dvb_usb_v2             24576  1 dvb_usb_rtl28xxu
dvb_core              110592  2 dvb_usb_v2,rtl2832

yes, they do. Created a file for them

tingo@rtl433:~ $ cat /etc/modprobe.d/blacklist-rtl28xx.conf
blacklist dvb_usb_rtl28xxu
blacklist rtl2832
blacklist rtl2830

and then just reboot the Pi

2020-04-10: mmcblk0p2 - get the source for rtl_433

tingo@rtl433:~/work $ git clone https://github.com/merbanan/rtl_433.git
Cloning into 'rtl_433'...
remote: Enumerating objects: 25, done.
remote: Counting objects: 100% (25/25), done.
remote: Compressing objects: 100% (18/18), done.
remote: Total 14583 (delta 9), reused 14 (delta 7), pack-reused 14558
Receiving objects: 100% (14583/14583), 4.98 MiB | 2.17 MiB/s, done.
Resolving deltas: 100% (11276/11276), done.

ok. This is the latest commit

tingo@rtl433:~/work/rtl_433 $ git log -1
commit 2f403ebb3b065fe92f37f0561095f5bdaae0045e (HEAD -> master, origin/master, origin/HEAD)
Author: Khairulmizam Samsudin <xource@gmail.com>
Date:   Thu Apr 9 17:45:22 2020 +0800

    Update template guideline for verbosity (#1344)

ok

2020-04-10: mmcblk0p2 - apt - install git

tingo@rtl433:~ $ sudo apt install git
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following additional packages will be installed:
  git-man libcurl3-gnutls liberror-perl
Suggested packages:
  git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn
The following NEW packages will be installed:
  git git-man libcurl3-gnutls liberror-perl
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 6,145 kB of archives.
After this operation, 32.9 MB of additional disk space will be used.
[..]
Setting up git (1:2.20.1-2+deb10u1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10+rpi1) ...

ok

2020-04-10: mmcblk0p2 - apt - check requirement for building rtl_433:

tingo@rtl433:~ $ sudo apt list libtool libusb-1.0-0-dev librtlsdr-dev rtl-sdr build-essential autoconf cmake pkg-config
Listing... Done
autoconf/stable 2.69-11 all
build-essential/stable,now 12.6 armhf [installed]
cmake/stable 3.13.4-1 armhf
librtlsdr-dev/testing 0.6-1+rpt1 armhf
libtool/stable 2.4.6-9 all
libusb-1.0-0-dev/stable 2:1.0.22-2 armhf
pkg-config/stable,now 0.29-6 armhf [installed]
rtl-sdr/testing 0.6-1+rpt1 armhf

apt - install the missing ones

tingo@rtl433:~ $ sudo apt install autoconf cmake librtlsdr-dev libtool libusb-1.0-0-dev rtl-sdr
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following additional packages will be installed:
  automake autotools-dev cmake-data libarchive13 libjsoncpp1 libltdl-dev libltdl7 librhash0 librtlsdr0 libsigsegv2 libusb-1.0-doc libuv1
  m4
Suggested packages:
  autoconf-archive gnu-standards autoconf-doc gettext cmake-doc ninja-build lrzip libtool-doc gfortran | fortran95-compiler gcj-jdk
  m4-doc
The following NEW packages will be installed:
  autoconf automake autotools-dev cmake cmake-data libarchive13 libjsoncpp1 libltdl-dev libltdl7 librhash0 librtlsdr-dev librtlsdr0
  libsigsegv2 libtool libusb-1.0-0-dev libusb-1.0-doc libuv1 m4 rtl-sdr
0 upgraded, 19 newly installed, 0 to remove and 0 not upgraded.
Need to get 7,458 kB of archives.
After this operation, 31.5 MB of additional disk space will be used.
[..]
Setting up automake (1:1.16.1-4) ...
update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode
Setting up libltdl-dev:armhf (2.4.6-9) ...
Processing triggers for libc-bin (2.28-10+rpi1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for install-info (6.5.0.dfsg.1-4+b1) ...

ok

2020-04-10: mmcblk0p2 - apt - update, then upgrade

tingo@rtl433:~ $ sudo apt upgrade
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
  libfl2
The following packages will be upgraded:
  binutils binutils-arm-linux-gnueabihf binutils-common bluez curl firmware-atheros firmware-brcm80211 firmware-libertas
  firmware-misc-nonfree firmware-realtek libbinutils libcurl4 libgnutls30 libicu63 libpam-systemd libsystemd0 libudev1 raspi-config
  rpi-eeprom rpi-eeprom-images systemd systemd-sysv udev
23 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 35.6 MB of archives.
After this operation, 3,164 kB of additional disk space will be used.
[..]
Setting up rpi-eeprom (5.4-1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for dbus (1.12.16-1) ...
Processing triggers for libc-bin (2.28-10+rpi1) ...
Processing triggers for initramfs-tools (0.133+deb10u1) ...

ok

2020-04-10: mmcblk0p2 - a while later, I have my own user set up. Now this machine runs Raspbian Buster (Lite):

tingo@rtl433:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

Debian info

tingo@rtl433:~ $ cat /etc/debian_version
10.3

lsblk

tingo@rtl433:~ $ lsblk -i
NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
mmcblk0     179:0    0  7.4G  0 disk
|-mmcblk0p1 179:1    0  256M  0 part /boot
`-mmcblk0p2 179:2    0  7.2G  0 part /

disk usage

tingo@rtl433:~ $ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       7.1G  1.3G  5.5G  19% /
devtmpfs        459M     0  459M   0% /dev
tmpfs           464M     0  464M   0% /dev/shm
tmpfs           464M   12M  452M   3% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           464M     0  464M   0% /sys/fs/cgroup
/dev/mmcblk0p1  253M   53M  200M  21% /boot
tmpfs            93M     0   93M   0% /run/user/1000
tmpfs            93M     0   93M   0% /run/user/1001

ok

2020-04-10: z30b - I set up another microSD card (PNY, 16 GB) with Raspbian Buster lite, enabled ssh by placing a file named 'ssh' on the boot (fat32) partition, and changed the hostanem to 'rtl433' (rtl433.local) by editing the /etc/hostname and /etc/hosts files on the root (ext4) partition. A while later, ok that PNY microSD card was garbage, I ended up re-using a 8 GB Kingston that I found in another Pi that wasn't in use. Much better now.

2020-04-10: z30b - I took out the microSD card (Transcend, 16GB) and put it into my Debian laptop to run fsck on it: parted shows that it is a "normal" Pi sd card:

tingo@z30b:~$ sudo parted /dev/mmcblk0 print
Model: SD USD (sd/mmc)
Disk /dev/mmcblk0: 15.8GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   End     Size    Type     File system  Flags
 1      4194kB  48.0MB  43.8MB  primary  fat32        lba
 2      50.3MB  15.8GB  15.8GB  primary  ext4

check the fat32 partition

tingo@z30b:~$ sudo fsck.fat -y /dev/mmcblk0p1
fsck.fat 4.1 (2017-01-24)
0x41: Dirty bit is set. Fs was not properly unmounted and some data may be corrupt.
 Automatically removing dirty bit.
Performing changes.
/dev/mmcblk0p1: 159 files, 44042/84261 clusters

check the ext4 partition

tingo@z30b:~$ sudo fsck.ext4 -y /dev/mmcblk0p2
e2fsck 1.44.5 (15-Dec-2018)
rootfs: recovering journal
Superblock needs_recovery flag is clear, but journal has data.
Run journal anyway? yes

fsck.ext4: unable to set superblock flags on rootfs


rootfs: ********** WARNING: Filesystem still has errors **********

tingo@z30b:~$ sudo fsck.ext4 -y /dev/mmcblk0p2
e2fsck 1.44.5 (15-Dec-2018)
rootfs: recovering journal
Superblock needs_recovery flag is clear, but journal has data.
Run journal anyway? yes

fsck.ext4: unable to set superblock flags on rootfs


rootfs: ********** WARNING: Filesystem still has errors **********

uh oh. Found this bug 196677, and this, the gist of it is: "The e2fsck message unable to set superblock flags means it tried to write to the superblock to mark the journal as processed, which happened without error, but when it went to read the superblock back again it still indicated that the journal needed to be replayed. In other words, the changes written to the superblock were not saved on the storage medium.". In other words - the microSD card is broken.

2020-04-10: mmcblk0p2 - it still runs Raspbian Stretch:

tingo@raspberrypi:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

Debian info

tingo@raspberrypi:~ $ cat /etc/debian_version
9.4

more info

tingo@raspberrypi:~ $ lsblk -i
NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
mmcblk0     179:0    0 14.7G  0 disk
|-mmcblk0p1 179:1    0 41.8M  0 part /boot
`-mmcblk0p2 179:2    0 14.7G  0 part /

disk utilization

tingo@raspberrypi:~ $ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        15G  1.1G   13G   8% /
devtmpfs        460M     0  460M   0% /dev
tmpfs           464M     0  464M   0% /dev/shm
tmpfs           464M   12M  452M   3% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           464M     0  464M   0% /sys/fs/cgroup
/dev/mmcblk0p1   42M   22M   20M  53% /boot
tmpfs            93M     0   93M   0% /run/user/1001

ok

2020-04-10: the machine got moved to Stue.

2019-07-02: mmcblk0p2 - I should document the current setup for collecting and publishing sensor data with rtl_433

$ rtl_433 -R 19 -F json -U | mosquitto_pub -V mqttv311 -h bpi -u homeassistant -P password -t home/rtl_433 -l

to check with a client you can do

$ mosquitto_sub -V mqttv311 -h bpi -u homeassistant -P password -t home/rtl_433

ok

2018-11-20: mmcblk0p2 - rtl_433, start it again

tingo@raspberrypi:~ $ rtl_433 -G -F json -U | mosquitto_pub -V mqttv311 -h bpi -u homeassistant -P password -t home/rtl_433 -l

(not that password). Also a client (in a different shell) for test puposes

tingo@raspberrypi:~ $ mosquitto_sub -V mqttv311 -h bpi -u homeassistant -P password -t home/rtl_433

good.

2018-11-20: mmcblk0p2 - ok, it is at this address

[tingo@localhost ~]$ ssh 10.1.161.23
tingo@10.1.161.23's password:
Linux raspberrypi 4.14.30-v7+ #1102 SMP Mon Mar 26 16:45:49 BST 2018 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Tue Jul 31 17:54:27 2018 from 10.1.150.50

Wi-Fi is disabled because the country is not set.
Use raspi-config to set the country before use.

tingo@raspberrypi:~ $

I cheated and checked my DHCP server.

2018-11-20: does this Pi show up via avahi-browse from my workstation (c1)?

tingo@kg-core1$ avahi-browse -a
+    re0 IPv4 kg-f6                                         _middleware._tcp     local
+    re0 IPv4 kg-f6                                         _sftp._tcp           local
+    re0 IPv4 steamos [00:01:2e:67:c9:e3]                   _workstation._tcp    local
+    re0 IPv4 root@LibreELEC: Dummy Output                  _pulse-sink._tcp     local
+    re0 IPv4 root@LibreELEC                                _pulse-server._tcp   local
+    re0 IPv4 EPSON6A21CC (Epson Stylus Office BX525WD)     _smb._tcp            local
+    re0 IPv4 LIBREELEC                                     _smb._tcp            local
+    re0 IPv4 kg-f6                                         _http._tcp           local
+    re0 IPv4 Kodi (LibreELEC)                              _http._tcp           local
+    re0 IPv4 Kodi (LibreELEC)                              _xbmc-jsonrpc-h._tcp local
+    re0 IPv4 Kodi (LibreELEC)                              _xbmc-jsonrpc._tcp   local
+    re0 IPv4 Kodi (LibreELEC)                              _xbmc-events._udp    local
+    re0 IPv4 000102030405@Kodi (LibreELEC)                 _raop._tcp           local
+    re0 IPv4 Kodi (LibreELEC)                              _airplay._tcp        local
+    re0 IPv4 kg-f6                                         _ssh._tcp            local
+    re0 IPv4 kg-core1                                      _ssh._tcp            local
+    re0 IPv4 LibreELEC                                     _sftp-ssh._tcp       local
+    re0 IPv4 kg-core1                                      _sftp-ssh._tcp       local
^CGot SIGINT, quitting.

nope, it does not.

2018-04-08: mmcblk0p2 - rtl_433, now see if we can publish to Home Assistant's (embedded) MQTT broker:

tingo@raspberrypi:~ $ rtl_433 -G -F json -U | mosquitto_pub -h bpi -u homeassistant -P password -t home/rtl_433 -l

(the password is changed, by the way) that didn't work, I need to specify the protocol version also

tingo@raspberrypi:~ $ rtl_433 -G -F json -U | mosquitto_pub -V mqttv311 -h bpi -u homeassistant -P password -t home/rtl_433 -l

yes, that works better. For testing, I can connect a client to the broker and read messages

mosquitto_sub -V mqttv311 -h bpi -u homeassistant -P password -t home/rtl_433

nice

2018-04-08: mmcblk0p2 - apt - install a mqtt client

tingo@raspberrypi:~ $ sudo apt install  mosquitto-clients
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following additional packages will be installed:
  libc-ares2 libmosquitto1
The following NEW packages will be installed:
  libc-ares2 libmosquitto1 mosquitto-clients
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 174 kB of archives.
After this operation, 348 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
[..]
Setting up libc-ares2:armhf (1.12.0-1+deb9u1) ...
Setting up libmosquitto1:armhf (1.4.10-3+deb9u1) ...
Setting up mosquitto-clients (1.4.10-3+deb9u1) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...

and files it contains

tingo@raspberrypi:~ $ dpkg-query -L mosquitto-clients
/.
/usr
/usr/bin
/usr/bin/mosquitto_pub
/usr/bin/mosquitto_sub
/usr/share
/usr/share/doc
/usr/share/doc/mosquitto-clients
/usr/share/doc/mosquitto-clients/changelog.Debian.gz
/usr/share/doc/mosquitto-clients/changelog.gz
/usr/share/doc/mosquitto-clients/copyright
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/mosquitto-clients
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/mosquitto_pub.1.gz
/usr/share/man/man1/mosquitto_sub.1.gz

ok, so mosquitto_pub and mosquitto_sub it is.

2018-04-08: mmcblk0p2 - rtl_433 testing

tingo@raspberrypi:~ $ rtl_433 -G
Registering protocol [1] "Silvercrest Remote Control"
Registering protocol [2] "Rubicson Temperature Sensor"
Registering protocol [3] "Prologue Temperature Sensor"
Registering protocol [4] "Waveman Switch Transmitter"
Registering protocol [5] "Steffen Switch Transmitter"
Registering protocol [6] "ELV EM 1000"
Registering protocol [7] "ELV WS 2000"
Registering protocol [8] "LaCrosse TX Temperature / Humidity Sensor"
Registering protocol [9] "Template decoder"
Registering protocol [10] "Acurite 896 Rain Gauge"
Registering protocol [11] "Acurite 609TXC Temperature and Humidity Sensor"
Registering protocol [12] "Oregon Scientific Weather Sensor"
Registering protocol [13] "Mebus 433"
Registering protocol [14] "Intertechno 433"
Registering protocol [15] "KlikAanKlikUit Wireless Switch"
Registering protocol [16] "AlectoV1 Weather Sensor (Alecto WS3500 WS4500 Ventus W155/W044 Oregon)"
Registering protocol [17] "Cardin S466-TX2"
Registering protocol [18] "Fine Offset Electronics, WH2 Temperature/Humidity Sensor"
Registering protocol [19] "Nexus Temperature & Humidity Sensor"
Registering protocol [20] "Ambient Weather Temperature Sensor"
Registering protocol [21] "Calibeur RF-104 Sensor"
Registering protocol [22] "X10 RF"
Registering protocol [23] "DSC Security Contact"
Registering protocol [24] "Brennenstuhl RCS 2044"
Registering protocol [25] "GT-WT-02 Sensor"
Registering protocol [26] "Danfoss CFR Thermostat"
Registering protocol [27] "Energy Count 3000 (868.3 MHz)"
Registering protocol [28] "Valeo Car Key"
Registering protocol [29] "Chuango Security Technology"
Registering protocol [30] "Generic Remote SC226x EV1527"
Registering protocol [31] "TFA-Twin-Plus-30.3049 and Ea2 BL999"
Registering protocol [32] "Fine Offset Electronics WH1080/WH3080 Weather Station"
Registering protocol [33] "WT450"
Registering protocol [34] "LaCrosse WS-2310 Weather Station"
Registering protocol [35] "Esperanza EWS"
Registering protocol [36] "Efergy e2 classic"
Registering protocol [37] "Inovalley kw9015b, TFA Dostmann 30.3161 (Rain and temperature sensor)"
Registering protocol [38] "Generic temperature sensor 1"
Registering protocol [39] "WG-PB12V1"
Registering protocol [40] "Acurite 592TXR Temp/Humidity, 5n1 Weather Station, 6045 Lightning"
Registering protocol [41] "Acurite 986 Refrigerator / Freezer Thermometer"
Registering protocol [42] "HIDEKI TS04 Temperature, Humidity, Wind and Rain Sensor"
Registering protocol [43] "Watchman Sonic / Apollo Ultrasonic / Beckett Rocket oil tank monitor"
Registering protocol [44] "CurrentCost Current Sensor"
Registering protocol [45] "emonTx OpenEnergyMonitor"
Registering protocol [46] "HT680 Remote control"
Registering protocol [47] "S3318P Temperature & Humidity Sensor"
Registering protocol [48] "Akhan 100F14 remote keyless entry"
Registering protocol [49] "Quhwa"
Registering protocol [50] "OSv1 Temperature Sensor"
Registering protocol [51] "Proove"
Registering protocol [52] "Bresser Thermo-/Hygro-Sensor 3CH"
Registering protocol [53] "Springfield Temperature and Soil Moisture"
Registering protocol [54] "Oregon Scientific SL109H Remote Thermal Hygro Sensor"
Registering protocol [55] "Acurite 606TX Temperature Sensor"
Registering protocol [56] "TFA pool temperature sensor"
Registering protocol [57] "Kedsum Temperature & Humidity Sensor"
Registering protocol [58] "blyss DC5-UK-WH (433.92 MHz)"
Registering protocol [59] "Steelmate TPMS"
Registering protocol [60] "Schrader TPMS"
Registering protocol [61] "LightwaveRF"
Registering protocol [62] "Elro DB286A Doorbell"
Registering protocol [63] "Efergy Optical"
Registering protocol [64] "Honda Car Key"
Registering protocol [65] "Template decoder"
Registering protocol [66] "Fine Offset Electronics, XC0400"
Registering protocol [67] "Radiohead ASK"
Registering protocol [68] "Kerui PIR Sensor"
Registering protocol [69] "Fine Offset WH1050 Weather Station"
Registering protocol [70] "Honeywell Door/Window Sensor"
Registering protocol [71] "Maverick ET-732/733 BBQ Sensor"
Registering protocol [72] "RF-tech"
Registering protocol [73] "LaCrosse TX141-Bv2/TX141TH-Bv2 sensor"
Registering protocol [74] "Acurite 00275rm,00276rm Temp/Humidity with optional probe"
Registering protocol [75] "LaCrosse TX35DTH-IT Temperature sensor"
Registering protocol [76] "LaCrosse TX29IT Temperature sensor"
Registering protocol [77] "Vaillant calorMatic 340f Central Heating Control"
Registering protocol [78] "Fine Offset Electronics, WH25 Temperature/Humidity/Pressure Sensor"
Registering protocol [79] "Fine Offset Electronics, WH0530 Temperature/Rain Sensor"
Registering protocol [80] "IBIS beacon"
Registering protocol [81] "Oil Ultrasonic STANDARD FSK"
Registering protocol [82] "Citroen TPMS"
Registering protocol [83] "Oil Ultrasonic STANDARD ASK"
Registering protocol [84] "Thermopro TP11 Thermometer"
Registering protocol [85] "Solight TE44"
Registering protocol [86] "Wireless Smoke and Heat Detector GS 558"
Registering protocol [87] "Generic wireless motion sensor"
Registering protocol [88] "Toyota TPMS"
Registering protocol [89] "Ford TPMS"
Registering protocol [90] "Renault TPMS"
Registering protocol [91] "inFactory"
Registering protocol [92] "FT-004-B Temperature Sensor"
Registering protocol [93] "Ford Car Key"
Registering protocol [94] "Philips outdoor temperature sensor"
Registering protocol [95] "Schrader TPMS EG53MA4"
Registering protocol [96] "Nexa"
Registering protocol [97] "Thermopro TP12 Thermometer"
Registering protocol [98] "GE Color Effects"
Registering protocol [99] "X10 Security"
Registering protocol [100] "Interlogix GE UTC Security Devices"
Registering protocol [101] "Dish remote 6.3"
Registered 101 out of 101 device decoding protocols
Found 1 device(s)

trying device  0:  Realtek, RTL2838UHIDIR, SN: 00000013
Found Rafael Micro R820T tuner
Using device 0: Generic RTL2832U OEM
Exact sample rate is: 250000.000414 Hz
[R82XX] PLL not locked!
Sample rate set to 250000.
Bit detection level set to 0 (Auto).
Tuner gain set to Auto.
Reading samples in async mode...
Tuned to 433920000 Hz.
Energy Count 3000:
bitbuffer:: Number of rows: 1
[00] {559} 7e 1f ff ef ff 8f ff ff ff 00 0f fe 01 ff e3 ff fb ff ff e7 fe 07 ff ff ff ff f0 06 00 07 ff ff 1f e7 9f ff ff ff ff f8 3f ff 10 ff ff df ff ff ff ff ff ff 0f c8 03 00 3f ff fe 7f c0 9d ff ff ff ff fb fe 00 00

2018-04-07 22:38:24 : WT450 sensor

    House Code:     1
    Channel:     1
    Battery:     OK
    Temperature:     24.17 C
    Humidity:     0 %

2018-04-07 22:38:25 : Nexus Temperature/Humidity

    House Code:     217
    Battery:     OK
    Channel:     1
    Temperature:     19.70 C
    Humidity:     38 %

2018-04-07 22:38:31 : Nexus Temperature

    House Code:     198
    Battery:     LOW
    Channel:     1
    Temperature:     4.70 C

2018-04-07 22:38:31 : Fine Offset Electronics, WH2 Temperature/Humidity sensor

    ID:     206
    Temperature:     8.0 C
    Integrity:     CRC

2018-04-07 22:38:31 : WG-PB12V1

    ID:     16
    Temperature:     289.6 C
    Integrity:     CRC
^CSignal caught, exiting!

it works.

2018-04-08: mmcblk0p2 - I plugin in my Newsky TV28T dongle. First check to see if dvb modules needs to be blacklisted

tingo@raspberrypi:~/work/rtl_433 $ lsmod | grep rtl
rtl2832                20480  1
i2c_mux                16384  1 rtl2832
dvb_usb_rtl28xxu       32768  0
dvb_usb_v2             24576  1 dvb_usb_rtl28xxu
dvb_core              110592  2 dvb_usb_v2,rtl2832

yes, they do. Create a file for it

tingo@raspberrypi:~/work/rtl_433 $ cat /etc/modprobe.d/blacklist-rtl28xx.conf
blacklist dvb_usb_rtl28xxu
blacklist rtl2832
blacklist rtl2830

unplug device - didn't work, ok reboot the Pi3 then.

tingo@raspberrypi:~ $ lsmod | grep rtl

better, and lsusb says

tingo@raspberrypi:~ $ lsusb
Bus 001 Device 005: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T
Bus 001 Device 004: ID 0424:7800 Standard Microsystems Corp.
Bus 001 Device 003: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

cool.

2018-04-08: mmcblk0p2 - configure, compile and install rtl_433

tingo@raspberrypi:~/work $ cd rtl_433/

autoreconf

tingo@raspberrypi:~/work/rtl_433 $ autoreconf --install
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:12: installing './compile'
configure.ac:15: installing './config.guess'
configure.ac:15: installing './config.sub'
configure.ac:5: installing './install-sh'
configure.ac:5: installing './missing'
Makefile.am:4: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
src/Makefile.am:1: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
src/Makefile.am: installing './depcomp'

configure

tingo@raspberrypi:~/work/rtl_433 $ ./configure
[..]
configure: creating ./config.status
config.status: creating rtl433.pc
config.status: creating include/Makefile
config.status: creating src/Makefile
config.status: creating Makefile
config.status: creating Doxyfile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands

make

tingo@raspberrypi:~/work/rtl_433 $ make
[..]
make[2]: Leaving directory '/home/tingo/work/rtl_433/src'
make[2]: Entering directory '/home/tingo/work/rtl_433'
make[2]: Leaving directory '/home/tingo/work/rtl_433'
make[1]: Leaving directory '/home/tingo/work/rtl_433'

make install

tingo@raspberrypi:~/work/rtl_433 $ sudo make install
make  install-recursive
make[1]: Entering directory '/home/tingo/work/rtl_433'
Making install in include
make[2]: Entering directory '/home/tingo/work/rtl_433/include'
make[3]: Entering directory '/home/tingo/work/rtl_433/include'
make[3]: Nothing to be done for 'install-exec-am'.
 /bin/mkdir -p '/usr/local/include'
 /usr/bin/install -c -m 644 rtl_433.h rtl_433_devices.h '/usr/local/include'
make[3]: Leaving directory '/home/tingo/work/rtl_433/include'
make[2]: Leaving directory '/home/tingo/work/rtl_433/include'
Making install in src
make[2]: Entering directory '/home/tingo/work/rtl_433/src'
make[3]: Entering directory '/home/tingo/work/rtl_433/src'
 /bin/mkdir -p '/usr/local/bin'
  /bin/bash ../libtool   --mode=install /usr/bin/install -c rtl_433 '/usr/local/bin'
libtool: install: /usr/bin/install -c rtl_433 /usr/local/bin/rtl_433
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/home/tingo/work/rtl_433/src'
make[2]: Leaving directory '/home/tingo/work/rtl_433/src'
make[2]: Entering directory '/home/tingo/work/rtl_433'
make[3]: Entering directory '/home/tingo/work/rtl_433'
make[3]: Nothing to be done for 'install-exec-am'.
 /bin/mkdir -p '/usr/local/lib/pkgconfig'
 /usr/bin/install -c -m 644 rtl433.pc '/usr/local/lib/pkgconfig'
make  install-data-hook
make[4]: Entering directory '/home/tingo/work/rtl_433'
make[4]: Nothing to be done for 'install-data-hook'.
make[4]: Leaving directory '/home/tingo/work/rtl_433'
make[3]: Leaving directory '/home/tingo/work/rtl_433'
make[2]: Leaving directory '/home/tingo/work/rtl_433'
make[1]: Leaving directory '/home/tingo/work/rtl_433'

ok

2018-04-08: mmcblk0p2 - apt - install libtool

tingo@raspberrypi:~/work/rtl_433 $ sudo apt install libtool
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following additional packages will be installed:
  libltdl-dev libltdl7
Suggested packages:
  libtool-doc gfortran | fortran95-compiler gcj-jdk
The following NEW packages will be installed:
  libltdl-dev libltdl7 libtool
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,090 kB of archives.
After this operation, 2,595 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
[..]
Setting up libtool (2.4.6-2) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Setting up libltdl7:armhf (2.4.6-2) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up libltdl-dev:armhf (2.4.6-2) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...

ok.

2018-04-08: mmcblk0p2 - get rtl_433

tingo@raspberrypi:~/work $ git clone https://github.com/merbanan/rtl_433.git
Cloning into 'rtl_433'...
remote: Counting objects: 7321, done.
remote: Compressing objects: 100% (19/19), done.
remote: Total 7321 (delta 14), reused 25 (delta 12), pack-reused 7290
Receiving objects: 100% (7321/7321), 2.00 MiB | 2.10 MiB/s, done.
Resolving deltas: 100% (5385/5385), done.

ok.

2018-04-08: mmcblk0p2 - apt - upgrade

tingo@raspberrypi:~ $ sudo apt upgrade
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  libusb-1.0-0-dev m4
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 248 kB of archives.
After this operation, 26.6 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
[..]
Setting up m4 (1.4.18-1) ...
Setting up libusb-1.0-0-dev:armhf (2:1.0.21-1) ...
Processing triggers for man-db (2.7.6.1-2) ...

ok

2018-04-08: mmcblk0p2 - apt - install git

tingo@raspberrypi:~ $ sudo apt install git
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following additional packages will be installed:
  git-man liberror-perl
Suggested packages:
  git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-arch git-cvs git-mediawiki git-svn
The following NEW packages will be installed:
  git git-man liberror-perl
0 upgraded, 3 newly installed, 0 to remove and 2 not upgraded.
Need to get 4,839 kB of archives.
After this operation, 26.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
[..]
Setting up git-man (1:2.11.0-3+deb9u2) ...
Setting up liberror-perl (0.17024-1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up git (1:2.11.0-3+deb9u2) ...

ok

2018-04-07: mmcblk0p2 - dpkg - more manually installed debian packages autotools-dev

tingo@raspberrypi:~/dl $ sudo dpkg -i autotools-dev_20161112.1_all.deb
Selecting previously unselected package autotools-dev.
(Reading database ... 34514 files and directories currently installed.)
Preparing to unpack autotools-dev_20161112.1_all.deb ...
Unpacking autotools-dev (20161112.1) ...
Setting up autotools-dev (20161112.1) ...
Processing triggers for man-db (2.7.6.1-2) ...

libsigsegv2

tingo@raspberrypi:~/dl $ sudo dpkg -i libsigsegv2_2.10-5_armhf.deb
Selecting previously unselected package libsigsegv2:armhf.
(Reading database ... 34669 files and directories currently installed.)
Preparing to unpack libsigsegv2_2.10-5_armhf.deb ...
Unpacking libsigsegv2:armhf (2.10-5) ...
Setting up libsigsegv2:armhf (2.10-5) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...

m4

tingo@raspberrypi:~/dl $ sudo dpkg -i m4_1.4.18-1_armhf.deb
(Reading database ... 34679 files and directories currently installed.)
Preparing to unpack m4_1.4.18-1_armhf.deb ...
Unpacking m4 (1.4.18-1) over (1.4.18-1) ...
Setting up m4 (1.4.18-1) ...
Processing triggers for install-info (6.3.0.dfsg.1-1+b1) ...
Processing triggers for man-db (2.7.6.1-2) ...

autoconf

tingo@raspberrypi:~/dl $ sudo dpkg -i autoconf_2.69-10_all.deb
(Reading database ... 34679 files and directories currently installed.)
Preparing to unpack autoconf_2.69-10_all.deb ...
Unpacking autoconf (2.69-10) over (2.69-10) ...
Setting up autoconf (2.69-10) ...
Processing triggers for man-db (2.7.6.1-2) ...

automake

tingo@raspberrypi:~/dl $ sudo dpkg -i automake_1.15-6_all.deb
(Reading database ... 34679 files and directories currently installed.)
Preparing to unpack automake_1.15-6_all.deb ...
Unpacking automake (1:1.15-6) over (1:1.15-6) ...
Setting up automake (1:1.15-6) ...
update-alternatives: using /usr/bin/automake-1.15 to provide /usr/bin/automake (automake) in auto mode
Processing triggers for install-info (6.3.0.dfsg.1-1+b1) ...
Processing triggers for man-db (2.7.6.1-2) ...

ok

2018-04-07: mmcblk0p2 - apt - try to install rtl_433 prereqs again

tingo@raspberrypi:~ $ sudo apt install librtlsdr-dev rtl-sdr
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following additional packages will be installed:
  librtlsdr0
The following NEW packages will be installed:
  librtlsdr-dev librtlsdr0 rtl-sdr
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 105 kB of archives.
After this operation, 365 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
[..]
Selecting previously unselected package librtlsdr0:armhf.
(Reading database ... 34349 files and directories currently installed.)
Preparing to unpack .../librtlsdr0_0.5.3-11+rpt1_armhf.deb ...
Unpacking librtlsdr0:armhf (0.5.3-11+rpt1) ...
Selecting previously unselected package librtlsdr-dev.
Preparing to unpack .../librtlsdr-dev_0.5.3-11+rpt1_armhf.deb ...
Unpacking librtlsdr-dev (0.5.3-11+rpt1) ...
Selecting previously unselected package rtl-sdr.
Preparing to unpack .../rtl-sdr_0.5.3-11+rpt1_armhf.deb ...
Unpacking rtl-sdr (0.5.3-11+rpt1) ...
Setting up librtlsdr0:armhf (0.5.3-11+rpt1) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Setting up librtlsdr-dev (0.5.3-11+rpt1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up rtl-sdr (0.5.3-11+rpt1) ...

cool.

2018-04-07: mmcblk0p2 - get missing packages from Debian manually, and install with dpkg

tingo@raspberrypi:~/dl $ wget http://ftp.no.debian.org/debian/pool/main/libu/libusb-1.0/libusb-1.0-0-dev_1.0.21-1_armhf.deb
--2018-04-07 21:42:40--  http://ftp.no.debian.org/debian/pool/main/libu/libusb-1.0/libusb-1.0-0-dev_1.0.21-1_armhf.deb
Resolving ftp.no.debian.org (ftp.no.debian.org)... 194.71.11.165, 194.71.11.173, 2001:6b0:19::165, ...
Connecting to ftp.no.debian.org (ftp.no.debian.org)|194.71.11.165|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 68662 (67K) [application/x-debian-package]
Saving to: ‘libusb-1.0-0-dev_1.0.21-1_armhf.deb’

libusb-1.0-0-dev_1.0.21-1_armhf.deb  100%[======================================================================>]  67.05K  --.-KB/s    in 0.05s  

2018-04-07 21:42:40 (1.41 MB/s) - ‘libusb-1.0-0-dev_1.0.21-1_armhf.deb’ saved [68662/68662]

install

tingo@raspberrypi:~/dl $ sudo dpkg -i libusb-1.0-0-dev_1.0.21-1_armhf.deb
Selecting previously unselected package libusb-1.0-0-dev:armhf.
(Reading database ... 34339 files and directories currently installed.)
Preparing to unpack libusb-1.0-0-dev_1.0.21-1_armhf.deb ...
Unpacking libusb-1.0-0-dev:armhf (2:1.0.21-1) ...
Setting up libusb-1.0-0-dev:armhf (2:1.0.21-1) ...

ok.

2018-04-07: mmcblk0p2 - apt - install prereqs for rtl_433:

tingo@raspberrypi:~ $ sudo apt install libtool libusb-1.0.0-dev librtlsdr-dev rtl-sdr build-essential autoconf cmake pkg-config
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Note, selecting 'libusb-1.0-0-dev' for regex 'libusb-1.0.0-dev'
Package autoconf is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package libtool is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package cmake is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libtool' has no installation candidate
E: Package 'autoconf' has no installation candidate
E: Package 'cmake' has no installation candidate

adjust and try again

tingo@raspberrypi:~ $ sudo apt install libusb-1.0-0-dev librtlsdr-dev rtl-sdr build-essential pkg-config
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Package libusb-1.0-0-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libusb-1.0-0-dev' has no installation candidate

adjust and try again

tingo@raspberrypi:~ $ sudo apt install librtlsdr-dev rtl-sdr build-essential pkg-config
Reading package lists... Done
Building dependency tree      
Reading state information... Done
build-essential is already the newest version (12.3).
pkg-config is already the newest version (0.29-4).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 librtlsdr-dev : Depends: libusb-1.0-0-dev but it is not installable
E: Unable to correct problems, you have held broken packages.

hmmm.

2018-04-07: mmcblk0p2 - after a reboot, Raspbian is now upgraded to 9.4

tingo@raspberrypi:~ $ lsb_release -a
No LSB modules are available.
Distributor ID:    Raspbian
Description:    Raspbian GNU/Linux 9.4 (stretch)
Release:    9.4
Codename:    stretch

and a new kernel

tingo@raspberrypi:~ $ uname -a
Linux raspberrypi 4.14.30-v7+ #1102 SMP Mon Mar 26 16:45:49 BST 2018 armv7l GNU/Linux

ok.

2018-04-07: mmcblk0p2 - apt - upgrade

tingo@raspberrypi:~ $ sudo apt upgrade
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  base-files curl libcurl3 libcurl3-gnutls libicu57 libraspberrypi-bin libraspberrypi-dev libraspberrypi-doc libraspberrypi0
  libssl1.0.2 libssl1.1 libwbclient0 linux-libc-dev openssl raspberrypi-bootloader raspberrypi-kernel raspberrypi-sys-mods
  raspi-config samba-common
19 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 81.8 MB of archives.
After this operation, 1,674 kB of additional disk space will be used.
Do you want to continue? [Y/n]
[..]
Err:15 http://archive.raspberrypi.org/debian stretch/main armhf raspberrypi-kernel armhf 1.20180328-1                         
  Hash Sum mismatch
  Hashes of expected file:
   - SHA256:4f4560c4d17d38bd7082ac1f549c9902dd4c94d423d0d1d81aafd5bae0370578
   - SHA1:edbc925212aed3adffb96e6748420b9b5e85771a [weak]
   - MD5Sum:520fc98c50736a45e846239efe127be2 [weak]
   - Filesize:32789180 [weak]
  Hashes of received file:
   - SHA256:31fad499e2ae479dd4bb21090f1ce84d0f489a560b159ed9ce398524ff6389ae
   - SHA1:5168a303eb65048c6817133202091b6de074dadd [weak]
   - MD5Sum:c692e80f54b4c137a90b7c90fe1ac2b8 [weak]
   - Filesize:14106624 [weak]
  Last modification reported: Wed, 28 Mar 2018 13:34:06 +0000
[..]
E: Failed to fetch http://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/raspberrypi-kernel_1.20180328-1_armhf.deb  Hash Sum mismatch
   Hashes of expected file:
    - SHA256:4f4560c4d17d38bd7082ac1f549c9902dd4c94d423d0d1d81aafd5bae0370578
    - SHA1:edbc925212aed3adffb96e6748420b9b5e85771a [weak]
    - MD5Sum:520fc98c50736a45e846239efe127be2 [weak]
    - Filesize:32789180 [weak]
   Hashes of received file:
    - SHA256:31fad499e2ae479dd4bb21090f1ce84d0f489a560b159ed9ce398524ff6389ae
    - SHA1:5168a303eb65048c6817133202091b6de074dadd [weak]
    - MD5Sum:c692e80f54b4c137a90b7c90fe1ac2b8 [weak]
    - Filesize:14106624 [weak]
   Last modification reported: Wed, 28 Mar 2018 13:34:06 +0000
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

ok, try again

tingo@raspberrypi:~ $ sudo apt upgrade
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  base-files curl libcurl3 libcurl3-gnutls libicu57 libraspberrypi-bin libraspberrypi-dev libraspberrypi-doc libraspberrypi0
  libssl1.0.2 libssl1.1 libwbclient0 linux-libc-dev openssl raspberrypi-bootloader raspberrypi-kernel raspberrypi-sys-mods
  raspi-config samba-common
19 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 32.8 MB/81.8 MB of archives.
After this operation, 1,674 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
[..]
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.14.30+ /boot/kernel.img
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.14.30+ /boot/kernel.img
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.14.30-v7+ /boot/kernel7.img
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.14.30-v7+ /boot/kernel7.img
Processing triggers for systemd (232-25+deb9u2) ...
Setting up openssl (1.1.0f-3+deb9u2) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up libraspberrypi0 (1.20180328-1) ...
Setting up libraspberrypi-doc (1.20180328-1) ...
Setting up libcurl3:armhf (7.52.1-5+deb9u5) ...
Setting up libraspberrypi-dev (1.20180328-1) ...
Setting up libraspberrypi-bin (1.20180328-1) ...
Setting up curl (7.52.1-5+deb9u5) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...

much better.

2018-04-07: mmcblk0p2 - apt - update

tingo@raspberrypi:~ $ sudo apt update
[sudo] password for tingo:
Get:1 http://mirrordirector.raspbian.org/raspbian stretch InRelease [15.0 kB]
Get:2 http://archive.raspberrypi.org/debian stretch InRelease [25.3 kB]              
Get:3 http://mirrordirector.raspbian.org/raspbian stretch/main armhf Packages [11.7 MB]
Get:4 http://archive.raspberrypi.org/debian stretch/main armhf Packages [144 kB]           
Get:5 http://archive.raspberrypi.org/debian stretch/ui armhf Packages [28.2 kB]
Fetched 11.9 MB in 7s (1,503 kB/s)                                                                                            
Reading package lists... Done
Building dependency tree      
Reading state information... Done
19 packages can be upgraded. Run 'apt list --upgradable' to see them.

list packages

tingo@raspberrypi:~ $ sudo apt list --upgradable
Listing... Done
base-files/stable 9.9+rpi1+deb9u4 armhf [upgradable from: 9.9+rpi1+deb9u3]
curl/stable 7.52.1-5+deb9u5 armhf [upgradable from: 7.52.1-5+deb9u4]
libcurl3/stable 7.52.1-5+deb9u5 armhf [upgradable from: 7.52.1-5+deb9u4]
libcurl3-gnutls/stable 7.52.1-5+deb9u5 armhf [upgradable from: 7.52.1-5+deb9u4]
libicu57/stable 57.1-6+deb9u2 armhf [upgradable from: 57.1-6+deb9u1]
libraspberrypi-bin/stable 1.20180328-1 armhf [upgradable from: 1.20180313-1]
libraspberrypi-dev/stable 1.20180328-1 armhf [upgradable from: 1.20180313-1]
libraspberrypi-doc/stable 1.20180328-1 armhf [upgradable from: 1.20180313-1]
libraspberrypi0/stable 1.20180328-1 armhf [upgradable from: 1.20180313-1]
libssl1.0.2/stable 1.0.2l-2+deb9u3 armhf [upgradable from: 1.0.2l-2+deb9u2]
libssl1.1/stable 1.1.0f-3+deb9u2 armhf [upgradable from: 1.1.0f-3+deb9u1]
libwbclient0/stable 2:4.5.12+dfsg-2+deb9u2 armhf [upgradable from: 2:4.5.12+dfsg-2+deb9u1]
linux-libc-dev/stable 4.9.82-1+deb9u3+rpi1 armhf [upgradable from: 4.9.51-1+rpi3]
openssl/stable 1.1.0f-3+deb9u2 armhf [upgradable from: 1.1.0f-3+deb9u1]
raspberrypi-bootloader/stable 1.20180328-1 armhf [upgradable from: 1.20180313-1]
raspberrypi-kernel/stable 1.20180328-1 armhf [upgradable from: 1.20180313-1]
raspberrypi-sys-mods/stable 20180328+1 armhf [upgradable from: 20180312]
raspi-config/stable 20180406+1 all [upgradable from: 20180228]
samba-common/stable 2:4.5.12+dfsg-2+deb9u2 all [upgradable from: 2:4.5.12+dfsg-2+deb9u1]

ok

2018-04-07: set up some handy aliases

tingo@raspberrypi:~ $ cat ~/.bash_aliases
# aliases for bash
alias l='ls -aF'
alias ll='ls -alF'
alias tvlm='tail /var/log/messages'
alias tvls='tail /var/log/syslog'
alias ssg='ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null '

ok

2018-04-07: Raspbian info

tingo@raspberrypi:~ $ lsb_release -a
No LSB modules are available.
Distributor ID:    Raspbian
Description:    Raspbian GNU/Linux 9.3 (stretch)
Release:    9.3
Codename:    stretch
tingo@raspberrypi:~ $ uname -a
Linux raspberrypi 4.9.80-v7+ #1098 SMP Fri Mar 9 19:11:42 GMT 2018 armv7l GNU/Linux

disk layout

tingo@raspberrypi:~ $ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        15G  972M   13G   7% /
devtmpfs        460M     0  460M   0% /dev
tmpfs           464M     0  464M   0% /dev/shm
tmpfs           464M   12M  452M   3% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           464M     0  464M   0% /sys/fs/cgroup
/dev/mmcblk0p1   42M   21M   21M  51% /boot
tmpfs            93M     0   93M   0% /run/user/1000
tmpfs            93M     0   93M   0% /run/user/1001

ok.

2018-04-07: Installed Raspbian on a 16GB microSD card.