Stephan I. Böttcher
7f169734f9
new script cmd.py
...
use cmdcocket to send commands to turbo.py
2024-10-05 12:47:52 +02:00
Stephan I. Böttcher
4897664e37
cmdsocket: fix option -s
2024-09-23 22:10:47 +02:00
Stephan I. Böttcher
1d89239e50
turbo.py: --socket
...
open a cmd socket. Forward messages from the socket to the tty.
2024-09-23 21:47:17 +02:00
Stephan I. Böttcher
5fbcdc61b4
cmdsocket: allow .poll() when closed
2024-09-23 21:45:03 +02:00
Stephan I. Böttcher
aaf83208ba
New module cmdsocket.py
...
Use AF_UNIX sockets to send messages between/to python scripts.
2024-09-23 21:17:22 +02:00
Stephan I. Böttcher
60816aaa16
ntc: fix β
2024-09-23 21:17:01 +02:00
Stephan I. Böttcher
5b77bb3393
turbo.py: fix, flush
...
fix baudrate= parameter
flush out when tty
2024-09-22 22:52:28 +02:00
Stephan I. Böttcher
5d3f364bf6
add script turbo.py
...
The scripts reads from stdin, files or a tty.
Verifies the chhecksums.
Computes natual values.
TODO: more parsers
TODO: add socket to send commands to the tty.
2024-09-22 22:42:27 +02:00
Stephan I. Böttcher
864be8b5ef
new module linear_regression.py
2024-09-22 22:41:26 +02:00
Stephan I. Böttcher
55f7c76355
new module ntc.py
2024-09-22 22:39:40 +02:00
Stephan I. Böttcher
c2ce5dcc32
message V was ambiguous
2024-09-22 22:38:58 +02:00
Stephan I. Böttcher
7108238be6
Add send_cks()
...
The ADC readings were not covered by the checksum. Send a second 'Q'
line for those.
2024-09-21 12:43:39 +02:00
Stephan I. Böttcher
7d2ca76396
Add 'Q' uart_cks
...
When POWER_LINE is set, send a one byte checksum of the characters
from after the preamble up to including the Q.
2024-09-21 12:20:51 +02:00
Stephan I. Böttcher
05d77d0c0b
Fix rfen(0)
...
Do not turn off rfen() when there is a trigger, waiting for mclk_delay.
2024-09-20 22:12:30 +02:00
Stephan I. Böttcher
04f2fc03b1
Add rfen_status()
...
The preamble was repeated mclk_delay times, unnecessarily.
Test the rfen status to enable/send only once.
2024-09-20 21:58:13 +02:00
Stephan I. Böttcher
9a9465a561
POWER_LINE: configurable preamble
...
The hardwired strig was not long enough and not 'high' enough.
User the last eight bytes of the userrow as preable string.
Send 0xff 0xff 0xff 0xff 0xff 0x55 0x0a.
The last byte must be zero, string terminator.
2024-09-19 19:34:44 +02:00
Stephan I. Böttcher
e6bb585fc5
add POWER_LINE
...
The RF receiver's output is AC-coupled to the discriminator. At
`rfen(1)` the threshold is not well centered. This patch send a few
characters before the real messages, when POWER_LINE is set.
The string is not (yet?) configurable. 0xaa 0xaa 0xff 0x0a. The first
two characters are quick single bit switches. The third character is
basically a high level, to add some delay with an idle line. Finally, a
line feed, to separate the noise from the message.
2024-09-18 23:33:44 +02:00
Stephan I. Böttcher
aa7d2b3808
add pressure.py
2024-07-31 09:58:35 +02:00
Stephan I. Böttcher
d4dcbd250a
src doc: minor typos and fixes
2024-04-20 18:43:11 +02:00
Stephan I. Böttcher
fbcbc15b4e
calib.py: remove bogus output char
2024-04-20 18:40:48 +02:00
Stephan I. Böttcher
cd82aacfbd
Merge branch 'master' of codeberg.org:SiB64/turbo_weather
2024-04-20 18:28:46 +02:00
Stephan I. Böttcher
43a90641f9
documentation fixes after seeing it rendered
2024-04-18 18:16:01 +02:00
Stephan I. Böttcher
3104ac4d08
documantation, v08 config
2024-04-18 17:43:56 +02:00
Stephan I. Böttcher
302def656c
remove a copy from blinkenlights
2024-04-18 16:08:51 +02:00
Stephan I. Böttcher
4e598267b1
All TODOs √
2024-04-16 05:33:15 +00:00
Stephan I. Böttcher
29eb6afed0
bate: reduce standby current into pins
...
MCLK and DOUT randomly stick at high or low when the µC enters standby
mode.
MCLK TCA0 WO0 is properly disabled to keep the pin at low level. A high
level pushes current into the pressure sensor.
DOUT input pullup is not enabled. A low level on DOUT (LSB of the
temperature) pulls current from the pullup.
2024-04-15 19:53:21 +02:00
Stephan I. Böttcher
91d20af691
minor style fixes, review with Björn
2024-04-15 19:52:33 +02:00
Stephan I. Böttcher
fa47c885d7
make: explicit spi clk speed cpu_clk/64
2024-04-15 19:51:19 +02:00
Stephan I. Böttcher
4c72530731
make: build bate.eeprom with bate.hex
2024-04-15 15:56:36 +02:00
Stephan I. Böttcher
b934f2a075
bate: simplify config_period
2024-04-15 08:58:10 +02:00
Stephan I. Böttcher
061549ca94
bate: fix send_config
2024-04-15 08:47:57 +02:00
Stephan I. Böttcher
e31bd4ac51
oops …
2024-04-14 23:31:03 +02:00
Stephan I. Böttcher
46e6162a02
cmd: K set clock, D test data test
2024-04-14 23:28:45 +02:00
Stephan I. Böttcher
c728e20ea7
bate v0.7, config
2024-04-14 23:27:58 +02:00
Stephan I. Böttcher
3ecc3501c5
cmd: require a sig for C as well
2024-04-14 22:36:18 +02:00
Stephan I. Böttcher
b2eeccfe65
cmd: E and U for writing EEPROM and USERROW
2024-04-14 22:14:11 +02:00
Stephan I. Böttcher
7d4c9b21be
uart: tx buffer 128 bytes → 256 bytes, stack size 128 bytes
2024-04-14 21:31:19 +02:00
Stephan I. Böttcher
ae3a48fcaa
trigger: fix immediate
2024-04-14 20:32:57 +02:00
Stephan I. Böttcher
cc9ce887d4
cmd T, fix period trigger
2024-04-14 20:23:47 +02:00
Stephan I. Böttcher
3467a5e51c
rtc: add debug counter
2024-04-14 20:21:46 +02:00
Stephan I. Böttcher
a9b687312e
cmd: work now, add some assembler
2024-04-14 19:40:04 +02:00
Stephan I. Böttcher
276bd40a33
rtc: add debug counter
2024-04-14 19:38:27 +02:00
Stephan I. Böttcher
ad2246675f
rtc: add debug counter
2024-04-14 19:35:54 +02:00
Stephan I. Böttcher
5757d31416
cmd: fix parse_hex_nibble(), better output, W command
2024-04-14 04:36:26 +02:00
Stephan I. Böttcher
bcaf9e3de6
uart: fix in rx_dismiss:
2024-04-14 04:35:10 +02:00
Stephan I. Böttcher
38db87a030
uart: mostly assembler, now
...
Most uart code is now in `uart_tx.S`.
Code close to the hardware stays in `uart.c` to use `io.h`.
The .S does not use the CPP, yet.
2024-04-14 03:36:55 +02:00
Stephan I. Böttcher
4ea0d71d5d
uart: save a few instructions
2024-04-13 19:02:54 +02:00
Stephan I. Böttcher
61d78b9bdc
uart: add missing RETI
2024-04-13 17:46:44 +02:00
Stephan I. Böttcher
0ba62420ab
cmd: only accept lowercase hex digits
...
Not to confuse hex parameters with uppercase commands.
2024-04-13 17:45:08 +02:00
Stephan I. Böttcher
0801c0513d
make: drop bate_CFLAGS
2024-04-13 17:44:04 +02:00