IDTech Windows SDK Guide  1.2.35.0
API reference for SpectrumPro
Connecting to SpectrumPro

The SpectrumPro connects through either USB or Serial Interface (COM).

Connect with USB:

The SpectrumPro uses USB-HID (Human Interface Device) and does not need any vendor-specific drivers. Simply by plugging into an available USB port makes it available for SDK connectivity. To inform the SDK you are using the USB interface of the SpectrumPro, you would execute the following command during program initialization to establish a connection:

IDT_SpectrumPro.useUSB();

Connect with Serial Interface (COM)

The SpectrumPro can connect via Serial Interface. The default serial port settings are as follows:

  • Speed: 115,200
  • Bits: 8
  • Stop Bit: 1
  • Parity: None

To inform the SDK you are using the Serial Interface of the SpectrumPro, you would execute the following command during program initialization to establish a connection by passing the correct COM port number. In the following example, we are connecting to COM1 non-SRED device:

IDT_SpectrumPro.useSerialPort(1, false);

If you change the default baud rate, then there is an overloaded method to also include the baud rate:

IDT_SpectrumPro.useSerialPort(1, 115200, false);