If you're like me you purchased your Optoscan-equipped scanner second hand and didn't get any software or instructions. These instructions are primarily for Linux users. If you're running Windows there is still plenty of helpful information.
1 ) Make sure you have a straight through cable, NOT a null modem cable.
2 ) Open a terminal and and use this to find your port info.
dmesg | grep tty
I get this:
[ 0.110577] printk: console [tty0] enabled
[ 0.370421] 00:04: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[ 0.391961] 0000:00:16.3: ttyS4 at I/O 0x40a0 (irq = 17, base_baud = 115200) is a 16550A
ttyS0 irq 4 is what I want so I use that info.
If you have a USB serial port adapter you should have ttyUSB0 instead of ttyS0.
Use your info for steps 4, 5 and 6.
3 ) Install latest version of Dosbox.
4 ) Change this line in dosbox.conf (located in .dosbox in your home folder) the line is near the bottom of the file, for me it's line 225.
serial1=directserial realport:ttyS0 irq:4
5 ) Change permission on the serial port. Replace $USER with your user name.
sudo usermod -aG dialout $USER
You will probably have to log out or restart for this to take effect.
6 ) Set serial port to 9600 baud.
sudo stty -F /dev/ttyS0 9600
7 ) Optoscan test utilities and manuals can be found here:
Open the test executable by right clicking and selecting "open with a Wine application". If Dosbox is your only Wine app then it will open in Dosbox immediately. If it's not the only one simply select Dosbox and it will start.
8 ) If you purchased Probe, open probe.exe by right clicking and selecting "open with a Wine application". If Dosbox is your only Wine app then Probe will open in Dosbox immediately. If it's not the only one simply select Dosbox and Probe will start. I highly recommend Probe. It takes some learning but there is nothing else that even comes close. Probe can be purchased here:
9 ) The Optoscan manual states 9600 baud is the default. If you are using a newer computer a higher baud rate might get you faster scanning speeds, but it's probably best to make sure the computer is communicating with the Optoscan board first. You can always change to a higher baud rate later. Adjusting the the "CPU speed" of Dosbox will increase scanning speed. To adjust the CPU speed of Dosbox, press ctrl-F11 to decrease or ctrl-F12 to increase. Even at 9600 baud a CPU speed value of 15,000 gets me about 55 channels per second (Dosbox "cycles" are actually cycles per millisecond). You can manually add CPU speed to dosbox.conf if desired. To capture or release the cursor in Dosbox, press ctrl-F10.
keywords: optoelectronics optoscan lite 456 535 os456 os-456 os535 os-535 Linux serial port RS232 RS-232