Is it possible to send Exceptions over SER if errors occuring?
rather HOW it works, because it should be possible i think… 🙂
Check Telit examples, traceonSER.py file.
""" traceonSER.py 24/01/08|Sgo|bt|1st ver possibilità, utile nei moduli con GPS, di poter indirizzare lo stream del print e quello dei messaggi d’errore verso la ASC0 (output di SER). In certi debug potrebbe essere usato al posto del CMUX. Questo “trucco” è stato utilizzato da un nostro cliente in uno script che ci ha inviato. """ import sys import SER
class SERstdout: def __init__(self): SER.set_speed("115200","8N1") def write(self,s): SER.send(s)
if(sys.platform != "win32"): # sys.stdout = SERstdout() # Redirect print statements to SERIAL ASC0 sys.stderr = SERstdout() # Redirect errors to SERIAL ASC0
Sooorry about that, I’ve overseen it…. You know it’s easier to write a question, than to activate the brain
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
Hi there
Is it possible to send Exceptions over SER if errors occuring?
rather HOW it works, because it should be possible i think… 🙂
Check Telit examples, traceonSER.py file.
Sooorry about that, I’ve overseen it…. You know it’s easier to write a question, than to activate the brain
THX