USB GPIO Modules

Sending Commands through Serial Terminal Emulator

48 views November 8, 2022 aryakrishna 1

This document describes how to send commands through serial terminal emulator software to monitor and control all the Numato Lab USB Modules.

PuTTY – Windows/Linux

The simple set of ASCII based human-readable command set supported by the USB modules makes controlling relays//GPIOs very easy.

The following sections give examples of how to use the module with PuTTY.

To use this module with PuTTY, please follow the steps below.

  • Connect the module to the PC. Refer “User Manual” documentation of the module.
  • Install Numato Lab USB CDC driver. Refer “Numato Lab USB CDC Driver Installation” documentation
  • Note down the COM port number of the module from device manager.
  • Open PuTTY, click on serial, input the COM Port number of the module, and click Open.
  • A blank screen will be opened on successful connection.
  • Press ENTER to start communicating with the module using the commands listed in product user manual.

GNU Screen – Linux

GNU Screen is a full-screen Window Manager that works with Serial Terminals as well

  • Open Terminal and verify the device is detected and note down the device name using the “ls /dev”
  • Enter the command “sudo screen /dev/<device name>” . Ex : “sudo screen /dev/ttyACM0”
  • Command prompt appears on ENTER key press.
  • Command listed in the command set can be entered here now.

The Screen – Mac OS X

Mac OSX provides a built-in command program called screen that can be used to communicate with any serial device attached to a Mac device. The screen program is a light-weight Terminal Emulator that is very easy to use.

  • Verify the device is detected and note down the device name
  • Enter the command “/dev/<device name>”as shown in the image below. Ex: Ex : “screen dev/tty.usbmodem141141”
  • Command prompt appears on ENTER key press.
  • Commands listed in the command set can be entered here now.

USB Serial Terminal Lite – Android

Device detected by Android can be controlled by sending commands using USB Serial Terminal Lite.

  • Connect the device using USB Serial Terminal Lite.
  • Enter the commands in the command window and press send button
  • The commands and the results will be printed in the log window.

Was this helpful?

Leave A Comment
*
*