Discussion Groups

Tether Zebra QL420 to Teklogix 8525 G2

This question is answered

Is there a stock cable available to tether a QL420 Plus to an 8525 G2?  If so, please provide cable model number.  Also provide any necessary hardware config changes to be made to the 8525.  Thanks!

Verified Answer
  • The below C++ code snippet illustrates how this can be achivied programmatically:

    #include <windows.h>

    #include <winioctl.h>

     

    // Turn power on/off for multi-voltage serial ports.

    //  bufferIn: Power voltage: 0 to turn power-off, or 5V, 12V currently supported

    //  sizeIn: sizeof(DWORD)

     

    #define IOCTL_SERIAL_ENABLE_POWER \

            CTL_CODE(FILE_DEVICE_SERIAL_PORT, 0x801, METHOD_NEITHER, FILE_ANY_ACCESS)

     

    int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow)

    {

     

    [...]

     

        HANDLE hPort = INVALID_HANDLE_VALUE;

     

        hPort = CreateFile(L"COM2:", GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL);

        if (hPort == INVALID_HANDLE_VALUE)

          return GetLastError();

     

        DWORD dwVoltage = 5; // Value can be 0, 5 or 12

     

        if (!DeviceIoControl(hPort, IOCTL_SERIAL_ENABLE_POWER, &dwVoltage, sizeof(dwVoltage), 0, 0, 0, 0))

        {

          // ADD ERROR HANDLING HERE!

        }

     

    [...]

     

        CloseHandle(hPort);

        return ERROR_SUCCESS;

    }

All Replies
  • Hello. I am Scott from the America's Helpdesk.  You should have a cable that came from Zebra and if so then it will be a 8 pin male plug (printer side) to RS232 (DB9 Female plug), 6 feet long cable.  If this is true then you will need a cable to connect to our 8525 and the to cable provided by Zebra. the part is: ADAPTER TETHER TO RS232 WA4020-G1.

    Can you please confirm that you have the acble from Zebra and what the part number is?

    As far as the configuration on the 8525, if you are using Tekterm then goto the CONTROL PANEL>SCANNER SETTINGS>PORTS and ensure that COM2 is enabled and the power is set for 5v.

    Hope this helps....

     

  • The Zebra printer has a 8 pin din connector which may work best through the RS232 port on the 8525. I have not been able to locate a cable for 8pin to tether JB5 or to RS232 in our cable listings. We will send a request to Products to see if one is available.

    Are you currently using both QL420's and 8525 at your site?

  • Hi,

     

    I will need more information from you on your requirements in order to provide you with a correct answer.

     

    The part number that you are looking for is :

    BL11757-001 (with Zebra directly)

     

    With Psion Teklogix, part number was 9004763.I will need to check availability with our sales department.

    Zebra should be configured to accept serial input (using ZPL or CPL).

     

    Printed a Zebra test page:

    Cable Communication

    9600 N,8,1

    handshake: hardware

     

    The 8530 should be configured:

     

    1.Confirm 8530 detects Printer as "Serial Device" when the cable is plugged into the Tether Port

    2.TekTerm Set 03 Ports\Tether Port to "Serial"or Printer

    3.Configure 03 Ports\Settings 1 appropriately to Printer Settings

    4.Baud Rate 9600 N,8,1

    handshake: hardware

     

    The configuration may be different depending on your emulation.

     

    Kind regards,

     

    Lana

     

     

     

  • Hi everybody

    Scott , I am trying to use the  COM2 serial port with pin9 supplying 9V, but when I configure it from Scanner Options, (Enable: on; Power 5V), it is not posible to use COM2 for anything but reading barcodes. How Can I enable the 5V power in pin9 without exclusivity of the port for scaner purposes?

    Thanks

  • The below C++ code snippet illustrates how this can be achivied programmatically:

    #include <windows.h>

    #include <winioctl.h>

     

    // Turn power on/off for multi-voltage serial ports.

    //  bufferIn: Power voltage: 0 to turn power-off, or 5V, 12V currently supported

    //  sizeIn: sizeof(DWORD)

     

    #define IOCTL_SERIAL_ENABLE_POWER \

            CTL_CODE(FILE_DEVICE_SERIAL_PORT, 0x801, METHOD_NEITHER, FILE_ANY_ACCESS)

     

    int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow)

    {

     

    [...]

     

        HANDLE hPort = INVALID_HANDLE_VALUE;

     

        hPort = CreateFile(L"COM2:", GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL);

        if (hPort == INVALID_HANDLE_VALUE)

          return GetLastError();

     

        DWORD dwVoltage = 5; // Value can be 0, 5 or 12

     

        if (!DeviceIoControl(hPort, IOCTL_SERIAL_ENABLE_POWER, &dwVoltage, sizeof(dwVoltage), 0, 0, 0, 0))

        {

          // ADD ERROR HANDLING HERE!

        }

     

    [...]

     

        CloseHandle(hPort);

        return ERROR_SUCCESS;

    }

  • Does it work with window CE?

  • Absolutely

  • ... sorry for my ignorance, but I am not familiarized with C++. What I tried is to put your code in a new project (console application) and the first error I got is "windows.h not found". Could you be more specific please? (IDE you use for programming, where can I get windows.h and winioctl.h files...)

    and if it is possible to do the same with VB6 it would be great

    thank you in advance

  • by the way, I am using Visual C++ 2005 Express

  • Can you please elaborate on what you are hoping to achieve?

  • ok, you are right. This is what I have so far:

    -GPS receiver with serial output

    -VMT 8525 Teklogix (Windows CE) with serial port COM2 RS232 DB9 with Pin 9 suplying 5V.

    -I want the GPS receiver to send the positioning data to the VMT through port COM2. I need the 5V Power of pin 9 in order to make work the GPS device.

    The problem: From control panel in windows CE I can activate COM2 port and the 5V of pin 9 using the "Scaner Settings", but when I do that, the bar code scanner takes control of COM2, instead of a program installed in the VMT that has to read on port COM2 the GPS data sent by the GPS receiver.

    I can not figure out how to activate 5V on pin 9 of COM2 without activating the BarCode Reader

  • Thanks for the info.

    Do you have access to the application source code that acquires GPS data?

  • No I don't

  • You could steel 5V out of the 8525/30 DB26 connector.  Pin No. 1 has 5V  for a 0,5Amp max load, and disable the 5V parameter in Teklogix scanners.  Needs some soldering and extra dB26 connector though.

    B.3 DB-26 Auxiliary Port Pinout

    Pin

    No. Signal And Description

    1 EXT_5V_SW – Configurable 5V power for External devices (such as USB).

    1/2 Amp max.

    2 EXT_5V_SW – Same as above.

    3 MIC_IN – Microphone input.

    4 MIC_GND – Microphone signal ground.

    5 Speaker + (positive).

    6 Speaker - (negative).

    7 GND - Signal Ground

    8 USB_HOST_PORT_4_PLUS - for connecting external devices such as keyboards,

    mice, printers.

    9 USB_HOST_PORT_4_PLUS - for connecting external devices such as keyboards,

    mice, printers.

    10 GND - Signal Ground.

    11 USB_DEVICE_PLUS – For connections to USB Hosts such as computers.

    12 USB_DEVICE_NEGATIVE – For connections to USB Hosts such as computers.

    13 GND - Signal Ground.

    14 USB_HOST_PORT_3_PLUS – For connecting external devices such as

    keyboards, mice, printers.

    15 USB_HOST_PORT_3_NEGATIVE – For connecting external devices such

    as keyboards, mice, printers.

    16 GND – Signal Ground

    17 CONSOLE_RXD – Console Port (RS-232) Receive Data ** Internal use

    only.

    18 CONSOLE_TXD – Console Port (RS-232) Transmit Data ** Internal use

    only.

    19 GND – Signal Ground