You can run the Python script shown in Fig. 5 on the module. The script runs on the module and uses MDM, print, and SER interfaces as when it was running on PC.
• MDM interface is directly connected to AT0 parser.
• print interface is connected to USIF1 port.
• SER interface is connected to USIF0 port.
Fig. 7: Python script (MDM, print, SER interfaces) runs on MODULE
To configure AppZone Python in accordance with the Fig. 7:
1. Start AppZone Python. Assume that the My_First_Py script is already uploaded.
2. Click
AutoConnect COM Port () to
search the available COM ports. In this PC configuration they are COM1, and
COM2.
3. Select the Set COM port for offline debug checkbox.
4. Click
Setting (), and then select
the Set Debug port for standard output checkbox.
5. Select COM2 as debug port. Standard output is AppZone Python Console
6. Click
Connect COM port () to
connect COM1 port to the PY Console.
The following messages are displayed on PY Console, see next screenshot.
7. Click
File Manager () and select
the script.
8. Right-click the script, and then select Set as Executable Script.
9. Right-click the script, and then select Launch Executable script.
See the outputs of the script on the PY Console (COM1) and on the AppZone Python Console (COM2).