SIM900_Custom Application Building Tutorial_Application Note_V1.00



Similar documents
SIM900 Eclipse environment install Application Note_V1.00

SIM800 Series_IP_Application Note_V1.02

GIVE WINGS TO YOUR IDEAS TUTORIAL

SIMCom_3G_SSL_Application Note_V1.10

GIVE WINGS TO YOUR IDEAS TOOLS MANUAL

Quectel Cellular Engine

ADL User Guide for Open AT V4.10

SIM800 Series_SSL_Application Note_V1.00

SIM800 Series_SSL_Application Note_V1.01

GSM. Quectel Cellular Engine. HTTP Service AT Commands GSM_HTTP_ATC_V1.2

SMS Application Note. SIM5360_SMS_Application_Note_V0.01

L16. Quectel GNSS Engine. EVB User Guide L16_EVB_UGD_V1.0

Quectel Cellular Engine

M72. Quectel Cellular Engine. EVB User Guide M72_EVB_UGD_V1.0

Quectel Cellular Engine

Quectel Cellular Engine

Quectel Cellular Engine

WCDMA&GSM Module_Extra_Function_for_Network

SIM800 Series_FM_Application Note_V1.00

U10. Quectel Cellular Engine. Video Call Application Notes. U10_ Video_Call_AN_V1.0

Application Note: AN00141 xcore-xa - Application Development

MT-350 SMS. Operation Manual. PORTech Communications Inc.

L10. Quectel GPS Engine. EVB User Guide L10_EVB_UGD_V1.00

Python for Series 60 Platform

M95 Dual SIM Application Notes

(SMTP/POP3) Application Note

GSM. Quectel Cellular Engine. GSM TCPIP Application Notes GSM_TCPIP_AN_V1.1

In-System Programmer USER MANUAL RN-ISP-UM RN-WIFLYCR-UM

SKP16C62P Tutorial 1 Software Development Process using HEW. Renesas Technology America Inc.

M85 OpenCPU Solution Presentation

CC3100 Over-The-Air (OTA) Update. Application Note

Moxa Device Manager 2.0 User s Guide

INDUSTRIAL BLUETOOTH FTP/OPP. User Manual

T-BOXN12R. First steps with T-BOXN12R. You can make it wireless. Date: Version 1.0

How To Port A Program To Dynamic C (C) (C-Based) (Program) (For A Non Portable Program) (Un Portable) (Permanent) (Non Portable) C-Based (Programs) (Powerpoint)

Installation Guide of the Change Management API Reference Implementation

Building an Embedded Processor System on a Xilinx Zync FPGA (Profiling): A Tutorial

Xperia TM. Read about how Xperia TM devices can be administered in a corporate IT environment

Interfacing an HTML Form to the ez80f91 MCU

Technical Note. TN_134 FTDI Android D2XX Driver

How To Use An Atmel Atmel Avr32848 Demo For Android (32Bit) With A Microcontroller (32B) And An Android Accessory (32D) On A Microcontroller (32Gb) On An Android Phone Or

3. Programming the STM32F4-Discovery

Getting Started with Kinetis SDK (KSDK)

SMS Alarm Messenger. Setup Software Guide. SMSPro_Setup. Revision [Version 2.2]

Quick Start Tutorial. Using the TASKING* Software Development Tools with the Intel 8x930 Family Evaluation Board

WIZ-Embedded WebServer User s Manual (Ver. 1.0)

Lesson 0 - Introduction to Playstation 3 programming

Freescale Semiconductor, I

Yun Shield User Manual VERSION: 1.0. Yun Shield User Manual 1 / 22.

Version 1.0 Revision MODBUS/TCP Ethernet Communication Interface API for the Intelligent Instrumentation WinCE Platform SETUP MANUAL

WA Manager Alarming System Management Software Windows 98, NT, XP, 2000 User Guide

Symbian phone Security

Android, Bluetooth and MIAC

Board also Supports MicroBridge

Open Source Project from China. Northeast Asia Open Source SoftwareCompetition Nov. 2012

Integration of GSM Module with PC Mother Board (GSM Trunking) WHITE/Technical PAPER. Author: Srinivasa Rao Bommana

APPLICATION NOTE. How to build pylon applications for ARM

M80 EVB User Guide M80. Quectel Cellular Engine. EVB User Guide M80_EVB_UGD_V1.2 M80_EVB_UGD_V1.2-0-

Waspmote IDE. User Guide

UM0834 User manual. Developing and debugging your STM8S-DISCOVERY application code. Introduction. Reference documents

Example of Standard API

Windows Embedded OS USB Driver Installation

CP2110-EK CP2110 EVALUATION KIT USER S GUIDE. 1. Kit Contents. 2. Relevant Documentation. 3. Software Setup

Device Installer User Guide

Using Microsoft Visual Studio API Reference

New Technology Introduction: Android Studio with PushBot

IRF2000 IWL3000 SRC1000 Application Note - Develop your own Apps with OSGi - getting started

CGI-based applications for distributed embedded systems for monitoring temperature and humidity

SNMP-1000 Intelligent SNMP/HTTP System Manager Features Introduction Web-enabled, No Driver Needed Powerful yet Easy to Use

ETRX3USB ETRX3USB-LRS ETRX3USB+8M ETRX3USB-LRS+8M PRODUCT MANUAL

December 2002, ver. 1.0 Application Note 285. This document describes the Excalibur web server demonstration design and includes the following topics:

Tutorial: BlackBerry Object API Application Development. Sybase Unwired Platform 2.2 SP04

Getting Started with Embedded System Development using MicroBlaze processor & Spartan-3A FPGAs. MicroBlaze

APPLICATION NOTE. Getting Started with pylon and OpenCV

The shortest path to cellular communications: Cellular Development Platform

Develop a Dallas 1-Wire Master Using the Z8F1680 Series of MCUs

Zynq-7000 Platform Software Development Using the ARM DS-5 Toolchain Authors: Simon George and Prushothaman Palanichamy

MatrixSSL Getting Started

4 Networking Generators

PRN_LOAD :22

UG103.8 APPLICATION DEVELOPMENT FUNDAMENTALS: TOOLS

SIM808 V2.2.5 user manual V1.2. Electrodragon.com

IPRS-7 IP/GPRS PC Receiver Software Quick Start V1.2

Cloud Portal for imagerunner ADVANCE

Digitale Signalverarbeitung mit FPGA (DSF) Soft Core Prozessor NIOS II Stand Mai Jens Onno Krah

Example Connection between USB Host and Android

Università Degli Studi di Parma. Distributed Systems Group. Android Development. Lecture 1 Android SDK & Development Environment. Marco Picone

INFORMIX - Data Director for Visual Basic. Version 3.5

Eddy Integrated Development Environment, LemonIDE for Embedded Software System Development

Mitsubishi Electric Q Series PLC Ladder Monitor. Operation Manual

i.mx USB loader A white paper by Tristan Lelong

AN655 R ANGE TEST APPLICATION FOR EZRADIO AND EZRADIOPRO. 1. Introduction. 2. Supported Radio Types

Generate Android App with Protection and Licensing

Moxa Device Manager 2.3 User s Manual

A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 1 Introducing Hardware

IBM WebSphere Application Server V8.5 lab Basic Liberty profile administration using the job manager

Web Services for Management Perl Library VMware ESX Server 3.5, VMware ESX Server 3i version 3.5, and VMware VirtualCenter 2.5

Monitoring Oracle Enterprise Performance Management System Release Deployments from Oracle Enterprise Manager 12c

PTPhoneManager II. User guide

Creating a Webserver on the Nios development kit Stratix Edition board Enoch Hwang

Transcription:

SIM900_Custom Application Building Tutorial_Application Note_V1.00

Document Title: SIM900 Custom Application Building Tutorial Application Note Version: 1.00 Date: 2010-9-16 Status: Document Control ID: Released SIM900_Custom Application Building Tutorial_Application Note_V1.00 General Notes SIMCom offers this information as a service to its customers, to support application and engineering efforts that use the products designed by SIMCom. The information provided is based upon requirements specifically provided to SIMCom by the customers. SIMCom has not undertaken any independent search for additional relevant information, including any information that may be in the customer s possession. Furthermore, system validation of this product designed by SIMCom within a larger electronic system remains the responsibility of the customer or the customer s system integrator. All specifications supplied herein are subject to change. Copyright This document contains proprietary technical information which is the property of SIMCom Limited., copying of this document and giving it to others and the using or communication of the contents thereof, are forbidden without express authority. Offenders are liable to the payment of damages. All rights reserved in the event of grant of a patent or the registration of a utility model or design. All specification supplied herein are subject to change without notice at any time. Copyright Shanghai SIMCom Wireless Solutions Limited. 2010 2

Contents Version history...4 1 Introduction...5 1.1 Purpose...5 1.2 References...5 1.3 Glossary...5 1.4 Abbreviations...5 2 Build Directory...6 3 Compile Environment...8 4 Create the First Project...9 4.1 Copy the project files...9 4.2 Add the source files...9 4.3 Add a global macro...9 4.4 Build embedded software...10 4.5 Download embedded software and SIMCom core software...10 5 Debugging...12 3

Version history Date Version Description of change Author 2010-09-01 V1.00 Origin MXN 4

1 Introduction 1.1 Purpose This tutorial describes the process to develop a customer application using embedded AT APIs. This document demonstrates the steps necessary to build an application from scratch, and tends to be a guide for future development. 1.2 References Sim900 SIMDevIDE Application Note V1.00 1.3 Glossary AT commands Embedded application Embedded software SIMCom library SIMCom core system SIMCom downloader Set of standard modem commands. Customer developed applications running on a SIMCom GSM device that utilizes SIMCom embedded AT APIs. Software which comprises the Embedded application and the SIMCom library Library delivered by SIMCom for Embedded application sources with interfaces of SIMCom Core Software. SIMCom core operating system, in one binary file. A Windows program which allows developer to download software images to SIMCom module via serial cable. 1.4 Abbreviations API CPU OS PDU RAM ROM RTK SDK Application Programming Interface Central Processing Unit Operating System protocol data unit Random Access Memory Read Only Memory Real Time Kernel Software Development Kit 5

2 Build Directory The following figure gives the typical directory structure of an embedded application. SIM900DevIDE -- the root directory of customer project EmbatSIM -- SIMCom folder Documentation -- All related documents of Embedded AT. DownLoader -- Download tools gsmos -- SIMCom core system and library coresw -- SIMCom core system and spytrace configuration files. flcode -- Codes provided by SIMCom. flinc -- The header files that give the declaration of all interfaces provided by SIMCom. libs -- Which contains SIMCom library. tools -- Which contains different tools provided by SIMCom simbld -- Which contains different examples provided by SIMCom example -- Small example of embedded at. code -- Example code mak -- Make files CSD -- CSD example FCM -- Fcm module example GPIO -- GPIO module example 6

HTTP -- Http module example SMS -- SMS module example SPI -- Spi module example SYSTEM -- System API example TIMER -- Timer module example Test -- The folder created when a new project is created. (The name is depend on the project s name) code -- Customer source code mak -- Make files output -- Binary file of built applications, the 7

3 Compile Environment RVCT2.2 2_2b616 is mandatory in order to build embedded applications. After installing RVCT, it is important to configure the compiler path of the RVCT. And the file opt.mak in mak folder should be modified in the project folder. It is also very important to configure the standard library path. Assuming RVCT is installed in the directory C:\, the environment variables should have the following values: ####################################### ##$%^&%&^%*****&^*&*&^*&^&*^*&^*&^*&%&^ #EmbeddedAT900 APPlication Project # brucefan # 2010-7-13 #Added by brucefan 2010-07-30 merge gcc & rcvt ##$%^&%&^%*****&^*&*&^*&^&*^*&^*&^*&%&^s ####################################### ############################################################# #Compiler Tools # You Can Choose : RVCT or GCC COMP=RVCT ############################################################## # IF you use RCVT, Please tell me The Compiler ROOT Path COMPATH=C:\ARM\RVCT\Programs\2_2b616 ############################################################## # IF you use RCVT, Please tell me The Standard Library Header Files ROOT Path SLIBH=C:\ARM\RVCT\Data\2_2b576\include\windows Note: 1 SIMCom does not supply nor support third party software. 2 It is forbidden to include space in the name of the path to setup RVCT. 8

4 Create the First Project 4.1 Copy the project files 1. Developers should copy the folder SIM900DevIDE from the CD-ROM to E: (of course, it is OK to copy it to a different path). This tutorial assumes E: is the project directory. Important Note: It is recommended to leave folder names unchanged, as they are often referenced by the mak file. 2. Copy the folder D:\SIM900DevIDE\simbld\example to D:\SIM900DevIDE, and rename the example folder, for example Test, (it depends on the project s name,), modify D:\SIM900DevIDE\Test\mak\opt.mak as mentioned above. 4.2 Add the source files 1. Create the source file fl_customer.c in directory code, if it does not exist. Note that all the source files must be created in the directory code otherwise it cannot be compiled successfully. 2. Create the header file fl_customer.h in the directory flinc, if it does not exist. Note that all the header files must be created in the directory flinc otherwise it cannot be compiled successfully. 3. Modify D:\SIM900DevIDE\Test\mak\srclist.mak and add the source file fl_customer.c into the srclist.mak. ########THUMB SRC LIST################# THUMB_SRC += fl_customer.c ####################################### ASM_SRC += 4.3 Add a global macro Modify the D:\SIM900DevIDE\Test\mak\generalfeatures.opt to add the macro which user wants to add, as shown in the following: -DSIMCOM -DSIMCOM_EMBEDDED_AT Note: -D should be added in front of the macro which user wants to add. When user wants to add the second macro, the second macro should be added in the second line. That means the two macros should be separated by \r and \n. This is very important. 9

4.4 Build embedded software The steps to build embedded software are listed as following. 1. Run CMD and go to the Test directory. 2. Run run.bat and the firmware will be generated in D:\SIM900DevIDE\Test\output 4.5 Download embedded software and SIMCom core software SIMCom downloader SIM900 Series download Tools Customer.exe is used to download embedded software and SIMCom core software onto SIMCom modules, and it is in the directory D:\SIM900DevIDE\EmbatSIM\DownLoader. The steps to download software are as following. 10

Important: 1. Before start downloading the software, it is better to power on the module to make it reset by itself to download software, otherwise, it is necessary to reset the module manually to download software. 2. Before downloading SIMCom core mot file, Erase Type must be set to Erase User Data and Code. 3. Erase Type must be set to Erase Source Code before downloading the customer cla. Make sure that the address of the app file is 0x003E0000. 11

5 Debugging Debugging SIMCom Embedded Application is easy: 1. fl_enterdebugmode() The function fl_enterdebugmode() enters debug mode, directs all the debug information to the debug port. Developers can use terminal applications linked to the debug port such as Hyper Terminal in Windows to view debug information. 2. fl_debugtrace() 3. The function fl_debugtrace() prints out debug information whatever developer chooses to be. It is virtually same as printf(), except fl_debugtrace() can print out to module s debug port, while printf() can only embed output in system signals. Example : fl_debugtrace( debug information: line %d is %s\r\n, linenumber, linecontent); 12

Contact us: Shanghai SIMCom Wireless Solutions Ltd Add: SIM Technology Building A, No. 633, Jinzhong Road, Shanghai, P. R. China 200335 Tel: +86 21 3252 3300 Fax: +86 21 3252 3020 URL: www.sim.com