Configuring a terminal to use enter Stocktake counts via PDE
- Check to see if terminal has a spare serial port
- If not, you will need to:
- Ensure your PDE cable has a USB connector OR you have a USB-Serial connector
- If using Windows, need to ensure that COM port number assigned to device is less than 10
- If using Linux, need to create symlink called /dev/ttySXX that points to the actual device file (usually /dev/ttyUSB0)
- If not, you will need to:
- Connect the PDE to the PC
Run netserial with the following arguments
netserial 4001 <SERIAL_PORT> 19200,n,8,1
- Connect to port 4001 on the local computer
telnet localhost 4001
Make sure that netserial does not crash or give errors. Some reasons for netserial crashing are:
- If Linux, the serial port you specified is not of the form /dev/ttySXX
- If Windows, the serial port number you specified was 10 or higher
There is another instance of netserial running and it is using the same serial port
- The serial port is being used by another program
Setup netserial to be run at startup
- Linux:
- Add the following to /etc/inittab
pde:345:respawn:/u/cc/std/utbinw/netserial 4001 <SERIAL_PORT> 19200,n,8,1
- Add the following to /etc/inittab
- Windows:
- Create shortcut icon on desktop that runs
C:\cc\std\utbinw\netserial-quiet.exe 4001 <SERIAL_PORT> 19200,n,8,1
- Copy shortcut icon to C:\Documents and Settings\All Users\Start Menu\Programs\Startup
- Create shortcut icon on desktop that runs
- Linux:
- Create a printer record in Control where the system printer is
tcp:<TERMINAL_IP>:4001
- Configure the appropriate terminal record to use the newly created printer record as the "PDE Port"
