Lantronix XPort manual Gpio Interface, Configurable Pins, Control Protocol, Features

Models: XPort

1 57
Download 57 pages 56.21 Kb
Page 45
Image 45

5: GPIO Interface

Configurable Pins

The XPort has three pins (CP1-3) that you can configure for General Purpose I/O (GPIO).

Note: You can also configure the pins for serial port control lines, such as

CTS, RTS, DTR, and DCD, and diagnostic outputs to LED, using

DeviceInstaller.

You can use these GPIO pins to control devices such as relays, servers, lights, monitor switches, sensors, and even processes such as data transfer.

You can set the functions for the three pins independently and in any combination. The initial directions (input/output) and active levels (active low or high) at boot up can also be configured through 77FE, for example, by using DeviceInstaller.

This chapter describes how the directions, active levels, and states can be dynamically controlled and probed through special port 77F0.

Features:

‹TCP and UDP can be used.

‹The protocol supports up to 32 GPIO for future products.

‹Function configuration can be retrieved.

‹Input or output selection can be retrieved and controlled.

‹Active low or high selection can be retrieved and controlled.

‹Active or inactive selection can be retrieved and controlled.

‹77F0 can be disabled.

Every change of state (active/inactive) requires a command over TCP or UDP, and thus is not very fast. If you use this port for data transfer, the throughput is low, usually up to 1Kbps.

Control Protocol

The GPIO control protocol is a simple, proprietary protocol.

XPort™ User Guide

45

Page 45
Image 45
Lantronix XPort manual Gpio Interface, Configurable Pins, Control Protocol, Features

XPort specifications

The Lantronix XPort is a compact and powerful embedded networking module that enables devices to connect to the Internet and communicate over a network. Small in size yet packed with features, the XPort is ideal for applications that require network connectivity without the complexity and cost associated with traditional networking solutions.

One of the standout features of the XPort is its small form factor. Measuring just 1.6 inches by 1.9 inches, it is designed for seamless integration into a variety of devices, making it a popular choice for manufacturers looking to add networking capabilities to their products without occupying much physical space.

The XPort utilizes the robust and widely used TCP/IP protocol stack, allowing it to facilitate reliable data communication over the Internet and other IP networks. This provides developers with a familiar framework for implementing network functionality, while also ensuring compatibility with various networking standards.

Equipped with a built-in web server, the XPort allows for easy configuration and management through a standard web browser. This user-friendly feature enables developers and end users to interact with the device effortlessly, simplifying tasks such as firmware updates and network settings adjustments.

Another key technology employed in the XPort is its serial-to-Ethernet capabilities. This feature converts serial data from devices into network packets, enabling legacy devices that communicate through serial ports to be connected to modern networks. This is particularly beneficial for industries with a significant number of legacy devices still in operation.

The XPort also incorporates security features, including SSL and SSH, which help protect data transmitted over the network. These security measures are essential in today's digital landscape, where data breaches and unauthorized access are growing concerns.

With its low power consumption and versatile applications, the Lantronix XPort is suitable for a variety of IoT applications, including healthcare devices, industrial automation, and smart metering. Its ability to operate in harsh environments enhances its appeal to manufacturers looking to deploy reliable networking solutions.

In summary, the Lantronix XPort offers a blend of compact design, advanced networking capabilities, and essential security features, making it a valuable asset for any project requiring efficient network connectivity. Its compatibility with existing technologies and ease of integration make it an ideal choice for modern IoT applications.