Interfaces and hardware configuration Q&A

You are here:
Estimated reading time: 3 min
I have plugged a KTDG102 Dongle to my computer and the LED is not flashing, what should I do ?

Don’t panic, your KTDG102 Dongle may not be broken. In fact, in order to reduce the KTWM102 module power consumption and to allow to configure it as you wish, you may just simply have disabled the LED once by using one of KTDG102 Dongle configuration commands. Request the KTDG102 Dongle hardware configuration information via serial terminal as shown below.

kinos@local:~$ show hwconfig
USB Interface
Serial       : on
DFU          : on
Ethernet     : off
UART Interface : on
Activity LED   : off
Low-Power Mode : off

If the hardware configuration reports that the Activity LED is off you can just re-activate it with the LED configuration command.

kinos@local:~$ config led on

 

I have plugged a KTDG Dongle to my computer and the USB is not responding at all, what should I do ?

Don’t panic, your dongle may not be broken. To optimize power consumption and pin usage for host controllers when interfacing to the KTWM102 module, the USB port may have been disabled by using the hardware configuration setting command. In order to never lock-out the user from the KTWM102 module, the hardware configuration command is designed to always keep active the peripheral from which the module is being configured. Therefore, at least one of the two interfaces (UART or USB) will be always available.

In this case, please connect the KTDG Dongle through its UART adapter, and request the hardware configuration (consult the Kirale Binary Interface guide to find more information about serial command syntax).

If the hardware configuration Serial command returned the value of it means that the USB port has been disabled and only the Serial port is enabled.

To restore the USB port, send the hardware configuration command with mode 1  through the serial interface. Then unplug the KTDG Dongle and plug it again to the USB and the port should respond as desired.
 

I have connected a KTDG dongle to a serial peripheral through its UART connector but I don’t see any communication, what should I do ?

First check if the provided serial cable has been properly connected to your serial interface. The correct pin-out is the following:

  • VDD (red)
  • TX (green)
  • RX (white)
  • GND (black)

If the pinout matches the correct one, please check cable continuity to ensure that the cable has not been damaged.

In case both cable and pinout are OK, probably the Serial port has been disabled through a configuration the hardware configuration command. In this case, as described for the previous question, request the hardware configuration.

kinos@local:~$ show hwconfig
USB Interface
Serial       : on
DFU          : on
Ethernet     : off
UART Interface : off
Activity LED   : on
Low-Power Mode : off

In case the UART interface is off, use the hardware configuration command via USB to set the mode to 1.

kinos@local:~$ config hwmode 1

 

A KTDG102 Dongle just connected to a network and the LED suddenly stopped blinking, what’s happening ?

If a dongle LED blinks for a while after sending the start-up command and then suddenly stops flashing it means it entered into low-power mode. This happens when the KTDG102 Dongle is configured to be a Sleepy End Device and low-power mode has been activated. In case low-power mode has been activated, even if the hardware configuration says that the Activity LED should be on, the device disables the LED once entering the low-power mode to optimize power consumption. To verify that low-power mode is enabled request the hardware configuration information.

kinos@local:~$ show hwconfig
USB Interface
Serial       : on
DFU          : on
Ethernet     : off
UART Interface : off
Activity LED   : on
Low-Power Mode : on

 

How does a KTDG102 Dongle wake-up from sleep mode ?

In case of having configured the dongle to work as a Thread Sleepy End Device and having activated the low-power mode, once the device joins the network and starts to act as a sleepy node the MCU will start its sleep routine. During this MCU sleep routine the UART peripheral is always active, allowing the host to wake-up the device at any moment by sending KBI commands.

To make the MCU sleep routine even more effective the USB peripheral could be disabled with the hardware configuration command.
Can I use both USB and UART peripherals at the same time ?

Indeed you can. KTDG102 Dongle peripherals are not exclusive. If both interfaces have been enabled (default hardware configuration), they can be used at the same time. A typical use case is to send commands via UART and read debug logs via USB.