Use the following AT command:
AT#RSCRIPT=“<script_name>“
where
<script_name>: file name
Using the command AT#RSCRIPT read a saved script, compiled script, generic text or binary file. If know-how protection is activated than AT#RSCRIPT will return only OK: no Python script source code will be returned. In this way no one will be able to read your Python script from the module serial port.
It is important for large files, compared to PC serial port buffer size, to activate hardware flow control on your terminal emulator.
Type for example
AT#RSCRIPT=”a.py
Wait for the prompt
<<<
Receive file data and wait for the result: OK or ERROR.