Home
Terminus T2 Products User Manual
Contents
1. STM32F2xx StdPeriph Driver eee ee ee ee eee ee ee eee ee ee ee ee ee ee ee ee ee eee ee ee eee ee ee ee ee ee ee eee ed CMSIS file app c E system_stm32f2xx c author MCD Application Team MDK 4RM version V1 1 0 i E PPe startup_stm32F2xx s date 19 March 2012 USB brief This file provides all the Application firmware functions E usb_bsp c eee eee ee ee ee ee ee ee ee ee ee a a ae ee ee ee ee ee ee ee ee usb_core c s usb_ded c s 4 usb_ded_int c usbd_core c t usbd_desc c Licensed under MCD ST Liberty SU License Agreement V2 the License 4 usbd_ioreg c You may not use this file except in compliance with the License L4 usbd_req c You may obtain a copy of the License at attention lt h2 gt lt center gt copy COPYRIGHT 2012 STMicroelectronics lt center gt lt h2 gt 4 usbd_usr c usbd_cde_vep c usbd_cde_core c BOARD janus_t2 c http wuw st com software_ license agreement liberty v2 Unless required by applicable law or agreed to in writing software distributed under the License is distributed on an AS IS BASIS WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied ap amp Fel E 3 0 0 Writing T2APPACK BIN After Build User command 2 AppPackRename bat
2. An rssi value of gt 10 in typical applications if fine and you will usually see about 12 20 in normal to good signal but note that worst case it can be lower but still register and perform normal functions Sending an SMS SMS Select Message Service mode allows you to send a text message max 160 characters to an SMS capable subscriber unit Set the SMS mode to text This must be entered every power cycle AT CMGF 1 lt cr gt To enter the receiving subscriber unit phone number and message enter AT CMGS 8885551 234 Wait for response gt then enter message text Enter ctrl z lt cr gt to end the message Making a GPRS data call socket dial GPRS is a data service that uses Packet Data Protocol PDP Set up the PDP context parameters Enter AT CGDCONT 1 IP APN O0 0 0 0 0 0 lt cr gt Where APN is specific to the service provider being used Activate the PDP context Enter ATHSGACT 1 1 v p Where v is your user ID and p is your password If there are none required for your account you can leave them blank Open the socket connection Enter AT SD 1 0 IPPRIPA O 0 0 Look for response CONNECT This opens a remote connection via socket IPP the remote host port of the server you are trying to connect to O to 65535 IPA the IP address of the server hyou are trying to connect to in the format At this point a data session is active and data can be sent from the Terminus to the remote de
3. Starting Boot Loader Application Starting Modem Press ESC to break to console Dump Memory Select Baud Rate Select Flow Control Set Initial AT command Clock Diagnostic Fire DfuSe Modem Console Connected 0 04 02 ANSIW 115200 8 N 1 SCROLL caps num Capture Print echo Terminus T2 User Guide JA15 UM Page 20 Rev A01 Date 07 08 14 JAN U S REMOTE Copyright 2014 Janus Remote Communications Specifications subject to change without notice C MMUNICATI NS ae All Rights Reserved See website for latest revision Not intended for life support applications Terminus T2 Products User Manual Revision History Revision Revision Date Note A00 02 12 14 Advanced Release User Manual A01 07 08 14 Updates to Running the Demo JANUS emor C MMUNICATI NS z Janus Remote Communications Europe Division of The Connor Winfield Corporation Bay 143 2111 Comprehensive Drive e Aurora Illinois 60505 Shannon Industrial Estate 630 499 2121 Fax 630 851 5040 Shannon Co Clare Ireland j Phone 353 61 475 666 www janus rc com one
4. 14 JAN U S REMOTE Copyright 2014 Janus Remote Communications Specifications subject to change without notice C MMUNICATI NS ae All Rights Reserved See website for latest revision Not intended for life support applications T2 Terminus General Description The Terminus T2 provides a complete wireless communication device with an integrated ARM Cortex M3 processor expanded peripheral set and cellular communications protocols to fit any application The ARM Cortex M3 processor has a large support community available to reference while developing applications Additionally Janus offers hardware and software assistance to aid users in quickly getting a product to market Optional null modem Terminus T2 Overview attached externally by Control Sig STM32F205 a STM32F405 GPIO USE the user to allow DCE On USB usage capable modems Null modern a D gt O m Figure 1 T2 Block diagram denotes external connections and internal routing T2 Overview Connections This section briefly describes the T2 interfaces for a more detailed description electrical specifications and full pinouts please see the T2 Hardware User Manual Power Supply The 2 1mm center conductor power jack accepts input voltages from 7 to 28VDC and requires a nominal current sourcing capacity of 5W Pin Description Center Pin Supply Outer Conductor Supply Power can also be appli
5. 2 e Configure Unsolicited NMEA Data Send command to enable NMEA stream AT GPSNMUN lt enable gt lt gga gt lt gll gt lt gsa gt lt gsv gt lt rmc gt lt vtg gt lt cr gt Select parameter 1 to enable or O to disable for your NMEA stream requirements EXAMPLE AT GPSNMUN 1 1 1 1 1 1 1 e Start NMEA Stream Send command AT GPSP 1 lt cr gt e End NMEA Stream Send command AT GPSP 0 lt cr gt EVDO910T2 The data can be acquired in two methods Method 1 e Send command AT GPSP 1 lt cr gt e Send command AT GPSACP lt cr gt GPSACP can retrieve GPS data at any point when GPSP 1 Method 2 e Configure Unsolicited NMEA Data e Send command to enable NMEA stream AT GPSNMUN lt enable gt lt gga gt lt gll gt lt gsa gt lt gsv gt lt rmc gt lt vtg gt lt cr gt Select parameter 3 to enable or O to disable for your NMEA stream requirements EXAMPLE AT GPSNMUN 3 1 1 1 1 1 1 e Start NMEA Stream Send command AT GPSP 1 lt cr gt e End NMEA Stream Send command AT GPSP 0 lt cr gt JANUS Terminus T2 User Guide JA15 UM Page8 Rev A01 Date 07 08 14 REMOTE Copyright 2014 Janus Remote Communications Specifications subject to change without notice C MMUNICATI NS fee ore All Rights Reserved See website for latest revision Not intended for life support applications Getting started with T2 Terminus applications Setting up the toolchain For the purposes of this user manual the application writing and debugg
6. eeerceaces 21 DISCLAIMER The information contained in this document is the proprietary information of Connor Winfield Corporation and its affiliates Janus Remote Communication 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 User Guide JA15 UM Page2 Rev A01 Date 07 08
7. website for latest revision Not intended for life support applications Getting started with T2 Terminus applications continued Uploading the compiled demo Step 1 Once the demo has been compiled and the bin created we can upload it to the T2 by creating a terminal session and uploading the script via X Modem Open HyperTerminal or an equivalent terminal emulator and start a new session Use the following settings as they are the default for T2 communications Bits per second 115200 Data Bits 8 Parity None Stop Bits 1 Flow control Hardware Step 2 Apply power to the T2 and when the on screen instructions appear press the Escape key to break out into the bootloader menu TZ DBS 115200 HyperTerminal lt m x File Edit wiew Call Transfer Help Janus Remote Communications TERMINUS 2 R1 Boot Loader FW Jun 21 2013 13 20 14 v2 1 Application Missing Starting Boot Loader Application Press ESC to break to console Erase Application Flash Hodem Download Dump Hemory Select Baud Rate Select Flow Control Set Initial AT command Clock Diagnostic Fire DfuSe Modem Console i D B I C F H E Connected 0 01 10 Auto detect f 15200 8 N 1 SCROLL caps NUM Capture Print echo Terminus T2 User Guide JA15 UM Page14 Rev A01 Date 07 08 14 JAN U S REMOTE Copyright 2014 Janus Remote Communications Specifications subject to change without notice C MMUNICATI NS All Rights Re
8. 2 Bootloader loading finding no application Terminus T2 User Guide JA15 UM Page5 Rev A01_ Date 07 08 14 JAN U S REMOTE Copyright 2014 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 Getting started with the cellular modem continued Modem Registration Step 1 Verify you can send commands by typing AT without the quotes and press ENTER g AT_port HyperTerminal i Oy x File Edit View Call Transfer Help piel B als Janus Remote Communications TERMINUS 2 R1 Boot Loader FW Nov 2012 12 03 58 Application Missing Starting Boot Loader Application Starting Modem Press ESC to break to console Connected 0 00 17 ANSIW 115200 8 N 1 SCROLL caps NUM Capture Print echo You should receive an OK in the terminal this means you can now communicate to the modem and continue to cellular operations All commands will be entered in this fashion and respond with an OK unless they have a specialized function Please refer to the AT Command Guides that accompany each modem type for a further explanation on particular commands Step 2 The next thing is to set the modem for proper operation and wait for registration Although many are set by default to work in a wide range setting these is still a good idea e GSM and HSPA For T Mobile amp MVNO AT SELI
9. C Keil ARM Examples 5T Project T2_ VCP_Demo MDK ARM gt ren t2appack bin T2_VCP_Demo bin TERMINUS2 T2 VCP_Demo axf O Error s 4 Warning s Normally the built hex file is located in the TERMINUS2 subdirectory however the optional run files now place the file for upload in the MDK ARM directory with the project file C Keil ARM Examples ST Project l2_ CP_Demo MDK ARM File Edit View Favorites Tools Help Q pack lt F pi Search Folders m Address jo CiiKeilARM Examples STiProjectiT2_ CP_DemolMDK ARM Go Name Size Type Date Modified File and Folder Tasks 9 TERMINUS File Folder 1 15 2014 10 50 AM Pe 4ppPackRename bat 1 KB M5 DO5 Batch File 1 15 2014 10 43 4M Other Places Project uygui Clayton Knight 69KB File 1 14 2014 2 26 PM Project uygui_Clayton Knight 69KB BAK File 1 14 2014 2 19 PM G T2_ CP_Demo Project uvopt 32KB UVOPT File 114 2014 2 19 PM G My Documents a Project uwproj Z5KE6 pvisiont Project 1 14 2014 2 19 PM Shared Documents Fal Project TERMINUS dep 149KB DEP File 1 15 2014 10 45 AM My Computer E T2_VCP_Dema bin 128KB BIN File 1 14 2014 3 00 PM Le My Network Places Details MDOK ARM File Folder Date Modified Today January 15 2014 10 47 AM Terminus T2 User Guide JA15 UM Page13 Rev A01 Date 07 08 14 JAN U S REMOTE Copyright 2014 Janus Remote Communications Specifications subject to change without notice C MMUNICATI NS All Rights Reserved See
10. CCCCCCCCCCCCCCCCCCCCCCCCCC CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC COCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC COCCOCCCCCCCCCCCBL gt _ Connected 0 09 19 Auto detect f 15200 8 N 1 SCROLL caps NUM Capture Print echo Turn off the power to the T2 the next time it boots it will go into the demo Keep the terminal session open Terminus T2 User Guide JA15 UM Page15 Rev A01 Date 07 08 14 JAN U S REMOTE Copyright 2014 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 Getting started with T2 Terminus applications continued Running the Demo Step 1 Install the ST VCP Windows drivers and then plug in a mini USB cable to the T2 OTG port and the other end to your host PC Step 2 Apply power to the T2 again you will see the status of the demo in the terminal session along with that the LED stack will be blinking rapidly to indicate the demo Is running TZ DBS 115200 HyperTerminal l O x File Edit wiew Call Transfer Help ael ela BL gt Waiting for KMODEM transfer x COCCCCCCCCCCCCCCCCCCCCCCCOCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCOCCCCCCCCCCCCCCCOCCCOC CCCCCCCCCCCCCCCCCCCCCOCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCOCCCCCCCOCCCCCCCCCCCCCCCOC CCCCCCCCCCCCCCCCCCCCCOCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCOCCCCCCCCCCCCCC
11. CCCCCOC CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC COCCCCCCCCCCCCCCCCCCCOCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCOCCCCCCCCCCCCCCCCCCCOC CCOCCCCCCCCCCCCCCCCCCCOCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCOC COCCCCCCCCCCCCCCCCCCCOCCCOCCCOCCCCCCCCCCCOCCCCCCCCCCCCCCCCOCCCCCCCCCCCCCCCCCCCOC COCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCOCCCOCCCOCCCCCCCCCCCCCCCOC CCCCCCCCCCCCCCCCBL gt Janus Remote Communications TERMINUS 2 R1 Boot Loader FW Jun 21 2013 13 20 14 v2 1 Application Valid Starting 11 YCP Demo Here 0 Modem Reset High Modem OnOff High Modem PwrMon High Modem is G Connected 0 28 50 Auto detect 115200 amp H 1 SCROLL CAPS NUM Capture Print echo Terminus T2 User Guide JA15 UM Page16 Rev A01 Date 07 08 14 JAN U S REMOTE Copyright 2014 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 Getting started with T2 Terminus applications continued Running the Demo continued Step 3 The ST VCP drivers should successfully install automatically and once finished you should see the new com port appear in the device manager list A Device Manager p a oj xi File Action Yiew Help e m ES eml CEMIGHT i a rg Computer oo Disk
12. NT 2 This makes use of the most recent AT command set AT AUTOBND 2 This lets the unit automatically find an appropriate bands AT ENS 0 Removes some automatic settings used for AT amp T For AT amp T Cingular AT ENS 1 Uses automatic settings for AT amp T e CDMA and EVDO These units require some extra steps that are thoroughly detailed in our Provisioning App Note found here http www janus rc com Documentation JA01 AN111_Provisioning CDMA pdf Step 3 Check the network status by entering AT CREG without the quotations and press ENTER The response will be CREG 0 1 or CREG 0 5 meaning the device is registered to the home network or roaming respectively If the response is different than this please refer to the AT Command guide as well as verify the account is active Terminus T2 User Guide JA15 UM Page6 Rev A01_ Date 07 08 14 JAN U S REMOTE Copyright 2014 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 Getting started with the cellular modem continued Modem Registration continued Step 4 Check the signal quality by entering AT CSQ without the quotations and press ENTER The response will be CSQ lt rssi gt lt ber gt lt rssi gt Signal Strength 99 Not Known or detectable 0 31 dBm rssi 2 113 Example A result of 31 indicates 51dBm or greater
13. Signal Shield Ground MCX GPS antenna connection Pin Description Center Pin Signal Shield Ground For details on these connections see the Plug in Modem user manual 30P Header Access The T2 s header gives access to many signals not available through standardized connectors It uses a Samtec polar and locking connector that allows the user to create their own harness to suit the application SD Card Standard MicroSD card slot SIM Card The SIM card port is located on the underside of the T2 Remove the cover to access the locking slot G20 User Manual Terminus T2 User Guide JA15 UM Page4 Rev A01 Date 07 08 14 JAN U S REMOTE Copyright 2014 Janus Remote Communications Specifications subject to change without notice C MMUNICATI NS ae All Rights Reserved See website for latest revision Not intended for life support applications Getting started with the cellular modem This will take you through the basic steps required to power the Terminus T2 and communicate with the cellular Plug in Modem Please confirm that you have these items before continuing If you are evaluating the GSM or HSPA based T2 ensure that you have an active SIM card If evaluating the CDMA or EVDO based T2 you will not have a SIM card but will need an account attached to your device s MEID which can be found on the bottom of the T2 You can evaluate the basic functions without these steps but in order to fully evaluate cellular connectivity
14. T2 and start the ST Link Utility Step 4 Connect to the board with Target gt Connect El STM32 ST LINK Utility a O x File Edit View Target ST LINK External Loader Help s Al B Memory display Device Information Device STMa2F2xx Address oxo8020000 Size Ox20000 Data Width 32 bits Device ID Dx411 Revision ID Rev n Device Memory Ox08020000 File TERMINUS hex Flash size 256 KBytes arget memory Address range 0x08020000 0x08040000 Tl LiveUpdate Address oO 4 5 a ASCII oxosoz0000 20002195 08020190 08020970 0020979 E E ee ea ee ox0so02z0010 05020976 O80202E3 o8022927 ooooo000 A ented acto y abe pxgggz00z20 O0000000 ooo00000 ooooo000 OR0P0CI1 fa Ellora Ox0soz0030 05020829 oooo0000 08020435 08020035 E nE aaa eer Ox08020040 05020167 a02016 6020167 oeo020167 Ox08020050 00220167 0e02016 6020167 8020167 Ox08020060 05020167 Oe0201B oe020167 0020B7 Ox06020070 08020167 8020167 06020167 0020167 Ox06020080 08020167 8020167 06020167 0020167 ps0apz0090 08020167 8020167 6020167 0020167 T E EEE ne TERMINUS hex opened successfully 15 55 53 ST LINE Firmware version 211453 15 55 53 Connected via SWD 15 55 53 Connetion mode Normal 15 55 53 Debug in sleep and stop mode enabled 15 55 53 Device ID 0x411 15 55 53 Device Flash Size 256 KBytes 15 55 53 Device family sSTMS2F2xx Pebug in sleep and stop mode enabled Device ID Ox411 Ecre State Live Update Dis
15. Terminus T2 Products User Manual JANUS REMOTE COMMUNICATIONS a JA15 UM pee OT Date 08 July 2014 TABLE OF CONTENTS TABLE OF CONTENTS ana DISCLAIMER wcccesoveitavcoscveniconotceaasedsanneserabieenuneansacabapensacambacnuseapendanimanaseemtaecnanseeheeesmmbeasmeaseannacateen 2 T2 General Description siieceiicssitinciiansnssncsaannstndcntanninonsdscesinsasiinsnnncbuniedeknebstned anesinisnsiasuadnsatneduhauebsinsnaiausiuanstiancnesusindindenasintbannndeneues 3 Zee ABe gS i ee eaters a EN A E E deme EAE E A AAN A A A EAN E N AEE SN EE E A E E A E 3 T2 OVETVIEW csini a A A Ea i D a E ueeneren cena 3 Connections Power Supply IEA EM Ue E E E E E E E oa ea E E E E E E E E A E E E A 4 RS232 USBOTG Reset LED Indicators Antenna Connections 30P Header Access SD Card SIM Card Getung Started with the Gellllar Modem ssinssissirenorion EEEE Ea 5 7 Starting a Terminal Session Modem Registration Sending an SMS Making a GPRS data call Socket dial ae E E EEA A AE AA S ENE A AEE E E os AEPA eee AAE E AA E N E A T 7 8 Getting started with T2 Terminus AppliCations cccsccssssccseeeceeecceneccnneccaeeeeneseseeeaseesaseeeseeenseeenseseneeoeneecasesseeseeesnanes 9 20 Setting up the Toolchain Features Virtual COM Port Demo Setting up the file tree Compiling and uploading the project Uploading hte compiled demo Running the demo Erasing the demo Ordering Monnio ess E a a ae a emacs cemen desea 21 V E a E E
16. abled Step 5 Erase the application space with Target gt Erase Sectors Select sector 5 then click Apply Flash Memory Mapping q x Page 02222000 O Start address Size O Sector 0 Ox0S000000 16 K O Sector 1 Ox05004000 TE K O Sector 2 Ox05005000 TER O Sector 3 Ox0S00C000 16 F O Sector 4 020507 OO00 E4 K Sector 5 008020000 126K Select all Unselect al Cancel The application space has been erased and the demo is now removed from the device Terminus T2 User Guide JA15 UM Page19 Rev A01 Date 07 08 14 JAN U S REMOTE Copyright 2014 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 Getting started with T2 Terminus applications continued Earsing the Demo continued Method 2 The second method utilizes a function of the bootloader to avoid entering the application space immediately upon finding a valid application Instead it waits for an escape sequence and if found will drop back to the bootloader where the user can choose to erase the application This allows for easy and tool less testing of various demo applications that Janus may have to offer Step 1 Ensure your bootloader is up to date by comparing the title to the one listed here http www janus rc com T2 Terminus html downloads v2 4 contains this ability if your unit contains an older production bootl
17. ation it finds valid upon starting up and bypass the ability to escape into the menu In order to remove the demo you can follow two methods Method 1 The first method utilizes the ST Link hardware and utility program This method requires access to the T2 internally so a torx bit must be used to open the bottom of the case Please ensure the power is off before taking the T2 apart and attaching the ST Link dongle To attach the ST Link dongle to the T2 a JTAG 20 Pin to 10 pin adapter is required This adapter and the dongle can be purchased on the Janus store Item Janus Part Number ST LINK V2 MC 0371 G JTAG 20P to 10P adapter MC 0372 G Step 1 Install the ST Link utility and USB driver both are available from the ST Micro website http www st com web catalog tools FM146 CL1984 SC724 SS1677 PF251168 Step 2 Connect the ST Link dongle with attached JTAG 20 pin to 10 pin adapter to the PC via the mini USB Connect the 10 pin connector to the P1 header in the T2 located next to the DBY The connector is polarized to avoid issues JANUS Terminus T2 User Guide JA15 UM Page18 Rev A01 Date 07 08 14 REMOTE Copyright 2014 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 Getting started with T2 Terminus applications continued Earsing the Demo continued Step 3 Apply power to the
18. c t usb_ded c Licensed under MCD ST Liberty SU License Agreement V2 the License usb_ded_int c You may not use this file except in compliance with the License usbd_core c You may obtain a copy of the License at 4 usbd_desc c o E usbd_ioreq c http www st com software_ license_agreement_liberty_v2 4 usbd_req c usbd_usr c Unless required by applicable law or agreed to in writing software usbd_cde_vcp c distributed under the License is distributed on an AS IS BASIS 4 usbd_cde_core c x WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied a t Project Books 3 Func Op Tem JA Build Output ax off po LINK ME Cortex Debugger ttc cae linum fsceifovella Step 2 Ensure the proper information is set by going to Project gt Options for target Under the Target tab these values should be set Xtal MHz 16 0 IROM1 Start 0Ox8020000 Size 0x20000 IRAM1 Start Ox20000000 Size 0x20000 Terminus T2 User Guide JA15 UM Page10 Rev A01 Date 07 08 14 JAN U S REMOTE Copyright 2014 Janus Remote Communications Specifications subject to change without notice C MMUNICATI NS aa All Rights Reserved See website for latest revision Not intended for life support applications Getting started with T2 Terminus applications continued Compiling and uploading the Project continued T Options for Tar
19. drives m Display adapters Hh DYDICD ROM drives Human Interface Devices IDE ATAJATAPT controllers H Imaging devices ce Jungo Hip keyboards H Mice and other pointing devices H Modems ek Monitors ce Network adapters Ely Ports COM amp LPT vee y Communications Pork COML g iro l electronics Virtual COM Port COM36 ae Processors re Sound video and game controllers H System devices F Universal Serial Bus controllers Open a second terminal session with the following settings Bits per second 115200 Data Bits 8 Parity None Stop Bits 1 Flow control None Terminus T2 User Guide JA15 UM Page17 Rev A01 Date 07 08 14 JAN U S REMOTE Copyright 2014 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 Getting started with T2 Terminus applications continued Running the Demo continued Step 4 The USB channel should be open and you can test this by sending AT without the quotes and pressing Enter You should receive the OK from the modem You now have AT access to the modem via the USB port instead of requiring the DB9 CP Demo Port HyperTerminal jel x File Edit wiew Call Transfer Help pel ala op Connected 0 01 01 Auto detect 1 15200 8 N 1 SCRO CAPS NUM E Erasing the demo The T2 will automatically boot into an applic
20. e ELF Section per Function Read write Position Independent Include Paths Misc Controls Compiler j c cpu Cortex M3 D EVAL D_MICROLIE g 03 apes interwork split_sections 1 control 4 4 SLibrariesSCMSIS Include 1 4 4 4LibrariesS CMSISSDeviceSST 4S TM 32F exes Include string A Libraries SCM S S Sleclide 4 4 4LibranesSCM SIS Devices TNS T MAAF ex nclude 4 4 4 el Cancel Defaults Terminus T2 User Guide JA15 UM Page11 Rev A01 Date 07 08 14 JAN U S REMOTE Copyright 2014 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 Getting started with T2 Terminus applications continued Compiling and uploading the Project continued The include path should contain the following Libraries CMSIS Include Libraries CMSIS Device S T STM32F2xx Include Libraries S TM32F2xx_StdPeriph_Driver inc a 2x Setup Compiler Include Paths LA we ibrares SCM SIS Al niclude we Libraries SCM S S Devices TS 7 MS2F eee clude WA LiBrarniesS TM 32F eee StdPenph Oriverine Cancel Under the User tab the following should be set Run 1 T2APPACK TERMINUS2 T2_VCP_Demo HEX Run 2 AppPackRename bat These are optional however they make the initial build very straightforward as they automatically take the compiled hex file create a sig
21. ed to the unit through the 30 Pin locking header JANUS Terminus T2 User Guide JA15 UM Page3 Rev A01 Date 07 08 14 REMOTE Copyright 2014 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 T2 Peripherals RS232 The DB9 port follows the standard for RS 232 communications and gives the connections for serial interaction with hardware handshaking It is however pinned as the DCE host as the application running ability make the T2 an autonomous unit that can control external components USB OTG The Mini AB USB connector allows for a more simplified connection to the T2 It s directly connected to the full speed device host OTG port of the Cortex M3 processor The USB OTG FS peripheral is compliant with USB 2 0 and has software configurable endpoint settings Reset The reset button is connected to the reset pin of the Cortex M3 processor LED Indicators GPIO controlled LED stack These can be application controlled but do have a default behavior LED Color Default function Red N A Yellow Cellular status Green N A The cellular status behavior is expounded in the Plug in Modem user manual Antenna Connections These are bulkhead antenna connections for wireless communication to cellular and GPS technology SMA Cellular antenna connection Pin Description Center Pin
22. eton and extract it to your directory of choice TODO Add hyperlink to download page Example C Keil ARM Examples ST The file tree will help ensure you have the proper libraries and structure for the STM32F2 and the demos Step 2 Download the VCP Demo and extract it to the Project subdirectory TODO Add hyperlink to download page Example C Keil ARM Examples ST Project Compiling and uploading the Project Step 1 Open Keil uVision and load the project file which will be the MDK ARM subdirectory of the VCP Demo folder Z C Keil ARM Examples ST Project T2_ CP_Demo MDK ARM Project uyproj p ision4 File Edit view Project Flash Debug Peripherals Tools S CS Window Help Nggal A P E JE ie modem reset AF Qe O lH A ees ef TERMINUS2 K BS gt aU TERMINUS2 E User k i ee ee ee ee ee ee ee i ee a ee 2 main c file app c stm32Fxxx_it c author MCD Application Team STM32F2xx_StdPeriph_Driver version V1 1 0 lt y MSIS date 19 March 2012 system_stm32F2xx c brief This file provides all the Application firmware functions om MDK 4RM ee ee ee ee a a a a ee re ee a a a a a 2 startup_stm32f2xx s Battention USB bj 2 usb_bsp c lt h2 gt lt center gt copy COPYRIGHT 2012 STMicroelectronics lt center gt lt h2 gt usb_core
23. get TERMINUS x Device Target Output Listing User C C Asm Linker Debug Utilities STMicroelectronics STM 32F207 1G Code Generation tal MHz 116 0 Operating system Mone Use Crogs Module Optimization Sustem Viewer File Stl Il Use MicroLlB Big Endian CAKeINAAMAS FOSS TASTMS2F Aww TM 3AF 20x str El l Use Custom SWD File Read rite Memon Areas default off chip Start Size Nolnit r ReadOnly Memory Areas default off chip Start Size Startup AROMI b ROMZ ROM3 b on chip IPO 08020000 20000 e ROMZ m RAMI RAMZ RAM3 on chip m IFRA 0s20000000 Ox20000 HAL AL zs a O i O RAMZ Cancel Defaults Under the C C tab these values should be set Define USE_JANUS_T2 STM32F2XX USE_STDPERIPH_DRIVER USE_USB_OTG_FS HSE_VALUE 16000000 Options for Target TERMINUS x Device Target Output Listing User C Asm Linker Debug Utilities Preprocessor Symbols Define JUSE_JANUS_T2 STM32F2xx USE_STDPERIPH_DRIVER USE_USB_OTG_FS HSE_VALUIE 1600 Undetine Language Code Generation Wi args Strict ANSI C Optimizations Level 3 03 T Enum Container always int A warnings Optimize for Time T Plain Char is Signed F Thumb Mode Split Load and Store Multiple Read Only Position Independent T No Auto Includes IY On
24. ing will be done with the Keil ARM tools in Windows We will be focusing on this toolchain as it is an accessible industry standard with easy set up and plenty of support This is not the only way to accomplish writing scripts for the T2 Terminus but the other methods will not be covered here in detail The MDK ARM is a complete software development environment for Cortex M Cortex R4 ARM7 and ARM9 processor based devices MDK ARM is specifically designed for microcontroller applications it is easy to learn and use yet powerful enough for the most demanding embedded applications Features Complete support for Cortex M Cortex R4 ARM7 and ARM9 devices Industry leading ARM C C Compilation Toolchain uVision4 IDE debugger and simulation environment Keil RTX deterministic small footprint real time operating system with source code TCP IP Networking Suite offers multiple protocols and various applications USB Device and USB Host stacks are provided with standard driver classes Complete GUI Library for embedded systems with graphical user interfaces ULINKpro enables on the fly analysis of running applications and records every executed Cortex M instruction Complete Code Coverage information about your program s execution Execution Profiler and Performance Analyzer enable program optimization Numerous example projects help you quickly become familiar with MDK ARM s powerful built in features CMSIS Cortex Microcontoller Soft
25. it is required e Power Supply with 2 1mm barrel connector termination e RS232 cable with a null modem adapter e Cellular Antenna Starting a Terminal Session Step 1 e Attach the cellular antenna to the SMA bulkhead connector e f applicable insert the SIM card to the underside locking connector e Connect the RS232 cable with null modem adapter to the DB9 port Step 2 Open HyperTerminal or an equivalent terminal emulator and start a new session Use the following settings as they are the default for T2 communications Bits per second 115200 Data Bits 8 Parity None Stop Bits 1 Flow control Hardware Step 3 Apply power to the T2 via the barrel connector You will see the Green LED light and the Red LED begin to blink After roughly 2 seconds you should see the Yellow LED begin to blink which is the cellular status indication from the cellular modem In the terminal window you will see similar to the following s AT_port HyperTerminal 15 x File Edit View Call Transfer Help The bootloader will load and _Dils 215 ls search for an application Since this is a new unit there i i i Janus Remote Communications TERMINUS 2 R1 Boot Loader will be no application found a 7 9012 12 0558 It will boot the modem up e eee Application Missing and begin an AI Command Starting Boot Loader Application j Press ESC to break to console passthrough session 4 Connected 0 00 27 ANSIW 115200 8 N 1 SCRO Figure
26. ned bin file that the T2 s production bootloader can use and rename it to an obvious output file Options for Target TERMINUS E x Device Target Output Listing User ccs Asm Linker Debug Utilities Run User Programs Before Compilation of a C C File E Run 1 s DOS1 6 Stop Build Rebuild 1 on Exit Code Hot Specified rane SSS Ci Stop Build Rebuild 2 on Exit Code Not Specified Run User Programs Before Build Rebuild Run 1 Ais DO0S16 O Run 2 OSIE Run User Programs After Build Rebuild W Aun 1 JAT24PPACK TERMINUS AT 2 YOR Demo HEX poste Iv Run 2 AppPackRename bat poste V Beep When Complete Start Debugging Terminus T2 User Guide JA15 UM Page12 Rev A01 Date 07 08 14 JAN U S REMOTE Copyright 2014 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 Getting started with T2 Terminus applications continued Compiling and uploading the Project continued Step 3 Compile the demo by using Project gt Rebuild all target files Once complete it will be shown in the bottom window W c Keil ARM Examples ST Project T2_ CP_Demo MDK ARM Project uyproj p ision4 File Edit wiew Project Flash Debug Peripherals Tools SVCS Window Help a TERMINUS2 Lond stm32Fxxx_it c
27. oader than this you must follow the directions here to update the bootloader If you have the application already loaded you will not be able to update the bootloader from the menu and must go through the ST Link method http www janus rc com Documentation JA01 AN112_Guide_Terminus 2_DFU pdf NOTE Pay attention to the STM32xx value as F2 and F4 will have different production bootloaders Step 2 The bootloader looks for 3x Escape keypresses for 1 second upon boot up The easiest manner to ensure you drop into this is to simply press Escape a few times at the same time as you press the reset button You may find a few extra Escape BL gt notations come up but that is OK AT_port HyperTerminal 7 O x File Edit View Call Transfer Help Janus Remote Communications TERMINUS 2 R1 STM32F4 Boot Loader FW Jun 27 2014 12 32 38 v2 4 Starting Boot Loader Application Starting Modem Press ESC to break to console KModem Downloa Dump Memory Select Baud Rate Select Flow Control Set Initial AT command Clock Diagnostic Fire DfuSe Modem Console Vam Connected 0 00 11 ANSI W 115200 8 N 1 SCROLL CAPS NUM Capture Print echo Step 3 Press the E key to Erase Application Flash when finished it will tell you AT_port HyperTerminal p lO x File Edit view Call Transfer Help Ole 2 3 alal Janus Remote Communications TERMINUS 2 R1 STM32F4 Boot Loader FW Jun 27 2014 12 32 38 v2 4
28. served See website for latest revision Not intended for life support applications Getting started with T2 Terminus applications continued Uploading the compiled demo Step 3 Press X case does not matter to begin the xmodem transfer Once the T2 is put into this mode go to Transfer gt Send File Select XModem for the protocol and browse to the compiled and signed bin file h x Folder CNReMaAM SE samplesS T Project T 2 VOCP_DemoMDE Filename C Keil4AMYE HaniplessS TSProject T2 VCP De Browse Protocol Xmodem Close Cancel Press Send and wait for the transfer to finish it should only take a few moments Once back at the terminal window press escape to back out of XModem transfer and into the main menu TZ DBS 115200 HyperTerminal l i joj x File Edit wiew Call Transfer Help Starting Boot Loader Application Starting Modem Press ESC to break to console Boot Loader E Erase Application Flash Modem Download Dump Memory Select Baud Rate Select Flow Control Set Initial Al command Clock Diagnostic Fire DfuSe Modem Console oS TI So eS Oe L gt Waiting for XMODEM transfer x CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCOC CCCCCCCCCCCCCCCCCCCCCOCCCOCCCOCCCOCCCCCCCCCCCCCCCCCCCCCCCCCCCCOCCCCCCCCCCCCCCCCC CCCCCCCCCCCCCCCCCCCCCOCCCOCCCOCCCOCCCCCCCCCCCCCCCCCCCCCCCCCCCCOCCCCCCCCCCCCCCCOC CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
29. vice and visa versa To exit the data session and return to command mode send the characters and wait for the OK response Enter AT SH 1 to close the socket Terminus T2 User Guide JA15 UM Page7 Rev A01_ Date 07 08 14 JAN U S REMOTE Copyright 2014 Janus Remote Communications Specifications subject to change without notice C MMUNICATI NS ae All Rights Reserved See website for latest revision Not intended for life support applications Getting started with the cellular modem continued GPS GSM865T2 N A Currently CDMA864T2 The data can be acquired in two methods e Select Antenna Path Send command AT AT GPSPATH 1 lt CR gt e Define Antenna Type Send command AT TPSAT 1 lt cr gt Method 1 e Send command AT GPSP 1 lt cr gt e Send command AT GPSACP lt cr gt GPSACP can retrieve GPS data at any point when GPSP 1 Method 2 e Configure Unsolicited NMEA Data Send command to enable NMEA stream AT GPSNMUN lt enable gt lt gga gt lt gsa gt lt gsv gt lt rmc gt lt vtg gt lt cr gt Select parameter 1 to enable or O to disable for your NMEA stream requirements EXAMPLE AT GPSNMUNZ3 1 1 1 1 1 e Start NMEA Stream Send command AT GPSP 1 lt cr gt e End NMEA Stream Send command AT GPSP 0 lt cr gt HSPA910T2 The data can be acquired in two methods Method 1 e Send command AT GPSP 1 lt cr gt e Send command AT GPSACP lt cr gt GPSACP can retrieve GPS data at any point when GPSP 1 Method
30. ware Interface Standard compliant Step 1 Download MDK ARM v4 from this location https www keil com demo eval arm htm This is the evaluation version which is limited to 32KB This is enough for demo purposes the licensed versions can be purchased through the Keil website if more space is required Step 2 Install Keil uVision and associated tools following the on screen prompts Virtual COM Port Demo The first demonstration application for the T2 Terminus is the virtual COM port demo This demo when run allows access to the cellular modem via the external USB connection instead of relying on the RS232 DB9Y This virtual COM Port Demo is extremely simple and designed to introduce the Control Sig user to tools Janus will a E df Demo Status AT TRACE rovide further and more im motes 5 STM32F205 pio advanced demos and application notes separate Kap from this user manual available on the Janus website On USB capable modems JOVEL Wepol Figure 3 VCP Demo block diagram denotes internal routing Terminus T2 User Guide JA15 UM Page9 Rev A01 Date 07 08 14 JAN U S REMOTE Copyright 2014 Janus Remote Communications Specifications subject to change without notice C MMUNICATI NS a ore All Rights Reserved See website for latest revision Not intended for life support applications Getting started with T2 Terminus applications continued Setting up the file tree Step 1 Download the file tree skel
Download Pdf Manuals
Related Search
Related Contents
Avaya Configuring IPX Services User's Manual Operating instructions Analytical balance SZ-30MR - Olympus PDFファイル 取扱説明書 Copyright © All rights reserved.
Failed to retrieve file