The debug of the running Python script can be done on the second serial port USIF1 of the module.
For product versions 12.xx.xxx the following configuration must be set.
Use the following AT command:
AT#PORTCFG=3
to configure ports properly.
Reboot module to make #PORTCFG configuration working.
In #PORTCFG: 3 configuration Python standard output and standard error, including print statements, are redirected to USIF1 at 115200.
In this configuration AT2 parser instance on USIF1 is not available.
In this configuration Python scripts can be debugged with or without USB inserted.
For product versions 13.xx.xxx there is no need of configuration.
Default #PORTCFG: 0 is the proper configuration.
In #PORTCFG: 0 configuration Python standard output and standard error, including print statements, are redirected to USIF1 at 115200.
For product version 18.11.004 there is no need of configuration.
AT #PORTCFG is not available in version 18.11.004.
In default configuration Python standard output and standard error, including print statements, are redirected to USIF1 at 115200.
For every product version (12.xx.xxx, 13.xx.xxx and 18.11.004) proceed in the following way.
•Connect to the second module serial port USIF1 at 115200.
•Collect Python standard output and standard error:
•Python information messages (for example the version);
•Python error information;
•Results of all Python “print” statements.