Вы находитесь на странице: 1из 9

SMS controller kit Page 1 of 9

for Siemens Handphone

SMS controller kit for Siemens Handphone


M35, M45

The SMS controller kit

The SMS controller kit comes with


1) 1 x microcontroller with SMS firmware
2) 1 x MAX232CPE level shifter
3) 1 x AHT board
4)
The user need to supply the following:
1) 1 x handphone serial data cable (not included)
2) 1 x Siemens handphone (not included)

optional items
1) 1 x RS232 cable

Handphone message setup

1) Delete all the inbox and outbox messages.


2) The first message is reserved by the software for any incoming messages.
3) Messages 2 and 3 in the outbox are sent out to recipients.
4) Phonebook entry 1 and entry 2 contain the messages to control output pin11
5) So what you have to do, is to key in messages to outbox 1 to 3 and enter
phonebook entries 1 sand 2

Input and Output pins

Input – pin 11 and 12


Output – pin 5, 6, 7 and 8

Document version 1.7 6/12/2003


SMS controller kit Page 2 of 9
for Siemens Handphone

Operation

When input pin 11 is low, outbox message 2 would be sent.


When input pin 12 is low, outbox message 3 would be sent.

When the incoming message is the same as Phonebook entry 1, output pin 5 would be
set to 0
When the incoming message is the same as Phonebook entry 2, output pin 5 would be
set to 1
When the incoming message is the same as Phonebook entry 3, output pin 6 would be
set to 0
When the incoming message is the same as Phonebook entry 4, output pin 6 would be
set to 1
When the incoming message is the same as Phonebook entry 5, output pin 7 would be
set to 0
When the incoming message is the same as Phonebook entry 6, output pin 7 would be
set to 1
When the incoming message is the same as Phonebook entry 7, output pin 8 would be
set to 0
When the incoming message is the same as Phonebook entry 8, output pin 8 would be
set to 1

Document version 1.7 6/12/2003


SMS controller kit Page 3 of 9
for Siemens Handphone

Communication

Pins 1, 2, 3 and 4 of BX-24 are connected to the serial port of the computer.
Pins 5 and 6 are configured as Com3 at a baud rate of 19200. They are connected to the
handphone. Since Pins 5 and 6 are TTL level serial interface, a MAX232 voltage
convertor is needed to convert them to RS232C level. See figure 1.

11 (TRin) 1 (Tx) 2
` 12 (REout) 2 (Rx) 3
2 13 (REin) 3 (ATN) 4
3 14 (TRout) 4 (Vss) 5
5 9 (input)
10 (output)
15 (Gnd) 23 (Vss)
16 (Vcc) Serial port
Serial port 21 (Vcc) (female)
(male) 24 (Vin) Connect to
Connect to computer
handphone MAX232CPE BasicX-24

Figure 1 Communication and power connection

RS-232 Level Converters

Almost all digital devices which we use require either TTL or CMOS logic levels.
Therefore the first step to connecting a device to the RS-232 port is to transform the RS-
232 levels back into 0 and 5 Volts. As we have already covered, this is done by RS-232
Level Converters.

Another device is the MAX-232. It includes a charge pump, which generates


+10V and -10V from a single 5V supply. This I.C. also includes two receivers and two
transmitters in the same package. This is handy in many cases when you only want to use
the Transmit and Receive data lines. You don't need to use two chips, one for the receive
line and one for the transmit. However all this convenience comes at a price, but
compared with the price of designing a new power supply it is very cheap. There are also
many variations of these devices. The large value of capacitors are not only bulky, but
also expensive. Therefore other devices are available which use smaller capacitors and
even some with inbuilt capacitors. (Note : Some MAX-232's can use 0.1 micro farad
capacitors). However the MAX-232 is the most common, and thus we will use this RS-
232 Level Converter in our circuit.

Document version 1.7 6/12/2003


SMS controller kit Page 4 of 9
for Siemens Handphone

Figure 2 Pinouts for the MAX-232, RS-232


Driver/Receiver.

Figure 3 Typical MAX-232 Circuit

Document version 1.7 6/12/2003


SMS controller kit Page 5 of 9
for Siemens Handphone

Pin Descriptions of MAX-232

VCC (Pin 16) Power supply pin for the device, +5V (±10%).

V+ (Pin 2) Positive supply for TIA/EIA-232-E drivers. Recommended


external capacitor: C4-1.0 µF (6.3V). Capacitor value
should be larger than 1 µF. This supply is not intended to
be loaded externally.

V- (Pin 6) Negative supply for TIA/EIA-232-E drivers.


Recommended external capacitor: C3-1.0 µF (16V).
Capacitor value should be larger than 1 µF. This supply is
not intended to be loaded externally.

C1+, C1- (Pins 1, 3) External capacitor connection pins. Recommended


capacitor: 1.0 µF (6.3V). Capacitor value should be larger
than 1 µF.

C2+, C2- (Pins 4, 5) External capacitor connection pins. Recommended


capacitor: 1.0 µF (16V). Capacitor value should be greater
than 1 µF.

T1IN, T2IN (Pins 11, 10) Driver input pins are TTL/CMOS compatible. Inputs of
unused drivers may be left open, an internal active pull-up
resistor (500 kW minimum, typically 5 MW) pulls input
HIGH. Output will be LOW for open inputs.

T1OUT, T2OUT (Pins 14, 7) Driver output pins conform to TIA/EIA-232-E levels.

R1IN, R2IN (Pins 13, 8) Receiver input pins accept TIA/EIA-232-E input voltages
(±25V). Receivers feature a noise filter and guaranteed
hysteresis of 100 mV. Unused receiver input pins may be
left open. Internal input resistor 4.7 kW pulls input low,
providing a failsafe high output.

R1OUT, R2OUT (Pins 12, 9) Receiver output pins are TTL/CMOS compatible. Receiver
output HIGH voltage is specified for both CMOS and TTL
load conditions.

GND (Pin 15) Ground Pin.

Document version 1.7 6/12/2003


SMS controller kit Page 6 of 9
for Siemens Handphone

BX-24 technical specifications

General

I/O Lines 16 total; 8 digital plus 8 lines that can be ADC or


digital
EEPROM for program On-board 32 KB EEPROM
and data storage Largest executable user program size is 32 KBytes
RAM 400 bytes
Analog to digital converter 8 channels of 10 bit ADC, can also be used as regular
digital (TTL level) I/O
ADC sample rate 6 k samples/s maximum
On-chip LEDs Has a 2-color surface mount LED (red/green), fully
user programmable, not counted as I/O line
Program execution speed 60 microseconds per 16 bit integer add/subtract
Serial I/O speed 2400 baud to 460.8 Kbaud on Com1
300 baud to 19 200 baud on any I/O pin (Com3)
Operating voltage range 4.8 VDC to 15.0 VDC
Min/Max
Current requirements 20 mA plus I/O loads, if any
I/O output source current 10 mA @ 5 V (I/O pin driven high)
I/O output sink current 20 mA @ 5 V (I/O pin pulled low)
Combined maximum current 80 mA sink or source
load allowed across all I/Os
I/O internal pull-up resistors 120 kΩ maximum
Floating point math Yes
On-chip multitasking Yes
On-chip clock/calendar Yes
Built-in SPI interface Yes
PC programming interface Parallel or serial downloads
Package type 24 pin PDIP carrier board
Environmental specifications Operating temperature: 0 °C to +70 °C
Absolute maximum ratings Storage temperature: -65 °C to +150 °C

Document version 1.7 6/12/2003


SMS controller kit Page 7 of 9
for Siemens Handphone

BX-24 pin numbering

Document version 1.7 6/12/2003


SMS controller kit Page 8 of 9
for Siemens Handphone

BX-24 Pin Definitions

Each pin on the BX-24 computer has a primary and alternate function as shown in the
table below. The primary function describes how the pin can be configured. The alternate
function describes how the pin is configured when BasicX built-in options are selected.

Pin Primary Primary Alternate


# Function Description Function

1 Com1 High speed Com port Serial download transmit


Transmit
2 Com1 Receive High speed Com port Serial download receive
3 ATN line For serial downloading
4 Ground (Vss) Common with pin 23
5 PortC, Bit 7 General Purpose I/O Port
6 PortC, Bit 6 General Purpose I/O Port
7 PortC, Bit 5 General Purpose I/O Port
8 PortC, Bit 4 General Purpose I/O Port
9 PortC, Bit 3 General Purpose I/O Port
10 PortC, Bit 2 General Purpose I/O Port
11 PortC, Bit 1 General Purpose I/O Port Interrupt pin
12 PortC, Bit 0 General Purpose I/O Port Input capture pin
13 PortA, Bit 7 ADC channel 7 General Purpose I/O Port
14 PortA, Bit 6 ADC channel 6 General Purpose I/O Port
15 PortA, Bit 5 ADC channel 5 General Purpose I/O Port
16 PortA, Bit 4 ADC channel 4 General Purpose I/O Port
17 PortA, Bit 3 ADC channel 3 General Purpose I/O Port
18 PortA, Bit 2 ADC channel 2 General Purpose I/O Port
19 PortA, Bit 1 ADC channel 1 General Purpose I/O Port
20 PortA, Bit 0 ADC channel 0 General Purpose I/O Port
21 VCC 5 V output from regulator 4.8 V to 5.5 V power input
(when powered at Vin) (when Vin not used)
22 Reset Low Active Reset
23 Ground (Vss) Common with Pin 4
24 Vin, 5.5 V to Input to 5 V regulator
15 V (see note below)

Note -- If regulated 5 V power is connected directly to VCC (pin 21), Vin (pin 24) can be
left unconnected.

Document version 1.7 6/12/2003


SMS controller kit Page 9 of 9
for Siemens Handphone

SMS Controller Part Lists


No. Qty Description Remarks
1 1 BasicX-24 microcontroller with SMS firmware
2 1 Max232 driver chip
3 1 12V relay 8 pins Not provided
4 1 Opto-isolator quad Not provided
5 4 0.1 uF ceramic capacitor Not provided. Ignore polarity
6 1 Handphone data link cable Not provided
7 1 PC Serial cable Not provided

Our goal is to provide information and parts. We test and investigate everything
we offer to make sure you have the knowledge you need to get your projects
working quickly and with the best possible results.

Please let us know if you find information missing or incomplete. We want to


constantly improve the quality of what we offer.

To contact us for order, support, or general concerns, we can be reached at:

The Project Store


Website : http://web.singnet.com.sg/~tpstore
Email: tpstore@singnet.com.sg

Document version 1.7 6/12/2003

Вам также может понравиться