Milesight Routers Installation Guide
- August 9, 2024
- Milesight
Table of Contents
Routers
Installation Guide
How to “pip install” in Milesight Routers
Created by: Youny Huang
Modified on: Sun, 8 Oct, 2023 at 8:04 PM
Description
Milesight cellular routers all come with built-in component for secondary
development in Python. Python SDK is required for Milesight Router to carry
out the commands in this article. To enable related functions, please refer to
this article (How to Install Python SDK and Read Log
(https://support.milesightiot.com/en/support/solutions/articles/73000514211))
and import the SDK first.
Note : If the code needs to compile using other compiler like C or C++,
it not able to install it like this in the router.
Requirement
- PuTTY (http://resource.milesight-iot.com/software/putty.exe) or any Shell tool to log in router system via SSH
- Milesight Router/CPE/Gateway
Configuration
-
Open Putty or any Shell tool to login in as admin, password is password by default. If you have changed the password, use your custom password here.
-
Install Python SDK for your development, take install AWS Python SDK for example: (en=enable; con t=configure terminal)
ROUTER> en
ROUTER# conf t
ROUTER(config)# python
ROUTER(Python)# pip install AWSIoTPythonSDK
HTML If other python libraries are needed, you can go to the pip official website (https://pypi.org/project/pip/) to view the commands. -
Verify the installation with command pip list or show-pylibs. This will take some times to show the list please do not operate the device during the time. Other basic python related commands in Linux system are supported as well.
-
If you want to uninstall packets, you can use command pip uninstall
Y Youny is the author of this solution article.
References
- resource.milesight-iot.com/software/putty.exe
- pip · PyPI
- s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/73001510355/original/lc6GCr744_27YVP3PDOdlUzRWMjOWgYK_g.png?1641629402
- s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/73001510360/original/ILe9NRcnydcxOHoT69x3ilONMzIh9PbpnA.png?1641629417
- s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/73001510364/original/f8J6E6_6QeRCEkFi9f0JCTyeaPsfoq6hLQ.png?1641629425
- s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/73001510367/original/b74UgQUfSk4ZFzrlrhameCpXekjJc7yYZA.png?1641629432
- s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/73001510371/original/o6ehtS5uNBV_Dql0tZgH3TDMuCO8qveKLw.png?1641629439
- How to "pip install" in Milesight Routers : IoT Support