Python Debug Over USB

11 thoughts on “Python Debug Over USB”

We are doing development on the GateTel GT-HE910-EUG which is a modularised version of the HE910. The external ports available on the module are the RS232 ports (USIF0) and the USB port.

We need to be able to debug the our python scripts and so need access to the python debug output.

The HE910 has many ports and lots of port configuration options which is great however I have read and the Family Ports Arrangement and the CMUX Implementation User Guide but it look like it isn’t possible to access the python debug output via USB and in fact it’s only possible to access the python debug output via USIF1 which isn’t available on the GateTel module.

Thanks, I basically knew this. But I was hoping for something “more robust”, as this trick you presented assumes your script starts. Actually, now I am stuck with some basic problem which seems to prohibit the script from the very beginning.

Any port setting that should send automatically all Python diagnostics to USB port instead of ASC1?

No, the only debugging startup configuration is with AT#PORTCFG=3 on USIF1.

Tom I would advise to take a look at Appzone C development, the leverage is in that direction. The new IDE is very easy to use, it includes terminal and module file management tools. Is plain C so no OP I know, but the language make easier to port useful things from elsewhere – I succesfully ported bits of Arduino code (translating objects/classes to C structures) and other pieces like a MQTT client.

Yes Cosmin, I have noted the AppZone and agreed that I should take a look at it. It seems to even support something around Python.

But do I remember correctly that there is also an AT command which allows remapping of the ASC1 output on ASC0? Or was it only on 2G modules, such as GE865. Sorry but I have lost the name of the command.

Could well be so. But now I use Antrax’s RSTermPlus, which is reasonable (though with some bugs and shortcomings), providing also a second channel for logging debug messages. The key thing I had forgotten was choosing Portconfig = 3. Without that setting you get nothing from the debug channel.

But just for the record, is there still an AT-command to remap ASC1 to ASC0, as I try to remember?

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