This software drives the SBS (formerly GreenSpring) OctalUart family of Industry Pack modules to communicate with a number of RS-232, RS-422, and RS-485 devices. Note that this driver is not compatible with newer IP-OctalPlus modules as they use a different chipset.
The driver uses drvIpac for configuration of the carrier board plus access routines for the SCC2698 octalUart used in the IP modules. The driver implements a standard vxWorks terminal driver making use of the vxWorks tyLib system library.
The following is an example of setting up the device driver from a vxWorks startup script:
# Initialize our drvIpac carrier ipacAddCarrier &ipmv162, "A:m=0xe0000000,64 l=3,2" # Number of tyGSOctal modules to support: tyGSOctalDrv 1 # Init module on carrier 0, slot 0, IRQ #80 MOD0 = tyGSOctalModuleInit("GSIP_OCTAL232", 0x80, 0, 0) # Create devices PORT00 = tyGSOctalDevCreate("/tyGS/0/0", MOD0, 0, 512, 512) PORT02 = tyGSOctalDevCreate("/tyGS/0/2", MOD0, 2, 512, 512) PORT04 = tyGSOctalDevCreate("/tyGS/0/4", MOD0, 4, 512, 512) PORT06 = tyGSOctalDevCreate("/tyGS/0/6", MOD0, 6, 512, 512) # Configure the ports # baud, parity(N/E/O), stop, bits, flow(N/H) tyGSOctalConfig PORT00, 9600, 'N', 1, 8, 'N' tyGSOctalConfig PORT02, 9600, 'N', 1, 8, 'N' tyGSOctalConfig PORT04, 9600, 'N', 1, 8, 'N' tyGSOctalConfig PORT06, 9600, 'N', 1, 8, 'N'