• November 01, 2024, 04:34:12 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: Bugs in DIR-655 UPNP implementation  (Read 4737 times)

tramvon

  • Level 1 Member
  • *
  • Posts: 4
Bugs in DIR-655 UPNP implementation
« on: August 15, 2014, 08:02:08 AM »

 Hi!

 I try to write the UPNP Control Point software and I try to subscrive for events on DIR-655.
Subscription works fine, but subscription renewal fails with HTTP 412 code -  Precondition Failed, bad SID.
 My Control Point software work fine with any other UPNP devices in my network work, including D-Link DI-624.

The HTTP messages (captired by wireshark):

Subscription:

SUBSCRIBE /l3fw HTTP/1.0
Host: 192.168.0.1
CALLBACK: <http://192.168.0.100:7169/evt/43E47718-E7F6-D950-A503-71346C1D9944>
NT: upnp:event
TIMEOUT: Second-60

HTTP/1.1 200 OK
SID: uuid:5B68F900-2863-104D-8000-002401F35BC2
TIMEOUT: Second-60
SERVER: ipOS/7.6 UPnP/1.0 ipGENADevice/1.0


Renewal (50 seconds later):

SUBSCRIBE /l3fw HTTP/1.0
Host: 192.168.0.1
SID: uuid:5B68F900-2863-104D-8000-002401F35BC2
TIMEOUT: Second-60

HTTP/1.1 412 Precondition Failed, bad SID
SERVER: ipOS/7.6 UPnP/1.0 ipGENADevice/1.0


Also I tried to use HTTP/1.1 in subscription requests (and add "Connection:close" header), but there is no effect.

What I'm doing wrong?
Logged

FurryNutz

  • Poweruser
  •   ▲
    ▲ ▲
  • *****
  • Posts: 49923
  • D-Link Global Forum Moderator
    • Router Troubleshooting
Re: Bugs in DIR-655 UPNP implementation
« Reply #1 on: August 15, 2014, 08:18:39 AM »

Link>Welcome!

  • What Hardware version is your router? Look at sticker under router.
  • Link>What Firmware version is currently loaded? Found on the routers web page under status.
  • What region are you located?
Logged
Cable: 1Gb/50Mb>NetGear CM1200>DIR-882>HP 24pt Gb Switch. COVR-1202/2202/3902,DIR-2660/80,3xDGL-4500s,DIR-LX1870,857,835,827,815,890L,880L,868L,836L,810L,685,657,3x655s,645,628,601,DNR-202L,DNS-345,DCS-933L,936L,960L and 8000LH.

tramvon

  • Level 1 Member
  • *
  • Posts: 4
Re: Bugs in DIR-655 UPNP implementation
« Reply #2 on: August 15, 2014, 08:32:01 AM »

H/W: A4
F/W: 1.34WW / 1.37WW - problem still exist
Russia
Logged

tramvon

  • Level 1 Member
  • *
  • Posts: 4
Re: Bugs in DIR-655 UPNP implementation
« Reply #3 on: August 15, 2014, 02:57:40 PM »

I've download DIR-655_GPL_code_revb.rar but at this moment I can't find the part of source code for UPNP/GENA when I investigate that source codes to find answers for errors (my or d-link errors).
Logged

tramvon

  • Level 1 Member
  • *
  • Posts: 4
Re: Bugs in DIR-655 UPNP implementation
« Reply #4 on: August 17, 2014, 08:11:55 AM »

When I try to renew subscription immediately after subscribe, it works. Wait 750ms and renew - works. Wait 900ms and renew - fails with HTTP 412. It seems that there is a bugs in D-Link equipment (another D-Link router DI-624 works in the same manner). Intel device validator (https://software.intel.com/en-us/articles/intel-tools-for-upnp-technologies) validates DIR-655 and DI-624 eventing without errors, but, I think, there is no pause between subscribing and renewal steps. So, I think, UPNP eventing is not a reliable mechanism and it is better don't to use it.

Such device behavior compromises an upnp eventing mechanism idea.
« Last Edit: August 17, 2014, 08:17:23 AM by tramvon »
Logged

FurryNutz

  • Poweruser
  •   ▲
    ▲ ▲
  • *****
  • Posts: 49923
  • D-Link Global Forum Moderator
    • Router Troubleshooting
Re: Bugs in DIR-655 UPNP implementation
« Reply #5 on: August 19, 2014, 06:46:24 AM »

I recommend that you phone contact your regional D-Link support office and ask for help and information regarding this. We find that phone contact has better immediate results over using email.
Let us know how it goes please.
Logged
Cable: 1Gb/50Mb>NetGear CM1200>DIR-882>HP 24pt Gb Switch. COVR-1202/2202/3902,DIR-2660/80,3xDGL-4500s,DIR-LX1870,857,835,827,815,890L,880L,868L,836L,810L,685,657,3x655s,645,628,601,DNR-202L,DNS-345,DCS-933L,936L,960L and 8000LH.