Warning: Declaration of action_plugin_indexmenu::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register(Doku_Event_Handler $controller) in /home/httpd/vhosts/scratchbook.ch/wiki.scratchbook.ch/lib/plugins/indexmenu/action.php on line 18
Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/scratchbook.ch/wiki.scratchbook.ch/lib/plugins/indexmenu/action.php:0) in /home/httpd/vhosts/scratchbook.ch/wiki.scratchbook.ch/inc/auth.php on line 495
Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/scratchbook.ch/wiki.scratchbook.ch/lib/plugins/indexmenu/action.php:0) in /home/httpd/vhosts/scratchbook.ch/wiki.scratchbook.ch/inc/actions.php on line 687
Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/scratchbook.ch/wiki.scratchbook.ch/lib/plugins/indexmenu/action.php:0) in /home/httpd/vhosts/scratchbook.ch/wiki.scratchbook.ch/inc/actions.php on line 687
Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/scratchbook.ch/wiki.scratchbook.ch/lib/plugins/indexmenu/action.php:0) in /home/httpd/vhosts/scratchbook.ch/wiki.scratchbook.ch/inc/actions.php on line 687
====== Debugging the RS485/Raspi ======
{{::img_20161124_100617.jpg?nolink&800|}}
* LED is glowing, "flashing" (getting dark shortly) every second, as the weather station sends data every second
{{:img_20161124_100600.jpg?nolink&800|}}
* We've connected the logic analyzer after the sferalabs board. Data comes in, all fine.
{{::logic-analyzer.png?direct&1200|}}
...and can be decoded.
===== However, =====
When I connect to it, it shows no data.
screen /dev/ttyAMA0 19200
//(baud rate taken from the data sheet)//
Bluetooth is disabled:
$ cat /etc/modprobe.d/raspi-blacklist.conf
blacklist btbcm
blacklist hci_uart
Raspberry Pi, model 3 B
uname -a
Linux raspberrypi 4.4.9-v7+ #884 SMP Fri May 6 17:28:59 BST 2016 armv7l GNU/Linux
Weather station is the basic Elsner P03 without modbus.
===== Update 24. Nov 16, 14:15 =====
> Can you please add this to /boot/config.txt
> dtoverlay=pi3-disable-bt
> Also, from the command line:
> sudo systemctl disable hciuart
> then reboot and try again?
Didn't work. Yet.
But I stumbled upon this:
$ cat /boot/config.txt
enable_uart=0
Setting this to enable_uart=1 did the trick.
{{::p03-rs485.gif?nolink|}}
WOOHOO! \o/