Difference between revisions of "JTAGulator: Find IoT-Device's UART interface"

From Embedded Lab Vienna for IoT & Security
Jump to navigation Jump to search
(Created page with "== Summary == Description on how to find the UART interface of an IoT-Device. In this example the "smart" alarmsystem Technaxx WiFi smart alarm system starter kit TX-84...")
 
Line 1: Line 1:
== Summary ==  
== Summary ==  


Description on how to find the UART interface of an IoT-Device. In this example the "smart" alarmsystem [[Technaxx WiFi smart alarm system starter kit TX-84]] will be used.
Description on how to find the UART interface of an IoT-Device. In this example the "smart" alarm system [[Technaxx WiFi smart alarm system starter kit TX-84]] will be used.


== Requirements ==
== Requirements ==


* Operating system: Ubuntu 18.04 bionic amd64
* '''Read subsection 'Finding UART' ''' of [[JTAGulator: Introduction]] to understand the basic commands available.
* Packages: git emacs
* JTAGualtor
* [[Technaxx WiFi smart alarm system starter kit TX-84]] or some other device


In order to complete these steps, you must have followed [[Some Other Documentation]] before.
== UART explained ==
 
UART stands for Universal Asynchronous Receiver/Transmitter and is a communication specification between to devices and allows for a serialized asynchronous communication.
 
; UART consist out of:
* '''TX''' .. Transmit
* '''RX''' .. Receive
* Vcc .. Supply Voltage (optional)
* Gnd .. Ground 0V (optional)
 
whereas the RX from on device is connected to the TX from the other device
 
http://www.circuitbasics.com/wp-content/uploads/2016/01/Introduction-to-UART-Basic-Connection-Diagram-300x147.png
 
The two devices should have the same ground and same Vcc
 
=== Data transmission ===
 
http://www.circuitbasics.com/wp-content/uploads/2016/01/Introduction-to-UART-Packet-Frame-and-Bits-2.png
 
; A UART packet looks as followed:
: - Start Bit: A connected non sending data-line is kept at the Vcc voltage. When one party wants to send data it indicates it by pulling the data-line to ground.
: - Data Frame: The actual data consisting of 5 to 9 bits is sent over the line.
: - Parity: To detect transmission errors a checksum is appended to the packet. There are different modes: total of all even bits, total of all uneven bits.


== Description ==


=== Step 1 ===
=== Step 1 ===

Revision as of 11:44, 2 December 2019

Summary

Description on how to find the UART interface of an IoT-Device. In this example the "smart" alarm system Technaxx WiFi smart alarm system starter kit TX-84 will be used.

Requirements

UART explained

UART stands for Universal Asynchronous Receiver/Transmitter and is a communication specification between to devices and allows for a serialized asynchronous communication.

UART consist out of
  • TX .. Transmit
  • RX .. Receive
  • Vcc .. Supply Voltage (optional)
  • Gnd .. Ground 0V (optional)

whereas the RX from on device is connected to the TX from the other device

Introduction-to-UART-Basic-Connection-Diagram-300x147.png

The two devices should have the same ground and same Vcc

Data transmission

Introduction-to-UART-Packet-Frame-and-Bits-2.png

A UART packet looks as followed
- Start Bit: A connected non sending data-line is kept at the Vcc voltage. When one party wants to send data it indicates it by pulling the data-line to ground.
- Data Frame: The actual data consisting of 5 to 9 bits is sent over the line.
- Parity: To detect transmission errors a checksum is appended to the packet. There are different modes: total of all even bits, total of all uneven bits.


Step 1

Enter these commands in the shell

echo foo
echo bar

Step 2

Make sure to read

  • War and Peace
  • Lord of the Rings
  • The Baroque Cycle

Used Hardware

Device to be used with this documentation Maybe another device to be used with this documentation

Courses

References