Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

Virtual Device - GetVolume - DNLA


Question

Posted

Hi,

 

I have a Virtual Device from which I want to get the volume of a dlna-device. I use the following code:

Please login or register to see this code.

But I get an error, if I use the code:

 

[DEBUG] 22:22:19: HTTP/1.1 400 Bad Request SERVER: Linux/2.6.32.27, UPnP/1.0, Portable SDK for UPnP devices/1.6.6 CONNECTION: close CONTENT-LENGTH: 50 CONTENT-TYPE: text/html

 

400 Bad Request

 

 

Maybe somebody could help me with this. I have no other idea

Please login or register to see this image.

/emoticons/default_sad.png" alt=":(" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

 

Thanks
 

9 answers to this question

Recommended Posts

  • 0
  • Inquirer
  • Posted

    nobody?

    Please login or register to see this image.

    /emoticons/default_sad.png" alt=":(" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

    • 0
    Posted

    Just a thought, didn't try this...

    With 0x0D0x0A0x0D0x0A you want to send an 'enter' command right?

    Remove this from your payload and add

    Please login or register to see this code.

    and change:

    Please login or register to see this code.

    to

    Please login or register to see this code.

    As I mentioned, it's just a thought....

    • 0
  • Inquirer
  • Posted

    I try your idea... Thank you. Still the same error:

     

    [DEBUG] 13:45:19: POST /upnp/control/rendertransport1 HTTP/1.1 Content-Length: 500 SOAPACTION: "urn:schemas-upnp-org:service:RenderingControl:1#GetVolume"

     

    [DEBUG] 13:45:49: HTTP/1.1 400 Bad Request SERVER: Linux/2.6.32.27, UPnP/1.0, Portable SDK for UPnP devices/1.6.6 CONNECTION: close CONTENT-LENGTH: 50 CONTENT-TYPE: text/html

    400 Bad Request
     
     
    Maybe the error is the content-length. But I don't know how to count it. 
    • 0
    Posted

    Google it there are plenty of cut n paste string calcs online

    • 0
  • Inquirer
  • Posted

    Google it there are plenty of cut n paste string calcs online

     

    Or you upload the working rocki-vd

    Please login or register to see this image.

    /emoticons/default_wink.png" alt=";)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" /> I asked you via pm

    Please login or register to see this image.

    /emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" /> would be nice 

    • 0
    Posted

    Maybe you can change content length 363 to 405?

    Please login or register to see this link.

    • 0
  • Inquirer
  • Posted

    Get it

    Please login or register to see this image.

    /emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" /> thx for your help...

    Please login or register to see this image.

    /emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

    Please login or register to see this code.

    • 0
    Posted

    Okay, you count only the real content instead of everything, what I Did...

    Learning all the time...

    Please login or register to see this image.

    /emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

    • 0
  • Inquirer
  • Posted

    Okay, you count only the real content instead of everything, what I Did...

    Learning all the time...

    Please login or register to see this image.

    /emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

     

    Yes, that was it

    Please login or register to see this image.

    /emoticons/default_wink.png" alt=";)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" /> Good to know for the future... 

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...