Commit graph

153 commits

Author SHA1 Message Date
Stephan I. Böttcher
a84fcf98d7 flip bot assy drawing 2026-02-11 10:04:20 +01:00
Stephan I. Böttcher
fce6690ff5 Merge branch 'master' of codeberg.org:SiB64/turbo_weather 2025-12-21 13:30:27 +01:00
Stephan I. Böttcher
afbacbe7c3 gpt change, late commit 2025-12-21 13:30:17 +01:00
Stephan
04bf811e60 add set_clock.py 2025-07-07 21:31:35 +01:00
SiB64
bb98368907 README: relative image links 2024-11-13 07:24:13 +00:00
Stephan I. Böttcher
5a00dbbc05 turbo startup scripts 2024-11-11 22:21:45 +01:00
Stephan I. Böttcher
9c75c40d9b turbo.py: fix ADC_mV global{}, fix clock 2024-11-11 22:20:54 +01:00
Stephan I. Böttcher
aaea5efc6d turbo.awk: clock speed precision 2024-11-11 22:19:18 +01:00
Stephan I. Böttcher
b1897d28c1 turbo.py: misc fixes and improvements
- open/read files _and_ --tty
- more precision for clock fit parameters
- s/data[c]/Data[c]/
- clear old ADC_mV{} results.
  In case of noise, invalid entries may stay around and cause spurious
  warnings
- when reparsing files, prune original lines for checksumming
- when reparsing, silently drop parser output
2024-11-11 20:39:39 +01:00
Stephan I. Böttcher
3f7875d7a7 turbo.gpt: fix ranges 2024-11-11 20:38:57 +01:00
Stephan I. Böttcher
8208747a63 ntc.py: R(), VntcT() 2024-11-11 20:37:56 +01:00
Stephan I. Böttcher
e6d8d5a080 .gitignore src/data/ 2024-11-11 20:36:49 +01:00
Stephan I. Böttcher
bc7e19c14c turbo plotting 2024-10-16 00:23:57 +02:00
Stephan I. Böttcher
54f7c7bcde Merge branch 'master' of codeberg.org:SiB64/turbo_weather 2024-10-14 14:42:35 +02:00
Stephan I. Böttcher
f6f0a3869d turbo.py: fix /VDD awk compat, fix ADC DIFF mode 2024-10-14 14:42:08 +02:00
Stephan I. Böttcher
68fa884b4c turbo.py: wire up baud 2024-10-13 16:06:10 +02:00
Stephan I. Böttcher
4b4773bdd1 turbo.py: baud, python compat, clock reprocessing 2024-10-13 14:01:45 +02:00
Stephan I. Böttcher
b3d97179c0 Merge branch 'master' of codeberg.org:SiB64/turbo_weather 2024-10-13 13:59:33 +02:00
Stephan I. Böttcher
7bd1a95232 linear_regression: reset when x is nonmonotonous with decay 2024-10-13 13:58:09 +02:00
Stephan I. Böttcher
2fd6ba81f5 linear_regression.py: -l, fixes 2024-10-13 13:53:59 +02:00
Stephan I. Böttcher
14fd92c545 turbo.py: checkmark, less noise 2024-10-07 09:42:39 +02:00
Stephan I. Böttcher
1e8ea97f27 turbo.py: resp(), clear checksum 2024-10-06 17:42:12 +02:00
Stephan I. Böttcher
8467e79852 bate.c: clear uart_cks after line_preamble 2024-10-06 17:41:33 +02:00
Stephan I. Böttcher
7270c83dfc cmd.py: fix -R 2024-10-06 17:07:15 +02:00
Stephan I. Böttcher
4453851d1d turbo.py: emit_adc_pretty() 2024-10-06 15:38:42 +02:00
Stephan I. Böttcher
ea5ddb16b9 turbo.py: add config parsers 2024-10-06 10:20:00 +02:00
Stephan I. Böttcher
7c302b74ed cmd.py: fix ADC_MODE 2024-10-06 10:19:13 +02:00
Stephan I. Böttcher
6f80ed5d64 uart_cks: clear after send_cks() 2024-10-05 20:40:42 +02:00
Stephan I. Böttcher
6d49e5b420 uart_tx: s/call/rcall/ 2024-10-05 20:39:52 +02:00
Stephan I. Böttcher
c5ae9b885c cmdsocket: fix cmder.open() 2024-10-05 20:38:31 +02:00
Stephan I. Böttcher
50669bd76d cmd.py: help docu typo 2024-10-05 20:37:42 +02:00
Stephan I. Böttcher
79ebe18db0 cmd.py: ttycmd, … 2024-10-05 17:53:24 +02:00
Stephan I. Böttcher
0f424efdaa new script cmd.py
use cmdcocket to send commands to turbo.py
2024-10-05 12:47:52 +02:00
Stephan I. Böttcher
42fb68de4d cmdsocket: fix option -s 2024-09-23 22:10:47 +02:00
Stephan I. Böttcher
ae1e606c36 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
58bf5dc704 cmdsocket: allow .poll() when closed 2024-09-23 21:45:03 +02:00
Stephan I. Böttcher
75440f90c3 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
4cdcbf59b6 ntc: fix β 2024-09-23 21:17:01 +02:00
Stephan I. Böttcher
fc87dd7ead turbo.py: fix, flush
fix baudrate= parameter
flush out when tty
2024-09-22 22:52:28 +02:00
Stephan I. Böttcher
5953504546 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
3ef27fe078 new module linear_regression.py 2024-09-22 22:41:26 +02:00
Stephan I. Böttcher
358a52ee9b new module ntc.py 2024-09-22 22:39:40 +02:00
Stephan I. Böttcher
c78ee1c5fc message V was ambiguous 2024-09-22 22:38:58 +02:00
Stephan I. Böttcher
c2823eded9 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
71f57d2f06 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
b50205b62b 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
98cc6148f3 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
174a78aef9 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
c7a8dc4724 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
ac1afa56e0 mirror bakside png 2024-07-31 10:00:08 +02:00