• 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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Windows Support
#1
While i was waiting for the pilight v6.0 stability tests i've been working on Windows support. I would love to get feedback from you guys. Let's hope those Windows developers find there way into pilight Dodgy

A test version of the pilight Windows installer can be found (27-04-2015):
http://download.pilight.org/

And honestly, i didn't know Windows would be supported on the Raspberry Pi 2, so that's extra awesome. Let's see that we can get pilight working on Windows 10 on the Raspberry Pi!
 
Reply
#2
This will not be a straight forward task, in order to minimize impact would it be possible to do that development as a sub branch, e.q. all modifications of development plus win32?
 
Reply
#3
No, already did this in development. The impact should be minimal because almost all new code is places inside:
Code:
#ifdef _WIN32
#endif

If it wasn't, it was a general bugfix.
 
Reply
#4
A new windows executable has been uploaded.
 
Reply
#5
I installed the windows version to test the functionality

First i direcly started the deamon and it crashed

after that i filed the config.json with some data and again it crash

Code:
{
    "devices": {
        "datetime": {
            "protocol": [ "datetime" ],
            "id": [{
                "longitude": 1.2345,
                "latitude": 12.3456,
                "ntpserver": "0.north-america.pool.ntp.org"
            }],
            "year": 2015,
            "month": 1,
            "day": 27,
            "hour": 14,
            "minute": 37,
            "second": 8,
            "weekday": 3
        }
    },
    "rules": {},
    "gui": {
        "datetime": {
            "name": "Date & Time",
            "group": [ "Misc" ],
            "media": [ "all" ]
        }
    },
    "settings": {
        "log-level": 4,
        "log-file": "c:/pilight/pilight.log",
        "send-repeats": 10,
        "receive-repeats": 1,
        "webserver-enable": 1,
        "webserver-root": "c:/pilight/web/",
        "webserver-port": 5001,
        "webserver-cache": 1
    },
    "hardware": {
        "none": {}
    },
    "registry": {}
}

the logfile only show
[Mar 19 15:40:12:439789] pilight-daemon: INFO: version 6.0, commit v6.0-43-ga27d09f

Code:
Log Name:      Application
Source:        Windows Error Reporting
Date:          19-3-2015 15:40:18
Event ID:      1001
Task Category: None
Level:         Information
Keywords:      Classic
User:          N/A
Computer:      MARK-HP4.XXXXXX
Description:
Fault bucket 933633225, type 17
Event Name: APPCRASH
Response: Not available
Cab Id: 0

Problem signature:
P1: pilight-daemon.exe
P2: 0.0.0.0
P3: 5502f4ed
P4: libpilight.dll
P5: 0.0.0.0
P6: 5502f4ed
P7: c0000005
P8: 0000ae22
P9:
P10:

Attached files:
C:\Users\mark\AppData\Local\Temp\WERECB6.tmp.WERInternalMetadata.xml

These files may be available here:
C:\Users\mark\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_pilight-daemon.e_d98865a8f997712156e46fad3bd1ac4765e538c4_0e9902b6

Analysis symbol:
Rechecking for solution: 0
Report Id: d946ca9f-ce45-11e4-9a09-0017a4e6a970
Report Status: 0
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Windows Error Reporting" />
    <EventID Qualifiers="0">1001</EventID>
    <Level>4</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2015-03-19T14:40:18.000000000Z" />
    <EventRecordID>21112</EventRecordID>
    <Channel>Application</Channel>
    <Computer>MARK-HP4.XXXXXXXX</Computer>
    <Security />
  </System>
  <EventData>
    <Data>933633225</Data>
    <Data>17</Data>
    <Data>APPCRASH</Data>
    <Data>Not available</Data>
    <Data>0</Data>
    <Data>pilight-daemon.exe</Data>
    <Data>0.0.0.0</Data>
    <Data>5502f4ed</Data>
    <Data>libpilight.dll</Data>
    <Data>0.0.0.0</Data>
    <Data>5502f4ed</Data>
    <Data>c0000005</Data>
    <Data>0000ae22</Data>
    <Data>
    </Data>
    <Data>
    </Data>
    <Data>
C:\Users\mark\AppData\Local\Temp\WERECB6.tmp.WERInternalMetadata.xml</Data>
    <Data>C:\Users\mark\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_pilight-daemon.e_d98865a8f997712156e46fad3bd1ac4765e538c4_0e9902b6</Data>
    <Data>
    </Data>
    <Data>0</Data>
    <Data>d946ca9f-ce45-11e4-9a09-0017a4e6a970</Data>
    <Data>0</Data>
  </EventData>
</Event>
 
Reply
#6
You clearly have more debugging skills then i have on Windows. Care to help me fix those errors more in depth?
 
Reply
#7
sorry for the late response i was bussy.
I am not a programmer but i have some basic troubleshooting skills.
Please let me know if you need anything, or if i can test something.
 
Reply
#8
Yes, that will be great. I will work on the windows version again soon.
 
Reply
#9
i was just thinking....
as far as i know normal computers doesn't have a GPIO interface.
Would it be posible to got the http://www.kiwi-electronics.nl/arduino-m...-atmega328 device on usb connected and use its GPIO pins?


/edit
i think i found my answer here
http://forum.pilight.org/Thread-pilight-...-interface
 
Reply
#10
Exactly.
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  Odroid C2 support on Kernel 4.14 Jojo 5 698 06-01-2018, 03:19 PM
Last Post: curlymo
  Mac OS X support andies 4 1,979 12-01-2016, 09:48 PM
Last Post: andies
  Odroid-C1 support terrar 51 20,624 05-31-2016, 11:08 AM
Last Post: Jojo
  Ububtu 14.4 64 bit support terrar 30 12,343 05-09-2015, 11:40 PM
Last Post: curlymo
Question radxa support terrar 57 19,524 01-05-2015, 06:58 PM
Last Post: curlymo
  [Solved] Disabled PHP support error lvdp 4 5,476 02-18-2014, 12:02 AM
Last Post: meloen
  Node support changed? koffie 19 9,281 01-12-2014, 05:44 PM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)