background image

 
 
 

 

 

Application Note 

Embedded Applications 

Controller Mode 

 

 

 

 

 

 

Summary of Contents for Controller Mode

Page 1: ...Application Note Embedded Applications Controller Mode ...

Page 2: ...n 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 at any time and without notice Such changes will nevertheless be incorporated into new editions of this manual All rights reserved Sony Ericsson Mobile Communications 2004 ...

Page 3: ... 1 Introduction 4 2 Technical Description of Controller Mode 5 2 1 Limitations restricted functionality 5 3 Controller Mode Example 7 3 1 Solution Structure 7 3 2 Running the Example Script 8 3 3 Controller Mode Script Controller_Mode sc 9 LZT 123 8015 R1A 3 ...

Page 4: ...unctionality The GSM signalling software is halted and the Embedded Applications script will effectively have control of the processor Controller Mode allows an application to run with more predictable response times If the GSM functionality is not required for a long period of time but some periodic monitoring of IO s is required Controller Mode can be used giving faster response lower latency an...

Page 5: ...alizes and all the processes are started All GSM software processes and interrupts are disabled apart from those servicing the watchdog and essential timer features The radio device synchronizes the 13MHz clock to the RTC clock before switching off the radio circuits and regulators and starting the Embedded Application The script must be setup so that it is run from startup and checks the status o...

Page 6: ...Tcpc FALSE Chr FALSE Io TRUE Pbrn FALSE Smsi FALSE Tcpr FALSE Chsts FALSE Ipc FALSE Pbrtn FALSE Smsra FALSE Tcps FALSE Chw FALSE Ipi FALSE Pdpa FALSE Smsrd FALSE Tm TRUE Clip FALSE Ipo FALSE Pin FALSE Smsrm FALSE Udpr FALSE Dbadd TRUE Iprh FALSE Prs TRUE Smsrs FALSE Udps FALSE Dbadm TRUE Itoa TRUE Prtf TRUE Smss FALSE Utc TRUE Dbdel TRUE Kyc TRUE Puct TRUE Smssc FALSE Utr TRUE Dbfnd TRUE Kyd TRUE ...

Page 7: ... day has passed whichever the sooner the radio device will then switch back to Normal Mode and send the SMS with the status report The radio device then resets to Controller Mode and listens for more status packets If there is a requirement for a stringent timing on receiving the status reports Controller Mode will be necessary in order to give reliable response time The Application Listing is giv...

Page 8: ... Demo Board which comes with the developers kit can be used for this Load the script into the Editor and replace the SMS_NUMBER field with a valid mobile number the SMS reports should be sent to Download the script making sure to check the Run Script on Startup box This will enable the application to run on every startup crucial for the functionality with Controller Mode Run the script You can see...

Page 9: ...tm int TimeExceeded mset Buf 0 DATA_PKT_SIZE 1 restore and open db dbadm 1 destroy all db instances dbadm 2 Create db db_id should always be 1 db_id dbadm 0 prtf n New db_id d db_id open UART3 9600 utc 1 3 loop looking for incoming packets while 1 if at least a packet of data is available if utrl DATA_PKT_SIZE read packet utr Buf DATA_PKT_SIZE prtf n Read packet s Buf verify packet if Buf 0 START_...

Page 10: ...th IO Data Retrieved CurrRec dbfnd db_id 1 0 NEW_FLAG 0 0 while CurrRec 0 Len dbget db_id CurrRec SMS_Buf CurrLen CurrLen CurrLen Len if CurrLen SMSBUFSIZE prtf n Too Much Data break dbdel db_id CurrRec CurrRec dbfnd db_id 1 0 NEW_FLAG 0 0 if slen SMS_Buf 0 int err atcrt prtf n SMS String s SMS_Buf err smss SMS_NUMBER SMS_Buf 129 slen SMS_NUMBER SMSBUFSIZE if err 0 prtf n Failed sending SMS atdst ...

Reviews: