Is the Nx Cloud up? Visit our Status Page for the current health and performance of the Nx Cloud.

Status Page

How to distinguish multiple lenses in a dual-lens network camera when both return the same MAC

Planned

Comments

2 comments

  • Norman
    • Network Optix team

    Hi Subramanian ,

    You can distinguish each sensor with the unique ID in the VMS. 

    When you run the following API request and check the output: 

    GET https://localhost:7001/rest/v3/devices?_with=id,vendor,model,mac,name,url

    You'll see that, although the mac addresses are identical, the id is always unique, and that id is used to distinguish one sensor from another.

    [
      {
        "id": "{24efadea-e5fe-0e69-8e4a-343bec205c25}",
        "mac": "B8-A4-4F-5F-B4-26",
        "model": "AXISP4707PLVE",
        "name": "AXISP4707PLVE-channel 1",
        "url": "http://195.60.68.14:12036?channel=1",
        "vendor": "Axis"
      },
      {
        "id": "{1f3aed54-10e2-7e2b-e7d2-129afbf53292}",
        "mac": "B8-A4-4F-5F-B4-26",
        "model": "AXISP4707PLVE",
        "name": "AXISP4707PLVE-channel 2",
        "url": "http://195.60.68.14:12036?channel=2",
        "vendor": "Axis"
      }
    ]

    So if I want to change the name for sensor 1, I use the id for sensor one (24efadea-e5fe-0e69-8e4a-343bec205c25) for my patch request: 

    PATCH https://localhost:7001/rest/v3/devices/24efadea-e5fe-0e69-8e4a-343bec205c25

    With body: 

    {   
        "name": "<any_name_you_like>"
    }

    With kind regards,

    0
  • Subramanian

    how do i know it from the same camera. every camera will return the id if i have more then 100
    and my mac is assigned directly from device agent object creation 

                    void Engine::doObtainDeviceAgent(Result<IDeviceAgent*>* outResult, const IDeviceInfo* deviceInfo)
                    {
                        *outResult = new DeviceAgent(deviceInfo);
                        DeviceAgent* objDeviceAgent = (DeviceAgent*)outResult->value();
     

    0

Please sign in to leave a comment.