Lantronix XPort manual Command 10h, Get Functions, Command 11h, Get Directions

Models: XPort

1 57
Download 57 pages 56.21 Kb
Page 47
Image 47

5: GPIO Interface

Command 10h, Get Functions

Send:

No parameters

Response:

1 parameter

Bytes 1-4: Functions

Bit X 1 means general purpose I/O available to the user.

0 means dedicated function (e.g., serial flow control, diagnostics) for configurable pin X.

Command 11h, Get Directions

Send:

No parameters

Response:

1 parameter

Bytes 1-4: Directions

Bit X 1 means GPIO X is an output. 0 means it is an input.

Command 12h, Get Active Levels

Send:

No parameters

Response:

1 parameter

Bytes 1-4: Active levels

Bit X 1 means GPIO X is active low (0V when active, 3.3V when inactive). 0 means it is active high (3.3V when active, 0V when inactive).

Command 13h, Get Current States

Send:

No parameters

Response:

1parameter Bytes 1-4: States

Bit X 1 means GPIO X is active 0 means it is inactive.

Command 19h, Set Directions

Send:

2parameters Bytes 1-4: Mask

Bit X 1 means the direction for GPIO X will be updated with the value in the second parameter.

0 means the direction for that GPIO will not change. Bytes 5-8: New Directions

Bit X 1 means GPIO X will become an output. 0 means it will become an input.

Response:

1 parameter

Bytes 1-4: The updated directions

XPort™ User Guide

47

Page 47
Image 47
Lantronix XPort manual Command 10h, Get Functions, Command 11h, Get Directions, Command 12h, Get Active Levels

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.