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

Page 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

Image 45
Contents XPort User Guide Copyright and Trademark Date Rev Comments Disclaimer and RevisionsContents Mail Settings Gpio Interface Using This Guide Purpose and AudienceChapter Summary XPort Integration Guide Additional DocumentationIntroduction CapabilitiesApplications Addresses and Port Numbers Protocol SupportHardware Address IP AddressAssigning an IP Address Installing DeviceInstaller Using DeviceInstaller to Assign an IP AddressGetting Started Required InformationSelect Assign a specific IP address and click Next Assigning an IP AddressLantronix Web-Manager Using Web-Manager to Configure the UnitUnit Configuration Settings Server Properties Edit the following fields as necessary Port PropertiesConnect Mode Settings Flush Mode Input BufferDedicated Connection Packing Algorithm Additional SettingsUpdate Settings Factory SettingsUsing Setup Mode for Configuration Accessing Setup ModeUsing a Telnet Connection Setup Menu Options Using the Serial PortSetup Mode Configuration Parameters Change Telnet Configuration Password Server Configuration Network ConfigurationSet Gateway IP Address Netmask Number of Bits for Host PartChannel 1 Configuration Serial Port Parameters Dhcp NameBaudrate Mode XPort-485 only Interface ModeMode Option Common I/F Mode Setting Binary HexPort Number FlowFlow Control Option Hex Port Numbers Reserved forConnect Mode Connect Mode OptionIncoming Connection Response Hostlist Autostart Automatic ConnectionModem Mode Datagram TypeWithout Echo 11. Modem Mode Messages Message MeaningFull Verbose 12. Modem Mode Commands Modem Mode Function CommandRemote IP Address Remote PortDisconnect Mode Option Flush Mode Buffer Flushing13. Disconnect Mode Options 14. Flush Mode OptionsOption Pack ControlChannel Port Password DisConnTime Inactivity TimeoutSend Characters Telnet Terminal TypeMail Setup Mail SettingsTrigger Setup Expert SettingsHigh CPU Performance mode ARP Cache timeout in secondsMonitor Mode at Bootup RS-485 TX Enable Active LevelDisable Snmp Security SettingsDisable Telnet Setup Snmp Community NameDisable Port 77FE Hex Disable Tftp Firmware UpgradeDisable Web Server Disable Echo PortsEncryption Tutorial Command syntax telnetEnable Enhanced Password Factory DefaultsDisable Port 77F0 Hex Channel 1 Configuration DefaultsExpert Settings Defaults Exit Configuration ModeSecurity Settings Defaults Mail SettingsFeatures Configurable PinsGpio Interface Control ProtocolCommands Byte 0 Command TypesGuidelines Command 11h, Get Directions Command 10h, Get FunctionsCommand 12h, Get Active Levels Command 13h, Get Current StatesCommand 1Ah, Set Active Levels Command 1Bh, Set StatesExamples Command details Updating Firmware Using TftpObtaining Firmware Reloading Firmware ROM FileUser Guide Entering Monitor Mode via the Network Port Entering Monitor Mode via the Serial PortMonitor Mode Commands Monitoring the NetworkResponse Meaning Command Command Name FunctionTroubleshooting Problems and Error MessagesProblem/Message Reason Solution Caps Lock is not on Address and Network Class Please try againServer, the No Connection With Email eutechsupp@lantronix.com Technical Support

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.