Moxa Technologies C168HS user manual Mtcrts

Page 66

Syntax for UNIX SVR4.2

 

#include

<sys/stropts.h>

#include

<sys/sysmacros.h>

#define MOBUFED

0x402

struct strioctl

ioc;

int

count; /* number of bytes queued in the output

buffer */

 

ioc.ic_cmd = MOBUFED; ioc.ic_timout = 0; ioc.ic_len = sizeof(int); ioc.ic_dp = (char *)&count; ioctl(moxa_fd, I_STR, &ioc);

Note: See MIBUFED for influence of STREAMS driver.

3. MTCRTS

This function, only valid when hardware flow control is turned off (see MHWFLOW), is used to drive RTS signal on or off.

Syntax for SCO UNIX/OpenServer

#define MTCRTS

0x403

#define TurnON

1

#define TurnOFF

0

ioctl(moxa_fd, MTCRTS, TurnON); ioctl(moxa_fd, MTCRTS, TurnOFF);

Syntax for UNIX SVR4.2

 

#include

<sys/stropts.h>

#include

<sys/sysmacros.h>

#define MTCRTS

0x403

#define TurnON

1

#define TurnOFF

0

struct strioctl

ioc;

int

setting;

4-8Smartio C168H/HS User’s Manual

Image 66
Contents Smartio C168H/HS User’s Manual May 1999 6th EditionCopyright Notice TrademarksDisclaimer Moxa Internet Services Connection Option Opt8x and Cable Wiring Hardware InstallationSoftware Installation TroubleshootingTable of Contents Serial Programming Tools Connection Option Opt8x and Cable WiringTroubleshooting Technical ReferenceSmartio The Smart Multiport Async Solutions OverviewQuick Installation JP1Moxa Serial Comm Tools Introduction Surge ProtectionOperating System Support Wide ApplicationsFeatures UartCheck List IntroductionOpt8A/Opt8B/Opt8S Opt8C/Opt8D Opt8F/Opt8ZRS-422 Mode Introduction Opt8JInstallation Guide RS-485 ModeAddress Default SettingsSmartio C168 Series INT Vector 0x1C0Quick Hardware Installation How to Do Quick Hardware InstallationHardware Installation with IO-IRQ Utility Configuration changedIO-IRQ Utility and Hardware Configuration Hardware Installation IRQ SpeedHardware Installation Normal Speed Spectrum High Speed Spectrum Software Installation Windows NTInstalling Driver Software Installation 4Smartio C168H/HS User’s Manual Port Number Rx Fifo TriggerTx Fifo Size 6Smartio C168H/HS User’s Manual Configuring Board and Port 8Smartio C168H/HS User’s Manual Removing Driver Windows 95/98Updating Driver Driver10Smartio C168H/HS User’s Manual Software Installation 12Smartio C168H/HS User’s Manual Software Installation 14Smartio C168H/HS User’s Manual Updating Driver 16Smartio C168H/HS User’s Manual DOS Driver Setup Software Installation 20Smartio C168H/HS User’s Manual Software Installation Loading Driver Unix Unloading Driver# /tmp/moxa/mxinstall # cdSCO Unix # moxaadmFor SCO UNIX/OpenServer For Unix SVR4.2For SCO UNIX/OpenServer For Unix SVR4.2 Moxa TTY Device Naming Convention Baud Rate Settings Administration Utility moxaadmSoftware Installation Basic Configuration Non-Modem and Modem Baud RateAdvanced Configuration Baud Rate MappingLabel High/Normal Speed High Speed Low Band High Band Port Monitoring Tx Fifo TriggerRTS/CTS Hardware Flow Control Software Installation Terminal Emulation Driver Removal Setting Moxa Ports to Terminal SCO UNIX/OpenServer36Smartio C168H/HS User’s Manual Installation Windows NT and Windows 95/98PComm Programming Library UtilitiesSerial Programming Tools Diagnostic for Moxa boards only Monitor for Moxa boards under Windows NT Only Serial Programming Tools Terminal Emulator Extended Unix Ioctl Commands Programming the Moxa PortsSyntax for SCO UNIX/OpenServer Syntax for Unix SVR4.2Mtcrts Mtcdtr Mstatus Mhwflow 12Smartio C168H/HS User’s Manual Utilities Terminal Emulator DOS API-232 Library Data Scope RS-485 Programming for Opt8J DiagnoseSolution Function in PComm or API-232 library. ItThere is a dedicated RS-485 Connection Option Opt8x and Cable Wiring RS-232 Cable Wiring for Opt8A/B/C/D/SOpt8A/S DCE, DB25 Female Opt8B/C DTE, DB25 MaleOpt8D DTE, DB9 Male Type 1 To connect Smartio C168 Series to a DTE device RTS CTS DSR DTR GND DCDType 2 To connect Smartio C168 Series to a DCE device Opt8B/C Opt8B/C DTE Device DB25 Male RS-422 Cable Wiring for Opt8J/F/Z Opt8D DTE Device DB9 Male DB25 MaleOpt8J/F/Z Followings are operation modes for RS-422 RS-485 Cable Wiring for Opt8J Opt8JRS-422/485 Impedance Matching 12Smartio C168H/HS User’s Manual General Troubleshooting Hardware causes and solutionsSoftware Causes and Solutions Step Io-irqRemove the jumper on position JP1 COM number of the Smartio C168 Series conflicts with others Windows NT system panic blue screenSoftware Cause and Solution Under UNIXs, the newly rebuilt kernel could not boot 8Smartio C168H/HS User’s Manual Specifications AppendixUart 16C550C SCO Xenix QNXPC I/O Port Address Map IO/ Address DeviceDB62 Connector Pinouts Pin no SignalMoxa Driver Version Moxa hardware settings Operating System oPC Host Return Procedure