Moxa Technologies C218 user manual Mtcrts

Page 62

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/XENIX

#define MTCRTS

0x403

#define TurnON

1

#define TurnOFF

0

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

Syntax for UNIX SVR4

#include

<sys/stropts.h>

#include

<sys/sysmacros.h>

#define MTCRTS

0x403

#define TurnON

1

#define TurnOFF

0

struct strioctl

ioc;

int

setting;

setting = TurnON /* or TurnOFF */; ioc.ic_cmd = MTCRTS; ioc.ic_timout = 0;

ioc.ic_len = sizeof(int); ioc.ic_dp = (char *)&setting; ioctl(moxa_fd, I_STR, &ioc);

4. MTCDTR

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

4-8Intellio C218Turbo /PCI User's Manual

Image 62
Contents Intellio C218Turbo/PCI User’s Manual March 3rd EditionDisclaimer Copyright NoticeTrademarks Moxa Internet Services About This Manual Table of Contents Troubleshooting Technical ReferenceOverview Intellio The Intelligent Multiport Serial I/O SolutionsPCI Solution Low Host Processor OverheadSurge/Isolation Protection Powerful Serial Comm Developing ToolsAsic Design, Compact Size Major Operating System SupportIntroduction FeaturesCheck List Opt8F/Opt8Z Opt8A/Opt8B/Opt8SOpt8C/Opt8D Opt8JInstallation Guide Page Hardware Installation Installing the Intellio C218Turbo/PCI Control BoardInstalling Connection Option Opt8x Opt8J/Opt8F/Opt8Z Operating Opt8J Hardware Installation RS-422 Mode RS-485 ModePage Software Installation Windows NTInstalling Driver Software Installation Page Uart Fifo Page Configuring Board and Port Page Adding/Removing Board Updating DriverWindows 95/98 Removing DriverInstalling Driver Yes Software Installation First Time Driver Installation Stage WindowsPage Click Next Port Configuration Stage Software Installation Board and Port Ready Stage Without restarting the Windows 98 systemPage Configuring Board and Port Page Software Installation Uart Fifo Updating driver Unix For SCO Unix or SCO OpenServer or Xenix Driver will start successfully later Moxa TTY Device Naming Convention Administration Utility mxadm Basic ConfigurationNon-Modem and Modem Baud Rate Baud Rate Mapping Advanced ConfigurationOn Board Line Discipline Feature Response RTS/CTS Hardware Flow ControlSoftware Installation Performance Tuning Board ResetDriver Removal Setting Moxa Ports to Terminal Checking Board Initialization StatusPage 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 PortsMobufed Mtcrts Mlowater Mstatus Mhwflow Port Monitoring Serial Programming Tools Terminal Emulator Page Solution RS-485 Programming for Opt8JSolution Connection Option Opt8x and Cable Wiring RS-232 Cable Wiring for Opt8A/B/C/D/SOpt8A/S DCE, DB25 Female Connection Option Opt8x and Cable Wiring DTE DeviceOpt8D DTE Device Opt8B/C Opt8A/S DTE Device GND RTS CTS DTR DSR DCD RS-422 Cable Wiring for Opt8J/F/Z Followings are operation modes for RS-422 RS-485 Cable Wiring for Opt8J RS-485 Pinouts for Opt8JRS-422/485 Impedance Matching Page Troubleshooting General TroubleshootingSoftware Causes and Solutions Windows NT system panic blue screen Moxa port responds too slowly or abnormal key operation Newly rebuilt kernel could not boot Page Specifications AppendixDual-Ported RAM Unix SVR4.2 XenixDB62 Connector Pinouts Uart 16C550CProblem Report Form Intellio C218Turbo/PCIReturn Procedure