[vz-users] New user, can't even get the basics working....
fiets fietsenwiel
fietsenwiel at gmail.com
Wed Sep 21 12:13:48 CEST 2016
Ok, I found another command:
watch -n 0.2 gpio readall which results in (maybe a bit hard to read):
+-----+-----+---------+------+---+--B
Plus--+---+------+---------+-----+-----+
| BCM | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi |
BCM |
+-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
| | | 3.3v | | | 1 || 2 | | | 5v | |
|
| 2 | 8 | SDA.1 | ALT0 | 1 | 3 || 4 | | | 5V | |
|
| 3 | 9 | SCL.1 | ALT0 | 1 | 5 || 6 | | | 0v | |
|
| 4 | 7 | GPIO. 7 | IN | 1 | 7 || 8 | 1 | ALT0 | TxD | 15 |
14 |
| | | 0v | | | 9 || 10 | 1 | ALT0 | RxD | 16 |
15 |
| 17 | 0 | GPIO. 0 | IN | 0 | 11 || 12 | 0 | IN | GPIO. 1 | 1 |
18 |
| 27 | 2 | GPIO. 2 | IN | 0 | 13 || 14 | | | 0v | |
|
| 22 | 3 | GPIO. 3 | IN | 0 | 15 || 16 | 0 | IN | GPIO. 4 | 4 |
23 |
| | | 3.3v | | | 17 || 18 | 1 | IN | GPIO. 5 | 5 |
24 |
| 10 | 12 | MOSI | IN | 0 | 19 || 20 | | | 0v | |
|
| 9 | 13 | MISO | IN | 0 | 21 || 22 | 1 | IN | GPIO. 6 | 6 |
25 |
| 11 | 14 | SCLK | IN | 0 | 23 || 24 | 1 | IN | CE0 | 10 | 8
|
| | | 0v | | | 25 || 26 | 1 | IN | CE1 | 11 | 7
|
| 0 | 30 | SDA.0 | IN | 1 | 27 || 28 | 1 | IN | SCL.0 | 31 | 1
|
| 5 | 21 | GPIO.21 | IN | 1 | 29 || 30 | | | 0v | |
|
| 6 | 22 | GPIO.22 | IN | 1 | 31 || 32 | 0 | IN | GPIO.26 | 26 |
12 |
| 13 | 23 | GPIO.23 | IN | 0 | 33 || 34 | | | 0v | |
|
| 19 | 24 | GPIO.24 | IN | 0 | 35 || 36 | 1 | OUT | GPIO.27 | 27 |
16 |
| 26 | 25 | GPIO.25 | IN | 0 | 37 || 38 | 0 | IN | GPIO.28 | 28 |
20 |
| | | 0v | | | 39 || 40 | 0 | IN | GPIO.29 | 29 |
21 |
+-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
| BCM | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi |
BCM |
+-----+-----+---------+------+---+--B
Plus--+---+------+---------+-----+-----+
There I saw some GPIO's with value 0 and some with value 1.
I tried again the GPIO's with value 1 with command - gpio wfi 22 falling -
with succes!
This turned out to be GPIO 6 (instead of GPIO 22 as the previous command
stated.
So now GPIO 6 works!
Problem is solved but I still don't understand why some GPIO's (like 12,
13, 16, 17, 18, 19, 20, 21, 22, 23, 26 and 27) can't be used since their
value is default 0.
Many thanks!
2016-09-21 11:40 GMT+02:00 fiets fietsenwiel <fietsenwiel at gmail.com>:
> Ok, things getting more clear....,
>
> I tried several gpio's.
> GPIO 4, 24 and 25 works.
> Gpio 17 and GPIO 22 don't.
>
> Now I stopped vzlogger and disconnected the wires on the GPIO's on the
> Raspberry.
>
> I gave the following commands and then I put, with a wire, the
> corresponding GPIO pin to the ground:
>
> For GPIO 4 - command: gpio wfi 7 falling result was positive, so
> this works...
> For GPIO 17 - command: gpio wfi 0 falling result was negative, the
> commands kept waiting for a folling edge
> For GPIO 22 - command: gpio wfi 3 falling result was negative, the
> commands kept waiting for a folling edge
> For GPIO 18 - command: gpio wfi 1 falling result was negative, the
> commands kept waiting for a folling edge
> and so on for all GPIO's
>
> I can't find any other GPIO except 4, 24 and 25 where the result is
> positive.
>
> So the problem is not Volkszaehler, vzlogger was stopped. But maybe it is
> the SD-image because the problem occurs on two different Raspberry pi's?
>
> I'll try with an onther image....
>
> Has anyone have an idea how to solve this?
>
> Thanks in advance...
>
> 2016-09-20 19:25 GMT+02:00 Daniel Lauckner <vz at jahp.de>:
>
>> Hallo,
>>
>>
>> am Dienstag, 20. September 2016 um 08:53 hast du geschrieben:
>> > Still GPIO 17 in the configfile does not work...
>>
>> Last time GPIO 22 didn't work.
>>
>> >> Energie gebruik "uuid":
>> >> "dd995220-7a47-11e6-86ce-6bf65a52ce09", GPIO 4 Works
>> >> Energie opbrengst "uuid":
>> >> "dfc58710-7a47-11e6-9278-45f4e725fa39", GPIO 22 Does not work
>>
>>
>> mfg Daniel
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://demo.volkszaehler.org/pipermail/volkszaehler-users/attachments/20160921/c6ed6fbb/attachment.html>
More information about the volkszaehler-users
mailing list