PhilipsHue / HueSDK

Philips Hue Software Development Kit
98 stars 39 forks source link

HueSDK bridge discovery does not work on AVD #26

Closed gkamperis closed 6 years ago

gkamperis commented 6 years ago

The quick start android app does not find any bridges running on the AVD.

The older SDK works fine on the same AVD.

Are there any other steps we need to take in order for this to run?

Also a very interesting comment from within the app code:

// ALL Include [UPNP, IPSCAN, NUPNP] but in some nets UPNP and NUPNP is not working properly

/**

error curl error 51

CURLE_PEER_FAILED_VERIFICATION (51)

The remote server's SSL certificate or SSH md5 fingerprint was deemed not OK.

logs below

03-17 10:00:53.281 11034-11034/com.philips.lighting.hue.demo.huequickstartapp I/HueSDK: JNI_HueSDK - JNI_OnLoad called
03-17 10:00:53.405 11034-11034/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: GenericDataPersistence: database initialized
03-17 10:00:53.405 11034-11034/com.philips.lighting.hue.demo.huequickstartapp E/HueSDK: GenericDataPersistence: data could not be loaded, code: 1
03-17 10:00:53.405 11034-11034/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: BridgeDiscovery - Start searching with options 7
03-17 10:00:53.405 11034-11034/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: BridgeDiscovery: start searching
03-17 10:00:53.407 11034-11050/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: BridgeDiscovery: perform search method 1
03-17 10:00:53.407 11034-11050/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: BridgeDiscoveryBase: start searching
03-17 10:00:53.407 11034-11050/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: BridgeDiscovery: block until callback received or search has been stopped
03-17 10:00:53.407 11034-11051/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: BridgeDiscoveryUpnp: initialize socket
03-17 10:00:53.407 11034-11051/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: BridgeDiscoveryUpnp: get network interface
03-17 10:00:53.409 11034-11051/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: BridgeDiscoveryMethodUtil: get network interfaces
03-17 10:00:53.409 11034-11051/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: Network: get all network interfaces (JNI)
03-17 10:00:53.412 11034-11051/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: Network: Could not get IP for interface from Java, retieve failed
03-17 10:00:53.413 11034-11051/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: Network: Could not get IP for interface from Java, retieve failed
03-17 10:00:53.414 11034-11051/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: BridgeDiscoveryMethodUtil: network interfaces retrieved; check results
03-17 10:00:53.414 11034-11051/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: BridgeDiscoveryMethodUtil: ip: QQQ.QQQ.QQQ.2, name: wlan0
03-17 10:00:53.415 11034-11051/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: BridgeDiscoveryUpnp: binding to ip: QQQ.QQQ.QQQ.2
03-17 10:00:53.416 11034-11051/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: BridgeDiscoveryUpnp: initialize socket -> join group: 239.255.255.250
03-17 10:00:53.418 11034-11051/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: BridgeDiscoveryUpnp: socket initialized
03-17 10:00:53.418 11034-11051/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: BridgeDiscoveryUpnp: sending discovery message -> ip: 239.255.255.250,port: 1900
03-17 10:00:53.418 11034-11051/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: BridgeDiscoveryUpnp: block until callback received or search has been stopped
03-17 10:00:53.421 11034-11053/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: SocketUdp: sent data chunk: M-SEARCH * HTTP/1.1
                                                                                        HOST:239.255.255.250:1900
                                                                                        ST:ssdp:all
                                                                                        Man:"ssdp:discover"
                                                                                        MX:3

                                                                                        , bytes sent: 90, bytes left: 0
03-17 10:00:53.421 11034-11053/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: BridgeDiscoveryUpnp: callback called; sending ok, bytes:90
03-17 10:00:53.421 11034-11051/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: BridgeDiscoveryUpnp: receiving responses
03-17 10:01:01.419 11034-11052/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: BridgeDiscoveryUpnp: timeout timer expired, so stop searching
03-17 10:01:01.419 11034-11051/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: BridgeDiscoveryUpnp: close socket
03-17 10:01:01.419 11034-11056/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: SocketUdp: socket closed
03-17 10:01:01.419 11034-11056/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: BridgeDiscoveryUpnp: receiving responses failed, bytes:0
03-17 10:01:01.420 11034-11051/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: BridgeDiscoveryUpnp: stop timer
03-17 10:01:01.420 11034-11051/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: BridgeDiscoveryUpnp: parse results: 
03-17 10:01:01.420 11034-11051/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: BridgeDiscoveryUpnp: done searching; calling callback -> 0 results found
03-17 10:01:01.420 11034-11050/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: BridgeDiscovery: done performing search method 1; total results found: 0
03-17 10:01:01.420 11034-11050/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: BridgeDiscovery: perform search method 2
03-17 10:01:01.421 11034-11050/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: BridgeDiscovery: block until callback received or search has been stopped
03-17 10:01:01.422 11034-11060/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: HttpRequest: url: https://www.meethue.com/api/nupnp, method: GET, body: 
**03-17 10:01:01.559 11034-11066/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: HttpRequest: request finished with curl code 51, status: 0, body:** 
03-17 10:01:01.559 11034-11060/com.philips.lighting.hue.demo.huequickstartapp E/HueSDK: BridgeDiscoveryNupnp: http request failed
03-17 10:01:01.561 11034-11050/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: BridgeDiscovery: done performing search method 2; total results found: 0
03-17 10:01:01.561 11034-11050/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: BridgeDiscovery: perform search method 3
03-17 10:01:01.561 11034-11050/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: BridgeDiscoveryBase: start searching
03-17 10:01:01.561 11034-11068/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: BridgeDiscoveryMethodUtil: get network interfaces
03-17 10:01:01.561 11034-11050/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: BridgeDiscovery: block until callback received or search has been stopped
03-17 10:01:01.561 11034-11068/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: Network: get all network interfaces (JNI)
03-17 10:01:01.563 11034-11068/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: Network: Could not get IP for interface from Java, retieve failed
03-17 10:01:01.564 11034-11068/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: Network: Could not get IP for interface from Java, retieve failed
03-17 10:01:01.564 11034-11068/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: BridgeDiscoveryMethodUtil: network interfaces retrieved; check results
03-17 10:01:01.564 11034-11068/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: BridgeDiscoveryMethodUtil: ip: QQQ.QQQ.QQQ.2, name: wlan0
03-17 10:01:01.564 11034-11068/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: BridgeDiscoveryIpscan: network interface found -> name: wlan0, ip: QQQ.QQQ.QQQ.2
03-17 10:01:03.776 11034-11068/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: BridgeDiscoveryIpscan: done searching; calling callback -> 0 results found
03-17 10:01:03.776 11034-11050/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: BridgeDiscovery: done performing search method 3; total results found: 0
03-17 10:01:03.776 11034-11050/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: BridgeDiscoveryUpnp: destructor
03-17 10:01:03.776 11034-11050/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: BridgeDiscoveryBase: stopped search thread
03-17 10:01:03.777 11034-11050/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: BridgeDiscoveryIpscan: destructor
03-17 10:01:03.777 11034-11050/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: BridgeDiscoveryBase: stopped search thread
03-17 10:01:03.777 11034-11070/com.philips.lighting.hue.demo.huequickstartapp D/HueSDK: BridgeDiscovery - Executing BridgeDiscoveryCallbackLambda
jhvdb87 commented 6 years ago

This problem has already been solved in the next SDK release, which expects to happen in the next 1-2 weeks.

gkamperis commented 6 years ago

Hi,

it has been more than 1-2 weeks...

Any idea when this will be released?

The issue should not be closed until the release so other people know about the issue.

Thanks

jhvdb87 commented 6 years ago

The release was delayed. New version will be available this week. However, it will be available on our other repository. To get access to that repository you need to subscribe, because it includes entertainment features. Subscription link: https://developers.meethue.com/content/edk-terms-use

gkamperis commented 6 years ago

Hi,

is this out yet? will it only be available as part of that SDK only?

Thanks

jhvdb87 commented 6 years ago

Yes, the new version has been released on our other repository.

gkamperis commented 6 years ago

will it not be released on the other repo?

gkamperis commented 6 years ago

Hi

I subscribed... don't know if I got approved or not but trying to access

https://github.com/PhilipsHue/EDK or https://github.com/PhilipsHue/HueSDK4EDK

is giving a 404

The above are referenced in

https://developers.meethue.com/documentation/getting-started-development-hue-entertainment

Thanks

jhvdb87 commented 6 years ago

The approval might take a few days.