Home

Terminus T2 Python Quick Start Guide

image

Contents

1. Highlight all of the files and then select Upload sel file s PC gt Module rsterm Serial GSM terminal i _ x Init Debugger Provider RTC WoicE SMS Telit Multisocket Telit HTTP Telit Email Telit Python Telit GPS Your buttons Terminal About AT commands pork Debugger por Quick command Close AT Last manual cmd ATHLSCRIPT Files in module Open ATC_HE910 pyc il ul conf pyc Show tab Show tab AT CREG ATHSHDN demaTl cont I0_HE 910 pyc NET HES10 pyc SER_HES10 pyc SMS _HES10 pyc SMSGRAY_HE910 pyc SOCKET _HES10 pyc Download selected file s from module ta PC Select a file in list above prior to use buttons below ATHESCRIPT ATHOSCHRIPT Delete selected fles on module Working folder click to change i R CANPyTemp HES10_SMSAesponse Deploy Files in PC folder AT CH E g1 0 pyc con pyc demoT 2 cont I0_HE 910 pyc MET HES10 pyc SER_HE910 pyc SMSGQAY_HES10 pyc SMS HES10 pyc SOCKET HES10 pyc Upload sel file s PC gt module not protected Compile selected py tilef ATHESECSCR ATHSSCTRACE 0 ATHCMUSSCAR 1 115200 ATHSTARTMODESCR 1 10 ATHSHDN Terminus T2 Python Quick Start Guide JA15 PUM Page 11 Rev A00 Date 08 13 13 JAN U 9 REMOTE Copyright 2013 Janus Remote Communications Specifications subject to change without notice C MMUNICATI NS f TE All Rights Reserved See website fo
2. has the ability to use C compilers for the ST Micro directly or run python scripts on the modem The user has the ability to use both but this guide will focus on just using the embedded Python Null modem connector for easy python upload UART TRACE Null modem attached externally by the user Before Loading Your Python Scripts Open HyperTerminal or a similar terminal emulator program and create a connection to the COM port attached to the T2 DB9 Use the following settings for the connection e Baud Rate 115200bps e Bits 8 e Stop Bits 1 e Parity None e Hardware Handshaking Yes By default both the Telit modem and the T2 utilize 115200bps Terminus T2 Python Quick Start Guide JA15 PUM Page4 Rev A00 Date 08 13 13 JAN U 9 REMOTE Copyright 2013 Janus Remote Communications Specifications subject to change without notice C MMUNICATI NS a ee All Rights Reserved See website for latest revision Not intended for life support applications Before Loading Your Python Scripts continued The ST Micro s bootloader will on power up search for a loaded application If one is not found it will continue and allow the user to access the Telit modem directly via AT commands When powering up you will see something similar to the following example ent port nypertermina i ozx File Edit wiew Call Transfer Help mya l 3 DJE E Application Missing Starting Boot Loader Application Starting Modem Pr
3. script files First open RSTerm using the intended COM port select Hardware flow control and 115200 baud rate click Open to open the connection rsterm Serial GSM terminal lol x Init Debugger Provider RTC Voice SMS Telit Multisocket Telit HTTP Telit Email Telit Python Telit GPS Your buttons Terminal About Serial Port setup AT commands port Debugger port gt Quick commands AT Last i Pot R jCOM1 z Close pik ali ee AT CREG ATHSHDN Baucrate 115200 lt Show tab lt Show tab AutoDetect Flowcontral Hardwarn X F Log to file Local echo es Module initializing and network AT AT IPR 115200 AT amp KO AT CMEE 2 AT CPIN AT CPIN 0000 foooo AT CREG ATHMONI AT CGATT AT CGMR ATHSELINT 1 1 Manual commands To send manual AT commands type them gt gt then press ENTER key To re type last manual command use dedicated button on window top right Terminus T2 Python Quick Start Guide JA15 PUM Page 10 Rev A00 Date 08 13 13 JAN U 9 REMOTE Copyright 2013 Janus Remote Communications Specifications subject to change without notice C MMUNICATI NS f TE All Rights Reserved See website for latest revision Not intended for life support applications Uploading the Python Scripts continued Go to the Telit Python tab change your working directory to where the Deploy folder is
4. Initialized Initializing SHS SHS Initialized Checking Hodem Registration Modem Registered Waiting for SHS Connected O 00 21 ANSTW 115200 l 1 SCROLL CAPS NUM Capture Print echo Terminus T2 Python Quick Start Guide JA15 PUM Page 12 Rev A00 Date 08 13 13 JAN U S REMOTE Copyright 2013 Janus Remote Communications Specifications subject to change without notice C MMUNICATI NS f ae All Rights Reserved See website for latest revision Not intended for life support applications Uploading the Python Scripts continued The Demo supports receiving SMS commands to do 3 possible things 1 Status query for the current reporting information and location 2 On the fly adjustment of how the unit will behave 3 Remote AT commands The status query can be acquired by sending STATUS The demo will send an SMS back to the originating number with the following information e Unit 111111111111111 e Status LED ON e User LED OFF e Current Location GPRMC 000000 000 V 000000 N 4D To change a function send CMD x y no quotation marks where x is the command to change and y is the value Below are the settings which are capable of being changed by this and what values the demo can accept SLED ON OFF e ULED ON OFF For example to change the status LED to OFF you would send CMD SLED OFF The script will the save the setting and respond to the originating phone number with a
5. OTE Copyright 2013 Janus Remote Communications Specifications subject to change without notice C MMUNICATI NS All Rights Reserved See website for latest revision Not intended for life support applications Compiling the Python Scripts continued Once you press return a lot of information gets put into the command window but the important information can be found in the middle ey Co WINDOWS system32 cmd exe import marshal builtin H Gi Python Ys Lib traceback pyc matches C Python27 Libs traceback py import traceback precompiled from C Python2 7Lib tracehback pyc HE CoNPython2 Lib struct pyc matches C Python27 Libsstruct py import struct precompiled from C Python2 sLib struct pyc import struct builtin H CoNPython2 Lib getopt pyc matches C Python27 Libsgetopt py import getopt precompiled from C Python2 sLib getopt pyc Listing C PyTempHE916_SMSResponse ili Co NPuTemp HE 16_SMSHResponse ATC_HEF1B py Co NPyTemp HE 16_SMS Res ponse IO_HE 10 py _ Ci xPyTemp HE 16_Sh8kResponse HET_ HEI py Co NPyuTemp HE 16_SMSHResponse SER_HE 10 py Co NPyTemp HE 16_SM8 Res ponse SMSQRY_HEFIA py Go wPyTemp HE 16_Sh8 Res ponse SMN8_HEP1IB py Co NPyTemp HE 16_SM Res ponse S0OCKET HEFIB py CoNPuTemp HE 16_SMSHResponse conf py _ builtin__ _ sys path Sys argu sys psl1 SYS ps2 sus exitfunec SUS exc_type As long as there are no errors reported the files compiled OK Th
6. Terminus T2 Python Quick Start Guide JANUS ee mor COMMUNICATIONS av 13 Aug 2013 TABLE OF CONTENTS TABLE OF CONTENTS and DISCLAIMER ww 2 Terminus T2 Python Guid OVerviW ee 3 Optional Install 1 Python 1 5 27 ae ner cece apc nnn a EEE AERE REKE ENE E E EEEE 3 Optional Install 2 RSTerm iscsisssiesenscisnne seers ssadecenussacavennncnacesanensansenasiensasensavensasensbeonasnnsassndicnansseanteasiseasanensnesnanendnnsnianncsensnannenes 4 ISSN 4 Applicable Products senssnonennnnnennnonnonnnunsennnnnonnnnunennnnnnennnnnoennunnennnnnnennnunennnnnneennnuuennunnennnnnnnannnnneennnnaon nnn naa A 4 System OVE IEW risiini a ee ee eee A ia lene 4 Before Loading Me ol gcse jewels 0 enn te ee ae 4 5 FSM910 SIMS Response DEMO winiccinccssccznncsiancsinncsinacnenseanqnasnctianecsanecansecanastaneetenasasmnetannsanan e ieaiaia 6 Overview Demo Package Contents Compiling tie Py tion Gros sosanna a e arae aa 7 8 Uploading the Python SOripiS isc cretiscisesccesczceccnetecnrcessanecocsectiesesecsvencstesenossencs MED ALNG Ueda BE o0decnebsauareunencvtiesesusananedeveruensext 9 13 Method 1 AT WSCRIPT Method 2 Right Click gt Download Method 3 RSTerm Revision TIS VOLY sis deteeirccuerceus aucun senusien aa aaa MII a o AP oxic iaaii aaia aaa iaa E E EEE 14 DISCLAIMER The information contained in this document is the proprietary information of Connor Winfield Corporation and its affiliates Janus Remote C
7. ckage Contents HE910_SMSResponse zip e Python Scripts ATC_HE910 py conf py IO_HE910 py NET_HE910 py SER_HE910 py SMS_HE910 py SMSQRY_HE910 py SOCKET_HE910 py e Other demol 2 conf Compiling the Python Scripts First extract the python scripts from the HE910_SMSResponse archive fe C PyTemp HE910_5MSResponse File Edit View Favorites Tools Help Bek gt z wi Search Folders HA Address CAPyTempiHE910_SMSResponse GO Name Size Type Date Modified File and Folder Tasks Deploy File Folder 6 7 12013 3 18 PM e ATC_HE910 py 10KB Python File 6 11 2013 3 16 PM Other Places conf py 10KB Python File 5 31 2013 3 33 PM demoT conf 4KB CONF File a7 2013 3 10 PM G PyTemp PTO _HESIO py SKE Python File 6 12 2013 10 47 AM 1 My Documents NET_HE910 py 13KB Python File 6 31 2013 3 33 PM fm Shared Documents SER_HES10 py 4KB Python File 6 11 2013 1 30 PM rd My Computer SM5_HE910 py 16KB Python File 6 12 2013 12 44 PM My Network Places fae heed 10KB Python ie a7 f2013 3 14 PM 2 SOCKET _HES10 py 13KB Python File 5 31 2013 3 33 PM a Details Terminus T2 Python Quick Start Guide JA15 PUM Page6 Rev A00 Date 08 13 13 JAN U 9 REMOTE Copyright 2013 Janus Remote Communications Specifications subject to change without notice C MMUNICATI NS a ee All Rights Reserved See website for latest revision Not intended for life support applications Compiling th
8. e Python Scripts continued Now open the demofT2 conf file to edit the options For this demo the only option you need to pay attention to is ENS Please refer to the AI command guide if you are unsure what AT ENS setting needs to be utilized If you are on AT amp T you can leave it set to 1 P demoT conf Notepad E J x File Edit Format wiew Help GSMS65CF CGMR 10 00 003 a CGMR 12 00 003 Enhanced Network Selectian ae ENS Network Operator Fy 0 Standard GSM Operator L AT amp T Network FF APH Access Point Name CAPN in 3JGPP networks used to define type This value is defined by your carrier and the type of servic ATT APN 1 nternet Wyless APN te largo t mobile cam Crossbridge APN gorsO 2 motient net APN gorsd motient net IP amp PORT F IF and PORT of the destination server address Save and exit the file Use the compileall py library Python script on your PC to compile all py files in your working directory as an example in directory C pytemp cd C Python27 python v S Lib compileall py f C pytemp ey CS WINDOWS systenid2 cmd exe Mic ft Windows AP Version 5 1 26001 G Copyright 1985 2661 Microsoft Corp C2sDocuments and Settings Clayton Knight cd C Python27 Cox Python27 gt python v Libscompileall py F C 2 PyTempHE 16_SMS Response Terminus T2 Python Quick Start Guide JA15 PUM Page7 Rev A00 Date 08 13 13 JAN U 9 REM
9. ere are other ways to compile scripts such as doing so in the IDE but the important thing is that they are compiled into pyc format E C PyTemp HE910_5MSResponse l i a O x File Edit View Favorites Tools Help a sack Qd aD a Search 1 Folders m Address C PyTemp HE910_SMSResponse Go Name Size Type Date Modified a File and Folder Tasks ATC_HES10 py 10 KE Python File 6 11 2013 3 16 PM conf py 10 KE Python File 5131 2013 3 33 PM other Places 4 P1O_HES10 py 5KB Python File 6 12 2013 10 47 AM S NET_HE910 py 13KB Python File 5 31 2013 3 33 PM PyTemp SER_HESIO py KB Python File 6 11 2013 1 30 PM B My Documents SM5_HE910 pY 16 KE Python File 6 12 2013 12 44 PM Shared Documents SMSQRY_HE910 py 10KB Python File 8 7 2013 3 14 PM I My Computer 50CKET_HEQ10 py 13 KB Python File 5 31 2013 3 33 PM GB My Network Places P aTc_HES10 pyc KB Python Fils ar i2013 4 07 PM an E conf pyc 4KB Compiled Python File 8 7 2015 4 07 PM FP 10_HE910 pyc ZEB Compiled Python File 8 7 2015 4 07 PM Details FP NET_HES10 pyc 6KB Compiled Python File 8 7 2013 4 07 PM P 5ER_HES10 pyc 2EB Compiled Python File 8 7 2013 4 07 PM 5M5_HEs10 pyr 6KB Compiled Python File 8 7 2015 4 07 PM gt smsoRY_HES10 pyc 4KB Compiled Python File 8 7 2013 4 07 PM P SOcKET_HE910 pyc 6KE Compiled Python File 8 7 2013 4 07 PM Move the compiled scripts into the Deploy folder and continue Terminus T2 Py
10. ess ESC to break to console Modem Console HE916 OK PACSPO Connected 4 00 30 ANSIW 115200 8 M 1 SCROLL CAPS NUM Capture Print echo No application was found so the modem was then forwarded and we are ready to continue For this demo you will need the phone number associated with the SIM If you are unsure of what this is you can query the modem with AT CNUM AT_port HyperTerminal File Edit View Call Transfer Help 2 3 Application Missing Starting Boot Loader Application Starting Modem Press ESC to break to console ele Console HE916 19643722441 129 Connected 4 00 30 ANSIW 115200 8 N 1 SCROLL CAPS NUM Capture Print echo Close the connection and continue Terminus T2 Python Quick Start Guide JA15 PUM Page5 Rev A00 Date 08 13 13 JAN U 9 REMOTE Copyright 2013 Janus Remote Communications Specifications subject to change without notice C MMUNICATI NS f TE All Rights Reserved See website for latest revision Not intended for life support applications HE910 SMS Response Demo Overview The SMS Response demo is designed to give the user a fast way to bring the unit up for evaluation while also covering example code for various functions The demo features the following for usage evaluation e Automatic checks and settings for network registration and general operation e File system reading e Remote control and status checks via SMS Demo Pa
11. n echo Auto ON OFF The demo can also accept and carry out standard AT commands Once complete the unit will send back the response of the command For example sending the basic AT lt cr gt command you would send AT No carriage return The script will the save the setting and respond to the originating phone number with an echo OK Terminus T2 Python Quick Start Guide JA15 PUM Page 13 Rev A00 Date 08 13 13 JAN U 9 REMOTE Copyright 2013 Janus Remote Communications Specifications subject to change without notice C MMUNICATI NS f T ss ia All Rights Reserved See website for latest revision Not intended for life support applications Terminus T2 Python Quick Start Guide Revision History Revision Revision Date Note A00 08 13 13 Advanced Release Python Quick Start Guide JANUS emor C MMUNICATI NS Janus Remote Communications Europe Division of The Connor Winfield Corporation Bay 143 2111 Comprehensive Drive Aurora Illinois 60505 Shannon Industrial Estate 630 499 2121 Fax 630 851 5040 Shannon Co Clare Ireland Phone 353 61 475 666 www janus rc com one 3
12. ommunication The contents are confidential and any disclosure to persons other than the officers employees agents or subcontractors of the owner or licensee of this document without the prior written consent of Connor Winfield is strictly prohibited Connor Winfield makes every effort to ensure the quality of the information it makes available Notwithstanding the foregoing Connor Winfield does not make any warranty as to the information contained herein and does not accept any liability for any injury loss or damage of any kind incurred by use of or reliance upon the information Connor Winfield disclaims any and all responsibility for the application of the devices characterized in this document and notes that the application of the device must comply with the safety standards of the applicable country and where applicable with the relevant wiring rules Connor Winfield reserves the right to make modifications additions and deletions to this document due to typographical errors inaccurate information or improvements to programs and or equipment at any time and without notice Such changes will nevertheless be incorporated into new editions of this application note All rights reserved 2011 Connor Winfield Corporation Terminus T2 Python Quick Start Guide JA15 PUM Page2 Rev A00 Date 08 13 13 JAN U 9 REMOTE Copyright 2013 Janus Remote Communications Specifications subject to change without notice C MMUNICATI NS f TE All Righ
13. r latest revision Not intended for life support applications Uploading the Python Scripts continued RSTerm will then use the AT WSCRIPT command to mass upload the files to the modem and then use AT LSCRIPT to list them back for you to verify they are there The current files on the modem will appear in the top left window as well for selection if you need to download delete or even select which file will be labeled with ATHESCRIPT gs amp T_port HyperTerminal x File Edit view Call Transfer Help Dle al 3 OK ATHLSCRIPT LSCRIPT IO_HE918 pyc 1478 DER HE9186 pyc 1182 ATC_HE910 pyc 3802 SMSORY_ I we 3170 NET_HE910 p SOCKET HE910 pyc 9796 exceptions pyc 11073 SMS_HE910 pyc 5481 demoT2 conf 3422 conf pyc 3465 LSCRIPT free bytes 2163712 UK ATHESCRIPT SMSQRY_HE918 pyc OK Connected 0 00 32 ANSIW 115200 8 N 1 SCRO CAPS NUM Capture Print echo Select the main script by entering ATHESCRIPT SMSQRY_HE910 pyc Now you can run the script with AT EXECSCR and the script will begin You should see the following if everything has run successfully amp 7T_port HyperTerminal i l ojx File Edit wiew Call Transfer Help atH execscr OK Beginning the T2 SMS Query Program Configuration Loaded Initializing Network Setup Network Setup Initialized Initializing GPS GPS Status 1 GPS
14. thon Quick Start Guide JA15 PUM Page8 Rev A00 Date 08 13 13 JAN U 9 REMOTE Copyright 2013 Janus Remote Communications Specifications subject to change without notice C MMUNICATI NS T nee All Rights Reserved See website for latest revision Not intended for life support applications Uploading the Python Scripts Method 1 AT WSCRIPT Use the following AT command AT WSCRIPT lt script_name gt lt size gt Where lt script_name gt file name lt size gt file size number of bytes The script the compiled script any text or binary file can be downloaded to the module using the ATHWSCRIPT command In order to download the optionally compiled Python script you have to choose a name for your script on the module taking care of the following e The extension for scripts is py e The extension for compiled scripts is pyc e Any or no extension is permitted for generic text or binary file e The maximum file name length allowed is 16 characters e File names are case sensitive Then you have to find out the exact size in bytes of the script or compiled script or generic text or binary file For example right clicking on the file and selecting size in properties attention this is different from selecting size on the disc It is important for large files compared to module serial port buffer size of 4096 bytes to activate hardware flow control on your terminal emulator It is possible to o
15. ts Reserved See website for latest revision Not intended for life support applications Guide Overview This guide is designed to help streamline the user s embedded python experience with the Terminus 2 platform The topics discussed will be an overview of the system and what to expect what steps to take to upload and run a script and a demo script run through The script is developed for the HE910 Telit modem and will not function properly on the GE865 Telit modem This guide assumes that Python 2 7 2 has been installed if you don t have it installed please visit http www python org download releases 2 7 2 Optional install 1 Python 1 5 2 v4 1 There are a few ways to upload the scripts to the modem but one very useful way is the Right Click gt Download method This is an older method available from a previous version of Python This version of Python should be utilized if developing scripts for the GE865 Telit modem The only required setup is to configure the COM ports with the COM Port Selection Tool as shown Setup Telit Python Package q Select COM ports to be used Which COM ports shall the Python Package use Select on which COM port the Telit Python Package shall comunicate with the device for AT commands and emulate second serial port Debug MOM emulation COM Part SER Emulation COM Port MOM emulation COM Fort SER emulation COM Port OF Cancel Note that Python 2 7 2
16. verwrite an existing file there is no need to delete old one first For the configuration file we do the following AT WSCRIPT demofT2 conf 3422 wait for the prompt gt gt gt and use Send Text file selecting the proper file Wait for the result OK or ERROR Method 2 Right Click gt Download For py and pyc files we can use the Right Click gt Download method as they are recognized python scripts Simply right click on the py or pyc file and select Download You should see the following for a successful transfer Down loadi wnloading file C PyTemp HE916_SMSResponseXATC_HE91 pyc Saving File File Correctly Downloaded Once you have loaded all of the files to the modem open the Hyperterminal session again do an AT LSCRIPT to verify all have been added Once verified select the main script with AT ESCRIPT Terminus T2 Python Quick Start Guide JA15 PUM Page9 Rev A00 Date 08 13 13 JAN U 9 REMOTE Copyright 2013 Janus Remote Communications Specifications subject to change without notice C MMUNICATI NS T nee All Rights Reserved See website for latest revision Not intended for life support applications Uploading the Python Scripts continued Method 3 RSTerm We can use RSTerm to remove a lot of time and hassle when managing scripts and files for the modem This is the fastest way to move your scripts to the modem when there are multiple including non python
17. will still be used to develop scripts for the Telit HE910 the older version of Python is to allow access to the Right Click gt Download method for loading scripts and also for developing scripts to use with the Telit GE865 Terminus T2 Python Quick Start Guide JA15 PUM Page3 Rev A00 Date 08 13 13 JAN U 9 REMOTE Copyright 2013 Janus Remote Communications Specifications subject to change without notice C MMUNICATI NS f T ss ia All Rights Reserved See website for latest revision Not intended for life support applications Optional install 2 RSTerm RSTerm is a multi function tool from www thebyteworks com that can be used to communicate via AT commands to the modem along with several pre built functions available via button clicks However the tool was designed around older GSM terminals and uses legacy commands for many of the pre built functions Janus recommends not using these functions Instead we recommend installation because of its useful ability to mass transfer python scripts and files References Janus T2 User Manual Telit AT Command Reference Telit HE910 Easy Script in Python Telit HE910 Family Ports Arrangements Applicable Products HSPA910T2 System Overview The T2 is a powerful platform that utilizes an STM32F205 or STM32F405 to control and use different communication interfaces and I O Among the communication interfaces is an embedded Telit modem that has its own python script interpreter The user

Download Pdf Manuals

image

Related Search

Related Contents

rythmes et infra-rythmes en motricite humaine  Plimmer Cubetto Delta Plus User manual  Draper V Screen    User Manual Apollo Hybrid German  

Copyright © All rights reserved.
Failed to retrieve file