etwmc / Personal-HomeKit-HAP

This project will provide source code to build a HomeKit support accessories.
MIT License
236 stars 85 forks source link

Personal-HomeKit-HAP with ubuntu 10.04 #38

Closed GharsallaouiNader closed 9 years ago

GharsallaouiNader commented 9 years ago

i have this warning and it does not work
Initial Accessory Serial Port: -1 * WARNING * The program 'PHK' uses the Apple Bonjour compatibility layer of Avahi. * WARNING * Please fix your application to use the native API of Avahi! * WARNING * For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=PHK

etwmc commented 9 years ago

The warning actually does not affect the software. What version of iOS are you using? And can you actually see the device in the HomeKit application you are using? Because it's difficult to know what went wrong when the HomeKit system is quite complicated.

Sent from my iPhone

On Mar 2, 2015, at 5:52 PM, GharsallaouiNader notifications@github.com wrote:

i have this warning and it does not work

Initial Accessory Serial Port: -1 * WARNING * The program 'PHK' uses the Apple Bonjour compatibility layer of Avahi. * WARNING * Please fix your application to use the native API of Avahi! * WARNING * For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=PHK

— Reply to this email directly or view it on GitHub.

GharsallaouiNader commented 9 years ago

i use HomeKit Accessory tester HAT and i have just Found IP Accessory Server

etwmc commented 9 years ago

I don't have access to HomeKit Accessory tester. (Not MFi code, and I believe they actually come with the chip. ) But IP seems right. Since this program run on IP stack anyway. ( I have yet to find a BT LE chip that capable to run the cipher. ) BTW: maybe that's what happens when reading from Mail. But did you just drag the screenshot from you desktop to the reply box?

Sent from my iPhone

On Mar 2, 2015, at 9:11 PM, GharsallaouiNader notifications@github.com wrote:

file:///home/sst/Desktop/Capture%20d%E2%80%99e%CC%81cran%202015-03-02%20a%CC%80%2014.06.10.png

— Reply to this email directly or view it on GitHub.

GharsallaouiNader commented 9 years ago

./PHK Initial Accessory Serial Port: -1 * WARNING * The program 'PHK' uses the Apple Bonjour compatibility layer of Avahi. * WARNING * Please fix your application to use the native API of Avahi! * WARNING * For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=PHK i don't have the the printf related to pairing it seem to me that i have problem with the paring procedure

etwmc commented 9 years ago

Have you change the log define in configuration.h to 1? (FYI: you need make clean before rebuild. I have updated the makefile for that. ) Sent from my iPhone

On Mar 2, 2015, at 9:40 PM, GharsallaouiNader notifications@github.com wrote:

./PHK Initial Accessory Serial Port: -1 * WARNING * The program 'PHK' uses the Apple Bonjour compatibility layer of Avahi. * WARNING * Please fix your application to use the native API of Avahi! * WARNING * For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=PHK i don't have the the printf related to pairing it seem to me that i have problem with the paring procedure

— Reply to this email directly or view it on GitHub.

GharsallaouiNader commented 9 years ago

pragma once

// // Configuration.h // Workbench // // Created by Wai Man Chan on 10/27/14. // //

define HomeKitLog 1

define HomeKitReplyHeaderLog 1

//Device Setting

define deviceName "test nader" //Name

define deviceIdentity "12:00:54:23:51:13" //ID

define _manufactuerName "ET Chan" //Manufactuer

define devicePassword "523-12-650" //Password

define deviceUUID "8E17A3BF-FE83-44AB-8B55-E2147290CEEA" //UUID, for pair verify

define controllerRecordsAddress "/home/sst/Desktop/nader_pfe/Personal-HomeKit-HAP-/cont" //Where to store the client keys

//Number of client /*

//If you compiling this to microcontroller, set it to 1

define MCU 0

include <openssl/sha.h>

include

include

typedef SHA512_CTX SHACTX;

define SHAInit SHA512_Init

define SHAUpdate SHA512_Update

define SHAFinal SHA512_Final

define SHA_DIGESTSIZE 64

define SHA_BlockSize 128

etwmc commented 9 years ago

You should be able to see the printf with this. Are you sure you don’t need some specific setting to get the test start?

On Mar 2, 2015, at 10:14 PM, GharsallaouiNader notifications@github.com wrote:

pragma once

// // Configuration.h // Workbench // // Created by Wai Man Chan on 10/27/14. // //

define HomeKitLog 1

define HomeKitReplyHeaderLog 1

//Device Setting

define deviceName "test nader" //Name

define deviceIdentity "12:00:54:23:51:13" //ID

define _manufactuerName "ET Chan" //Manufactuer

define devicePassword "523-12-650" //Password

define deviceUUID "8E17A3BF-FE83-44AB-8B55-E2147290CEEA" //UUID, for pair verify

define controllerRecordsAddress "/home/sst/Desktop/nader_pfe/Personal-HomeKit-HAP-/cont" //Where to store the client keys

//Number of client /*

BEWARE: Never set the number of client to 1 iOS HomeKit pair setup socket will not release until the pair verify stage start So you will never got the pair corrected, as it is incomplete (The error require manually reset HomeKit setting / #define numberOfClient 20 //Number of notifiable value / Count how many notifiable value exist in your set For dynamic add/drop model, please estimate the maximum number (Too few->Buffer overflow) */ #define numberOfNotifiableValue 1 //If you compiling this to microcontroller, set it to 1

define MCU 0

include

include

include

typedef SHA512_CTX SHACTX;

define SHAInit SHA512_Init

define SHAUpdate SHA512_Update

define SHAFinal SHA512_Final

define SHA_DIGESTSIZE 64

define SHA_BlockSize 128

— Reply to this email directly or view it on GitHub https://github.com/etwmc/Personal-HomeKit-HAP-/issues/38#issuecomment-76717931.

GharsallaouiNader commented 9 years ago

there is no specific setting just change the configure.h controllerRecordsAddress to new file and log to 1 and install avahi for linux and openSSL

etwmc commented 9 years ago

I don’t have access to the tester so I can’t say what's happening. But have you try just adding the accessory on iOS stimulator? If you can add and interact with it on iOS 8.3 basically it is working.

On Mar 2, 2015, at 11:14 PM, GharsallaouiNader notifications@github.com wrote:

there is no specific setting just change the configure.h controllerRecordsAddress to new file and log to 1 and install avahi for linux and openSSL

— Reply to this email directly or view it on GitHub https://github.com/etwmc/Personal-HomeKit-HAP-/issues/38#issuecomment-76728796.

GharsallaouiNader commented 9 years ago

it work now i don't now what is the problem i thing it is a network problem one more question, the framework homekit work on the iOS simulator with out licence program ?

etwmc commented 9 years ago

I think you need to sign the entitlement to make it work.

On Mar 3, 2015, at 12:53 AM, GharsallaouiNader notifications@github.com wrote:

it work now i don't now what is the problem i thing it is a network problem one more question, the framework homekit work on the iOS simulator with out licence program ?

— Reply to this email directly or view it on GitHub https://github.com/etwmc/Personal-HomeKit-HAP-/issues/38#issuecomment-76749759.

mio1337 commented 9 years ago

Hi, the homekit needs a code to connect with the accessories... what code does it mean?