background image

  EMBEDDED APPLICATIONS FCT 

 
 
 
 

2.2 

 TCS Script Flowchart 

This flowchart below describes the TCS script. 

Start

Initialise AT

Channel

Create an AT Channel using the IFL

Function ATCRT

AT Channel

Created ?

Initialise

SMS

Yes

Exit Script

No

Initialise SMS Service for OTA

Communication using the IFL Function

SMSI

No

SMS

Service

Created ?

New

SMS?

No

Yes

Read SMS

Read SMS using the following IFL Functions:
SMSRS - Get the SMS Slot Number
SMSRM -  Read Message Data from Slot
SMSRA - Read Message Address from Slot (this is
the ATF Address)
SMSD - Delete the Message

Message

Valid?

Initialise

GPS

GPS

Service

Initialised ?

Initialise the GPS Service to SiRF
Binary Messages from the GPS
Device. Using the IFL Function SIRFC

Yes

No

Filter SiRF

Binary

Message

Send Position

Data to ATF

Filter SiRF Binary Message (MID 98) and
get position data from the GPS Device.
Using the IFL Fundction SBFM

Send the filtered position Data via OTA
Communication to ATF. Using the IFL
Function SMSS

Yes

No

Exit Script

Message =

Request

Filter SiRF

Binary

Message

Send Position

Data to ATF

Delay x

Seconds

Yes

No

New

SMS?

Message =

Schedulex

Filter SiRF Binary Message (MID 98) and
get position data from the GPS Device.
Using the IFL Fundction SBFM

Read SMS

Message

Valid?

No

Message =

Stop

Send the filtered position Data via OTA
Communication to ATF. Using the IFL
Function SMSS

Pass x to DLYS to pause

 

 
 
 

LZT 123 8017 R1A

  

Содержание Embedded Applications Simple Telemetry Application

Страница 1: ...Application Note Embedded Applications Simple Telemetry Application...

Страница 2: ...Mobile Communications reserves the right to make modifications additions and deletions to this manual due to typographical errors inaccurate information or improvements to programs and or equipment a...

Страница 3: ...on with Embedded Applications 5 2 1 System Overview 5 2 2 TCS Script Flowchart 6 2 3 TCS IFL Support 7 2 3 1 General Hardware Library 7 2 3 2 AT Commands Library 7 2 3 3 SMS Library OTA Communication...

Страница 4: ...o Board that can be plugged into the Development Board The Demo Board is preconfigured thus LED jumpers 1 9 are connected SWITCH jumpers 1 9 are disconnected Jumpers I1 O1 O2 O3 O4 are connected as is...

Страница 5: ...on receipt of a command SMS An Administrative Front End application or GSM handset can be used to issue the command once the command has been accepted the application in the radio device will reply t...

Страница 6: ...Initialised Initialise the GPS Service to SiRF Binary Messages from the GPS Device Using the IFL Function SIRFC Yes No Filter SiRF Binary Message Send Position Data to ATF Filter SiRF Binary Message...

Страница 7: ...nication smsi Initialise the SMS ME and SM memory smsrs Read an SMS message slot number smsrm Read the SMS message data smsra Read and store the SMS message address This address becomes the address fo...

Страница 8: ...char d_p int dLen char a_p int aLen int sNo 0 if gtf 29 0 sNo smsrs smsrm d_p dLen sNo smsra a_p aLen sNo smsd sNo prtf nReceived SMS s s n d_p a_p return 1 return 0 Name SendNavData Arguments char ad...

Страница 9: ...is x second intervals Max delay 255 seconds ScheduleNavData char sMsg char sAdrs int sInterval while 1 prtf nSending Nav Data on Schedule n SendNavData sAdrs 1 if ReadSMS sMsg 160 sAdrs 160 1 if scmp...

Страница 10: ...ReadSMS sMsg 160 sAdrs 160 1 if scmp sMsg msgRequest 0 prtf nSending Nav Data on Request n SendNavData sAdrs 1 else sncpy msg sMsg 8 msg 8 0 if scmp msg msgSchedule 0 sRes atoi sMsg prtf nUpdating Sc...

Отзывы: