Symbian
Symbian OS Library

FAQ-1167 How do I configure the UIQ 2.1 Emulator to send an SMS message using a GSM phone connected via IR?

[Index][spacer] [Previous] [Next]



 

Classification: General Category: Emulator
Created: 11/15/2004 Modified: 11/24/2004
Number: FAQ-1167
Platform: Symbian OS v7.0

Question:
How do I configure the UIQ 2.1 Emulator to send an SMS message using a GSM phone connected via IR?

Answer:
The procedure is similar to that outlined for setting up the UIQ 2.1 Emulator to send an SMS using a GSM phone connected via a serial cable (see FAQ-1152 ). First you need to configure the comms database. Follow the procedure outined in FAQ-1152 to obtain a cedout.cfg configuration text file.
The comms database contains a set of Modem Configuration tables, including a table for GSM Mobile Phone via Infrared (an extract of which is listed below)

# COMMDB_ID = 4
Name=GSM Mobile Phone via Infrared
PortName=IRCOMM::0
TSYName=MM
CSYName=IRCOMM
...
END_ADD

The default setting is

PortName=IRCOMM::0

which maps to your PC's COM1 port. Edit this as appropriate (eg IRCOMM::1 represents your PC's COM2 port etc) for the port to which your IR pod is going to be connected. (Note the UIQ 2.1 SDK includes a custom driver to send AT commands to a phone's modem over IR and this is configured to use one of the PC's standard serial COM ports. This restricts the user to an IR pod connected to a standard serial COM port).

To get the emulator to use these modem settings we need to set the

ModemForDataAndFax
ModemForPhoneServicesAndSMS

fields in the Global Settings table to the CommDB_ID of the relevant Modem Configuration table (4 in this case). For example

############################################################
## GlobalSettings
##
[GlobalSettings]
ADD_SECTION
RedialAttempts=3
SmsBearer=2
SmsReceiveMode=2
GPRSAttachMode=1
AcceptIncomingGprs=0
GPRSClassCBearer=GPRS
ConnectionAttempts=2
ModemForDataAndFax=4
ModemForPhoneServicesAndSMS=4
LocationForDataAndFax=3
LocationForPhoneServicesAndSMS=3
FIELD_COUNT=11
END_ADD

Now save the amended cedout.cfg file and generate the binary Cdv3.dat comm database file using the CED utility as outlined in FAQ-1152.

One additional step is required for IR connection to a GSM phone. We need to configure the driver, irda.prt, to use the appropriate PC COM port. To do this open the

\epoc32\wins\c\system\data\irda.esk

file in a text editor and edit the following fields as appropriate for your IR pod.

irPod= jeteye7401
irPhysicalComPort= 0

The following devices are supported
    tekram
    jeteye7201
    Jeteye7401
    parallax
    connectTech
The value for the irPhysicalComPort should match that entered into the modem settings table of the comms database (ie 0 for IRCOMM::0, 1 for IRCOMM::1 etc). Save the modified irda.esk file. The UIQ 2.1 Emulator should now be configured to send an SMS message using a GSM phone connected via IR.