UR75 Milesight Gateway and Router Instruction Manual
- August 7, 2024
- Milesight
Table of Contents
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
- misdo card/SSD module
- Mile sight Gateway/Router
- Mile sight Gateway/Router Python SDK
Configuration
Upload Python SDK
- 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:
**
-
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. -
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
- 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.
-
Go to APP -> Python -> AppManager Configuration -> AppManager, enable AppManager.
-
Go to APP -> Python -> Python, click View and enter Supervisor page, the default username and password is:
pyapp/ py123456app -
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
- s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/73001510297/original/A6RIOpBAmyUy5Ld4w7b9NurVw81cl4D3dQ.png?1641629119
- s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/73001510298/original/kxGSJi-wKoi_jNJqUuoXBgi0zbe0DZhrzQ.png?1641629124
- s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/73001510300/original/lc8Rzl96wz7HcFIMND3rROhLYPbNG3oUpA.png?1641629134
- s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/73001510301/original/cnyg7IliN2hLZUv61w1FR2eIB2s37s5DSQ.png?1641629140
- s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/73001510303/original/_X4nnVQja_fBdUO2472ljrD7rAdnGG-LZw.png?1641629145
- s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/73001510305/original/c-dS5TOah9Z3yL40NXO7LmA_F0NmKoQHhQ.png?1641629150
- s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/73001510306/original/BWjl4MpAeR3CHFeZ9WNeBboQUij0PH3QRg.png?1641629155
- s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/73001510307/original/V1Q4kerWjCa3EKzC8gwAt0c9LNl3kK2qsQ.png?1641629161
- s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/73001510308/original/8LGekSTEnvLRhEReGLfFSVoFDcIbpyM85A.png?1641629167
- s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/73001510311/original/NvbwT223OpfRHRQ6Cvo2eSLFR5qZwkIsRw.png?1641629171
- s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/73001510313/original/1TWeJ9ZFFMDkGTyElx8hRsgg9vpusZJtWg.png?1641629176
- s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/73001510314/original/Tq2gOPTOpMhTPb5rOX_7yjjYfG3gnfPIag.png?1641629181
- s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/73001510316/original/FEjxN7wZOvfSsPRWjkfCsHFnZJrV6-RjNg.png?1641629186
- s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/73001510318/original/MfN6qNnkVsf4QhjBVHDMFOGAIPfPEztZ5A.png?1641629192
- s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/73001510320/original/cuz1s2yeuWUWUA6peWXXsjKKdG98q-KPGA.png?1641629198
- s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/73001510323/original/8Boo0IPjh7pxRPo8OImnfZVUaxfMm15M6Q.png?1641629205