Usage Of Cbus Pins; Resetting The Thyone-I Usb Radio Stick Using The Cbus Pin; Switching From Command Mode To Transparent Mode And Vice Versa - We THYONE-I User Manual

Usb radio stick
Hide thumbs Also See for THYONE-I:
Table of Contents

Advertisement

WIRELESS CONNECTIVITY & SENSORS
User manual Thyone-I USB radio stick

2.2.1 Usage of CBUS pins

To switch the CBUS pins static HIGH or LOW and thus to use the provided pins functions of
the Thyone-I radio module, the D2XX driver of FTDI has to be used. This driver is part of the
previous mentioned VCP driver installation in case of Windows OS. In case of Linux a manual
installation is required.
Please follow FTDI's "Installation Guides" for proper D2XX install:
https://www.ftdichip.com/Drivers/D2XX.htm
Examples codes and tutorials for ¨how to use the D2XX driver within your own software tool¨
can be found in the software example section of:
https://www.ftdichip.com/Support/SoftwareExamples/CodeExamples.htm

2.2.1.1 Resetting the Thyone-I USB radio stick using the CBUS pin

The /RESET pin of the Thyone-I can be used to reset the integrated radio module. As the
/RESET pin is connected to the CBUS0 pin of the integrated FTDI chip, the radio module can
be reset by pulling the CBUS0 pin low for at least 100 ms and releasing it to high level again.
By default, the CBUS0 pin of the FT231X is configured as FT_CBUS_GPIO (bit bang), such that
the FTDI D2XX driver function SetBitMode can be used.
/ * prep: create and connect an FTDI device intance * /
/ * set CBUS0 to output level LOW * /
SetBitMode(0x10, FTDI.FT_BIT_MODES.FT_BIT_MODE_CBUS_BITBANG);
/ * hold CBUS0 for at least 100ms on LOW level * /
wait_ms(100);
/ * clear FTDI receive and send buffers * /
Purge(FTDI.FT_PURGE.FT_PURGE_RX | FTDI.FT_PURGE.FT_PURGE_TX);
/ * set CBUS0 to output level HIGH * /
SetBitMode(0x00, FTDI.FT_BIT_MODES.FT_BIT_MODE_RESET);
/ * a delay according to the reset timing parameter will occur (see manual) * /
/ * disconnect and close the FTDI device instance * /
Code 1: Pin reset via CBUS0 using the D2XX driver

2.2.1.2 Switching from command mode to transparent mode and vice versa

The operation mode of the Thyone-I USB radio stick can be defined by applying the right voltage
level at the OP_MODE pin of the Thyone-I during its start-up phase. As this pin is connected
to the CBUS3 pin of the built-in FTDI converter chip, the CBUS3 pin can be controlled by the
host.
Order code 2611036021001
Version 1.3, April 2023
www.we-online.com/wcs
7

Advertisement

Table of Contents
loading

This manual is also suitable for:

2611036021001

Table of Contents