We use cookies to enhance your browsing experience and help us improve our websites. To improve our website, we carefully select third parties that use cookies to allow us to serve specific content and achieve the purposes set out in our cookie policy. For more information on how to make adjustments through your browser to the cookies being used on your device, please click Find Out More link. By closing this banner or continuing to browse our website, you agree to our use of such cookies. FIND OUT MORE
Hello,
It is possible to debug python with the EVK2 and the GE910-GPSS interface board?
Thanks a lot, Gabriel.
Of course, you have several methods:
– the most obvious, set AT#PORTCFG=0 and debug info and print output are redirected to USIF1 which is on LOWER=TRACE EVK2 RS232 DB9 female connector
– redirect debug info and print output to USIF0 via SER module, UPPER=PROG/DATA EVK2 RS232 DB9 female connector:
– redirect debug info and print output to USB via USB0 module:
Thanks Cosmin.
I try the first method, with no results.
My setup are 2 computers. Desktop computer is connected to RS232 AT/PROGRAM, and a laptop connected to RS232 TRACE.
I use hyperterminal in laptop, and Telit AT Controller in the desktop computer.
The setup is showed in the attached photo.
And the configuration of Telit AT Controller in the screenshot captures.
Also the LOG is:
AT
OK
AT#ESCRIPT?
#ESCRIPT: “Script1.pyc”
OK
AT#PORTCFG?
#PORTCFG: 0,0
OK
AT#LSCRIPT
#LSCRIPT: “Script1.pyc”,250
#LSCRIPT: free bytes: 1948000
OK
AT#ESCRIPT?
#ESCRIPT: “Script1.pyc”
OK
AT+CMUX?
+CMUX: 0,0,5,127
OK
AT#REBOOT
OK
But the laptop is not showing the python debug messages.
Where are my error?
There is a incorrect setup?
Thaks a lot Cosmin.
What baudrate is set in Hyperterminal connection; is that a real serial port or an USB-RS232 convertor?
Please also report firmware version AT+CGMR, and AT# #STARTMODESCR.
Hi Cosmin,
Both connections are real serial port, no usb-rs232 serial converter is used.
PROG/DATA is connected to the desktop computer at 115200 8N1, Hardware control.
TRACE is connected to the laptop computer with same settings.
This is log for requested commands:
Send: AT+CGMR<cr>
AT+CGMR
13.00.105
OK
Send: AT#STARTMODESCR?<cr><lf>
AT#STARTMODESCR?
#STARTMODESCR: 1,10
OK
Send: AT#LSCRIPT<cr>
AT#LSCRIPT
#LSCRIPT: "Script1.py",101
#LSCRIPT: free bytes: 1948128
OK
Send: AT#ESCRIPT?<cr>
AT#ESCRIPT?
#ESCRIPT: "Script1.py"
OK
Send: AT#REBOOT<cr>
AT#REBOOT
OK
Thansk a lot,
Definitelly the debug works, try to swap something, laptop ports with PC, another PC etc.
Is the script running at least? Start it with AT#EXECSCR, and print something in SER.
Cosmin thansk for your support.
This script is working, i can see the Hello World! message in the hyperterminal.
But the only string showed is SER.send(‘Hello World!rn’).
What about the print statements? Why is not working?
Check the other things I advised with ports/PC swapping.
Try another thing, you should see the hello message in the LOWER serial port too, instead of print, if connections are OK: