Milesight cellular routers all come with built-in component for secondary development in Python. PySDK is required for UR32/35 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) and import the SDK first.
If the model is UR51/52/55 or UR71/72/75, please submit a ticket for instructions.
- PuTTY or any Shell tool to log in router system via SSH
Open PuTTY or any Shell tool to log in as “admin”, password is “password” by default. If you have changed the password to admin on web GUI, use your custom password here.
For example, you need to install AWS Python SDK for your development. Type down the following commands in Shell command line window:
ROUTER# con t
ROUTER(Python)# pip install AWSIoTPythonSDK
(en=enable; con t=configure terminal)
Verify the installation with command:
ROUTER(Python)# pip show
Other basic python related commands in Linux system are supported as well.
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.