Configuring a terminal to use enter Stocktake counts via PDE

  1. Check to see if terminal has a spare serial port
    1. If not, you will need to:
      1. Ensure your PDE cable has a USB connector OR you have a USB-Serial connector
      2. If using Windows, need to ensure that COM port number assigned to device is less than 10
      3. If using Linux, need to create symlink called /dev/ttySXX that points to the actual device file (usually /dev/ttyUSB0)
  2. Connect the PDE to the PC
  3. Run netserial with the following arguments

    netserial 4001 <SERIAL_PORT> 19200,n,8,1
  4. Connect to port 4001 on the local computer
    telnet localhost 4001
  5. Make sure that netserial does not crash or give errors. Some reasons for netserial crashing are:

    1. If Linux, the serial port you specified is not of the form /dev/ttySXX
    2. If Windows, the serial port number you specified was 10 or higher
    3. There is another instance of netserial running and it is using the same serial port

    4. The serial port is being used by another program
  6. Setup netserial to be run at startup

    1. Linux:
      1. Add the following to /etc/inittab
        pde:345:respawn:/u/cc/std/utbinw/netserial 4001 <SERIAL_PORT> 19200,n,8,1
    2. Windows:
      1. Create shortcut icon on desktop that runs
        C:\cc\std\utbinw\netserial-quiet.exe 4001 <SERIAL_PORT> 19200,n,8,1
      2. Copy shortcut icon to C:\Documents and Settings\All Users\Start Menu\Programs\Startup
  7. Create a printer record in Control where the system printer is
    tcp:<TERMINAL_IP>:4001
  8. Configure the appropriate terminal record to use the newly created printer record as the "PDE Port"

PDE_Stocktake_Setup (last edited 2013-09-18 06:09:34 by localhost)