PCR-1000 ActiveX™ Control Interface

Note: This is a prototype control intended for use by programmers who wish to integrate the PCR1000 receiver into another application. This is not a stand-alone receiver. Additional software is required to realize the full potential of this control. Thanks to GM4JJJ for the command strings.

Installation

Download and unzip the archive file Pcr1000AX.zip into a temporary directory. Run the setup program to install the ActiveX Control on your system. The control will register itself with the operating system during the installation. To remove the control, use the uninstall option located in the same folder with the control. This will clean up a number of registry entries and other support files.

Connect the PCR1000 receiver to one of the serial communications ports.

Open the development environment (Visual C++, Visual Basic, etc.). Using the development environment controls, add the Pcr1000x control to the development environment.

Alternatively, one can use the Microsoft ActiveX Control Test Container application to examine and modify the control properties.

Once registered, the Pcr1000x ActiveX control can be used like any other ActiveX control.

Digital Signature

This is an unsigned control. You shouldn't install controls from untrusted sources. Please read the disclaimer at the bottom of the previous page. The purpose of digital signing is to verify the authenticity of controls added to your system, especially the control's origin. A digital signature might be provided with future controls. In the interim, you may contact me directly if you require further authentication.

Ted Handel, WB5REA
316 Bryce Avenue
Los Alamos, NM 87544-3656
USA
thandel@lanl.gov

Control Interface

ActiveX Controls are software objects having three fundamental components. They are properties, events, and methods. Properties set the configuration of the control object. Events are caused by the control object doing something. Methods are specifically what the control object can do. Changing a property can also trigger an event or invoke a method.

Error Control

Attempts to set a control property out of range are ignored. Attempting to set a boolean to a value other than 0 or 1 generates an error. Attempts to write a read-only property generates an error. Sending a bogus command to the PCR-1000 (using the SendRaw() method) can cause an unpredictable result (i.e., the control does not check raw commands for validity).

Default Settings

The control initially configures the PCR1000 to 104.1 MHz., WFM, 230 kHz. in order to receive a local broadcast station. The default properties can be changed at design time to a different configuration.

Unsupported Functions

The following tables (1-3) list the properties, methods, and events associated with the Pcr1000x ActiveX Control. Tables 4-6 list the settings for certain property settings.

Table 1. Properties

Property Description Range
BaudRate Sets the commport baud rate 0-5 (Default=3 [9600 bps])
Enabled Enables the control 0-1 (0=Off)
IFShift Sets the IF centering 0-255 (Default=127 [centered])
Squelch Sets the squelch threshold 0-255 (Default = 103)
ToneSquelch Enables CTCSS tone decoder 0-51 (0=Off)
Volume Sets the audio level 0-255 (Default = 96)
Frequency Sets the tuner frequency (MHz.) 0.01<Frequency<1,300 MHz.
Mode Sets the demodulation type 0-6 (4=Unused)
Filter Sets the IF bandwidth 0-4 (Default = 4)
Port Sets the commport 1-4 (Default = 1)
AFC Enables automatic frequency control 0-1 (0=Off)
AGC Enables automatic gain control 0-1 (0=Off)
Attenuator Adds 10db attenuation to front end 0-1 (0=Off)
NoiseBlanker Enables noise blanker 0-1 (0=Off)
VoiceScan Enables voice/tone scanning 0-1 (0=Off)
DSP Displays presence of DSP hardware 00-01 (read only)
Firmware Displays receiver firmware revision 00-0F (read only)
Country Displays receiver country code 00-0F (read only)
UDPLocal Under development 1024-65535
UDPRemote Under development 1024-65535
     

 

Table 2. Events

Event Description
RxRaw(strCmd) Returns the raw command from the PCR1000

 

Table 3. Methods

Method Action
AboutBox() Displays technical information about the current control
SendRaw(strCmd) Allows user to send a command directly to the PCR1000
Update() Freshens the control's properties

 

Table 4. Property Values

Port Value
1 COM1
2 COM2
3 COM3
4 COM4
BaudRate Value
0 300
1 1200
2 4800
3 9600
4 19200
5 38400
Mode Value
0 CW
1 LSB
2 USB
3 AM
5 NFM
6 WFM
Filter Value
0 3 kHz
1 6 kHz
2 15 kHz
3 50 kHZ
4 230 kHz

 

Table 5. Firmware Codes

DSP Value
00 Not installed
01 Installed
Firmware Value

00-FF

Current

Country Value
00 Japan
01 USA
02 Euro/Aus
03 France
04 Denmark
05 Canada
06 Generic 1
07 Generic 2
08 FCC Japan
09 FCC USA
0A FCC Euro/Aus
0B FCC France
0C FCC Denmark
0D FCC Canada
0E FCC Generic 1
0F FCC Generic 2

 

Table 6. CTCSS Tones

0 - Off 1 - 67.0 2 - 69.3 3 - 71.0 4 - 71.9 5 - 74.4 6 - 77.0 7 - 79.7 8 - 82.5 9 - 85.4
10 - 88.5 11 - 91.5 12 - 94.8 13 - 97.4 14 - 100.0 15 - 103.5 16 - 107.2 17 - 110.9 18 - 114.8 19 - 118.8
20 - 123.0 21 - 127.3 22 - 131.8 23 - 136.5 24 - 141.5 25 - 146.2 26 - 151.4 27 - 156.7 28 - 159.8 29 - 162.2
30 - 165.5 31 - 167.9 32 - 171.3 33 - 173.8 34 - 177.3 35 - 179.9 36 - 183.5 37 - 186.2 38 - 189.9 39 - 192.8
40 - 196.6 41 - 199.5 42 - 203.5 43 - 206.5 44 - 210.7 45 - 218.1 46 - 225.7 47 - 229.1 48 - 233.6 49 - 241.8
50 - 250.3 51 - 254.1                

 

Revision History

6-6-2000: Initial release of prototype control v1.0 (build 97).

[ Back ]


This page is maintained by: Ted Handel
Page Last Updated:
6-22-2000