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 210 Debugging the RS485/Raspi [Scratchbook]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
sfera [2016/11/24 10:27]
claude
sfera [2016/11/24 14:20] (current)
claude
Line 2: Line 2:
  
 {{::​img_20161124_100617.jpg?​nolink&​800|}} {{::​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|}} {{:​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|}} {{::​logic-analyzer.png?​direct&​1200|}}
 +
 +...and can be decoded.
 +
 +===== However, =====
 +
 +When I connect to it, it shows no data.
 +
 +<​code>​screen /​dev/​ttyAMA0 19200</​code>​
 +
 +//(baud rate taken from the data sheet)//
 +
 +Bluetooth is disabled:
 +
 +<​code>​
 +$ cat /​etc/​modprobe.d/​raspi-blacklist.conf
 +blacklist btbcm
 +blacklist hci_uart
 +</​code>​
 +
 +Raspberry Pi, model 3 B
 +
 +<​code>​
 +uname -a
 +Linux raspberrypi 4.4.9-v7+ #884 SMP Fri May 6 17:28:59 BST 2016 armv7l GNU/Linux
 +</​code>​
 +
 +Weather station is the basic Elsner P03 without modbus.
 +
 +===== Update 24. Nov 16, 14:15 =====
 +
 +> Can you please add this to /​boot/​config.txt
 +> <​code>​dtoverlay=pi3-disable-bt</​code>​
 +> Also, from the command line:
 +> <​code>​sudo systemctl disable hciuart</​code>​
 +> then reboot and try again?
 +
 +Didn't work. Yet.
 +
 +But I stumbled upon this:
 +
 +<​code>​
 +$ cat /​boot/​config.txt
 +enable_uart=0
 +</​code>​
 +
 +Setting this to enable_uart=1 did the trick.
 +
 +{{::​p03-rs485.gif?​nolink|}}
 +
 +WOOHOO! \o/
sfera.1479979636.txt ยท Last modified: 2016/11/24 10:27 by claude
Back to top
GNU Free Documentation License 1.3
chimeric.de = chi`s home Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0