Setup

Install Asilla SDK

Pull and Run the AsillaSDK Client Image from Docker Hub
For CUDA 10
sudo docker pull asilla/sdk_client:v1.5_cuda-10.2
sudo docker run -it --restart=always --runtime=nvidia --name asilla_sdk_client -p 8090-8091:8090-8091 -p 5000:5000 --privileged --network host --device /dev/mem:/dev/mem -v /etc/timezone:/etc/timezone -v /etc/localtime:/etc/localtime asilla/sdk_client:v1.5_cuda-10.2
For CUDA 11 and later
sudo docker pull asilla/sdk_client:v1.5_cuda-11
sudo docker run -it --restart=always --runtime=nvidia --name asilla_sdk_client -p 8090-8091:8090-8091 -p 5000:5000 --privileged --network host --device /dev/mem:/dev/mem -v /etc/timezone:/etc/timezone -v /etc/localtime:/etc/localtime asilla/sdk_client:v1.5_cuda-11

Activate

Online Activate

You can activate Asilla SDK online if your device has an internet connection.

  1. Use the below command to activate:
    asdk activate
  2. Type License ID and License Key getting from the Preparation step
Offline Activate

If your device doesn’t have an internet connection, you can activate Asilla SDK offline by following these steps.

  1. Run the below command:
    asdk run_api
  2. You need to install SDK GUI Management first. Then open the GUI in a browser, go to the Device List page, fill your device's info and click “Update”.
  3. Click “Download Device Key” to get the device key file.
  4. Login to asilla.com, go License Detail page, click to “Import Device Key” and select the device key file that you got in 3rd step.
  5. After the Status changes to “Activated”, click “Download Active Key” to get the actkey file.
  6. Then go back to Asilla SDK GUI, go to Device List page, click the button “Import Activation Key” and select the “actkey” file you got in 5th step.

If you get the message “Import successfully”, Asilla SDK will be activated successfully.

Setup Cameras

After installation, there will be 3 cameras created, corresponding to IDs 1, 2, 3. To set up cameras, use the command below.

asdk set_camera_url 1 CAMERA_URL
asdk set_camera_url 2 CAMERA_URL
asdk set_camera_url 3 CAMERA_URL

If you want to add more cameras, use this command:

asdk add_camera 4
For IP Camera

The CAMERA_URL of an IP Camera is made up of the username and password, IP address of the camera, RTSP port and camera path as defined by the camera vendor.

Camera Url Format:

rtsp://USER:PW@IPADDR:PORT/PATH (if user/pw authentication is turned on)
rtsp://IPADDR:PORT/PATH

Example:

asdk set_camera_url 1 rtsp://192.168.0.111:554/media/video1

Note: Asilla SDK technical support is unable to find your camera’s URL, so please refer to the camera documentation, or contact the vendor.

For USB Camera

CAMERA_URL is device path of a USB camera

Example:

asdk set_camera_url 2 /dev/video0

Note: For the USB cameras, it is recommended to connect the camera before running the container. In case you forget or the USB connection is interrupted, you need to restart the container to reload the USB camera.

Install Asilla SDK

Pull the AsillaSDK Client Image from Docker Hub
sudo docker pull asilla/sdk_client_nx:v1.5_cuda-10.2
Pull images successfully screen
Run the Image
sudo docker run -it --net=host --restart=always --runtime=nvidia --name asilla_sdk_client -p 8090-8091:8090-8091 -p 5000:5000 --privileged -v /etc/nv_tegra_release:/etc/nv_tegra_release -v /sys/firmware:/sys/firmware -v /etc/timezone:/etc/timezone -v /etc/localtime:/etc/localtime asilla/sdk_client_nx:v1.5_cuda-10.2 /workspace/autostart.sh
Run images successfully screen

Activate

Online Activate

You can activate Asilla SDK online if your device has an internet connection.

  1. Use the below command to activate:
    asdk activate
  2. Type License ID and License Key getting from the Preparation step
Activate successfully screen
Offline Activate

If your device doesn’t have an internet connection, you can activate Asilla SDK offline by following these steps.

  1. Run the below command:
    asdk run_api
  2. You need to install SDK GUI Management first. Then open the GUI in a browser, go to the Device List page, fill your device's info and click “Update”.
  3. Click “Download Device Key” to get the device key file.
  4. Login to asilla.com, go License Detail page, click to “Import Device Key” and select the device key file that you got in 3rd step.
  5. After the Status changes to “Activated”, click “Download Active Key” to get the actkey file.
  6. Then go back to Asilla SDK GUI, go to Device List page, click the button “Import Activation Key” and select the “actkey” file you got in 5th step.

If you get the message “Import successfully”, Asilla SDK will be activated successfully.

Setup Cameras

After installation, there will be 3 cameras created, corresponding to IDs 1, 2, 3. To set up cameras, use the command below.

asdk set_camera_url 1 CAMERA_URL
asdk set_camera_url 2 CAMERA_URL
asdk set_camera_url 3 CAMERA_URL
Setup camera successfully screen
For IP Camera

The CAMERA_URL of an IP Camera is made up of the username and password, IP address of the camera, RTSP port and camera path as defined by the camera vendor.

Camera Url Format:

rtsp://USER:PW@IPADDR:PORT/PATH (if user/pw authentication is turned on)
rtsp://IPADDR:PORT/PATH

Example:

asdk set_camera_url 1 rtsp://192.168.0.111:554/media/video1

Note: Asilla SDK technical support is unable to find your camera’s URL, so please refer to the camera documentation, or contact the vendor.

For USB Camera

CAMERA_URL is device path of a USB camera

Example:

asdk set_camera_url 2 /dev/video0

Note: For the USB cameras, it is recommended to connect the camera before running the container. In case you forget or the USB connection is interrupted, you need to restart the container to reload the USB camera.