Moxa Technologies C218 user manual Mhwflow

Page 65

Serial Programming Tools

7. MHWFLOW

This function is used to enable/disable hardware flow control. The first open() function of a port will set the hardware flow control bits on or off depending on the [RTS/CTS Hardware Flow Control] configuration in mxadm. However, users might want to control the DTR or RTS signal on their will, thus the RTS flow control bit should be turned off (HWFLowControlOff) in order to take over the control of DTR or RTS signal via function MTCRTS or MTCDTR. MTCRTS and MTCDTR can be effective only after the RTS flow control bit of MHWFLOW is turned off.

Syntax for SCO UNIX/XENIX

#define MHWFLOW

x40e

#define HWFlowControlOff

0x00

#define CTSFlowControlBitOn

0x01

#define RTSFlowControlBitOn

0x02

#define HWFlowControlOn

0x03

ioctl(moxa_fd, MHWFLOW, CTSFlowControlBitOn); ioctl(moxa_fd, MHWFLOW, RTSFlowControlBitOn); ioctl(moxa_fd,MHWFLOW, CTSFlowControlBitOn RTSFlowControlBitOn);

Syntax for UNIX SVR4

#include

<sys/stropts.h>

#include

<sys/sysmacros.h>

#define MHWFLOW

0x40e

#define HWFlowControlOff

0x00

#define CTSFlowControlBitOn

0x01

#define RTSFlowControlBitOn

0x02

#define HWFlowControlOn

0x03

struct strioctl ioc;

 

int

setting;

setting = CTSFlowControlbitOn;

 

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

Intellio C218Turbo /PCI User's Manual 4-11

Image 65
Contents March 3rd Edition Intellio C218Turbo/PCI User’s ManualDisclaimer Copyright NoticeTrademarks Moxa Internet Services About This Manual Table of Contents Technical Reference TroubleshootingPCI Solution Intellio The Intelligent Multiport Serial I/O SolutionsOverview Low Host Processor OverheadAsic Design, Compact Size Powerful Serial Comm Developing ToolsSurge/Isolation Protection Major Operating System SupportIntroduction FeaturesCheck List Opt8C/Opt8D Opt8A/Opt8B/Opt8SOpt8F/Opt8Z Opt8JInstallation Guide Page Installing the Intellio C218Turbo/PCI Control Board Hardware InstallationInstalling Connection Option Opt8x Opt8J/Opt8F/Opt8Z Operating Opt8J RS-485 Mode Hardware Installation RS-422 ModePage Windows NT Software InstallationInstalling Driver Software Installation Page Uart Fifo Page Configuring Board and Port Page Updating Driver Adding/Removing BoardRemoving Driver Windows 95/98Installing Driver Yes Windows Software Installation First Time Driver Installation StagePage Click Next Port Configuration Stage Without restarting the Windows 98 system Software Installation Board and Port Ready StagePage 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 Basic Configuration Administration Utility mxadmNon-Modem and Modem Baud Rate Baud Rate Mapping Advanced ConfigurationOn Board Line Discipline Feature RTS/CTS Hardware Flow Control ResponseBoard Reset Software Installation Performance TuningDriver Removal Checking Board Initialization Status Setting Moxa Ports to TerminalPage Windows NT and Windows 95/98 InstallationUtilities PComm Programming LibrarySerial Programming Tools Diagnostic for Moxa boards only Monitor for Moxa boards under Windows NT Only Serial Programming Tools Terminal Emulator Programming the Moxa Ports Extended Unix Ioctl CommandsMobufed Mtcrts Mlowater Mstatus Mhwflow Port Monitoring Serial Programming Tools Terminal Emulator Page RS-485 Programming for Opt8J SolutionSolution RS-232 Cable Wiring for Opt8A/B/C/D/S Connection Option Opt8x and Cable WiringOpt8A/S DCE, DB25 Female DTE Device Connection Option Opt8x and Cable WiringOpt8D 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 Pinouts for Opt8J RS-485 Cable Wiring for Opt8JRS-422/485 Impedance Matching Page General Troubleshooting 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 Appendix SpecificationsUnix SVR4.2 Xenix Dual-Ported RAMUart 16C550C DB62 Connector PinoutsIntellio C218Turbo/PCI Problem Report FormReturn Procedure

C218 specifications

Moxa Technologies, a leader in the field of industrial networking and communication solutions, has made significant strides in enhancing operational technology with its C218 series of industrial Ethernet switches. The Moxa C218 is designed to meet the demanding requirements of industrial automation, ensuring robust performance and reliability in critical applications.

One of the standout features of the C218 series is its advanced networking capabilities. The switch supports Layer 2 switching functionality, which allows for efficient traffic management and improved network performance. With support for up to 8 Ethernet ports, the C218 can seamlessly connect multiple devices, ensuring that communication flows smoothly across the network.

The C218 is designed with resilience in mind, equipped with features such as redundancy support. It includes Rapid Spanning Tree Protocol (RSTP) and Media Redundancy Protocol (MRP), which minimize downtime and ensure continuous network operation even in the event of failures. These features make the C218 an ideal choice for mission-critical applications where reliability is paramount.

Another significant aspect of the C218 is its ability to withstand challenging environmental conditions. With an extended operating temperature range, the switch can handle extreme temperatures typical in industrial settings. Its ruggedized design protects against dust, moisture, and vibrations, ensuring that it performs consistently in harsh environments.

Security is a crucial consideration in modern industrial networks, and the C218 addresses this with built-in security features. The switch supports various authentication mechanisms and allows for VLAN configurations, helping to segment network traffic and protect sensitive data.

Moxa's C218 also provides convenience through its user-friendly management interface. It supports SNMP, allowing for simple network monitoring and management. Additionally, the switch's web-based management and command-line interface (CLI) make it easy for network administrators to configure and monitor the device efficiently.

In summary, the Moxa Technologies C218 switch is a reliable, feature-rich solution tailored for the industrial sector. With its excellent networking capabilities, robust design, environmental resilience, security features, and user-friendly management tools, the C218 is well-equipped to meet the demands of today's industrial automation challenges, helping businesses optimize their operations while ensuring network integrity.