Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

The main goal is to simplify the installation process and minimize user errors when adding a camera to the cloud.

All information that a camera needs to know is encrypted in an ACCESS TOKEN. This is how a camera can get an ACCESS TOKEN on start.

#1. 

  • User types a MAC address (or any other camera ID) and password

  • The back-end creates new channels or obtains an access token for an existing channel

  • The back-end sends the MAC address, password and the access_token to VXG Provisioning service.


#2.

  • If the camera doesn’t an ACCESS TOKEN yet, it keeps requesting the VXG Provisioning service by sending its MAC address (or any other camera ID).

  • The VXG service returns an ACCESS TOKEN if there is a token for a specific MAC.

#3

  • As soon as the camera obtains an access token, it becomes fully connected to the VXG Platform.

Steps for end-user (example)

  1. Unpack a camera.

  2. Log in and click "Add camera" in Web UI or Mobile App.

  3. Enter the MAC address and password.

  4. Wait for 30 seconds.

  5. Start watching live video.

API calls and sequence

The camera uses this API to get an access token from VXG service using Serial ID and password.

Entry point : https://cameras.vxg.io

API              : /v1/camera/get_token

Input parameters:

  • serial_id is a unique identifier that the user sees on the camera sticker.

  • password - the camera password that the user sees on the camera sticker upon first launch.

Output parameter :

  • HTTP responce and access_token

Example:

curl -X POST "https://cameras.vxg.io:443//v1/camera/get_token/" -H "accept: application/json" -H "Content-Type: application/json"  -d '{ "serial_id": "XXX-XXX-XXX", "password": "camera_password" }'

Camera operations: new camera, no token, after reset

The camera requests an access token from the VXG service using HTTPS and VXG API. If the server does not return an access token due to the fact that the user did not specify the camera parameters, the camera requests again every minute for 5 minutes and after 5 attempts it requests the token every hour until it receives the token.

Camera operations: Camera has token

The camera should not request an access token if it already has one.

Camera operations:  Forced changing token on a camera

The user can change the access token on the camera using the Camera Finder app or manually. In this case, the camera does not need to request this token, because the camera has a token.

Camera operations:  Connect the camera to a new account

To connect the camera to a new account, you need the following:

  1. Add the camera to the new account (Enter serial number and password)

  2. Reset the camera.

Other options

QR code read by a mobile app.

QR code read by a camera (especially useful for WiFi).

  • No labels