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 Wrong encoding on the serial port? [Scratchbook]

This is an old revision of the document!


Warning: Declaration of syntax_plugin_indexmenu_tag::handle($match, $state, $pos, &$handler) should be compatible with DokuWiki_Syntax_Plugin::handle($match, $state, $pos, Doku_Handler $handler) in /home/httpd/vhosts/scratchbook.ch/wiki.scratchbook.ch/lib/plugins/indexmenu/syntax/tag.php on line 43 Warning: Declaration of syntax_plugin_indexmenu_tag::render($mode, &$renderer, $data) should be compatible with DokuWiki_Syntax_Plugin::render($format, Doku_Renderer $renderer, $data) in /home/httpd/vhosts/scratchbook.ch/wiki.scratchbook.ch/lib/plugins/indexmenu/syntax/tag.php on line 51 Warning: preg_match(): Compilation failed: invalid range in character class at offset 3135 in /home/httpd/vhosts/scratchbook.ch/wiki.scratchbook.ch/inc/parser/lexer.php on line 118
A PCRE internal error occured. This might be caused by a faulty plugin

====== Wrong encoding on the serial port? ====== What we get with the logic analyzer: <code> Time [s],Value,Parity Error,Framing Error 0.591529000000000,W (0x57),, 0.592088833333333,+ (0x2B),, 0.592720333333333,1 (0x31),, 0.593911750000000,9 (0x39),, 0.594445583333333,. (0x2E),, 0.595435166666667,6 (0x36),, 0.595978750000000,0 (0x30),, 0.596512583333333,0 (0x30),, 0.597056250000000,0 (0x30),, 0.597658416666667,0 (0x30),, 0.598202083333333,0 (0x30),, 0.598735916666667,0 (0x30),, 0.599289250000000,N (0x4E),, 0.599901250000000,3 (0x33),, 0.600483916666667,2 (0x32),, 0.601017750000000,3 (0x33),, 0.601587416666667,0 (0x30),, 0.602147333333333,0 (0x30),, 0.602681166666667,. (0x2E),, 0.603315916666667,1 (0x31),, 0.603869250000000,N (0x4E),, 0.604406416666667,? (0x3F),, 0.604940250000000,? (0x3F),, 0.605474083333333,? (0x3F),, 0.606007916666667,? (0x3F),, 0.606541750000000,? (0x3F),, 0.607075583333333,? (0x3F),, 0.607658333333333,? (0x3F),, 0.608192166666667,? (0x3F),, 0.608726000000000,? (0x3F),, 0.609259833333333,? (0x3F),, 0.609793666666667,? (0x3F),, 0.610327500000000,? (0x3F),, 0.610858083333333,? (0x3F),, 0.611392000000000,? (0x3F),, 0.611984416666667,2 (0x32),, 0.612531250000000,0 (0x30),, 0.613074916666667,0 (0x30),, 0.613608750000000,5 (0x35),, 0.614142583333333,'3' (0x03),, </code> What arrives at /dev/ttyAMA0: <code> <Buffer 00 54 6a 9d 00 63 34 00 ec f6 f6 f6 f6 f6 66 4b a6 96 e6 e6 36 f3 66 2b 2c 2c 4c 58 58 18 60 60 60 60 60 60 60 60 b3 f6 56 96> </code> I'm connecting using the same parameters as the decoder in the logic analyzer; baudrate 19200, databits 8, stopbits 1, parity none. ===== Horizontally represented: ===== <code> 00 54 6a 9d 00 63 34 ... </code> instead of <code> 57 2B 31 39 2E 36 ... </code> 57: W (start bit weather-data)\\ 2B 31 39 2E 36: +19.6° (temperature) It's sent directly as ASCII chars, hex encoded. Unfortunately, something went wrong in /dev/ttyAMA0. {{:sfera:weather-station.png?nolink|}}

sfera/serialport.1480944235.txt · Last modified: 2016/12/05 14:23 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