falk0069 / hue-upnp

Philips Hue UPNP and HTTP emulator (works with the Android Hue app and Logitech Harmony Home Remotes)
30 stars 10 forks source link

Can't seem to get past the "GET description.xml" #3

Closed Semag closed 8 years ago

Semag commented 8 years ago

Hey falk0069-

Love this idea - found this trying to get WOL support for my hub.

I feel like I'm so close but i'm not sure why the discovery isn't completing.

I can see from the log that it is doing the GET - which is good, it is making it past the initial SEARCH, but then the desscription.xml (which is sent, i can see it on tcpdump) isn't seeming to trigger a completion by the hub.

Any thoughts?

(I know there's a couple other IP's doing some UPnP on the network - sorry for thet clutter in the log).

2015-09-17 21:51:50,836 [INFO ] Server starting
2015-09-17 21:51:51,447 [INFO ] received M-SEARCH from ('192.168.1.14', 64484)
2015-09-17 21:51:51,449 [DEBUG]  data:
M-SEARCH * HTTP/1.1
Host:239.255.255.250:1900
ST:urn:schemas-upnp-org:device:InternetGatewayDevice:1
Man:"ssdp:discover"
MX:3
2015-09-17 21:51:51,453 [DEBUG] ignoring
2015-09-17 21:51:51,455 [DEBUG] ----------------------
2015-09-17 21:51:51,456 [DEBUG]
2015-09-17 21:51:53,798 [INFO ] received M-SEARCH from ('192.168.1.8', 49543)
2015-09-17 21:51:53,800 [DEBUG]  data:
M-SEARCH * HTTP/1.1
Host:239.255.255.250:1900
ST:urn:schemas-upnp-org:device:InternetGatewayDevice:1
Man:"ssdp:discover"
MX:3
2015-09-17 21:51:53,804 [DEBUG] ignoring
2015-09-17 21:51:53,805 [DEBUG] ----------------------
2015-09-17 21:51:53,807 [DEBUG]
2015-09-17 21:51:54,057 [INFO ] received M-SEARCH from ('192.168.1.114', 57740)
2015-09-17 21:51:54,059 [DEBUG]  data:
M-SEARCH * HTTP/1.1
HOST:239.255.255.250:1900
MAN:"ssdp:discover"
MX:4
ST:urn:schemas-upnp-org:device:Basic:1
2015-09-17 21:51:54,063 [DEBUG] received urn:schemas-upnp-org:device:basic:1
2015-09-17 21:51:54,065 [INFO ] Response sent: http://192.168.1.10:8080/description.xml
2015-09-17 21:51:54,066 [DEBUG] ----------------------
2015-09-17 21:51:54,068 [DEBUG]
2015-09-17 21:51:54,448 [INFO ] received M-SEARCH from ('192.168.1.14', 64484)
2015-09-17 21:51:54,448 [DEBUG]  data:
M-SEARCH * HTTP/1.1
Host:239.255.255.250:1900
ST:urn:schemas-upnp-org:device:InternetGatewayDevice:1
Man:"ssdp:discover"
MX:3
2015-09-17 21:51:54,449 [DEBUG] ignoring
2015-09-17 21:51:54,449 [DEBUG] ----------------------
2015-09-17 21:51:54,449 [DEBUG]
2015-09-17 21:51:54,564 [INFO ] received M-SEARCH from ('192.168.1.114', 57740)
2015-09-17 21:51:54,564 [DEBUG]  data:
M-SEARCH * HTTP/1.1
HOST:239.255.255.250:1900
MAN:"ssdp:discover"
MX:4
ST:urn:schemas-upnp-org:device:Basic:1
2015-09-17 21:51:54,565 [DEBUG] received urn:schemas-upnp-org:device:basic:1
2015-09-17 21:51:54,565 [INFO ] Response sent: http://192.168.1.10:8080/description.xml
2015-09-17 21:51:54,566 [DEBUG] ----------------------
2015-09-17 21:51:54,566 [DEBUG]
2015-09-17 21:51:55,068 [INFO ] received M-SEARCH from ('192.168.1.114', 57740)
2015-09-17 21:51:55,068 [DEBUG]  data:
M-SEARCH * HTTP/1.1
HOST:239.255.255.250:1900
MAN:"ssdp:discover"
MX:4
ST:urn:schemas-upnp-org:device:Basic:1
2015-09-17 21:51:55,069 [DEBUG] received urn:schemas-upnp-org:device:basic:1
2015-09-17 21:51:55,069 [INFO ] Response sent: http://192.168.1.10:8080/description.xml
2015-09-17 21:51:55,070 [DEBUG] ----------------------
2015-09-17 21:51:55,070 [DEBUG]
2015-09-17 21:51:57,448 [INFO ] received M-SEARCH from ('192.168.1.14', 64484)
2015-09-17 21:51:57,449 [DEBUG]  data:
M-SEARCH * HTTP/1.1
Host:239.255.255.250:1900
ST:urn:schemas-upnp-org:device:InternetGatewayDevice:1
Man:"ssdp:discover"
MX:3
2015-09-17 21:51:57,450 [DEBUG] ignoring
2015-09-17 21:51:57,450 [DEBUG] ----------------------
2015-09-17 21:51:57,450 [DEBUG]
2015-09-17 21:52:00,457 [INFO ] received M-SEARCH from ('192.168.1.14', 64484)
2015-09-17 21:52:00,457 [DEBUG]  data:
M-SEARCH * HTTP/1.1
Host:239.255.255.250:1900
ST:urn:schemas-upnp-org:device:InternetGatewayDevice:1
Man:"ssdp:discover"
MX:3
2015-09-17 21:52:00,458 [DEBUG] ignoring
2015-09-17 21:52:00,458 [DEBUG] ----------------------
2015-09-17 21:52:00,459 [DEBUG]
2015-09-17 21:52:03,091 [INFO ] http request from 192.168.1.114
2015-09-17 21:52:03,100 [DEBUG] HTTP Request: GET /description.xml HTTP/1.1
connection: keep-alive
accept-language: en-us
accept-encoding: gzip, deflate
user-agent: LuaSocket/2.0.2 Pimento/3.12.9
accept: */*
te: trailers
host: 192.168.1.10
2015-09-17 21:52:03,467 [INFO ] received M-SEARCH from ('192.168.1.14', 64484)
2015-09-17 21:52:03,467 [DEBUG]  data:
M-SEARCH * HTTP/1.1
Host:239.255.255.250:1900
ST:urn:schemas-upnp-org:device:InternetGatewayDevice:1
Man:"ssdp:discover"
MX:3
2015-09-17 21:52:03,468 [DEBUG] ignoring
2015-09-17 21:52:03,468 [DEBUG] ----------------------
2015-09-17 21:52:03,468 [DEBUG]
2015-09-17 21:52:04,101 [INFO ] Sent HTTP description.xml Response
2015-09-17 21:52:04,102 [DEBUG] -------------------------------
2015-09-17 21:52:04,102 [DEBUG]

^C2015-09-17 21:52:17,689 [INFO ] Waiting for connections to end before exiting

Here's what I get on that final tcpdump in that part:


21:52:03.091816 00:04:20:ea:38:de (oui Unknown) > 00:90:fb:1b:35:4f (oui Unknown), ethertype IPv4 (0x0800), length 97: 192.168.1.114.38889 > 192.168.1.10.8080: Flags [P.], seq 1:32, ack 1, win 2920, options [nop,nop,TS val 3110162633 ecr 772737769], length 31
        0x0000:  4500 0053 80ed 4000 4006 35eb c0a8 0172  E..S..@.@.5....r
        0x0010:  c0a8 010a 97e9 1f90 e78d d02d 63b9 ffea  ...........-c...
        0x0020:  8018 0b68 2381 0000 0101 080a b961 50c9  ...h#........aP.
        0x0030:  2e0f 0ae9 4745 5420 2f64 6573 6372 6970  ....GET./descrip
        0x0040:  7469 6f6e 2e78 6d6c 2048 5454 502f 312e  tion.xml.HTTP/1.
        0x0050:  310d 0a                                  1..
21:52:03.091905 00:90:fb:1b:35:4f (oui Unknown) > 00:04:20:ea:38:de (oui Unknown), ethertype IPv4 (0x0800), length 66: 192.168.1.10.8080 > 192.168.1.114.38889: Flags [.], ack 32, win 514, options [nop,nop,TS val 772737777 ecr 3110162633], length 0
        0x0000:  4500 0034 893a 0000 4006 6dbd c0a8 010a  E..4.:..@.m.....
        0x0010:  c0a8 0172 1f90 97e9 63b9 ffea e78d d04c  ...r....c......L
        0x0020:  8010 0202 daca 0000 0101 080a 2e0f 0af1  ................
        0x0030:  b961 50c9                                .aP.
21:52:03.098211 00:04:20:ea:38:de (oui Unknown) > 00:90:fb:1b:35:4f (oui Unknown), ethertype IPv4 (0x0800), length 239: 192.168.1.114.38889 > 192.168.1.10.8080: Flags [P.], seq 32:205, ack 1, win 2920, options [nop,nop,TS val 3110162635 ecr 772737777], length 173
        0x0000:  4500 00e1 80ee 4000 4006 355c c0a8 0172  E.....@.@.5\...r
        0x0010:  c0a8 010a 97e9 1f90 e78d d04c 63b9 ffea  ...........Lc...
        0x0020:  8018 0b68 c17b 0000 0101 080a b961 50cb  ...h.{.......aP.
        0x0030:  2e0f 0af1 636f 6e6e 6563 7469 6f6e 3a20  ....connection:.
        0x0040:  6b65 6570 2d61 6c69 7665 0d0a 6163 6365  keep-alive..acce
        0x0050:  7074 2d6c 616e 6775 6167 653a 2065 6e2d  pt-language:.en-
        0x0060:  7573 0d0a 6163 6365 7074 2d65 6e63 6f64  us..accept-encod
        0x0070:  696e 673a 2067 7a69 702c 2064 6566 6c61  ing:.gzip,.defla
        0x0080:  7465 0d0a 7573 6572 2d61 6765 6e74 3a20  te..user-agent:.
        0x0090:  4c75 6153 6f63 6b65 742f 322e 302e 3220  LuaSocket/2.0.2.
        0x00a0:  5069 6d65 6e74 6f2f 332e 3132 2e39 0d0a  Pimento/3.12.9..
        0x00b0:  6163 6365 7074 3a20 2a2f 2a0d 0a74 653a  accept:.*/*..te:
        0x00c0:  2074 7261 696c 6572 730d 0a68 6f73 743a  .trailers..host:
        0x00d0:  2031 3932 2e31 3638 2e31 2e31 300d 0a0d  .192.168.1.10...
        0x00e0:  0a                                       .
21:52:03.098272 00:90:fb:1b:35:4f (oui Unknown) > 00:04:20:ea:38:de (oui Unknown), ethertype IPv4 (0x0800), length 66: 192.168.1.10.8080 > 192.168.1.114.38889: Flags [.], ack 205, win 514, options [nop,nop,TS val 772737784 ecr 3110162635], length 0
        0x0000:  4500 0034 893e 0000 4006 6db9 c0a8 010a  E..4.>..@.m.....
        0x0010:  c0a8 0172 1f90 97e9 63b9 ffea e78d d0f9  ...r....c.......
        0x0020:  8010 0202 da14 0000 0101 080a 2e0f 0af8  ................
        0x0030:  b961 50cb                                .aP.
21:52:03.466767 00:22:15:1b:f7:14 (oui Unknown) > 01:00:5e:7f:ff:fa (oui Unknown), ethertype IPv4 (0x0800), length 175: 192.168.1.14.64484 > 239.255.255.250.1900: UDP, length 133
        0x0000:  4500 00a1 2421 0000 0111 e37a c0a8 010e  E...$!.....z....
        0x0010:  efff fffa fbe4 076c 008d a3e8 4d2d 5345  .......l....M-SE
        0x0020:  4152 4348 202a 2048 5454 502f 312e 310d  ARCH.*.HTTP/1.1.
        0x0030:  0a48 6f73 743a 3233 392e 3235 352e 3235  .Host:239.255.25
        0x0040:  352e 3235 303a 3139 3030 0d0a 5354 3a75  5.250:1900..ST:u
        0x0050:  726e 3a73 6368 656d 6173 2d75 706e 702d  rn:schemas-upnp-
        0x0060:  6f72 673a 6465 7669 6365 3a49 6e74 6572  org:device:Inter
        0x0070:  6e65 7447 6174 6577 6179 4465 7669 6365  netGatewayDevice
        0x0080:  3a31 0d0a 4d61 6e3a 2273 7364 703a 6469  :1..Man:"ssdp:di
        0x0090:  7363 6f76 6572 220d 0a4d 583a 330d 0a0d  scover"..MX:3...
        0x00a0:  0a                                       .
21:52:03.722792 34:4d:f7:3a:39:e0 (oui Unknown) > 01:00:5e:00:00:fb (oui Unknown), ethertype IPv4 (0x0800), length 82: 192.168.1.7.mdns > 224.0.0.251.mdns: 0 PTR (QM)? _googlecast._tcp.local. (40)
        0x0000:  4500 0044 0000 4000 ff11 d8fd c0a8 0107  E..D..@.........
        0x0010:  e000 00fb 14e9 14e9 0030 e8f8 0000 0000  .........0......
        0x0020:  0001 0000 0000 0000 0b5f 676f 6f67 6c65  ........._google
        0x0030:  6361 7374 045f 7463 7005 6c6f 6361 6c00  cast._tcp.local.
        0x0040:  000c 0001                                ....
21:52:04.101664 00:90:fb:1b:35:4f (oui Unknown) > 00:04:20:ea:38:de (oui Unknown), ethertype IPv4 (0x0800), length 1514: 192.168.1.10.8080 > 192.168.1.114.38889: Flags [.], seq 1:1449, ack 205, win 514, options [nop,nop,TS val 772738787 ecr 3110162635], length 1448
        0x0000:  4500 05dc 894a 0000 4006 6805 c0a8 010a  E....J..@.h.....
        0x0010:  c0a8 0172 1f90 97e9 63b9 ffea e78d d0f9  ...r....c.......
        0x0020:  8010 0202 8b3c 0000 0101 080a 2e0f 0ee3  .....<..........
        0x0030:  b961 50cb 4854 5450 2f31 2e31 2032 3030  .aP.HTTP/1.1.200
        0x0040:  204f 4b0d 0a43 6f6e 7465 6e74 2d74 7970  .OK..Content-typ
        0x0050:  653a 2074 6578 742f 786d 6c0d 0a43 6f6e  e:.text/xml..Con
        0x0060:  6e65 6374 696f 6e3a 204b 6565 702d 416c  nection:.Keep-Al
        0x0070:  6976 650d 0a3c 3f78 6d6c 2076 6572 7369  ive..<?xml.versi
        0x0080:  6f6e 3d22 312e 3022 3f3e 0d0a 3c72 6f6f  on="1.0"?>..<roo
        0x0090:  7420 786d 6c6e 733d 2275 726e 3a73 6368  t.xmlns="urn:sch
        0x00a0:  656d 6173 2d75 706e 702d 6f72 673a 6465  emas-upnp-org:de
        0x00b0:  7669 6365 2d31 2d30 223e 0d0a 2020 2020  vice-1-0">......
        0x00c0:  2020 2020 3c73 7065 6356 6572 7369 6f6e  ....<specVersion
        0x00d0:  3e0d 0a20 2020 2020 2020 2020 2020 2020  >...............
        0x00e0:  2020 203c 6d61 6a6f 723e 313c 2f6d 616a  ...<major>1</maj
        0x00f0:  6f72 3e0d 0a20 2020 2020 2020 2020 2020  or>.............
        0x0100:  2020 2020 203c 6d69 6e6f 723e 303c 2f6d  .....<minor>0</m
        0x0110:  696e 6f72 3e0d 0a20 2020 2020 2020 203c  inor>..........<
        0x0120:  2f73 7065 6356 6572 7369 6f6e 3e0d 0a20  /specVersion>...
        0x0130:  2020 2020 2020 203c 5552 4c42 6173 653e  .......<URLBase>
        0x0140:  6874 7470 3a2f 2f31 3932 2e31 3638 2e31  http://192.168.1
        0x0150:  2e31 303a 3830 3830 2f3c 2f55 524c 4261  .10:8080/</URLBa
        0x0160:  7365 3e0d 0a20 2020 2020 2020 203c 6465  se>..........<de
        0x0170:  7669 6365 3e0d 0a20 2020 2020 2020 2020  vice>...........
        0x0180:  2020 2020 2020 203c 6465 7669 6365 5479  .......<deviceTy
        0x0190:  7065 3e75 726e 3a73 6368 656d 6173 2d75  pe>urn:schemas-u
        0x01a0:  706e 702d 6f72 673a 6465 7669 6365 3a42  pnp-org:device:B
        0x01b0:  6173 6963 3a31 3c2f 6465 7669 6365 5479  asic:1</deviceTy
        0x01c0:  7065 3e0d 0a20 2020 2020 2020 2020 2020  pe>.............
        0x01d0:  2020 2020 203c 6672 6965 6e64 6c79 4e61  .....<friendlyNa
        0x01e0:  6d65 3e50 6869 6c69 7073 2068 7565 2028  me>Philips.hue.(
        0x01f0:  3139 322e 3136 382e 312e 3130 293c 2f66  192.168.1.10)</f
        0x0200:  7269 656e 646c 794e 616d 653e 0d0a 2020  riendlyName>....
        0x0210:  2020 2020 2020 2020 2020 2020 2020 3c6d  ..............<m
        0x0220:  616e 7566 6163 7475 7265 723e 526f 7961  anufacturer>Roya
        0x0230:  6c20 5068 696c 6970 7320 456c 6563 7472  l.Philips.Electr
        0x0240:  6f6e 6963 733c 2f6d 616e 7566 6163 7475  onics</manufactu
        0x0250:  7265 723e 0d0a 2020 2020 2020 2020 2020  rer>............
        0x0260:  2020 2020 2020 3c6d 616e 7566 6163 7475  ......<manufactu
        0x0270:  7265 7255 524c 3e68 7474 703a 2f2f 7777  rerURL>http://ww
        0x0280:  772e 7068 696c 6970 732e 636f 6d3c 2f6d  w.philips.com</m
        0x0290:  616e 7566 6163 7475 7265 7255 524c 3e0d  anufacturerURL>.
        0x02a0:  0a20 2020 2020 2020 2020 2020 2020 2020  ................
        0x02b0:  203c 6d6f 6465 6c44 6573 6372 6970 7469  .<modelDescripti
        0x02c0:  6f6e 3e50 6869 6c69 7073 2068 7565 2050  on>Philips.hue.P
        0x02d0:  6572 736f 6e61 6c20 5769 7265 6c65 7373  ersonal.Wireless
        0x02e0:  204c 6967 6874 696e 673c 2f6d 6f64 656c  .Lighting</model
        0x02f0:  4465 7363 7269 7074 696f 6e3e 0d0a 2020  Description>....
        0x0300:  2020 2020 2020 2020 2020 2020 2020 3c6d  ..............<m
        0x0310:  6f64 656c 4e61 6d65 3e50 6869 6c69 7073  odelName>Philips
        0x0320:  2068 7565 2062 7269 6467 6520 3230 3132  .hue.bridge.2012
        0x0330:  2052 6f75 7465 723c 2f6d 6f64 656c 4e61  .Router</modelNa
        0x0340:  6d65 3e0d 0a20 2020 2020 2020 2020 2020  me>.............
        0x0350:  2020 2020 203c 6d6f 6465 6c4e 756d 6265  .....<modelNumbe
        0x0360:  723e 3932 3930 3030 3232 3635 3033 3c2f  r>929000226503</
        0x0370:  6d6f 6465 6c4e 756d 6265 723e 0d0a 2020  modelNumber>....
        0x0380:  2020 2020 2020 2020 2020 2020 2020 3c6d  ..............<m
        0x0390:  6f64 656c 5552 4c3e 6874 7470 3a2f 2f77  odelURL>http://w
        0x03a0:  7777 2e6d 6565 7468 7565 2e63 6f6d 3c2f  ww.meethue.com</
        0x03b0:  6d6f 6465 6c55 524c 3e0d 0a20 2020 2020  modelURL>.......
        0x03c0:  2020 2020 2020 2020 2020 203c 7365 7269  ...........<seri
        0x03d0:  616c 4e75 6d62 6572 3e30 3031 3738 3831  alNumber>0017881
        0x03e0:  3731 3232 633c 2f73 6572 6961 6c4e 756d  7122c</serialNum
        0x03f0:  6265 723e 0d0a 2020 2020 2020 2020 2020  ber>............
        0x0400:  2020 2020 2020 3c55 444e 3e75 7569 643a  ......<UDN>uuid:
        0x0410:  3266 3430 3266 3830 2d64 6135 302d 3131  2f402f80-da50-11
        0x0420:  6531 2d39 6232 332d 3030 3137 3838 3137  e1-9b23-00178817
        0x0430:  3132 3263 3c2f 5544 4e3e 0d0a 2020 2020  122c</UDN>......
        0x0440:  2020 2020 2020 2020 2020 2020 3c73 6572  ............<ser
        0x0450:  7669 6365 4c69 7374 3e0d 0a20 2020 2020  viceList>.......
        0x0460:  2020 2020 2020 2020 2020 2020 2020 2020  ................
        0x0470:  2020 203c 7365 7276 6963 653e 0d0a 2020  ...<service>....
        0x0480:  2020 2020 2020 2020 2020 2020 2020 2020  ................
        0x0490:  2020 2020 2020 2020 2020 2020 2020 3c73  ..............<s
        0x04a0:  6572 7669 6365 5479 7065 3e28 6e75 6c6c  erviceType>(null
        0x04b0:  293c 2f73 6572 7669 6365 5479 7065 3e0d  )</serviceType>.
        0x04c0:  0a20 2020 2020 2020 2020 2020 2020 2020  ................
        0x04d0:  2020 2020 2020 2020 2020 2020 2020 2020  ................
        0x04e0:  203c 7365 7276 6963 6549 643e 286e 756c  .<serviceId>(nul
        0x04f0:  6c29 3c2f 7365 7276 6963 6549 643e 0d0a  l)</serviceId>..
        0x0500:  2020 2020 2020 2020 2020 2020 2020 2020  ................
        0x0510:  2020 2020 2020 2020 2020 2020 2020 2020  ................
        0x0520:  3c63 6f6e 7472 6f6c 5552 4c3e 286e 756c  <controlURL>(nul
        0x0530:  6c29 3c2f 636f 6e74 726f 6c55 524c 3e0d  l)</controlURL>.
        0x0540:  0a20 2020 2020 2020 2020 2020 2020 2020  ................
        0x0550:  2020 2020 2020 2020 2020 2020 2020 2020  ................
        0x0560:  203c 6576 656e 7453 7562 5552 4c3e 286e  .<eventSubURL>(n
        0x0570:  756c 6c29 3c2f 6576 656e 7453 7562 5552  ull)</eventSubUR
        0x0580:  4c3e 0d0a 2020 2020 2020 2020 2020 2020  L>..............
        0x0590:  2020 2020 2020 2020 2020 2020 2020 2020  ................
        0x05a0:  2020 2020 3c53 4350 4455 524c 3e28 6e75  ....<SCPDURL>(nu
        0x05b0:  6c6c 293c 2f53 4350 4455 524c 3e0d 0a20  ll)</SCPDURL>...
        0x05c0:  2020 2020 2020 2020 2020 2020 2020       ..............
21:52:04.101688 00:90:fb:1b:35:4f (oui Unknown) > 00:04:20:ea:38:de (oui Unknown), ethertype IPv4 (0x0800), length 941: 192.168.1.10.8080 > 192.168.1.114.38889: Flags [P.], seq 1449:2324, ack 205, win 514, options [nop,nop,TS val 772738787 ecr 3110162635], length 875
        0x0000:  4500 039f 894b 0000 4006 6a41 c0a8 010a  E....K..@.jA....
        0x0010:  c0a8 0172 1f90 97e9 63ba 0592 e78d d0f9  ...r....c.......
        0x0020:  8018 0202 b6a5 0000 0101 080a 2e0f 0ee3  ................
        0x0030:  b961 50cb 7669 6365 3e0d 0a20 2020 2020  .aP.vice>.......
        0x0040:  2020 2020 2020 2020 2020 203c 2f73 6572  ...........</ser
        0x0050:  7669 6365 4c69 7374 3e0d 0a20 2020 2020  viceList>.......
        0x0060:  2020 2020 2020 2020 2020 203c 7072 6573  ...........<pres
        0x0070:  656e 7461 7469 6f6e 5552 4c3e 696e 6465  entationURL>inde
        0x0080:  782e 6874 6d6c 3c2f 7072 6573 656e 7461  x.html</presenta
        0x0090:  7469 6f6e 5552 4c3e 0d0a 2020 2020 2020  tionURL>........
        0x00a0:  2020 2020 2020 2020 2020 3c69 636f 6e4c  ..........<iconL
        0x00b0:  6973 743e 0d0a 2020 2020 2020 2020 2020  ist>............
        0x00c0:  2020 2020 2020 2020 2020 2020 2020 3c69  ..............<i
        0x00d0:  636f 6e3e 0d0a 2020 2020 2020 2020 2020  con>............
        0x00e0:  2020 2020 2020 2020 2020 2020 2020 2020  ................
        0x00f0:  2020 2020 2020 3c6d 696d 6574 7970 653e  ......<mimetype>
        0x0100:  696d 6167 652f 706e 673c 2f6d 696d 6574  image/png</mimet
        0x0110:  7970 653e 0d0a 2020 2020 2020 2020 2020  ype>............
        0x0120:  2020 2020 2020 2020 2020 2020 2020 2020  ................
        0x0130:  2020 2020 2020 3c68 6569 6768 743e 3438  ......<height>48
        0x0140:  3c2f 6865 6967 6874 3e0d 0a20 2020 2020  </height>.......
        0x0150:  2020 2020 2020 2020 2020 2020 2020 2020  ................
        0x0160:  2020 2020 2020 2020 2020 203c 7769 6474  ...........<widt
        0x0170:  683e 3438 3c2f 7769 6474 683e 0d0a 2020  h>48</width>....
        0x0180:  2020 2020 2020 2020 2020 2020 2020 2020  ................
        0x0190:  2020 2020 2020 2020 2020 2020 2020 3c64  ..............<d
        0x01a0:  6570 7468 3e32 343c 2f64 6570 7468 3e0d  epth>24</depth>.
        0x01b0:  0a20 2020 2020 2020 2020 2020 2020 2020  ................
        0x01c0:  2020 2020 2020 2020 2020 2020 2020 2020  ................
        0x01d0:  203c 7572 6c3e 6875 655f 6c6f 676f 5f30  .<url>hue_logo_0
        0x01e0:  2e70 6e67 3c2f 7572 6c3e 0d0a 2020 2020  .png</url>......
        0x01f0:  2020 2020 2020 2020 2020 2020 2020 2020  ................
        0x0200:  2020 2020 3c2f 6963 6f6e 3e0d 0a20 2020  ....</icon>.....
        0x0210:  2020 2020 2020 2020 2020 2020 2020 2020  ................
        0x0220:  2020 2020 203c 6963 6f6e 3e0d 0a20 2020  .....<icon>.....
        0x0230:  2020 2020 2020 2020 2020 2020 2020 2020  ................
        0x0240:  2020 2020 2020 2020 2020 2020 203c 6d69  .............<mi
        0x0250:  6d65 7479 7065 3e69 6d61 6765 2f70 6e67  metype>image/png
        0x0260:  3c2f 6d69 6d65 7479 7065 3e0d 0a20 2020  </mimetype>.....
        0x0270:  2020 2020 2020 2020 2020 2020 2020 2020  ................
        0x0280:  2020 2020 2020 2020 2020 2020 203c 6865  .............<he
        0x0290:  6967 6874 3e31 3230 3c2f 6865 6967 6874  ight>120</height
        0x02a0:  3e0d 0a20 2020 2020 2020 2020 2020 2020  >...............
        0x02b0:  2020 2020 2020 2020 2020 2020 2020 2020  ................
        0x02c0:  2020 203c 7769 6474 683e 3132 303c 2f77  ...<width>120</w
        0x02d0:  6964 7468 3e0d 0a20 2020 2020 2020 2020  idth>...........
        0x02e0:  2020 2020 2020 2020 2020 2020 2020 2020  ................
        0x02f0:  2020 2020 2020 203c 6465 7074 683e 3234  .......<depth>24
        0x0300:  3c2f 6465 7074 683e 0d0a 2020 2020 2020  </depth>........
        0x0310:  2020 2020 2020 2020 2020 2020 2020 2020  ................
        0x0320:  2020 2020 2020 2020 2020 3c75 726c 3e68  ..........<url>h
        0x0330:  7565 5f6c 6f67 6f5f 332e 706e 673c 2f75  ue_logo_3.png</u
        0x0340:  726c 3e0d 0a20 2020 2020 2020 2020 2020  rl>.............
        0x0350:  2020 2020 2020 2020 2020 2020 203c 2f69  .............</i
        0x0360:  636f 6e3e 0d0a 2020 2020 2020 2020 2020  con>............
        0x0370:  2020 2020 2020 3c2f 6963 6f6e 4c69 7374  ......</iconList
        0x0380:  3e0d 0a20 2020 2020 2020 203c 2f64 6576  >..........</dev
        0x0390:  6963 653e 0d0a 3c2f 726f 6f74 3e0d 0a    ice>..</root>..
21:52:04.103269 00:90:fb:1b:35:4f (oui Unknown) > 00:04:20:ea:38:de (oui Unknown), ethertype IPv4 (0x0800), length 66: 192.168.1.10.8080 > 192.168.1.114.38889: Flags [F.], seq 2324, ack 205, win 514, options [nop,nop,TS val 772738788 ecr 3110162635], length 0
        0x0000:  4500 0034 894c 0000 4006 6dab c0a8 010a  E..4.L..@.m.....
        0x0010:  c0a8 0172 1f90 97e9 63ba 08fd e78d d0f9  ...r....c.......
        0x0020:  8011 0202 cd14 0000 0101 080a 2e0f 0ee4  ................
        0x0030:  b961 50cb                                .aP.
21:52:04.106294 00:04:20:ea:38:de (oui Unknown) > 00:90:fb:1b:35:4f (oui Unknown), ethertype IPv4 (0x0800), length 66: 192.168.1.114.38889 > 192.168.1.10.8080: Flags [.], ack 1449, win 4368, options [nop,nop,TS val 3110162886 ecr 772738787], length 0
        0x0000:  4500 0034 80ef 4000 4006 3608 c0a8 0172  E..4..@.@.6....r
        0x0010:  c0a8 010a 97e9 1f90 e78d d0f9 63ba 0592  ............c...
        0x0020:  8010 1110 c078 0000 0101 080a b961 51c6  .....x.......aQ.
        0x0030:  2e0f 0ee3                                ....
21:52:04.106334 00:04:20:ea:38:de (oui Unknown) > 00:90:fb:1b:35:4f (oui Unknown), ethertype IPv4 (0x0800), length 66: 192.168.1.114.38889 > 192.168.1.10.8080: Flags [.], ack 2324, win 5816, options [nop,nop,TS val 3110162886 ecr 772738787], length 0
        0x0000:  4500 0034 80f0 4000 4006 3607 c0a8 0172  E..4..@.@.6....r
        0x0010:  c0a8 010a 97e9 1f90 e78d d0f9 63ba 08fd  ............c...
        0x0020:  8010 16b8 b765 0000 0101 080a b961 51c6  .....e.......aQ.
        0x0030:  2e0f 0ee3                                ....
21:52:04.116826 00:04:20:ea:38:de (oui Unknown) > 00:90:fb:1b:35:4f (oui Unknown), ethertype IPv4 (0x0800), length 66: 192.168.1.114.38889 > 192.168.1.10.8080: Flags [F.], seq 205, ack 2325, win 5816, options [nop,nop,TS val 3110162889 ecr 772738788], length 0
        0x0000:  4500 0034 80f1 4000 4006 3606 c0a8 0172  E..4..@.@.6....r
        0x0010:  c0a8 010a 97e9 1f90 e78d d0f9 63ba 08fe  ............c...
        0x0020:  8011 16b8 b75f 0000 0101 080a b961 51c9  ....._.......aQ.
        0x0030:  2e0f 0ee4                                ....
21:52:04.116871 00:90:fb:1b:35:4f (oui Unknown) > 00:04:20:ea:38:de (oui Unknown), ethertype IPv4 (0x0800), length 66: 192.168.1.10.8080 > 192.168.1.114.38889: Flags [.], ack 206, win 514, options [nop,nop,TS val 772738802 ecr 3110162889], length 0
        0x0000:  4500 0034 8950 0000 4006 6da7 c0a8 010a  E..4.P..@.m.....
        0x0010:  c0a8 0172 1f90 97e9 63ba 08fe e78d d0fa  ...r....c.......
        0x0020:  8010 0202 cc07 0000 0101 080a 2e0f 0ef2  ................
        0x0030:  b961 51c9                                .aQ.
jimboca commented 8 years ago

Hi Semag,

I am having the same issue trying to interface this to the Amazon Echo and Andy made some suggested changes https://github.com/falk0069/hue-upnp/issues/2 which I tried but need to double check again since I left on vacation shortly after that. I hope to get back to it next week sometime. I was able to get it working with my Harmony Hub, so it does work, but something is not sent that other hubs expect.

Semag commented 8 years ago

Thanks Jimboca- I read through your thread again.

I think i'm going to try to use the real interface MAC address and see if that does anything.

The other part is I'm using the cheaper Harmony Hub, not the ultimate - but I think the base stations are the same?

Also- is the Hub supposed to request encoding GZIP, deflate?

GET /description.xml HTTP/1.1
connection: keep-alive
accept-language: en-us
accept-encoding: gzip, deflate
user-agent: LuaSocket/2.0.2 Pimento/3.12.9
accept: */*
te: trailers
host: 192.168.1.10
falk0069 commented 8 years ago

Semag,

This does look like the same issue Jimboca is having. The Hub gets far enough to request the description.xml but then does not turnaround and start making the JSON calls. This is very confusing. As for the accepting gzip/deflate, that is normal. It just means that it accepts these compressions but it isn't required. I looked through some of my old traces and they looked the same, so we'd expect the hub to send that.

I just tried a few remove and re-add attempts with my hub and it is still work, but oddly I'm not seeing it request the description.xml either using tcpdump. Maybe something is cached for me. I'm getting tired and might be missing something. I'm going to try looking at it more tomorrow.

Thanks --Andy

Semag commented 8 years ago

@falk0069 @jimboca

Guys- Great news!

I found my hub wasn't updated (Previously the "sync" would update, but the new 4.X software required a manual upgrade).

After upgrading to 4.X - it works!!!! I'm so excited, this is radical - I'm going to go play with seeing if I can get WOL working - and then the possibilities are endless!

Semag commented 8 years ago

Super awesome - totally works. Love it and got the external script call to work.

Now, my Harmony can issue remote commands (hauppauge remote) after the PC is booted and launch whatever i want - but the biggest issue was i could NOT use the remote to turn on the media PC. You've totally fixed that @falk0069 - you're my hero

falk0069 commented 8 years ago

Semag,

That is exactly why I did this...that and being able to control my Wemo devices too. I'm still concerned that there might be a problem because it appears that the new firmware never requests the description.xml and just assumes the JSON API URL is the same IP that the description.xml lives. Not a bad assumption, but I believe this might be related to jimboca's issue and the Echo device. In any case, I'm glad you are up and running.

Semag commented 8 years ago

If it would help I can get you a new tcpdump and a new log capture.

I think the xml/http request are case sensitive too (Basic:1 versus basic:1)

I found a way to launch Pandora via command-line (pianobar) and auto start a station.

This opens the door for that rad "walk through the door and music starts playing" type of automation :)

On Sat, Sep 19, 2015, 12:41 PM falk0069 notifications@github.com wrote:

Semag,

That is exactly why I did this...that and being able to control my Wemo devices too. I'm still concerned that there might be a problem because it appears that the new firmware never requests the description.xml and just assumes the JSON API URL is the same IP that the description.xml lives. Not a bad assumption, but I believe this might be related to jimboca's issue and the Echo device. In any case, I'm glad you are up and running.

— Reply to this email directly or view it on GitHub https://github.com/falk0069/hue-upnp/issues/3#issuecomment-141701133.