|
|
(32 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
|
| |
|
|
| |
|
| This howto will cover the steps to setup a Rasperrypi for reading CSV stream from RPICT series board. | | This page has been renamed. |
|
| |
|
| =Hardware and OS=
| | See [[Howto_setup_Raspbian_for_serial_read]] |
| This has been tested using Raspberrypi 3 Model B
| |
| | |
| Used OS: Raspbian Jessie 2017-01-11-raspbian-jessie.img
| |
| | |
| I the image from Emoncms is used then this setup is not needed.
| |
| | |
| =Steps=
| |
| | |
| ==-1-==
| |
| | |
| Download the image from the raspberrypi website.
| |
| https://www.raspberrypi.org/downloads/raspbian/
| |
| | |
| ==-2-==
| |
| | |
| Write the image to the SD card. Follow instructions given by the raspberrypi website.
| |
| | |
| https://www.raspberrypi.org/documentation/installation/installing-images/
| |
| | |
| ==-3-==
| |
| | |
| Once the image written create an empty file called 'ssh' in the boot section of the image.
| |
| | |
| ==-4-==
| |
| | |
| Power up the raspberrypi and connect it to the network. Access the raspberrypi with the ssh command (or whatever tool your OS has). We naturally assume you are using Linux based OS below.
| |
| $ ssh pi@raspberrypi
| |
| | |
| Use password raspberry
| |
| | |
| ==-5-==
| |
| Run the raspi-config tool
| |
| $ sudo raspi-config
| |
| In the menu expand the Filesystem (optional).
| |
| 1 Expand Filesystem
| |
| | |
| Then disable the login uart
| |
| 7 Advanced Options
| |
| then go to
| |
| A8 Serial
| |
| Select '''No''' to the login shell question
| |
| | |
| ==-6-==
| |
| Update the Raspbian OS.
| |
| $ sudo apt-get update
| |
| $ sudo apt-get upgrade
| |
| | |
| ==-7-==
| |
| Edit the /boot/config.txt file
| |
| $ sudo nano /boot/config.txt
| |
| Change the line
| |
| enable_uart=0
| |
| into
| |
| enable_uart=1
| |
| | |
| At the end of the file add the following line:
| |
| dtoverlay=pi3-disable-bt
| |
| (note the above will disable bluetooth - refer to other documentations if this is not desirable).
| |
| | |
| Save and Exit file.
| |
| | |
| ==-8-==
| |
| Disable hciuart
| |
| $ sudo systemctl disable hciuart
| |
| | |
| ==-9-==
| |
| Reboot
| |
| $ sudo reboot
| |
| return to the ssh session again once the raspberrypi up and running again.
| |
| | |
| ==-10-==
| |
| Insert the RPICT board on the RPI. Configure and read from serial port
| |
| $ stty -F /dev/ttyAMA0 raw speed 38400
| |
| $ cat /dev/ttyAMA0
| |
| or
| |
| $ stty -F /dev/ttyS0 raw speed 38400
| |
| $ cat /dev/ttyS0
| |