Quick Entry
Click Package Repo on the Quick Entry tab page on the home page. The Package Repo page is displayed.
Importing an SND package
On the Package Repo page, import an SND package, including the software package (.zip) and signature file (.asc).
Activating an SND package
Click Deploy in the Operation column to activate the SND package.
Managing Devices
Choose Resource > Device Management from the main menu.
Creating a device
Click Create. On the Create NE page that is displayed, set basic information and communication parameters of the device.
Checking a device
Choose Device Configuration > Device Configuration from the main menu. On the Device Configuration page that is displayed, check the newly added device. If the device status is normal, the device is managed successfully.
Accessing the package management page
Choose Package Repo from the main menu. On the package management page that is displayed, click Add.
Creating an SSP package template
Set service package parameters and click OK. An SSP package template is created.
Exporting the template and developing an SSP package
Export the SSP package template and import it to PyCharm. You can develop SSP packages in the IDE. For details, refer to Advanced Learning.
Opening the page
In Quick Entry on the home page, click Package Repo. The Package Repo page is displayed.
Importing an SSP package
Import an SSP package, including the software package (.zip) and signature file (.asc).
Activating an SSP package
Click Deploy in the Operation column to activate the SSP package.
Open PyCharm and choose File > Settings from the main menu.
Click Project: AOC* (AOC* indicates the project name in the video) and click Project Structure.
Click +Add Content Root on the right, select the mediator folder in the AOC* software package, and click OK.
In the navigation tree on the left of PyCharm, right-click the mediator folder and choose Mark Directory as > Sources Root from the shortcut menu.
Open PyCharm and choose Run > Edit Configurations from the main menu.
Click +, click Python Debug Server, and create a debugging task of the Python Debug Server type.
Set Local host name to localhost and Port to 30000.
Open PyCharm and choose File > Settings from the main menu.
Choose Editor > File Types, find Jinja 2 Template, and click +.
In the dialog box that is displayed, enter *.j2 and click OK.
Start the Debug Server.
Perform a dry run. On the Service Management page, set service parameters, and click Add. Then set username, click Create, enter an NE name and password in nename and password respectively, and click Dry-run.
PyCharm automatically displays the code and stops at the default code entrance. You can add breakpoints to the code to be debugged.
Advanced Learning explains the principles and GUIs of AOC, and the development process of the SND and SSP packages.
Quick Start provides a simple tutorial for developers to install the open programmability environment on the local host and help developers develop and debug SSP service packages.
Install the following software or packages on your local computer:
Open the software package
Double-click the start.bat script and wait for the software to start successfully. During execution, do not close the window.
Open the programming page
Access https://127.0.0.1:32018/aocwebsite in the browser.
Quick Entry
Click Package Repo on the Quick Entry tab page on the home page. The Package Repo page is displayed.
Importing an SND package
On the Package Repo page, import an SND package, including the software package (.zip) and signature file (.asc).
Activating an SND package
Click Deploy in the Operation column to activate the SND package.
Managing Devices
Choose Resource > Device Management from the main menu.
Creating a device
Click Create. On the Create NE page that is displayed, set basic information and communication parameters of the device.
Checking a device
Choose Device Configuration > Device Configuration from the main menu. On the Device Configuration page that is displayed, check the newly added device. If the device status is normal, the device is managed successfully.
Accessing the package management page
Choose Package Repo from the main menu. On the package management page that is displayed, click Add.
Creating an SSP package template
Set service package parameters and click OK. An SSP package template is created.
Exporting the template and developing an SSP package
Export the SSP package template and import it to PyCharm. You can develop SSP packages in the IDE. For details, refer to Advanced Learning.
Opening the page
In Quick Entry on the home page, click Package Repo. The Package Repo page is displayed.
Importing an SSP package
Import an SSP package, including the software package (.zip) and signature file (.asc).
Activating an SSP package
Click Deploy in the Operation column to activate the SSP package.
Configuration Environment
Before debugging, you need to configure the debugging environment. This includes configuring the SDK, Debug Server, and Jinja template debugging environment, and adding running files to the environment.
Configuring the SDK
Open PyCharm and choose File > Settings from the main menu.
Click Project: AOC* (AOC* indicates the project name in the video) and click Project Structure.
Click +Add Content Root on the right, select the mediator folder in the AOC* software package, and click OK.
In the navigation tree on the left of PyCharm, right-click the mediator folder and choose Mark Directory as > Sources Root from the shortcut menu.
Configuring the Debug Server
Open PyCharm and choose Run > Edit Configurations from the main menu.
Click +, click Python Debug Server, and create a debugging task of the Python Debug Server type.
Set Local host name to localhost and Port to 30000.
Configuring the Jinja Template Debugging Environment
Open PyCharm and choose File > Settings from the main menu.
Choose Editor > File Types, find Jinja 2 Template, and click +.
In the dialog box that is displayed, enter *.j2 and click OK.
Adding a Running File to PyCharm
Choose File > Settings from the main menu of PyCharm.
Click Project: AOC* (AOC* indicates the project name in the video) and click Project Structure.
Click +Add Content Root on the right and add a running environment path.
Start the Debug Server.
Perform a dry run. On the Service Management page, set service parameters, and click Add. Then set username, click Create, enter an NE name and password in nename and password respectively, and click Dry-run.
PyCharm automatically displays the code and stops at the default code entrance. You can add breakpoints to the code to be debugged.