You are on page 1of 6

Catch beeper messages @om the

airwuves with t h i ~device and view


them oa your computer screen.

BY ALAN D, JONES

descrlhd Infhls article, together with

D
ighl pagers, or beepers as the reception frequency.
they're commonly called, a scanner radio and a PC, wI p r m l t Pager signals of the type we are
have become exceedingly you to M e the messagesthat are interested In here are modulated by
popular inthe past decade.Pagers of transmittedto about 80 or 90 percent the " d i m FSK method. This means
ail Wnds are d l p p d to the belts of of beepers that are commercially that Re R f caniw Is slnritched be-
mtlllms of people M a ) cand Ws quite avallable, and view them on your tween center frequency +4.5 kHz
likely thaf me of those people is you. computer screen. Mu could, for ex- and center frequency - 4.5 kllr to
A signal Intended for a digital pag- ample, keep a log on dlsk of all mes- represent binary "1"and 3," respec-
er consists, amow other ihlngs. of an s a w iransmWdto your own pager Rvely Blt rates currently range from
individual pager address followed by and verlfy thcrt all were received by 300 to 2400 I d s per second.
the message to be dlspbyed on the the beeper. Also, corporotlons could The most commmty used data for-
pager. Note that the word "dlglkrl" keep time-stamped logs of all mes- mat is P O C X .[Post OfRce Ccde
here refefs to any pager that receiw sages sent to therr in-house pagers. StandardAdviswy Group).Thls codlng
binary data, Inciudlngboth numeric Unlts llke the Decoder are quite standard was cl&sed In a mrles of
[digits only) and alphanumerlc [full effective, and for thls reason are even medings of industry r 9 - m
t q pagers,The mcjority of messages used by law-enforcement ogencla, hosted by British T e r n In 1978 and
in a broadcast wlll be slrnple tele- Wlth such high-tech help the g W 1980. POCSAG is a 32-bbper-word
phone numkrs or dlgR codes, but guys in blue can keep tabs on the synchronous error-correcting code
people w h alphanumerlc pagers deoltngs of known nefarious charac- using a 17-word frame. It Is &cudcast
are Increaslngb making use of de- ters. at 512,1200, a d 2400 bits per sec- 5
tailed fed mesages. often of consid- ond. On mosi paging channels you
erable length. How Pages are Transmitted. wlll hear the &ml mitcMng rupidb
But h o w do you know If the mes-
sages b l n gtransmittedare belng re-
Paglng channels can be fwnd scat-
tered around the VHF 1152 MHz) and
between d~ffwerd ba rates as various 8
pagers are d d r e w d . To learnto rec- 2
ceived c o r m 7 Thsrek no backup UHF (454 MHz) bands. In most metro- ognlze POCSAG by its dlstlnctlve
message generated by paging ser- politan areas, a large number of pap sound, just use fhe search mode on $
vices, ard you therefore hove no way ing channels con be found wthh the your scanner In Ifw -9- to 932-MHz #
of detennlnlw if you're getting the dedicded paging band from 929 to range.Abut90pemntofthe signals $
whole message. Mneeded Is a 932 M U To discover the frequency youhearwillbe~atoneofthe
way of getting a =and look at o UWby a speclflc pagingservlce,just three standard bit rates (see the
H
messuge. look at one of their pagers.There wlll "POCSP6S Messages" bw for more in-
The Alphanume& mrhxdw almost a m be a stlcker indldng formation]. 39
+5V +5V

R4
200K
SO1

D3
1N4148
-v -v
+V I

R7
47K

Rii
i0K 04
1114148
D5
1N4148
7
Ria
4.7K
lj O-lC4
+ 1

06
+V 11'14148
"--
- Ri3
470K
+ I 'C6
1
-:::-

R14 G7
H2
6SK 47pF
J2
RiS AUXILIARY

~
2ooK I2 R1? SPEAKER
8 2.2K OUTPUT
R1S
Ji
~v~
~N~L£
1OK
" '.'A
R19
1000
,)
e:
;
~ +V +5V

Gi0
.001
I

..b
I
I
.
1
G8
I Hi R20 1
i00K

... -
Fig.i. Here is the schematic for the Alphanumeric Pager Decoder. Many sections of
the circuit take their power from two pins of a PC serial port, through DB-25-
connector SOl. Regulator IC3 also converts that power to a 5 -volt source for use by
other parts of the circuit.

Using Your Scanner. A perfectty de- amination of the outputs of several strus:tthe original data by the use of a
modulated paging signal should ap- popular scanners reveals certain Schmitt trigger, There are"!wo oppor-
pear on an oscilloscope as a series of common characteristics, One of tunities for trigger points on the audio
rectangular pulses of varying width these Isthat all DC information islost; if waveform: the Initial spike and the first
(squarewaves), This signal exists at a long string of 1'sor O'sis encountered overshoot. Which one Isbest depends
some point within the circuitry of any (no bit transitions), the output quickly on whether or not the amplitude of
radio receiver. Unfortunately, most settles to a center zero point re- the initial spike is significantly higher
low- to moderate-cost scanners were gardless of the polarity of the binary than the first overshoot. The general
designed specifically to listen to voice data. Another is that any bit transition lack of a major second overshoot is
transmissions, As a result, that nice causes an initial spike of the proper the detail that allows us to get away
(/)
() clean squarewave passes through polarity followed by a moderate-to- with using the first overshoot Instead of
'1:
e several stages of !owpass and high- severe overshoot of the opposite po- the spike, For any particular scanner, .
tJ
Q.) pass audio filtering to optimize the larity, The second overshoot (back in direct experimentation will determine
ill sound quality from the speaker. The the original direction) is usually well- the best location for the trigger points,
~ damped and of much lower ampli- If your scanner has a "discriminator"
'S result isthat the signal available at the
Q. tude, To make matters worse, the
0 external speaker or earphone jack or raw-data output then you shouid
a..
h.' bears little resemblance to the origi- "ringing" frequency is often roughly by all means use it with the Decoder.
~
.<::
nal source.
One of the functions of the De-
equal to half the bit rate of a 1200-bps
data stream, causing transition-in-
Most do not however, So, as we'll see
later, you will probably have to locate
t:? duced spikes to sometimes super- this unaduiterated signal within the in-
coder is that of reconstructing the
~ original data waveform from the high- pose themseives on the first overshoot ternal circuitry of the scanner. A little
ly distorted waveform available at the from a previous transition, work with a soldering iron can bring
40 audio output of a typical scanner. Ex- The Decoder attempts to recon- out an extra pair of wires (or a jack)
providing the desired output. Be- tional asynchronous byte, including sync, word-sync, error-correct. de-
cause of the audio fiitering,you can start and stop bits,at 19,200bps. This code, and display the data stream
normailydecode 1200-bpsand lower amounts to four sampies per bit at a fromthisdevice wouldbe a project of
transmissions,but its pretty hopeless 2400-bps incoming data rate (more greater magnitude than the physical
to extract useful data at 2400 bps for lowerrates),which isadequate for construction itself. However, a pro-
withouta direct discriminatoroutput. purposes of software-based bit syn- gram that performs these functions
Just because you have an accu- chronization. under either MicrosoftWindows3.1or
rateiy reconstructed binary data The work of determining the data MicrosoftWindows95 is available at
stream doesn't mean that the prob- rate and subsequently convertingthe no charge via the Internet at http://
lem of interpreting pager signals is data to a usable one-bit-per-data-bit www.cylexinc.com/downioad.htmor
solved. We could try level-translating stored format isstillhandled by the PC from ftp.gernsback.com. This pro-
the signal to RS-232voltages and itself.Theadvantage of thismethod is gram decodes POCSAGat all three
feeding it Into a serial port, but the that since data isreceived by the PC standard rates; ifyou need to decode
foilowingmust be considered: (1)bit serial port In the standard way, the another coding format you willneed
rates may change unexpectedly,and usual operating-system-supplied se- to write your own software for now.
(2) POCSAGis a 32-blt synchronous riaiport device driverscan be used to Note that any program accepting
format that Is incompatible with the receive and initiailybuffer the data. data fromthis device must be capa-
data input mechanism of the type of Thisbuffercan be occasionallyread ble of accommodating a never-end-
UARTthat is normaily used in PCs. and analyzed by an application pro- ing stream of 19200-baud data and
There is some temptation to solve gram that, because ofthe bufferingin performing a fair amount of com-
both of these difficulties by feeding the device driver,can easiiy run in a putation on that data at real-time
the signal to a "handshake" line of the multitaskingenvironment. speeds. It is necessary to use a rea-
serial port (instead of the normal data The writingof PC software to bit- sonably fast PC to run such a pro-
line) and using highiy timing-intensive
software to measure individual bit
transitions in order to determine the
current bit rate and extract the cor-
rectly synchronized data words. In
fact, there exist products on the mar-
ket that do exactiy this, and the Inge-
nuity that must have been required to
write such software issomething to be
admired. The disadvantage of this
approach isthatthe software running
on the PC must perform timing tasks at
the sub-millisecond level ina way that
essentiaily prohibits operation under
multitasking operating systems such
as Microsoft Windows. Such programs
tend to run under MS-DOSoniy and
must "own" ail the CPUtime inorder to
function correctly.
The Decoder overcomes this disad-
vantage by adding one more pro-
cessing step between the recon-
structed data stream and the PC
serial port. A Microchip PIC16C54 mi-
croprocessor is used to reformat the
data into a form that isacceptable to
a standard PC UART. In order to retain is
I1
the versatility and general ap- ii
:::
plicability of this device for future ap-
plications In decoding other digital ~
,"
data stream formats, the embedded "1
0
software for the PICCPUoperates sim- "0
co
ply as a constant-rate sampler, con- ~
IT
tinuously taking samples of the state 15
of the data stream at approximately $)
9600 samples per second. Each time g
1)
(J
a group of eight samples has been
accumulated, the group is transmit-
ted to the PC serial port as a conven- 41
gram; we recommend a 33 MHz 486
as a minimum.

Circuit Descripti@n. The schematic


for the Decoder is shown in Fig. 1.
Basically, the circuit consists of four
blocks: the power supply, input-signal
processing, Schmitt trigger, and dig-
ital sampier/UART.All necessary power
is drawn from the handshake lines of
the serial port itself. The request-to-
send line (pin 4 of S01) provides
negative voltage and the data-termi-
nal-ready line (pin 20 of S01) provides
positive voltage (software must set
these outputs appropriately). Reg-
ulator IC3 creates a 5-volt logic supply A properly assembled Decoder PC board will fit inside a DB-25 connector hood.
for microcontroller IC1. The RTSline
(negative supply) doubles as a reset C9 and R20 eliminate any undesired board is not desirable.
control for IC1 when It is set momen- DC components that may exist in the For the most compact assembly,
tarily posiJive, while the data-output scanner signal. One section of an you might want to build the circuit in
line from the PC serves as a separate LF444CN, IC2-a, is simply a buffer and the fashion the prototype was as-
negative supply to produce the nec- gain block with two jumper-seiecta- sembled-on a double-sided
essary voltage swing to drive the PC's ble gain settings; IC2-c buffers the sig- printed-circuit board. That way, the
data input at RS-232 levels. na! to the auxiliary speaker output. entire circuit will fit inside a plastic
Resistor R19 is a simulated speaker Section IC2-d and its associated D8-25 connector shell. If you'd like to
load for the scanner if needed. Com- feedback components form a etch your own double-sided PC
ponents R18and C10 form a lowpass Schmitt trigger with thresholds of ap- board, you can use the solder- and
filter to remove the 455-kHz IFcompo- proximately +0.1 and -0.1 voits. Ca- component-side foil patterns shown
nents (and harmonics) that are often pacitor C5, section IC2-b, and their in Figs. 2 and 3, respectively. Or, you
present at discrimi[1ator outputs. Both associated resistors are set up to can order a drilled and etched board
cause LED1to flash on each negative from the source mentioned in the
I" transition of the Schmitt trigger output Parts List.
as an aid in setting the scanner out- If you build the Decoder on the cir-
put-level control. Transistor Q2 con- cuit board, use the parts-placement
verts the rail-to-rail swing from IC2-d diagram shown in Fig,4 as a guide. Be
to !ogic leve!s for input to micro- careful about the sequence in which
controller ICt a PIC16C54. you install the parts. Note that some of
The PiC contains on-chip PROM the discrete components In Fig. 4 are
that must be programmed with the shown made up of dashed lines.
smali program whose source code Those mount on the solder side of the
and compiled hex file can be down- board directly under ICs. Solder those
loaded from the Cylex Internet site parts in place and clip their leads be-
r1-3/8INCHES~
mentioned earlier, or the Gernsback fore you installlCs. Do not use sockets
FTP.Pre-programmed chips are also under the ICs if you plan to enclose
Fig. 2. This is the solder side of the available from a source mentioned in the circuit in the plastic shell; there is
Decolkr circuit board.
the Parts List. This program is ciock- simply not enough room.
rate sensitive and will not work unless It is also important to solder all
a 4-MHz crystal is used. TO-92 parts (Ql, Q2, Q3, and IC3) with
their plastic cases aUthe way down to
Construction. Layout of the circuit is the board, again because of the
~
D non-critical. For that reason, any rea- shortage of room. Jacks J1 and J2
j sonable breadboard assembly tech- and S01 go against the edge of the
5 nique can be used to build the board and some of their pins solder to
S
l.
, Decoder. The only precautions you'd each side. Besurethat S01 isperfectly
. have to follow are: (1) Be sure that straight against the board edge or
~
i) crysta! xrAL1 and its shunt capacitors the connector shell will not fit. The LED
C1 and C2 are close to micro- should protrude through a hole in the
controller IC1 with short lead lengths. connector shell drilled or punched to
and (2) Keep C8 close to IC3, and C3 accommodate it.Also, make sure that
Fig. 3. Here's the component side of the
close to iCi. However, when it comes C9 is small enough to fit in the space
2 board. to size, building the circuit on a bread- allowed on the board.
outputs. If you are using a discrimi-
nator output, then the foilowingpara-
graph referencing voiume-control
settingsdoes not apply; youshould be
able to just plug and go, Ifthe LED
does not come on during transmis-
sions,then installthe pin on H2.
Set the volume control to its mini-
mum position. Connect a small
speaker or earphone to J2. Be sure
that the COMport isset correctlyand
that you check the "Enable" check-
boxnear the top of the Accupage Ra-
dio Monitor screen. Gradually in-
crease the voiume setting until the
LEDbegins to glow continuousiydur-
ing transmissions;stop at thispoint.Do
not change the volume between
transmissions;you willjust be turning
the control with no reference. During
a paging transmission,the apparent
intensityof the LEDshould appear to
waver insyncwiththe sound you hear.
but it should not go out except be-
tween transmissions.(Ifyou have an
oscilloscope, connect one channel
Fig. 4. Use this parts-placement diagram as a guide when assembling the Decoder on
a PC board. Note that the parts drawn with dashed lines are mounted on the to pin 1of IC2and the other to pin 9 of
component side of the board. iCi to see how the circuit Isinterpret-
ing the analog waveform.)
Keeping all those assembly tips in IC3. are flush against the board. Test It Isworth pausing here for a mo-
mind, this is the recommended se- the circuit before installing the plastic ment to emphasize the importance'
quence to optimize putting together shell; the shell isdifficultto take apart. of clean reception on the scanner.
the circuitboard: Solder the two 3.5- Moveor re-orientthe antenna as nec-
mm phono jacksto the board, center- Checkout and Adjustment. To essary!Thesound you hear should be
ing them against the edge. The power up and testthe circuit,Itisnec- as free as possible from hissor crack-
ground lug on each willneed to be . essary to have either the AccuPage ling noises.The sensitivityand selec-
bent about 45 degrees in order to Radio Monitor program for the PC tivityof a wideband receiver Isoften
touch the pads on the board. Next (mentioned earlier)or a test program not as good as that of a single-fre-
mount the DB-25connectorto the that sets the COM port as follows: quency pager receiver, and getting
board using only pins 1 and 13.Tem- RTS = 0, om = 0 for at least 0.1 sec, fol- good reception issubsequently more
porarilyplace the board intoone side lowed by RTS= 1, DTR= 0 indefinitely. difficult.
of the plastic shell.Ifthingsdo not line Thisresets IC1,then configures the Watch the "Signal"indicators near
up properly, reheat the solder joints lines to provide power. Start with the the top of the AccuPage Radio
and adjust the position of the con- device connected torhe COM port Monitorscreen. Thegreen to red ratio
nector.Thensolderthe remainingpins but nothing connected to J1 or J2. corresponds to the correct to errors
of the DB-25. Measure the voltage (relativeto cir- ratio. The left Indicator is the one to
Using the plastic shell half con- cuit ground) at IC1pin 14and IC2pin watch initially;the right indicator al-
taining the LEDhoie os a guide, install 11;these should be + 5 voltsand -6to ways starts at "100%bad" and repre-
the LEDon the solder side of the -11volts respectively.The LEDshould sentsa cumulativeweighted average
board. Besure to get the polaritycor- not be lit. over the last several seconds of valid
rect. We stress this because the in- Next.tune yourscanner to an active data. We are looking for the ieft in-
stallation of IC2 later will make paging frequency. Use an appropri- dicator to show mostly green. White
desoldering of the LEDdifficult.Install ate cable to connect the output of indicates no valid data at 011.Ifthe
Cl, C2,C3,Xl,R9.R13,R14,and R16on the scannerto J1.lfyouare usingthe indicator remains white, and the LED
the solder side of the board as well. speaker/earphone output of the glows as described, try toggling the "!<
<
Leave about 1 11'111'1 of extra lead scanner, Installa connecting pin to "Inverted Data" checkbox. Every £
length on C1-C3 and bend these header H1;remove itifyouare usinga scanner is different and the output r
a
parts down flat against the board in discriminator output (more on that polarity of yours may be backwards f
the direction away from the crystal. later).Leave the pinon heSJderH2off; from the program's convention. s
cu
Installall remaining parts on the it Isneeded onlyin a small percent- If you just can't seem to get any
component side ofthe board. Besure age of cases with discriminatorout- Indication Oilthe signal indicator,try
that all parts, especially Q1--Q3,and puts and almost never with speaker Increasing the voiume setting by tiny 4:
incrementalamounts,beingsure to Firstof all, get a schematic of the don't have a schematic), lookfor the
try both settings of "InvertedData" at scanner! Withoutthis, you stilimight FMdemodulator, In many scanners,
each position, Once the indicator have success, but Irsgoing to take an this is the popular Motorola MC3361
showssome green, then keep adjust- oscilloscope and a lot of patience, chip, Ifyou find one of these In your
ing the volume for best results(mini- Lookfor the audio amplifiercircuit. scanner, then pin 9 is the unfiltered
mum red),ifyou are getting readings Thiswillusuallyconsistof two or three demodulator output, Depending on
but are unabie to reduce the "bad" stages of amplification,probably with the external circuitry,it ispossible that
(red) percentage to a smallvalue, a second-order lowpass filterand a pin 11 is also a good place to get a
then approach from the othef direc- second-order highpass filter some- signal. Usean oscilloscope ifpossible
tion, Setthe Inverted Data checkbox where In the chain, Tryto obtain a to select the "squarest-looking"signal.
to itsopposite setting (totriggeron the take-off point at the beginning of the In addition to the signal take-off
overshoot as described earlier)and amplifier chain. The signal here will point you must of course also bring
increase the volume to a muchhigher probably be only a few tenths of a out th.e scanner's circuit ground.
setting, Thendecrease the volumein- volt, should look like square waves, Warning: Insome handheld scanners
crementally, searching for an op- and Islikelyto have a lot of 910 kHz we have examined, the "case" side of
timum setting based on the Signal superimposed on it (tV\licethe lowest the external speaker jack is not
indicators. IF), grounded. Lookon the circuitboards
The AccuPage Radio Monitorpro- Asan alternative (particularlyifyou (Continued on page 60)
gram by default logs and displaysall
messages that it decodes. If you
would liketo see onlytext messages,
or to filterthe messages so that only
those for particular pagers are log-
ged, select "File/SearchLisffromthe
menu bar, A typical paging service
might easily transmit 100,000pages
per day, and the message log file
generated by logging all ofthem will
rapidlygrow to a sizeof manymega-
bytes,
Troubleshooting. The followingare
some of the most likelyreasons why
the device might not work properiy:
[1)Connector problems at the scan-
ner output.
(2) Wrong COM port set up In soft-
ware.
(3)"InvertedData" setting isincorrect.
(4)Computer istoo slow(usea 486/33
or faster),
(5)Weak or noisyradio reception,
(6)Wrong settings for pins in H1and
H2.
(7) The received signal is not direct
FSK.
(8) Wrong scanner demodulation
mode (shouldbe narrowFM),
(9)The received signal isnot POCSAG
(there are other paging formats),
(10)Solderingproblems, wiringerrors,
damaged components, etc.

Obtaining Unfiltered Scanner


Audio. Everyscanner isdifferentand
itwould be difficultto providespecific
instructionsfor tapping Into the un-
filtered demodulator output forevery
type of scanner on the market
(though we willgive tips forone later
on), Here are some general sugges- Fig. 5. Once the boardfrom the UnidenSC.150 is removed(see text), use this photo
tions: . as a guide to locating the signal-connectionpoint for demodulator output.

You might also like