Serial Programming Tools

Syntax for SCO UNIX/XENIX

#define MIBUFED

0x401

int count; /* number of bytes queued in the buffer */ ioctl(moxa_fd, MIBUFED, &count);

Syntax for UNIX SVR4

#include

<sys/stropts.h>

#include

<sys/sysmacros.h>

#define MIBUFED

0x401

struct strioctl

ioc;

int count; /* number of bytes queued in the buffer */

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

Note: Due to the characteristics of STREAMS driver, the returned count of bytes buffered only reflect the data buffered on MOXA board, not including the data buffered in STREAMS queue. In this case, the count is for reference only. For example, returned count may always be zero, but there still are data buffered in STREAMS queue.

2. MOBUFED

This function let you know the byte count queued in output buffer when this function is issued.

Syntax for SCO UNIX/XENIX

#define MOBUFED

0x402

int count; /* number of bytes queued in the outpu buffer */ ioctl(moxa_fd, MOBUFED, &count);

Syntax for UNIX SVR4

#include

<sys/stropts.h>

#include

<sys/sysmacros.h>

#define MOBUFED

0x402

struct strioctl ioc;

 

int count; /* number of bytes queued in the output buffer */

Intellio C218Turbo /PCI User's Manual 4-7

Page 61
Image 61
Moxa Technologies C218 user manual Mobufed

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.