TEI0016 - Jupyter Demo
Copyright © 2020 Trenz Electronic GmbH
15 of 16
http://www.trenz-electronic.de
6 TEI0016 - Communication Interface and Commands
The modules TEI0015, TEI0016 and TEI0023 implement a handler for executing commands. The serial interface
speed
must be set to 115200 bits, commands consists of a single character in UTF-8 encoding.
Each command must be transmitted individually.
All commands are identical for all tree modules, except commands for setting the gain.
The modules
TEI0015
and
TEI0016
recognizes the following gain commands since module revision 02:
"
1
" Sets the pre-amplification of the ADC's input to 1
"
2
" Sets the pre-amplification of the ADC's input to 2
"
4
" Sets the pre-amplification of the ADC's input to 4
"
8
" Sets the pre-amplification of the ADC's input to 8
The following gain commands are recognized by all
TEI0023
modules in every module revision:
"
0
" Deactivates the pre-amplifier
"
1
" Sets the pre-amplification of the ADC's input to 0.25
"
2
" Sets the pre-amplification of the ADC's input to 0.5
"
3
" Sets the pre-amplification of the ADC's input to 1
"
4
" Sets the pre-amplification of the ADC's input to 2
"
5
" Sets the pre-amplification of the ADC's input to 4
"
6
" Sets the pre-amplification of the ADC's input to 8
"
8
" Sets the pre-amplification of the ADC's input to 16
These commands are recognized by
every module
:
"
t
"
The ADC measures 1 mega samples and saves the values into its SD-RAM
"
x
"
Instead of ADC values, the value "12345" is stored 1M times into its SD-RAM, values are transmitted via ".", "+"
and "*"
"
y
"
Instead of ADC value, hexadecimal values, in ascending order, are generated and stored into the SD-RAM,
the values are transmitted in via
"." ,
"+" and "*"
"
z
"
The value "12345" is generated and direct transmitted 256 times
"r"
The ADC measure once and transmits this value
"
.
"
A single value of stored ADC or generated measurement is transmitted
"
+
"
128 values of stored ADC or generated measurements are transmitted
"
*
"
16 kbit values of stored ADC or generated measurements are transmitted