• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


pizero not supported?
#1
@curlymo Thanks for the prompt shipment. I received the PCB already today!

After I installed the hardware and pilight (via service pilight start, I made no config adjustments yet) and I run pilight-daemon -D I get the following:

Code:
[Apr 29 16:07:18:285588] pilight-daemon: INFO: version v7.0
[Apr 29 16:07:18:287678] pilight-daemon: DEBUG: ssdp sent search
[Apr 29 16:07:18:389523] pilight-daemon: INFO: no pilight daemon found, daemonizing
[Apr 29 16:07:18:391690] pilight-daemon: INFO: daemon listening to port: 35791
[Apr 29 16:07:18:399726] pilight-daemon: ERROR: hardware not supported
[Apr 29 16:07:18:401372] pilight-daemon: DEBUG: garbage collected wiringX library
[Apr 29 16:07:18:404838] pilight-daemon: ERROR: could not initialize 433gpio hardware module

Any hints what could be wrong?

See also pictures:

.jpg   IMG_1627 (3).jpg (Size: 327.48 KB / Downloads: 10)

.jpg   IMG_1626 (3).jpg (Size: 345.79 KB / Downloads: 9)

Thanks,
Abko
 
Reply
#2
First of all, can you use code tags.
Second, post an output of cat /proc/cpuinfo
 
Reply
#3
Thanks for the tag hint ;-) See output of cpuinfo below:

Code:
processor    : 0
model name    : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS    : 997.08
Features    : half thumb fastmult vfp edsp java tls
CPU implementer    : 0x41
CPU architecture: 7
CPU variant    : 0x0
CPU part    : 0xb76
CPU revision    : 7

Hardware    : BCM2835
Revision    : 9000c1
Serial        : 00000000f73f93e1
 
Reply
#4
Could this play a role? I have the Zero W and noticed this remark in version 2.44 of wiringPi. I do have version 2.44 installed.
Quote:Fixed GPIO based address for Pi Zero-W

See https://git.drogon.net/?p=wiringPi;a=summary

This is what I get on gpio-v and gpio readall

Code:
pi@raspberrypi:~ $ gpio -v
gpio version: 2.44
Copyright (c) 2012-2017 Gordon Henderson
This is free software with ABSOLUTELY NO WARRANTY.
For details type: gpio -warranty

Raspberry Pi Details:
  Type: Pi Zero-W, Revision: 01, Memory: 512MB, Maker: Sony
  * Device tree is enabled.
  *--> Raspberry Pi Zero W Rev 1.1
  * This Raspberry Pi supports user-level GPIO access.
pi@raspberrypi:~ $ gpio readall
+-----+-----+---------+------+---+-Pi ZeroW-+---+------+---------+-----+-----+
| 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 | 0 |  7 || 8  | 0 | IN   | TxD     | 15  | 14  |
|     |     |      0v |      |   |  9 || 10 | 1 | IN   | RxD     | 16  | 15  |
|  17 |   0 | GPIO. 0 |   IN | 0 | 11 || 12 | 0 | IN   | GPIO. 1 | 1   | 18  |
|  27 |   2 | GPIO. 2 |   IN | 1 | 13 || 14 |   |      | 0v      |     |     |
|  22 |   3 | GPIO. 3 |   IN | 0 | 15 || 16 | 0 | IN   | GPIO. 4 | 4   | 23  |
|     |     |    3.3v |      |   | 17 || 18 | 0 | IN   | GPIO. 5 | 5   | 24  |
|  10 |  12 |    MOSI | ALT0 | 0 | 19 || 20 |   |      | 0v      |     |     |
|   9 |  13 |    MISO | ALT0 | 0 | 21 || 22 | 0 | IN   | GPIO. 6 | 6   | 25  |
|  11 |  14 |    SCLK | ALT0 | 0 | 23 || 24 | 1 | OUT  | CE0     | 10  | 8   |
|     |     |      0v |      |   | 25 || 26 | 1 | OUT  | 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 | 0 | IN   | 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 |
+-----+-----+---------+------+---+-Pi ZeroW-+---+------+---------+-----+-----+
pi@raspberrypi:~ $
 
Reply
#5
This is due to the kernel version used. This has been discussed before in other threads:

This kernel works fine:
Code:
Linux raspberrypi 4.4.11+ #888 Mon May 23 20:02:58 BST 2016 armv6l GNU/Linux

This doesn't:
Code:
Linux raspberrypi 4.9.24+ #993 Wed Apr 26 17:56:54 BST 2017 armv6l GNU/Linux

In order to run pilight you need to use the development version.
 
Reply
#6
@curlymo

A new development! I installed Raspbian from scratch, since I needed to swap the SD card I used earlier and now it seems to work.

I wonder what I screwed up originally, but so far good news Angel
 
Reply
#7
What does pilight-daemon -V report ?


Gesendet von iPhone mit Tapatalk

And what reports: uname -a


Gesendet von iPhone mit Tapatalk
 
Reply
#8
Code:
pi@raspberrypi:~ $ pilight-daemon -V
pilight-daemon version v7.0
pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.9.24+ #993 Wed Apr 26 17:56:54 BST 2017 armv6l GNU/Linux

Unfortunately after I installed nodejs + homebridge it stopped working again after a reboot. No clue what is causing it to break. Now I am back at the ERROR: hardware not supported message ...
 
Reply
#9
Install the latest pilight dev version after tonight.
 
Reply
#10
Thanks again for your help.

I installed the latest dev version. Now it's running. The webgui is also available. Unfortunately it does not seem to send out the commands when pressing the buttons in the webgui. When I had it working before the webgui worked as well.
I checked pilight-receive, which does seem to work. It detects the kika remote buttons I press.
pilight-send, for example 'pilight-send -p kaku_switch -i 2 -u 4 -t' does not result in any effect however ..

result from pilight-send -p kaku_switch -i 2 -u 4 -t
Code:
[May 01 05:56:20:681781] pilight-daemon: DEBUG: socket write succeeded: {"values":{"cpu":0.5124648360922889,"ram":0.7198452332748460},"origin":"core","type":-1,"uuid":"0000-b8-27-eb-6ac6b4"}

[May 01 05:56:20:687317] pilight-daemon: DEBUG: broadcasted: {"values":{"cpu":0.5124648360922889,"ram":0.7198452332748460},"origin":"core","type":-1,"uuid":"0000-b8-27-eb-6ac6b4"}
[May 01 05:56:20:698161] pilight-daemon: DEBUG: ssdp sent notify
[May 01 05:56:20:808526] pilight-daemon: INFO: new client, ip: 192.168.1.76, port: 57272
[May 01 05:56:20:808717] pilight-daemon: DEBUG: client fd: 16
[May 01 05:56:20:808819] pilight-daemon: DEBUG: client id: 4
[May 01 05:56:20:811077] pilight-daemon: DEBUG: socket recv: {"action":"identify"}
[May 01 05:56:20:811429] pilight-daemon: DEBUG: socket write succeeded: {"status":"success"}

[May 01 05:56:20:813102] pilight-daemon: DEBUG: socket recv: {"action":"send","code":{"on":1,"unit":4,"id":2,"protocol":["kaku_switch"]}}
[May 01 05:56:20:814220] pilight-daemon: DEBUG: socket write succeeded: {"status":"success"}

[May 01 05:56:20:814559] pilight-daemon: DEBUG: **** RAW CODE ****
315 2835 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 315 315 1260 315 1260 315 315 315 315 315 1260 315 315 315 1260 315 1260 315 315 315 315 315 1260 315 1260 315 315 315 315 315 1260 315 315 315 1260 315 10710
[May 01 05:56:20:815095] pilight-daemon: DEBUG: **** RAW CODE ****
[May 01 05:56:20:818060] pilight-daemon: DEBUG: client disconnected, ip 192.168.1.76, port 57272
[May 01 05:56:21:707633] pilight-daemon: DEBUG: successfully send arctech_switch code
[May 01 05:56:21:710897] pilight-daemon: DEBUG: socket write succeeded: {"origin":"sender","protocol":"arctech_switch","message":{"id":2,"unit":4,"state":"on"},"repeat":1,"uuid":"0000-b8-27-eb-6ac6b4"}

results from pilight-receive when pressing remote control manually
Code:
{
    "message": {
        "id": 2,
        "unit": 4,
        "state": "down"
    },
    "origin": "receiver",
    "protocol": "arctech_screen_old",
    "uuid": "0000-b8-27-eb-6ac6b4",
    "repeats": 1
}
{
    "message": {
        "id": 2,
        "unit": 4,
        "state": "on"
    },
    "origin": "receiver",
    "protocol": "arctech_switch_old",
    "uuid": "0000-b8-27-eb-6ac6b4",
    "repeats": 2
}
{
    "message": {
        "id": 2,
        "unit": 4,
        "state": "up"
    },
    "origin": "receiver",
    "protocol": "arctech_screen_old",
    "uuid": "0000-b8-27-eb-6ac6b4",
    "repeats": 2
}

/etc/pilight/config.json
Code:
{
        "devices": {
                "slaapkamerLamp": {
                        "protocol": [ "kaku_switch_old" ],
                        "id": [{
                                "id": 5,
                                "unit": 4
                        }],
                        "state": "off"
                },
                "wcLamp": {
                        "protocol": [ "kaku_switch_old" ],
                        "id": [{
                                "id": 2,
                                "unit": 4
                        }],
                        "state": "on"
                }
        },
        "rules": {},
        "gui": {
                "slaapkamerLamp": {
                        "name": "Slaapkamer lamp",
                        "group": [ "Slaapkamer" ],
                        "readonly": 0
                },
                "wcLamp": {
                        "name": "WC Lamp",
                        "group": [ "Toilet" ],
                        "readonly": 0
                }
        },
        "settings": {
                "log-level": 6,
                "pid-file": "/var/run/pilight.pid",
                "log-file": "/var/log/pilight.log",
                "webserver-enable": 1,
                "webserver-root": "/usr/local/share/pilight/",
                "webserver-http-port": 5001,
                "webserver-cache": 1
        },
        "hardware": {
                "433gpio": {
                        "sender": 0,
                        "receiver": 1
                }
        },
        "registry": {
                "pilight": {
                        "firmware": {
                                "version": 3,
                                "lpf": 80,
                                "hpf": 16000
                        },
                        "version": {
                                "current": "7.0"
                        }
                }
        }
}
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  List of protocol supported 433mhz remotes ettman8 0 677 03-22-2018, 10:48 AM
Last Post: ettman8

Forum Jump:


Browsing: 1 Guest(s)