Difference between revisions of "Raspberry Pi"

m
 
(11 intermediate revisions by 4 users not shown)
Line 8: Line 8:
 
There are several ways to start using your AlarmDecoder with the Raspberry Pi.  While you can use all of the AlarmDecoder products with the Raspberry Pi, the AD2PI was specifically designed to interface with it directly.  If you're attempting to connect an AD2USB or an AD2SERIAL please follow the standard Linux instructions [[Getting_Started|here]].
 
There are several ways to start using your AlarmDecoder with the Raspberry Pi.  While you can use all of the AlarmDecoder products with the Raspberry Pi, the AD2PI was specifically designed to interface with it directly.  If you're attempting to connect an AD2USB or an AD2SERIAL please follow the standard Linux instructions [[Getting_Started|here]].
  
There are a couple of steps involved with getting your AD2PI and Raspberry Pi talking to each other.  We've done all the initial footwork and highly recommend downloading the modified Raspbian image below and flashing it as described [http://www.elinux.org/Rpi_easy_sd_card_setup here].  If you intend to go with another distribution, or just want to do it yourself, then follow the instructions [[#Manual Configuration|here]] to start using your device.
+
There are a couple of steps involved with getting your AD2PI and Raspberry Pi talking to each other.  We've done all the initial footwork and highly recommend downloading the modified Raspbian image below and flashing it to a 8g uSD disk or larger using a simple too such as [https://www.balena.io/etcher/ Etcher] or [https://rufus.ie/ Rufus] or following the instructions as described [http://www.elinux.org/Rpi_easy_sd_card_setup here].  If you intend to go with another distribution, or just want to do it yourself, then follow the instructions [[#Manual Configuration|here]] to start using your device.
  
 
[[File:pibplus.png|thumb|AD2PI Bundle]]
 
[[File:pibplus.png|thumb|AD2PI Bundle]]
Line 16: Line 16:
 
===Changes from Raspbian===
 
===Changes from Raspbian===
 
* Disabled serial console so that the device can use it.
 
* Disabled serial console so that the device can use it.
* Installed [http://github.com/nutechsoftware/ser2sock ser2sock] to expose the AlarmDecoder on your network.
+
* Installed [https://github.com/nutechsoftware/ser2sock ser2sock] to expose the AlarmDecoder on your network.
* Installed the [http://github.com/nutechsoftware/alarmdecoder AlarmDecoder Python library].
+
* Installed the [https://github.com/nutechsoftware/alarmdecoder AlarmDecoder Python library].
* Installed and configured the [http://github.com/nutechsoftware/alarmdecoder-webapp AlarmDecoder Webapp] [[AlarmDecoder_WebApp|Instructions]].
+
* Installed and configured the [https://github.com/nutechsoftware/alarmdecoder-webapp AlarmDecoder Webapp] [[AlarmDecoder_WebApp|Instructions]].
 
+
* And much much more. See the PiBakery recipe for more details.
 
===Download===
 
===Download===
 
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
Line 27: Line 27:
 
! scope="col" width="220px" | MD5
 
! scope="col" width="220px" | MD5
 
! scope="col" width="250px" | Includes
 
! scope="col" width="250px" | Includes
 +
|-
 +
| align="center" style="background-color: #70BA66;" | Testing
 +
| align="center" | [https://www.alarmdecoder.com/downloads/pi/PIBAKERY-AD2PIBOOT-RASPBIAN-10-BUSTER-20190710C.ZIP Download]
 +
| align="center" | Raspbian Buster 10 PiBakery build <hr>(Latest build 08/15/2019)
 +
| align="center" | zip: e87cd27f18a5c07c1e2b75400a08c030 img: 5f3eb62b3862575f2604e41c9808672f
 +
| align="left" | 2019-07-20 updated AlarmDecoder 1.13.8, AlarmDecoder-webapp 0.8.6, Added packages, Built using a [https://github.com/nutechsoftware/alarmdecoder-webapp/tree/master/contrib/PiBakery/ PiBakery recipe] See the AlarmDecoder [[PiBakery|PiBakery wiki page]].  Update boot partition for newer Pi4 hardware. Disable BT to allow AD2pHat to use hardware serial on GPIO.
 
|-
 
|-
 
| align="center" style="background-color: #70BA66;" | Stable
 
| align="center" style="background-color: #70BA66;" | Stable
| align="center" | [http://www.alarmdecoder.com/downloads/pi/alarmdecoder-raspbian-2016-04-29.zip Download]
+
| align="center" | [https://www.alarmdecoder.com/downloads/pi/PIBAKERY-AD2PIBOOT-RASPBIAN-10-BUSTER-20190710B.ZIP Download]
| align="center" | 2016-04-29
+
| align="center" | Raspbian Buster 10 PiBakery build <hr>(Latest build 08/15/2019)
| align="center" | ce5a33fe64535b8ecf526e6e5c9bf356
+
| align="center" | zip: e87cd27f18a5c07c1e2b75400a08c030 img: 5f3eb62b3862575f2604e41c9808672f
| align="left" | Pre-configured with webapp. Supports the Raspberry Pi Model B, B+ and B2, and B3. Wifi and Bluetooth are both functional on the Pi 3.
+
| align="left" | 2019-07-20 updated AlarmDecoder 1.13.8, AlarmDecoder-webapp 0.8.6, Added packages, Built using a [https://github.com/nutechsoftware/alarmdecoder-webapp/tree/master/contrib/PiBakery/ PiBakery recipe] See the AlarmDecoder [[PiBakery|PiBakery wiki page]].
|
+
 
|-
 
|-
| align="center" style="background-color: #F56464;" | Beta
+
| align="center" style="background-color: #d4ac0d;" | Issues
| align="center" | [http://www.alarmdecoder.com/downloads/pi/alarmdecoder-raspbian-2018-04-16.zip Download]
+
| align="center" | [https://www.alarmdecoder.com/downloads/pi/PIBAKERY-AD2PIBOOT-RASPBIAN-10-BUSTER-20190710.ZIP Download]
| align="center" | 2018-04-16
+
| align="center" | Raspbian Buster 10 PiBakery build  <hr>(Missing packages)
| align="center" | 5e77537a586263566477ff56dc051e5c
+
| align="center" | zip: e1190b702baf443ee73e6afb982e4fa7 img: 78e06d89dd41a13a288005dc000bee6c
| align="left" | 2018-04-15 updated to support Pi 3B+ Kernel 4.14.34 with updated dtb and bin files (update from https://github.com/raspberrypi/firmware/) AlarmDecoder 1.13.3, AlarmDecoder-webapp 0.8.1 (needs testing)
+
| align="left" | 2019-07-20 updated AlarmDecoder 1.13.7, AlarmDecoder-webapp 0.8.4, Built using a [https://github.com/nutechsoftware/alarmdecoder-webapp/tree/master/contrib/PiBakery/ PiBakery recipe] See the AlarmDecoder [[PiBakery|PiBakery wiki page]].
 +
|-
 +
| align="center" style="background-color: #70BA66;" | Stable
 +
| align="center" | [https://www.alarmdecoder.com/downloads/pi/PIBAKERY-AD2PIBOOT-RASPBIAN-9-STRETCH-20181015.ZIP Download]
 +
| align="center" | Raspbian Stretch 9.0 PiBakery build
 +
| align="center" | zip: cc7e267d2f3bd377a239b3ebc996f491 img: 275635f7ca7ad70e951bea1f68593c86
 +
| align="left" | 2018-10-14 updated AlarmDecoder 1.13.4, AlarmDecoder-webapp 0.8.2, Built using a [https://github.com/nutechsoftware/alarmdecoder-webapp/tree/master/contrib/PiBakery/ PiBakery recipe] See the AlarmDecoder [[PiBakery|PiBakery wiki page]].
 +
|-
 +
| align="center" style="background-color: #70BA66;" | Stable
 +
| align="center" | [https://www.alarmdecoder.com/downloads/pi/alarmdecoder-raspbian-2018-05-29.zip Download]
 +
| align="center" | Raspbian Jessie 8.0
 +
| align="center" | zip: 3a001426b1a3a2793bea589cfc93be39 img: c5e50da07e5d084ad76abd591ab605f2
 +
| align="left" | 2018-05-29 updated AlarmDecoder 1.13.4, AlarmDecoder-webapp 0.8.2, Supports the Raspberry Pi Model B, B+ and B2, and B3.  Wifi and Bluetooth are both functional on the Pi 3
 
|}
 
|}
  
 
==Manual Configuration==
 
==Manual Configuration==
 
# Flash the SD card with your choice of OS as described [http://www.elinux.org/Rpi_easy_sd_card_setup here].
 
# Flash the SD card with your choice of OS as described [http://www.elinux.org/Rpi_easy_sd_card_setup here].
 +
#* Flashing tools quick pick
 +
#** Etcher https://www.balena.io/etcher/
 +
#** Rufus https://rufus.ie/
 
# Boot up the Raspberry Pi.
 
# Boot up the Raspberry Pi.
 
# Remove the following entries from <tt>/boot/cmdline.txt</tt>:
 
# Remove the following entries from <tt>/boot/cmdline.txt</tt>:
Line 54: Line 74:
 
# Boot it up again.
 
# Boot it up again.
 
#* At this point you should be able to communicate with the device at <tt>/dev/ttyAMA0</tt>.
 
#* At this point you should be able to communicate with the device at <tt>/dev/ttyAMA0</tt>.
# Install any optional software ([http://github.com/nutechsoftware/ser2sock ser2sock], [http://github.com/nutechsoftware/alarmdecoder Python library], etc.)
+
# Install any optional software ([https://github.com/nutechsoftware/ser2sock ser2sock], [https://github.com/nutechsoftware/alarmdecoder Python library], etc.)
 
#* Add dev package needed for compiling ser2sock
 
#* Add dev package needed for compiling ser2sock
 
#** sudo apt-get install openssl-dev
 
#** sudo apt-get install openssl-dev

Latest revision as of 16:29, 25 February 2022

AD2PI

There are several ways to start using your AlarmDecoder with the Raspberry Pi. While you can use all of the AlarmDecoder products with the Raspberry Pi, the AD2PI was specifically designed to interface with it directly. If you're attempting to connect an AD2USB or an AD2SERIAL please follow the standard Linux instructions here.

There are a couple of steps involved with getting your AD2PI and Raspberry Pi talking to each other. We've done all the initial footwork and highly recommend downloading the modified Raspbian image below and flashing it to a 8g uSD disk or larger using a simple too such as Etcher or Rufus or following the instructions as described here. If you intend to go with another distribution, or just want to do it yourself, then follow the instructions here to start using your device.

AD2PI Bundle
API

Official Raspbian Image

Changes from Raspbian

Download

Status Link Version MD5 Includes
Testing Download Raspbian Buster 10 PiBakery build
(Latest build 08/15/2019)
zip: e87cd27f18a5c07c1e2b75400a08c030 img: 5f3eb62b3862575f2604e41c9808672f 2019-07-20 updated AlarmDecoder 1.13.8, AlarmDecoder-webapp 0.8.6, Added packages, Built using a PiBakery recipe See the AlarmDecoder PiBakery wiki page. Update boot partition for newer Pi4 hardware. Disable BT to allow AD2pHat to use hardware serial on GPIO.
Stable Download Raspbian Buster 10 PiBakery build
(Latest build 08/15/2019)
zip: e87cd27f18a5c07c1e2b75400a08c030 img: 5f3eb62b3862575f2604e41c9808672f 2019-07-20 updated AlarmDecoder 1.13.8, AlarmDecoder-webapp 0.8.6, Added packages, Built using a PiBakery recipe See the AlarmDecoder PiBakery wiki page.
Issues Download Raspbian Buster 10 PiBakery build
(Missing packages)
zip: e1190b702baf443ee73e6afb982e4fa7 img: 78e06d89dd41a13a288005dc000bee6c 2019-07-20 updated AlarmDecoder 1.13.7, AlarmDecoder-webapp 0.8.4, Built using a PiBakery recipe See the AlarmDecoder PiBakery wiki page.
Stable Download Raspbian Stretch 9.0 PiBakery build zip: cc7e267d2f3bd377a239b3ebc996f491 img: 275635f7ca7ad70e951bea1f68593c86 2018-10-14 updated AlarmDecoder 1.13.4, AlarmDecoder-webapp 0.8.2, Built using a PiBakery recipe See the AlarmDecoder PiBakery wiki page.
Stable Download Raspbian Jessie 8.0 zip: 3a001426b1a3a2793bea589cfc93be39 img: c5e50da07e5d084ad76abd591ab605f2 2018-05-29 updated AlarmDecoder 1.13.4, AlarmDecoder-webapp 0.8.2, Supports the Raspberry Pi Model B, B+ and B2, and B3. Wifi and Bluetooth are both functional on the Pi 3

Manual Configuration

  1. Flash the SD card with your choice of OS as described here.
  2. Boot up the Raspberry Pi.
  3. Remove the following entries from /boot/cmdline.txt:
    • console=ttyAMA0,115200
    • kgdboc=ttyAMA0,115200
  4. Remove the following line from /etc/inittab:
    • T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100
  5. Sync and halt your Raspberry Pi.
  6. Attach the AD2PI.
  7. Boot it up again.
    • At this point you should be able to communicate with the device at /dev/ttyAMA0.
  8. Install any optional software (ser2sock, Python library, etc.)

Default Passwords

Passwords should be changed once you get your device!

SSH/Shell

Login
pi
Password
raspberry

AlarmDecoder WebApp

Login
admin
Password
alarmdecoder

AD2PI case assembly

File:Case assembly doc.pdf