Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Taking shots with the nx3000 #10

Open
algemir opened this issue Jul 15, 2017 · 1 comment
Open

Taking shots with the nx3000 #10

algemir opened this issue Jul 15, 2017 · 1 comment

Comments

@algemir
Copy link

algemir commented Jul 15, 2017

Hello,
I should start by stating that I do not know much about sending/receiving requests. I still somehow managed to pair my raspberry pi with my nx3000, and start viewfinder using the following request:

POST /smp_4_ HTTP/1.0

Content-Type: text/xml
HOST: http://192.168.107.1:7676
SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#GetInfomation"

<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
    <u:GetInfomation xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1">
        <GPSINFO>UNKNOWN</GPSINFO>
    </u:GetInfomation>
</s:Body>
</s:Envelope>

In the wiki about the nx3000 it is then explained that a similar request can be used to take a shot for instance, by just replacing "GetInformation" by the correct action. I tried "Shot" and "ShotWithGPS" (from smp_3_.xml) but it doesn't work. Could anyone help me and tell me what request should be use to command the camera to take a shot ? Thank you.

@algemir algemir changed the title Taking shots with the x3000 Taking shots with the nx3000 Jul 15, 2017
@Nikolas-LFDesigns
Copy link
Collaborator

Nikolas-LFDesigns commented Jul 17, 2017

POST /smp_3_ HTTP/1.0

Content-Type: text/xml
HOST: http://192.168.107.1:7676
SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#Shot"

<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
    <u:Shot xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1">
    </u:Shot>
</s:Body>
</s:Envelope>

What's changed:

  • smp_3_ (hence the filename for commands set)
  • #GetInfomation -> #Shot
  • <u:GetInfomation and </u:GetInfomation -> <u:Shot and </u:Shot
    You could see a full request listing when observing a logcat of original android app.

UPD: checked my findings again, you should still use smp_4_ as a link, while smp_3_ is a capabilities-checker protocol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants