<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[reading garbage from serial port PiTInfo]]></title><description><![CDATA[<p dir="auto">I'm trying to get a PiTInfo v1.0 to work on a freshly installed Jessie on my Raspberry PI, but for reasons that escape me, I can only read garbage.</p>
<p dir="auto">As far as I can tell, the console on serial port is disabled:</p>
<pre><code>cat /boot/cmdline.txt 
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
</code></pre>
<p dir="auto">I've got a link to ttyS0</p>
<pre><code>sudo ln -s /dev/ttyAMA0 /dev/ttyS0
</code></pre>
<p dir="auto">I've set the serial port:</p>
<pre><code>stty 1200 cs7 evenp cstopb -igncr -inlcr -brkint -icrnl -opost -isig -icanon -iexten -F /dev/ttyAMA0
</code></pre>
<p dir="auto">and yet what I read is not what I'm expecting:</p>
<pre><code>cat /dev/ttyAMA0
BPT@3L623@1|
G]JF8Ic 
@*.5 |
8j@6M&amp;S
8
0LS c
.@*|
@rjE@1Va
@` @c
@0Ka
^C
</code></pre>
<p dir="auto">Any pointers or help would be greatly appreciated.</p>
]]></description><link>https://community.ch2i.eu/topic/82/reading-garbage-from-serial-port-pitinfo</link><generator>RSS for Node</generator><lastBuildDate>Mon, 18 May 2026 00:53:22 GMT</lastBuildDate><atom:link href="https://community.ch2i.eu/topic/82.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 19 Nov 2015 23:24:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to reading garbage from serial port PiTInfo on Mon, 30 Nov 2015 00:07:24 GMT]]></title><description><![CDATA[<p dir="auto">Good it works, but the 1st time I see two linux programs that need different config to work on the same serial port !!!<br />
would be interesting to know what node red want <img src="https://community.ch2i.eu/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=4874f384ba0" class="not-responsive emoji emoji-android emoji--wink" style="height:23px;width:auto;vertical-align:middle" title=";-)" alt="😉" /></p>
]]></description><link>https://community.ch2i.eu/post/400</link><guid isPermaLink="true">https://community.ch2i.eu/post/400</guid><dc:creator><![CDATA[Charles]]></dc:creator><pubDate>Mon, 30 Nov 2015 00:07:24 GMT</pubDate></item><item><title><![CDATA[Reply to reading garbage from serial port PiTInfo on Fri, 27 Nov 2015 21:08:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/charles" aria-label="Profile: Charles">@<bdi>Charles</bdi></a> It works! Why, I don't know. stty wants odd parity, picocom no parity. This is beyond me for now.</p>
<pre><code>pi@raspberrypi ~ $ stty --file /dev/ttyAMA0 1200 cs7 ixon -parenb
pi@raspberrypi ~ $ cat /dev/ttyAMA0 
5
ADCO 012345678901 L
OPTARIF HC.. &lt;
ISOUSC 30 9
HCHC 002698197 0
HCHP 010687090 2
PTEC HP..  
IINST 003 Z
IMAX 038 J
PAPP 00680 /
HHPHC A ,
MOTDETAT 000000 B
</code></pre>
<p dir="auto">or with picocom:</p>
<pre><code>pi@raspberrypi ~ $ picocom --baud 1200 --flow x --parity n --databits 7 /dev/ttyAMA0
picocom v1.7

port is        : /dev/ttyAMA0
flowcontrol    : xon/xoff
baudrate is    : 1200
parity is      : none
databits are   : 7
escape is      : C-a
local echo is  : no
noinit is      : no
noreset is     : no
nolock is      : no
send_cmd is    : sz -vv
receive_cmd is : rz -vv
imap is        : 
omap is        : 
emap is        : crcrlf,delbs,

Terminal ready
&amp;4Nc
    HCHC 002698197 0
HCHP 010687195 8
PTEC HP..  
IINST 012 Z
IMAX 038 J
PAPP 02840 /
HHPHC A ,
MOTDETAT 000000 
Thanks for using picocom
</code></pre>
]]></description><link>https://community.ch2i.eu/post/395</link><guid isPermaLink="true">https://community.ch2i.eu/post/395</guid><dc:creator><![CDATA[JohnDoe]]></dc:creator><pubDate>Fri, 27 Nov 2015 21:08:40 GMT</pubDate></item><item><title><![CDATA[Reply to reading garbage from serial port PiTInfo on Fri, 27 Nov 2015 20:07:41 GMT]]></title><description><![CDATA[<p dir="auto">playing with code pages yields nothing - still only garbage - don't know where to look anymore</p>
]]></description><link>https://community.ch2i.eu/post/394</link><guid isPermaLink="true">https://community.ch2i.eu/post/394</guid><dc:creator><![CDATA[JohnDoe]]></dc:creator><pubDate>Fri, 27 Nov 2015 20:07:41 GMT</pubDate></item><item><title><![CDATA[Reply to reading garbage from serial port PiTInfo on Fri, 27 Nov 2015 17:01:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/charles" aria-label="Profile: Charles">@<bdi>Charles</bdi></a> Sorry for the delay. I had a faulty SD card and couldn't figure out why making my bootable Wheezy SD card kept failing. Booted to Wheezy, adjusted the /boot/cmdline.txt file, /etc/inittab, and rebooted, but the cat command still yields the same results.</p>
<p dir="auto">Here's the output of picocom:</p>
<pre><code>picocom -b 1200 -d 7 -p e -f n /dev/ttyAMA0

 $8
 c 0[
 `08
    er 
       `rjE@8@a
               @S@ @c
"       @0|          P*
           $Rj
              ,
               &amp;GT u @ cPT@3L623@1|
                                   gP0FPP8Ic 
                                             d*.5 H |
j                                                    $8j@6n$
  8
1F 0[
  (p08
      er 
         drjE@8@a
                 @S@ @c
"       @0jq           P*

 c!
   &amp;GT q @ cPT@3L623@1|
                       G]JF8Ic!
                               d*.5 H |
j                                      $8j@6L$'
 $8
   0[   @ c
           (t08
               er 
                  @rjE@8P@a
                           @` ec
"       @0ja                     P*
</code></pre>
<p dir="auto">Now I'm testing if it's a locale/codepage issue. What local are you using in your configurations?</p>
]]></description><link>https://community.ch2i.eu/post/393</link><guid isPermaLink="true">https://community.ch2i.eu/post/393</guid><dc:creator><![CDATA[JohnDoe]]></dc:creator><pubDate>Fri, 27 Nov 2015 17:01:55 GMT</pubDate></item><item><title><![CDATA[Reply to reading garbage from serial port PiTInfo on Wed, 25 Nov 2015 22:15:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/johndoe" aria-label="Profile: JohnDoe">@<bdi>JohnDoe</bdi></a><br />
I don't rely too much on cat command<br />
would you mind try a <code>picocom -b 1200 -d 7 -p e -f n /dev/ttyAMA0</code> instead ?</p>
]]></description><link>https://community.ch2i.eu/post/357</link><guid isPermaLink="true">https://community.ch2i.eu/post/357</guid><dc:creator><![CDATA[Charles]]></dc:creator><pubDate>Wed, 25 Nov 2015 22:15:43 GMT</pubDate></item><item><title><![CDATA[Reply to reading garbage from serial port PiTInfo on Wed, 25 Nov 2015 22:13:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/charles" aria-label="Profile: Charles">@<bdi>Charles</bdi></a> New PiTInfo arrived, thanks! Installed and still the same thing happening. I also changed the cable from the PiTInfo to the meter. Output is still:</p>
<pre><code>pi@raspberry ~ $ cat /dev/ttyAMA0 

GT` @ cPT@3Yn623@1|
gP0FP8Ic 
@*.5 L |
$8j@6N
$8
0H[	
        1F
`08
er 
`rjE@1PVa
@` ec
D0Ba
$@ 
</code></pre>
<p dir="auto">Next things to try: a different Raspberry, perhaps an A or B+ (I've been using a Raspberry Pi 1 Model A+) then also revert back to Wheezy OS.</p>
]]></description><link>https://community.ch2i.eu/post/356</link><guid isPermaLink="true">https://community.ch2i.eu/post/356</guid><dc:creator><![CDATA[JohnDoe]]></dc:creator><pubDate>Wed, 25 Nov 2015 22:13:04 GMT</pubDate></item><item><title><![CDATA[Reply to reading garbage from serial port PiTInfo on Mon, 23 Nov 2015 10:18:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/johndoe" aria-label="Profile: JohnDoe">@<bdi>JohnDoe</bdi></a><br />
Excellent, we'll know if the changes made on 1.2 version solve your problem if it's coming from the output of your device (it should),</p>
<p dir="auto">Just let us know, because I don't have a such device, everything always worked first time on my both counters here.</p>
]]></description><link>https://community.ch2i.eu/post/332</link><guid isPermaLink="true">https://community.ch2i.eu/post/332</guid><dc:creator><![CDATA[Charles]]></dc:creator><pubDate>Mon, 23 Nov 2015 10:18:13 GMT</pubDate></item><item><title><![CDATA[Reply to reading garbage from serial port PiTInfo on Fri, 20 Nov 2015 22:00:31 GMT]]></title><description><![CDATA[<p dir="auto">Wonderful. I really am impressed with how much effort you help people trying to follow your foot steps.</p>
<p dir="auto">Some answers:</p>
<ul>
<li>I'll check the cable length; I don't like the cable I'm using now or how much slack there is; but I didn't think this might be an issue;</li>
<li>there are no other devices - the PiTInfo connected is the only thing on the GPIO, and is directly connected to the EDF meter. There is nothing else;</li>
<li>I bought the PiTInfo fully assembled;</li>
</ul>
<p dir="auto">Note that to check I just ordered a fully assembled PiTInfo v1.2 via Tindie from you - so we will see if this is a cable issue, a PiTInfo/hardware issue, or something else.</p>
<p dir="auto">Updates to follow.</p>
]]></description><link>https://community.ch2i.eu/post/330</link><guid isPermaLink="true">https://community.ch2i.eu/post/330</guid><dc:creator><![CDATA[JohnDoe]]></dc:creator><pubDate>Fri, 20 Nov 2015 22:00:31 GMT</pubDate></item><item><title><![CDATA[Reply to reading garbage from serial port PiTInfo on Fri, 20 Nov 2015 16:17:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/johndoe" aria-label="Profile: JohnDoe">@<bdi>JohnDoe</bdi></a><br />
Thing to check in order are :</p>
<ul>
<li>cable wiring and lenght</li>
<li>remove any other devices already connected on téléinfo terminal block of ErdF counter</li>
<li>did you solder the GPIO connector on the PITinfo board ?</li>
</ul>
<p dir="auto">then if it still doesn't work</p>
<ul>
<li>Change the 3.3K R1 resistor by a 1.2K<br />
<img src="/uploads/files/1448036251908-upload-55dfef86-3945-426f-b552-fd206a31ce7a" alt="0_1448036267638_upload-55dfef86-3945-426f-b552-fd206a31ce7a" class=" img-fluid img-markdown" /></li>
</ul>
<p dir="auto">then if it still doesn't work</p>
<ul>
<li>remove the 1.2K and do a shunt.</li>
</ul>
<p dir="auto">Let me know these results, the last one should always works <img src="https://community.ch2i.eu/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=4874f384ba0" class="not-responsive emoji emoji-android emoji--wink" style="height:23px;width:auto;vertical-align:middle" title=";-)" alt="😉" /></p>
]]></description><link>https://community.ch2i.eu/post/329</link><guid isPermaLink="true">https://community.ch2i.eu/post/329</guid><dc:creator><![CDATA[Charles]]></dc:creator><pubDate>Fri, 20 Nov 2015 16:17:44 GMT</pubDate></item></channel></rss>