Wavecom GR64 Application Note

Summary of GR64

  • Page 1

    Gr/gs64 application note embedded application remote download reference: wi_dev_gx64_apn_012 version: 001 date: february 26, 2007.

  • Page 2

    Trademarks ®, wavecom ® , wismo ® , open at ® , wireless cpu ® , wireless microprocessor ® and certain other trademarks and logos appearing on this document, are filed or registered trademarks of wavecom s.A. In france or in other countries. All other company and/or product names mentioned may be fi...

  • Page 3

    Table of contents 1 introduction.......................................................................................... 5 2 overview............................................................................................... 6 2.1 general ..........................................................

  • Page 4

    Remote download application via m2 m power ide ................................................ 19 gx64 application note ea remote download this document is the sole and exclusive property of wavecom. Not to be distributed or divulged without prior written agreement. Ce document est la propriété exc...

  • Page 5

    1 introduction the gr64 has been designed so that scripts embedded within the device can be updated either through a serial interface on uart1 or where this is not feasible, due to location, remotely using the air interface. The script resident in the device must be written in a way that makes remot...

  • Page 6

    2 overview 2.1 general the remote script download is dependant on the currently active script within the gr64 having the remote control (rc/iprc) intrinsic function capability written in such a way that once a connection is made (circuit switch data call or ip connection), the remote control (rc/ipr...

  • Page 7

    4. Select script file to download. 5. Initiate download. 6. Set new script to be active. 7. Set script to run from start. Normally this setting will already be in force in which case this step can be omitted. 8. Reset remote module so that new script will be run. 2.3 remote gr64 setup the gr64 that ...

  • Page 8

    2.4.2 clip method alternatively, for rc, the script could be adjusted to activate clip (caller line presentation) and only answer the call if it recognised that the call was from its service centre. 2.4.3 ip address method alternatively, for iprc, the script could be set up to only accept download c...

  • Page 9

    3 functional description of embedded application 3.1 flow chart of remote control embedded application gx64 application note ea remote download this document is the sole and exclusive property of wavecom. Not to be distributed or divulged without prior written agreement. Ce document est la propriété...

  • Page 10

    3.1.1 rc description this embedded application or something very similar has to be running in the target module to ensure that the download will have a connection to work with. The first consideration in the script is to establish a data channel. It is possible to establish two instances of a data c...

  • Page 11

    Else { prtf ("failed to enter rc mode\r"); } } } myscript() { dlys (1); return (0); } main () { int result; prs (0); /* create data channel to be used for accepting rc call */ chcrt (1); /* turn auto answer on for data channel */ chw (1, "ats0=1\r", 7); while (1) { result = myscript (); prtf ("mys...

  • Page 12

    3.2 iprc embedded application code the following code sample shows how to initiate an iprc session for rc mode. In this case tcp listen is used so that the module acts as a server and waits for the download application to initiate a tcp/ip connection on port 5001. It is also possible for the module ...

  • Page 13

    Main() { int result; prs (0); /* create a pdp context */ result = pdpcont (1, 1, "apn01a.Ericsson.Se"); if (!Result) { /* activate a pdp context for ip use */ prtf ("pdp context written.\r"); result = pdpa (1,1); } if (!Result) { int val; /* get this module's ip information */ prtf ("pdp context a...

  • Page 14

    Appendix a script download sequence determine active script: issue at*e2apd? Which returns *e2apd: ,, where scriptnum is the slot number of the currently active script so the other slot should be used for the download. Initiate xmodem download: issue at*e2apd=0,, where slot is the slot number to scr...

  • Page 15

    Set script to run from start: issue at*e2apc=1,1 to set the active script to run from startup. Restart module: if the script running in the module is set to automatically restart then just close the connection. Alternatively, issue at*e2reset to restart the module. Xmodem block structure 1 byte soh ...

  • Page 16

    Appendix b remote download application this application requires microsoft .Net framework 2.0 to be installed on the host pc. Remote download over tcp/ip requires a network connection capable of access the network the remote module is attached to. Note the security features of some corporate firewal...

  • Page 17

    Tcp/ip controls the application can act as a server by listening for a connection initiated by the remote module or as a client by initiating a connection to a listening remote module. • connect: this initiates a connection to the remote module which must be in listen mode. The ip address of the rem...

  • Page 18

    • script slot: enter the script slot number for download. This must not be the currently active slot. Click the button to automatically get the free slot. • download: providing a valid script file and slot number have been entered this will initiate a download. A running block count and any error me...

  • Page 19

    Appendix c remote download application via m2 m power ide this application is available with m2 m power ide version 1.1.3 onwards. This needs to be installed on the user pc. Remote download over tcp/ip requires a network connection capable of access the network the remote module is attached to. Note...

  • Page 20

    Wait for “tcp/ip connected” to be displayed (“tcp/ip connecting” may be displayed initially) • ip – listen the ip address of the host pc and the default port number are entered automatically but can be changed manually if required. Click ‘listen’, “tcp/ip listening” will be displayed. This will chan...

  • Page 21

    Once the remote download has completed, this form will close automatically. Then select ‘disconnect’ and wait for “not connected” to be displayed, after which the remote download form can be closed. Note- for disconnect to work with csd the default escape sequence (‘+++at’) must be enabled (at*e2est...

  • Page 22

    Page: 22/22 gx64 application note ea remote download this document is the sole and exclusive property of wavecom. Not to be distributed or divulged without prior written agreement. Ce document est la propriété exclusive de wavecom. Il ne peut être communiqué ou divulgué à des tiers sans son autorisa...