Preview only show first 10 pages with watermark. For full document please download

Getting Started Guide: Gprs/gsm Application Kit

   EMBED


Share

Transcript

Running the Software 1. Install the DC 8.61 software from the Dynamic C CD. Use the license key supplied on the card inside the CD sleeve. 2. Install the PPP module from the Dynamic C PPP module CD. Using the license key supplied on the card inside the CD sleeve. 3. Copy the contents from the supplemental CD to a directory on your hard disk. We recommend that you assign a readily identifiable directory name such as GPRS_GSM_KIT. 4. Copy the library components from the C:\GPRS_GSM_KIT\GPRS\LIB folder into the LIB\GPRS library directory of your Dynamic C installation (e.g., C:\DCRABBIT_8.61\LIB). 5. Open Dynamic C (for example, by double-clicking on the Dynamic C icon on your PC desktop), and open the library directory file LIB.DIR. Add the following lines, and save the file. ... lib\gprs\gsm_gprs.lib lib\gprs\kdu_menu.lib lib\gprs\kdu_menu_sms.lib lib\gprs\mdm.lib lib\gprs\modemcntrl.lib 6. With the programming cable and modem adapter cable attached as described in the preceding pages, and power applied to both the Prototyping Board and the modem, open the sample program GPRS_GSM_KIT\SAMPLES\GSM\BASIC_SMS.C. Press F9 to compile and download the sample program. The program should print out some diagnostic information in the Dynamic C STDIO window. The phone number for the modem is included in this diagnostic information. Use the phone number to send an SMS message from a GSM phone to the modem. The sample application will read the message, display the contents on the screen, and then respond to the SMS message with a preprogrammed message. Where Do I Go From Here? Be sure to check the readme_1st.txt file on the supplemental CD and the GPRS/GSM FAQs on the GPRS/GSM product page from the Rabbit Semiconductor Web site for additional information. The RabbitCore RCM3100 User’s Manual on the Dynamic C CD provides complete information on using and developing applications for the RCM3100, and includes further information on the Prototyping Board and the LCD/keypad module. The complete AT command set is available from Enfora’s Web site. The supplemental CD included with this Application Kit contains sample programs to illustrate: • • • • • GPRS/GSM Application Kit Application Kit Contents • 3 CD-ROMs — Dynamic C® and Dynamic C PPP module CDs, with complete product documentation on disk, and supplemental CD with sample programs and information related to GPRS/GSM Application Kit. using a GSM device (e.g., cell phone) to initiate SMS commands/messages to the RCM3100 using the RCM3100 to initiate an SMS message to a cell phone via the LCD/keypad module using the RCM3100 to establish a PPP connection via GPRS network (opens socket for a GPRS session) using the RCM3100 to log on to FTP/SMTP/POP3 servers a data-entry menu system for the LCD/keypad module • • • • RCM3100 RabbitCore module. • • • • • Programming cable with level-matching circuitry. NOTE: The software for this application kit does not currently support the Dynamic C µCOS-II module. If there are any problems: • Use the Dynamic C Help menu to get further assistance with Dynamic C. • Check the Rabbit Semiconductor Technical Bulletin Board at www.rabbit.com/support/bb/. • Use the Technical Support e-mail form at www.rabbit.com/support/questionSubmit.shtml. NOTE: If you purchased your GPRS/GSM Application Kit through a distributor or through a Rabbit Semiconductor partner, contact the distributor or partner first for technical support. 020–0070 • 060831–C Prototyping Board, with a bag of accessory parts for use on the Prototyping Board. LCD/keypad module. AC adapters: 12 V DC, 1 A for RCM3100 and Prototyping Board; 5 V DC, 2 A for Enfora Spider SAGL GPRS/GSM modem. GSM/GPRS modem: Enfora Spider SA-GL 850/900/1800/1900 MHz. ½-wave antenna for modem DB9 to 10-pin adapter cable. Getting Started instructions and application instructions. • Rabbit 3000® Processor Easy Reference poster. • Registration card. Rabbit and Dynamic C are registered trademarks of Rabbit Semiconductor Inc. Attach Cables J6 C14 R11 C39 R12 GND GND R4 C3 C43 C58 PD3 PD2 SM1 PD5 PD4 SM0 /IORD PG3 PG2 /IOWR PG4 PG1 PG0 PG5 PG6 PD4 PG7 PE0 PC5 PE1 PE3 PC3 RCM2JA PC0 PF0 PF1 PF7 PF6 PF2 PF3 PF5 PF4 PA0 PA1 PB6 PA2 PA3 PB5 PB4 PA4 PA5 PB3 PB2 PA6 PA7 PB0 /RES STATUS RC7 +5V J8 J8 +5V +5V R16 TP1 C44 PC1 PE7 RC6 R15 Y1 PC2 PE5 +5V RCM2JB PC4 PE6 +3.3V C9 PD5 PE4 +3.3V +3.3V U6 C16 DISPLAY BOARD +5V UX4 RC25 RC4 RC5 C14 RC27 U3 U3 RC28 RC29 RC26 UX5 R14 RC9 C5 RCM30/31/32XX SERIES PROTOTYPING BOARD C8 RCM2JA RESET C6 RxC TxC GND J5 J4 TxB RxB 2 UX7 U1 C4 C53 VRAM GND GND +3.3V PD6 BD6 R5 VBAT EXT /RES IN PD0 BD7 C4 PD7 PB7 GND GND UX2 RP1 C46 RP4 RC2 +5V GND C57 RP2 C54 U2 R9 R11 JP1 RP3 RC21 R13 JP2 RC11 PD1 GND RCM2JB S2 S3 PG6 PG7 DS1 DS2 C7 RS-232 J10 DISPLAY BOARD J10 UX13 J7 R19 R16 C47 R17 R18 D1 C22 C18 R20R23 C24 C59 C42 C52 R21 C45 U7 U5 J3 PROG R11 R12 C39 C14 RP1 RP4 RP3 DIAG PROG C10 R7 Part No. 101-0541 R18 R16 R20 Q3 R19 R21 R23 R17 C16 R24 C15 C11 C10 U5 R14 R26 C13 R7 UX3 RC10 R12 R6 RC13 RC12 +3.3V GND RC22 RC16 NC GND RC23 R8 JP3 1 RC24 R10 JP4 RC14 RC17 Do not press down here. UX11 +5V UX9 C3 R5 R21 +5V +3.3V RC1 R19 R17 R18 C24 C22 C18 D1 R20 R23 RC20 R21 U7 C59 C42 C52 RC19 RCM2 C17 R30 U6 C23 R24 C25 C45 C26 Y2 RC15 R4 R2 RC18 MASTER C41 C2 R1 +5V +3.3V J15 SLAVE UX10 GND R3 +DC GND PA7 C1 GND BT1 PA5 J3 R16 C47 PE4 J3 PA6 /RES C55 PB2 RN2 J1 C56 PB0 RCM3100 PA4 PB4 PB3 Q1 PB5 Battery BD4 PA3 BD2 PA1 PA2 BD0 PF3 PA0 PB6 BA1 PF1 PF2 PF4 BA3 PF0 PF6 PF5 BD5 PE7 PF7 PB7 BD3 PE6 2.5 MM JACK D2 U5 GND PC0 GND PC2 PC1 BD1 PC3 PE5 GND PE3 PE4 J11 C12 BA0 PE1 U4 BA2 PC4 /RES LCD PC5 +5V PE0 D1 C13 R20 BPE3 PG7 J11 RCM3000 ETHERNET CORE MODULE R17 Programming Cable NOTE: Be sure to use the programming cable supplied with this Application Kit— Figure 3. Connect Programming and Ethernet Cables to PC the programming cable has red shrink wrap around the RS-232 converter section located in the middle of the cable. Programming cables from other Rabbit Semiconductor kits are not designed to work with RCM3100 modules. J7 DISPLAY BOARD RESET RS-232 Figure 2. Install the Modules on the Prototyping Board NOTE: It is important that you line up the pins on the modules exactly with the corresponding pins of the sockets on the Prototyping Board—press down in the area above the header pins using your thumbs or fingers over the connectors as shown in Figure 2. The header pins may become bent or damaged if the pin alignment is offset, and the modules will not work. Permanent electrical damage to the modules may also result if a misaligned module is powered up. Connect the 12 V power adapter to jack J11 on the Prototyping Board as shown in Figure 2 above. The power LED to the left of the power-supply connection on the Prototyping Board should light up. NOTE: The RESET button is provided on the Prototyping Board to allow a hardware reset of the RCM3100 module without disconnecting power. The modem requires a SIM card, and supports 3 V SIM cards. Before using your SIM card, contact your service provider to activate your card as detailed in the instructions included with your card. You may call AIRDESK at 1-800-470-2143 to get a SIM card, and make arrangements for wireless service and activation. You may have to wait 8–24 hours for the activation to come into effect. You may also be asked for the 15-digit IMEI number of the modem, which appears with the bar code label on the modem. Antenna Solid black wire is GND. Colored edge lines up with pin 1 – + Serial + 5V – 9V SIM Card U1 Prototyping Board C5 C8 J12 RESET C4 MOTOR/ENCODER PD5 CURRENT MEASUREMENT OPTION PD4 3 C17 JP1 PG6 DS3 PG5 +3.3V POWER PG0 C15 PG2 PG1 L1 POWER PD4 PG3 PG4 J9 J9 PD2 PD5 /IORD VRAM RN5 RN4 Line up mounting holes. PD3 SM1 SM0 /IOWR RCM1JB GND +DC VBAT EXT /RES IN RCM1JA GND PD6 GND PD0 PD7 RN3 PD1 +3.3V +5V +3.3V RN1 NC GND Colored shrink wrap Set Up GPRS/GSM Modem 3-pin power connector GND Colored edge J3 R6 C5 C3 C2 R1 R22 Figure 1. Remove Jumper from Header J5 on LCD/Keypad Module C44 DISPLAY BOARD J4 Y1 RN1 C53 C17 C43 Q8 J2 U7 C14 KP1 C58 R15 C54 Q5 C3 3.3 V 2.8 V n.c. = 5 V Q2 U5 U6 OTHER LP3500 R12 R9 R4 R10 Q7 R5 R14 Q6 C4 R13 U2 Q4 C46 2 R14 R26 Install Modules on Prototyping Board 1 4 C13 R11 J5 3 To PC COM port C55 R26 C17 2 R8 GND 4 J1 R25 JP1 J5 1 C57 C12 Q1 JP2 J5 CR1 RP2 C13 R30 U6 C4 U1 C26 R3 C11 U4 3 Turn the RCM3100 module so that the mounting holes on the RCM3100 and on the Prototyping Board line up, as shown in Figure 2 below. Line up the pins on headers J1 and J2 on the bottom of the module with header sockets RCM2JA and RCM2JB on the Prototyping Board. Install the LCD/keypad module on header sockets J7, J8, and J10 of the Prototyping Board as shown in Figure 2. Press both modules’ pins firmly into the Prototyping Board header sockets. JP1 U2 R4 R5 C23 R24 C25 D1 C7 Y2 D2 C1 C6 C9 LCD1 C56 R2 U3 JP3 Contrast Adjustment JP4 If header J5 is installed, remove the jumper on header J5 on the back of the LCD/keypad module to configure the LCD/ keypad module to operate at 5 V. If the LCD/keypad module has a potentiometer, the contrast may be adjusted once the LCD/keypad module is installed in Step 2. Connect the 10-pin connector of the programming cable labeled PROG to header J1 on the RCM3100 as shown in Figure 3. Be sure to orient the marked (usually red) edge of the cable towards pin 1 of the connector. (Do not use the DIAG connector, which is used for a normal serial connection.) C41 Set Up LCD/Keypad Module Q1 Hardware Connections C6 RxC TxC J5 TxB RxB GND S2 S3 PG6 C7 RS-232 DS1 Adapter Cable SIM Card Insertion RS-232 There is a small thumb latch to the right of Figure 4. Hook Up GSM/GPRS Modem the SIM card slot to hold the SIM card in place. If necessary, move the latch to the right and slide the SIM card into its slot with the notched end as shown until it clicks into place. Slide the latch to the left to hold the SIM card in place. Use the DB9 to 10-pin adapter cable to connect the modem to the RS-232 header on the Prototyping Board. Be sure to orient the marked (usually red) edge of the adapter cable towards pin 1 of the connector. Install the antenna and connect the 5 V, 2 A power adapter as shown in Figure 4. TIP: If you need to reset the GPRS/GSM modem, disconnect, then reconnect its power supply. The GPRS/GSM modem has its own power supply. Attach Cables J6 C14 R11 C39 R12 GND GND R4 C3 C43 C58 PD3 PD2 SM1 PD5 PD4 SM0 /IORD PG3 PG2 /IOWR PG4 PG1 PG0 PG5 PG6 PD4 PG7 PE0 PC5 PE1 PE3 PC3 RCM2JA PC0 PF0 PF1 PF7 PF6 PF2 PF3 PF5 PF4 PA0 PA1 PB6 PA2 PA3 PB5 PB4 PA4 PA5 PB3 PB2 PA6 PA7 PB0 /RES STATUS RC7 +5V J8 J8 +5V +5V R16 TP1 C44 PC1 PE7 RC6 R15 Y1 PC2 PE5 +5V RCM2JB PC4 PE6 +3.3V C9 PD5 PE4 +3.3V +3.3V U6 C16 DISPLAY BOARD +5V UX4 RC25 RC4 RC5 C14 RC27 U3 U3 RC28 RC29 RC26 UX5 R14 RC9 C5 RCM30/31/32XX SERIES PROTOTYPING BOARD C8 RCM2JA RESET C6 RxC TxC GND J5 J4 TxB RxB 2 UX7 U1 C4 C53 VRAM GND GND +3.3V PD6 BD6 R5 VBAT EXT /RES IN PD0 BD7 C4 PD7 PB7 GND GND UX2 RP1 C46 RP4 RC2 +5V GND C57 RP2 C54 U2 R9 R11 JP1 RP3 RC21 R13 JP2 RC11 PD1 GND RCM2JB S2 S3 PG6 PG7 DS1 DS2 C7 RS-232 J10 DISPLAY BOARD J10 UX13 J7 R19 R16 C47 R17 R18 D1 C22 C18 R20R23 C24 C59 C42 C52 R21 C45 U7 U5 J3 PROG R11 R12 C39 C14 RP1 RP4 RP3 DIAG PROG C10 R7 Part No. 101-0541 R18 R16 R20 Q3 R19 R21 R23 R17 C16 R24 C15 C11 C10 U5 R14 R26 C13 R7 UX3 RC10 R12 R6 RC13 RC12 +3.3V GND RC22 RC16 NC GND RC23 R8 JP3 1 RC24 R10 JP4 RC14 RC17 Do not press down here. UX11 +5V UX9 C3 R5 R21 +5V +3.3V RC1 R19 R17 R18 C24 C22 C18 D1 R20 R23 RC20 R21 U7 C59 C42 C52 RC19 RCM2 C17 R30 U6 C23 R24 C25 C45 C26 Y2 RC15 R4 R2 RC18 MASTER C41 C2 R1 +5V +3.3V J15 SLAVE UX10 GND R3 +DC GND PA7 C1 GND BT1 PA5 J3 R16 C47 PE4 J3 PA6 /RES C55 PB2 RN2 J1 C56 PB0 RCM3100 PA4 PB4 PB3 Q1 PB5 Battery BD4 PA3 BD2 PA1 PA2 BD0 PF3 PA0 PB6 BA1 PF1 PF2 PF4 BA3 PF0 PF6 PF5 BD5 PE7 PF7 PB7 BD3 PE6 2.5 MM JACK D2 U5 GND PC0 GND PC2 PC1 BD1 PC3 PE5 GND PE3 PE4 J11 C12 BA0 PE1 U4 BA2 PC4 /RES LCD PC5 +5V PE0 D1 C13 R20 BPE3 PG7 J11 RCM3000 ETHERNET CORE MODULE R17 Programming Cable NOTE: Be sure to use the programming cable supplied with this Application Kit— Figure 3. Connect Programming and Ethernet Cables to PC the programming cable has red shrink wrap around the RS-232 converter section located in the middle of the cable. Programming cables from other Rabbit Semiconductor kits are not designed to work with RCM3100 modules. J7 DISPLAY BOARD RESET RS-232 Figure 2. Install the Modules on the Prototyping Board NOTE: It is important that you line up the pins on the modules exactly with the corresponding pins of the sockets on the Prototyping Board—press down in the area above the header pins using your thumbs or fingers over the connectors as shown in Figure 2. The header pins may become bent or damaged if the pin alignment is offset, and the modules will not work. Permanent electrical damage to the modules may also result if a misaligned module is powered up. Connect the 12 V power adapter to jack J11 on the Prototyping Board as shown in Figure 2 above. The power LED to the left of the power-supply connection on the Prototyping Board should light up. NOTE: The RESET button is provided on the Prototyping Board to allow a hardware reset of the RCM3100 module without disconnecting power. The modem requires a SIM card, and supports 3 V SIM cards. Before using your SIM card, contact your service provider to activate your card as detailed in the instructions included with your card. You may call AIRDESK at 1-800-470-2143 to get a SIM card, and make arrangements for wireless service and activation. You may have to wait 8–24 hours for the activation to come into effect. You may also be asked for the 15-digit IMEI number of the modem, which appears with the bar code label on the modem. Antenna Solid black wire is GND. Colored edge lines up with pin 1 – + Serial + 5V – 9V SIM Card U1 Prototyping Board C5 C8 J12 RESET C4 MOTOR/ENCODER PD5 CURRENT MEASUREMENT OPTION PD4 3 C17 JP1 PG6 DS3 PG5 +3.3V POWER PG0 C15 PG2 PG1 L1 POWER PD4 PG3 PG4 J9 J9 PD2 PD5 /IORD VRAM RN5 RN4 Line up mounting holes. PD3 SM1 SM0 /IOWR RCM1JB GND +DC VBAT EXT /RES IN RCM1JA GND PD6 GND PD0 PD7 RN3 PD1 +3.3V +5V +3.3V RN1 NC GND Colored shrink wrap Set Up GPRS/GSM Modem 3-pin power connector GND Colored edge J3 R6 C5 C3 C2 R1 R22 Figure 1. Remove Jumper from Header J5 on LCD/Keypad Module C44 DISPLAY BOARD J4 Y1 RN1 C53 C17 C43 Q8 J2 U7 C14 KP1 C58 R15 C54 Q5 C3 3.3 V 2.8 V n.c. = 5 V Q2 U5 U6 OTHER LP3500 R12 R9 R4 R10 Q7 R5 R14 Q6 C4 R13 U2 Q4 C46 2 R14 R26 Install Modules on Prototyping Board 1 4 C13 R11 J5 3 To PC COM port C55 R26 C17 2 R8 GND 4 J1 R25 JP1 J5 1 C57 C12 Q1 JP2 J5 CR1 RP2 C13 R30 U6 C4 U1 C26 R3 C11 U4 3 Turn the RCM3100 module so that the mounting holes on the RCM3100 and on the Prototyping Board line up, as shown in Figure 2 below. Line up the pins on headers J1 and J2 on the bottom of the module with header sockets RCM2JA and RCM2JB on the Prototyping Board. Install the LCD/keypad module on header sockets J7, J8, and J10 of the Prototyping Board as shown in Figure 2. Press both modules’ pins firmly into the Prototyping Board header sockets. JP1 U2 R4 R5 C23 R24 C25 D1 C7 Y2 D2 C1 C6 C9 LCD1 C56 R2 U3 JP3 Contrast Adjustment JP4 If header J5 is installed, remove the jumper on header J5 on the back of the LCD/keypad module to configure the LCD/ keypad module to operate at 5 V. If the LCD/keypad module has a potentiometer, the contrast may be adjusted once the LCD/keypad module is installed in Step 2. Connect the 10-pin connector of the programming cable labeled PROG to header J1 on the RCM3100 as shown in Figure 3. Be sure to orient the marked (usually red) edge of the cable towards pin 1 of the connector. (Do not use the DIAG connector, which is used for a normal serial connection.) C41 Set Up LCD/Keypad Module Q1 Hardware Connections C6 RxC TxC J5 TxB RxB GND S2 S3 PG6 C7 RS-232 DS1 Adapter Cable SIM Card Insertion RS-232 There is a small thumb latch to the right of Figure 4. Hook Up GSM/GPRS Modem the SIM card slot to hold the SIM card in place. If necessary, move the latch to the right and slide the SIM card into its slot with the notched end as shown until it clicks into place. Slide the latch to the left to hold the SIM card in place. Use the DB9 to 10-pin adapter cable to connect the modem to the RS-232 header on the Prototyping Board. Be sure to orient the marked (usually red) edge of the adapter cable towards pin 1 of the connector. Install the antenna and connect the 5 V, 2 A power adapter as shown in Figure 4. TIP: If you need to reset the GPRS/GSM modem, disconnect, then reconnect its power supply. The GPRS/GSM modem has its own power supply. Running the Software 1. Install the DC 8.61 software from the Dynamic C CD. Use the license key supplied on the card inside the CD sleeve. 2. Install the PPP module from the Dynamic C PPP module CD. Using the license key supplied on the card inside the CD sleeve. 3. Copy the contents from the supplemental CD to a directory on your hard disk. We recommend that you assign a readily identifiable directory name such as GPRS_GSM_KIT. 4. Copy the library components from the C:\GPRS_GSM_KIT\GPRS\LIB folder into the LIB\GPRS library directory of your Dynamic C installation (e.g., C:\DCRABBIT_8.61\LIB). 5. Open Dynamic C (for example, by double-clicking on the Dynamic C icon on your PC desktop), and open the library directory file LIB.DIR. Add the following lines, and save the file. ... lib\gprs\gsm_gprs.lib lib\gprs\kdu_menu.lib lib\gprs\kdu_menu_sms.lib lib\gprs\mdm.lib lib\gprs\modemcntrl.lib 6. With the programming cable and modem adapter cable attached as described in the preceding pages, and power applied to both the Prototyping Board and the modem, open the sample program GPRS_GSM_KIT\SAMPLES\GSM\BASIC_SMS.C. Press F9 to compile and download the sample program. The program should print out some diagnostic information in the Dynamic C STDIO window. The phone number for the modem is included in this diagnostic information. Use the phone number to send an SMS message from a GSM phone to the modem. The sample application will read the message, display the contents on the screen, and then respond to the SMS message with a preprogrammed message. Where Do I Go From Here? Be sure to check the readme_1st.txt file on the supplemental CD and the GPRS/GSM FAQs on the GPRS/GSM product page from the Rabbit Semiconductor Web site for additional information. The RabbitCore RCM3100 User’s Manual on the Dynamic C CD provides complete information on using and developing applications for the RCM3100, and includes further information on the Prototyping Board and the LCD/keypad module. The complete AT command set is available from Enfora’s Web site. The supplemental CD included with this Application Kit contains sample programs to illustrate: • • • • • GPRS/GSM Application Kit Application Kit Contents • 3 CD-ROMs — Dynamic C® and Dynamic C PPP module CDs, with complete product documentation on disk, and supplemental CD with sample programs and information related to GPRS/GSM Application Kit. using a GSM device (e.g., cell phone) to initiate SMS commands/messages to the RCM3100 using the RCM3100 to initiate an SMS message to a cell phone via the LCD/keypad module using the RCM3100 to establish a PPP connection via GPRS network (opens socket for a GPRS session) using the RCM3100 to log on to FTP/SMTP/POP3 servers a data-entry menu system for the LCD/keypad module • • • • RCM3100 RabbitCore module. • • • • • Programming cable with level-matching circuitry. NOTE: The software for this application kit does not currently support the Dynamic C µCOS-II module. If there are any problems: • Use the Dynamic C Help menu to get further assistance with Dynamic C. • Check the Rabbit Semiconductor Technical Bulletin Board at www.rabbit.com/support/bb/. • Use the Technical Support e-mail form at www.rabbit.com/support/questionSubmit.shtml. NOTE: If you purchased your GPRS/GSM Application Kit through a distributor or through a Rabbit Semiconductor partner, contact the distributor or partner first for technical support. 020–0070 • 060831–C Prototyping Board, with a bag of accessory parts for use on the Prototyping Board. LCD/keypad module. AC adapters: 12 V DC, 1 A for RCM3100 and Prototyping Board; 5 V DC, 2 A for Enfora Spider SAGL GPRS/GSM modem. GSM/GPRS modem: Enfora Spider SA-GL 850/900/1800/1900 MHz. ½-wave antenna for modem DB9 to 10-pin adapter cable. Getting Started instructions and application instructions. • Rabbit 3000® Processor Easy Reference poster. • Registration card. Rabbit and Dynamic C are registered trademarks of Rabbit Semiconductor Inc.