The discovery

Anonymous
2010-10-04
2013-03-28
1 2 > >> (Page 1 of 2)
  • Anonymous - 2010-10-04

    Hi,
    There are some questons…
    Does this program support other NVTs ?  When my NVT send ProbeMatch to device manager, there is no display on its device list.
    Best Regards,
    KWLEE

     
  • Andrey Vrana

    Andrey Vrana - 2010-10-04

    G'day
    Yes, we support other devices that implement ONFIV protocol, but we have not tested many devices for compatibility. Could you please send ProbeMatch response and model of your device, we will find the cause and try to fix ASAP.

    Regards,
    Andrey Vrana

     
  • Anonymous - 2010-10-04

    I'll send you captured packets by wire-shark, show me where I should send to..

    Best Regards,
    KWLEE

     
  • Andrey Vrana

    Andrey Vrana - 2010-10-04

    Please use this e-mail:
    andreyvr@synesis.ru

     
  • Anonymous - 2010-10-13

    Just installed your 20101012 version. After installation and click the nvc icon, this program crashed.
    mine platform is WinXP SP3
    BTW, Is that possible to change version information in the program, it's always 1.0.0

    KWEE

     
  • Seung Youl Lee

    Seung Youl Lee - 2011-03-28

    I'm developing ONVIF camera. ONVIF test tool 1.02 auto-discovery my IP camera. But, your tools does not auto-discover my IP camera. What is the difference between ONVIF test tool and your ONVIF auto-discovery tool?

    I will send my response message to andreyvr@synesis.ru ..Please check my response.

     
  • Azeem Akram

    Azeem Akram - 2012-05-29

    Hello guys…

    I am making my own windows based application with the help of Onvif libraries. This application will search the devices on my network.
    I need to get the device information as well but i am getting an error that "the server has no endpoint or no listening point"

    so how can i get rid from it?

    Please Help me.

     
  • Andrey Vrana

    Andrey Vrana - 2012-05-29

    Hello,

    Here you can see a simple example how to get device infirmation with out lib:

    System.Net.NetworkCredential Account = new System.Net.NetworkCredential("username", "password");
    NvtSessionFactory factory = new NvtSessionFactory(Account);
    Uri uri = new Uri(@"http://YOUR_DEVICE_IP/onvif/device_service");
    var invtSession = factory.CreateSession(uri);

    try{
       invtSession.GetDeviceInformation().RunSynchronously();
    }catch(Exception err){
       //Do thomething with error
    }

    Regards,
    Andrey Vrana

     
  • Azeem Akram

    Azeem Akram - 2012-05-29

    Really thanks Andrey Vrana. I am going to try it and hoping to get good results.

     
  • Andrey Kolomentsev

    This error usually indicate that the device is not accessible for provided uri, please describe your situation in more details, wireshark logs may be very useful

     
  • Azeem Akram

    Azeem Akram - 2012-05-29

    @akolomentsev : acutally i need to get the device information like firmware version, device type, hardware id etc. I tried to use Onvif open source library but when it tries to get response for information collection it returns an error that "server has no endpoint or don't have listening point. I am embeding the piece of code with this replay please have a look on this and please help me

               var endPointAddress = new EndpointAddress("http://ip_address:port/onvif/device_service");
                var httpBinding = new HttpTransportBindingElement();
                var messegeElement = new TextMessageEncodingBindingElement();
                var bind = new CustomBinding(httpBinding);
                var temp = new DeviceClient(bind, endPointAddress);
                var request = new GetDeviceInformationRequest()
                var response = temp.GetDeviceInformation(request);   ///////// error here   ////////////
                string firm = response.FirmwareVersion;
                string manu = response.Manufacturer;
                string serial = response.SerialNumber;
                string model = response.Model;

     
  • Azeem Akram

    Azeem Akram - 2012-05-29

    @Andrey Vrana : : would you please tell me where to get this NvtSessionFactory component, i am not getting it? and does this library gets the information without getting login into the device?

     
  • Andrey Kolomentsev

    could you make wireshark log? I think that device is not reachable for some reasons, firewall or incorrect net mask may lead to it… but first we need to make sure that it's really failed to make tcp connection, you can check it in log.

     
  • Azeem Akram

    Azeem Akram - 2012-05-29

    @akolomentsev :: ok, i come back with wireshark log.

     
  • Azeem Akram

    Azeem Akram - 2012-05-29

    @andrey vrana :: I have included the onvif.services.dll reference in my project and include it as well like this

    using onvif.services;

    but it is still not resolving the followings classes

    NvtSessionFactory
    CreateSession(uri)
    GetDeviceInformation()

    could you please elaborate. I am very thankful to you for this help.

     
  • Andrey Kolomentsev

    There are some aspects, you should take into account when using onvif libraries.
    Add following settings into your app.config file:

    <system.net>
       <settings> 
          <!-- follow reccomendation RFC 2616, section 19.3 "Tolerant Applications". allow to work with devices that separate
          headers only with LF. --> 
          <httpWebRequest useUnsafeHeaderParsing="true"/>
       </settings>
       <connectionManagement>
          <!-- set maximum number of simultaneous http connections per uri, default is 3. for normal work of onvif session it should
          be at least 10 -->
          <add address = "*" maxconnection = "100" />
       </connectionManagement>
       <authenticationModules>
          <!-- add support for utf encoded username and password contained non-ASCII chars for http basic authentication -->
          <remove type="System.Net.BasicClient" /> <add type="utils.UtfBasicAuthenticationModule, utils.common" />
       </authenticationModules>
    </system.net>
    

    somewhere in bootsrapper code, add following:

    //some devices don't understand http header "Expect: 100-Continue"
    ServicePointManager.Expect100Continue = false; 
    //accept any certificate for tls connections ServicePointManager.ServerCertificateValidationCallback = (sender, certificate, chain, policyErrors) => { return true; };
    
     
  • Andrey Kolomentsev

    .net 4.0 is required and typical set of necessary libraries is:
    onvif.services.dll
    onvif.session.dll
    onvif.utils.dll
    utils.common.dll
    utils.diagnostics.dll
    utils.fsharp.dll
    utils.linq.dll
    utils.xml.dll
    System.Reactive.dll
    FSharp.Core.dll
    all they are available from sources on sourceforge

     
  • Azeem Akram

    Azeem Akram - 2012-05-29

    @andrey vrana :: oh dear i found it in odm.core.NvtsessionFactory

    but there remains a problem now…

    var invtSession = factory.CreateSession(uri);

    this line ask for a library util.fsharp?

    i want to know why it is asking for util.fsharp?
    is CreateSession not a class of onvif.session.dll?

     
  • Azeem Akram

    Azeem Akram - 2012-05-29

    @akolomentsev :: I am not getting these libraries from sourceforge. it contains only the CS files of FS files

    following libraries

    utils.common.dll
    utils.diagnostics.dll
    utils.fsharp.dll
    utils.linq.dll
    utils.xml.dll

     
  • Azeem Akram

    Azeem Akram - 2012-05-29

    @akolomentsev :: i am stuck here, i think i am not much far away from solution but i am not getting anything. so please help me. i am very very much thankful to all of you, specially this forum, helped me alot.

    just need a little push to complete my task …

     
  • Andrey Vrana

    Andrey Vrana - 2012-05-29

    please give me your e-mail, i'll send you simple example for VS2010 with get device information call.

     
  • Azeem Akram

    Azeem Akram - 2012-05-29

    its camba.azeem@gmail.com
    i am really thankful to you.

     
  • Andrey Kolomentsev

    If you want to use our onvif libraries in your project, the following steps are needed to be done:
    1 - download sources from sorceforge (http://onvifdm.svn.sourceforge.net/viewvc/onvifdm/?view=tar)
    2 - copy following folders to your solution folder:
      libs/onvif
      libs/rx-…
      utils/utils.common
      utils/utils.diagnostics
      utils/utils.fsharp
      utils/utils.linq
      utils/utils.xml

    2 - add following projects to your solution
      utils/utils.common/utils.common.csproj
      utils/utils.diagnostics/utils.diagnostics.csproj
      utils/utils.fsharp/utils.fsharp.fsproj
      utils/utils.linq/utils.linq.csproj
      utils/utils.xml/utils.xml.csproj

    3 - merge odm/odm.ui.app/app.config as has been pointed above
    4 - add bootstrapper code as has been pointed above
    5 - add reference to libs/onvif/onvif.services.dll, libs/onvif/onvif.session.dll, and other necessary libraries to your project

     
  • Azeem Akram

    Azeem Akram - 2012-05-29

    @akolomentsev :: Thanks alots sir, surely i am going to do this and hoping to get back to you on this forum with some positive response. Thanks alot again, This forum was really helping.

     
1 2 > >> (Page 1 of 2)

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks