UR75 Milesight Gateway and Router Instruction Manual

August 7, 2024
Milesight

UR75 Milesight Gateway and Router Instruction Manual

How to Install Python SDK and Read Log

Created by: Harry Hua
Modified on: Wed, 12 Jan, 2022 at 3:57 PM

Description

Due to the fact that many field projects require variable functions in real practice, Mile sight thus provides API for
secondary development in order to meet the various needs. Some python libraries like paho-mqtt, pymodbus, serial that require compiler GCC, have been integrated. If you need any other python libraries, please contact Mile sight about your application so that we can evaluate and pre-install the libraries like cryptography for you.
This article describes how to install Python SDK and Python APP and how to view activity log. Take upload Python SDK
of UR32 and cellularStstusWriteSerial APP as an example.
You can download Python SDK from here (https://www.milesight-iot.com /software-download/)

Requirements

  1. misdo card/SSD module
  2. Mile sight Gateway/Router
  3. Mile sight Gateway/Router Python SDK

Configuration

Upload Python SDK

  1. Install mSD card or SSD module
    UG6X/UG85/UF51: No mSD card slot or SSD slot. Supported to save application and data cache in built-in eMMC. UG87/UR75-5G: Supported to save application and data cache in built-in eMMC or extra SSD module. UR32:

25/01/24, 08:58 How to Install Python SDK and Read Log : IoT Support\

**UR51:

**

**UR52/55:

UR71:
**

**UR72/75:

**

  1. Go to System -> General Settings -> Storage of Web GUI, click Format to clean up the files in the disk. Please double check if you want to format mSD or SSD.
    Note: Whether to format the mSD card/SSD module should depend on the real situations.

  2. Go to APP -> Python -> Python -> SDK Upload, click Browser to select Python SDK according to the device
    model, select an Available Storage, click Browser to import Python SDK from your computer, click Install to upload it.

If SDK for another models is uploaded, a warning note will indicate.

Import Python APP package

  1. Go to APP -> Python -> Python APP -> Import APP Package, click Browser to select your Python APP package,\ and then click Import to upload it in .zip format. Take import cellularStatusWriteSerial APP package as an example:
    Note: if the App was not packaged as the sample code, as placed within an extra folder, a warning note will indicate “I/O error”.

Please check the example App at the end of the article and note that do not compress more than once when packing your App program.

  1. Go to APP -> Python -> AppManager Configuration -> AppManager, enable AppManager.

  2. Go to APP -> Python -> Python, click View and enter Supervisor page, the default username and password is:
    pyapp/ py123456app

  3. Click Tail-f, check the Python Log. Log is available only with AppManager enabled.

Note: Python App and data cache are all saved in mSD/SSD/eMMC. It is advised to take memory space into consideration when developing Python SDK.

References

Read User Manual Online (PDF format)

Loading......

Download This Manual (PDF format)

Download this manual  >>

Related Manuals