]> jspc29.x-matter.uni-frankfurt.de Git - avr.git/commitdiff
add PT100 config files master
authorJan Michel <michel@physik.uni-frankfurt.de>
Mon, 25 Aug 2025 08:32:44 +0000 (10:32 +0200)
committerJan Michel <michel@physik.uni-frankfurt.de>
Mon, 25 Aug 2025 08:32:44 +0000 (10:32 +0200)
pt100/README
pt100/README.md [new symlink]
pt100/program.sh [new file with mode: 0644]
pt100/read.sh [new file with mode: 0644]

index 1f04fd18775fa0f0381147feda561e80ebe42bc4..cf5577fe9195aa67e45df0718dcabb6e56a468ab 100644 (file)
@@ -14,11 +14,13 @@ Serial Data
 -----------
 All measured data is output on a serial interface, running at 38400 8N1. The FT232 adapter board can be used to connect to a USB on any PC. The data format is as follows:
 
-All datagrams are 11 ASCII characters long, the last one being a newline (\n), e.g. "AB12345678\n". Data generated by a uC starts with an 'A' ("answer"), data sent by the controlling PC starts with a 'W' ("write"). The second letter marks the type of the message (T: temperature, I: board information, E: Eeprom configuration data, R: Reload configuration).
+All datagrams are 11 ASCII characters long, the last one being a newline (\n), e.g. "AB12345678\n". Data generated by a uC starts with an 'A' ("answer"), data sent by the controlling PC starts with a 'W' ("write"). The second letter marks the type of the message (T: temperature, I: board information, E: write eeprom configuration data, G: read configuration data, R: Reload configuration).
 The first digit is the board address: The first board connected directly to the PC is board 0. If more boards are chained, each subsequent one increases its address by 1. The second digit is the channel number and only used in the temperature words: Channel 0 to 7 are the 8 PT100 inputs as labelled on the board. Channel 8 delivers the temperature of the ADC on the board. The remaining 6 digits are word dependent, all data is given in hex digits:
+
 * AT: If the third digit is '1', no sensor is connected. The last 5 digits contain the temperature in mK
 * AI: An arbitrary version string of the board
 * WE: Digits 3 and 4 are the register address, Digits 5 to 8 are its contents (16 bit)
+* WG: Digits 3 and 4 are the register address, Digits 5 to 8 are 0
 * WR: No data, fill with '0'
 
 
@@ -97,6 +99,13 @@ It supplies VCC with 5V and VCC33 with 3.3V.
 w/o display, daisy-chaining
 The board is powered with 5V via P2 only. The jumper W1 is set and connects Vcc33 with VCC making it actually 5V(?).
 
+Changes to Schematics
+---------------------
+
+* C14: DNA
+* R21: close
+
+
 -- 
 Jan Michel
 Philipp Klaus
diff --git a/pt100/README.md b/pt100/README.md
new file mode 120000 (symlink)
index 0000000..100b938
--- /dev/null
@@ -0,0 +1 @@
+README
\ No newline at end of file
diff --git a/pt100/program.sh b/pt100/program.sh
new file mode 100644 (file)
index 0000000..f6bbf96
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+echo -e "WE00000000\n" >/dev/ttyUSB0
+echo -e "WE00010000\n" >/dev/ttyUSB0
+echo -e "WE00020000\n" >/dev/ttyUSB0
+echo -e "WE00030000\n" >/dev/ttyUSB0
+echo -e "WE00040000\n" >/dev/ttyUSB0
+echo -e "WE00050000\n" >/dev/ttyUSB0
+echo -e "WE00060000\n" >/dev/ttyUSB0
+echo -e "WE00070000\n" >/dev/ttyUSB0
+echo -e "WE0009d260\n" >/dev/ttyUSB0
+echo -e "WE000a0100\n" >/dev/ttyUSB0
+echo -e "WE000b0001\n" >/dev/ttyUSB0
+echo -e "WE000c0000\n" >/dev/ttyUSB0
+echo -e "WE000d0001\n" >/dev/ttyUSB0
diff --git a/pt100/read.sh b/pt100/read.sh
new file mode 100644 (file)
index 0000000..0d71676
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+echo -e "WG00000000\n" >/dev/ttyUSB0
+echo -e "WG00010000\n" >/dev/ttyUSB0
+echo -e "WG00020000\n" >/dev/ttyUSB0
+echo -e "WG00030000\n" >/dev/ttyUSB0
+echo -e "WG00040000\n" >/dev/ttyUSB0
+echo -e "WG00050000\n" >/dev/ttyUSB0
+echo -e "WG00060000\n" >/dev/ttyUSB0
+echo -e "WG00070000\n" >/dev/ttyUSB0
+echo -e "WG00090000\n" >/dev/ttyUSB0
+echo -e "WG000a0000\n" >/dev/ttyUSB0
+echo -e "WG000b0000\n" >/dev/ttyUSB0
+echo -e "WG000c0000\n" >/dev/ttyUSB0
+echo -e "WG000d0000\n" >/dev/ttyUSB0