etwmc / Personal-HomeKit-HAP

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

Stop Connect but don't know why #20

Closed arnauddorgans closed 9 years ago

arnauddorgans commented 9 years ago

hey everythings worked perfectly but after a total purge of my raspberry and reconfiguring PHK Stop Connect after "Successfully Connect"... i don't know why it's random :/ an idea ?

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 Start Connect: 11 Start Pair Verify State = 1 Pair Verify M1 State = 3 Pair Verify M3 Successfully Connect Stop Connect: 11

etwmc commented 9 years ago

What do you mean by purge? If purge=format/delete files, you might have deleted the pair record?

arnauddorgans commented 9 years ago

i totally format / reinstall my system (raspbmc) so the pair record was deleted but after a new pair / "sudo make clean all" i got this :( i don't know why but on my first try after reinstall everything was ok but after kill and re start PHK (without make the cpp files) "Stop Connect: 11" it's weird.. maybe it's my compilator ? (gcc 4.8) cause my source files was the same and before reinstall all was ok :(

maybe can I send you a zip file with my cpp files and try to build with your configuration ? see if the problem is in the files or of my configuration ? thanks :)

gb160 commented 9 years ago

the easiest way would be to just to just clone and recompile the project with the default files...at least that way you'll know if its something you've changed in the code or a compilation issue with your system.

arnauddorgans commented 9 years ago

yea good idea lol :dancer: i'll try then :)

arnauddorgans commented 9 years ago

So... the first time i start PHK everythings work but after a CTRL+C (stop PHK) and a ./PHK (start PHP) I have this f*cking "Stop Connect:" Any idea ?...

gb160 commented 9 years ago

@Arnoymous turn wifi off for ten seconds on your iOS device after restarting PHK.

arnauddorgans commented 9 years ago

thx :D problem solved