Commit Graph

390 Commits

Author SHA1 Message Date
David E. Tiller c8d8977729 Fixed typo. 2022-05-14 13:15:51 -04:00
David E. Tiller b17f6f0360 Fixed CMake issue and missing inttypes.h 2022-04-29 20:11:10 +01:00
David E. Tiller 52d3d84f48 Deleted spurious executable. 2022-04-09 13:52:55 -04:00
David E. Tiller 6c8cf2a99e Added pkttest and bchapply to the CMake system. 2022-04-09 13:52:12 -04:00
David E. Tiller 2048747ad5 Added XOR for t=3 packets, added more verbiage, removed variable-length arrays. 2022-04-09 13:51:45 -04:00
David E. Tiller 67d5900719 Removed unused variable. 2022-04-09 13:50:56 -04:00
David E. Tiller 52298c1253 Made -e flag imply the right (wrong\!) mark and space freqs and baud rate. 2022-04-09 13:16:52 -04:00
David E. Tiller c4ccbdc9e7 Added msg re: BCH code and added protective #ifndefs. 2022-04-09 13:03:51 -04:00
David E. Tiller 1d7a4b9e82 Changed FRONT>REAR to dir=f2r, etc for consistency. 2022-04-08 14:39:59 -04:00
David E. Tiller 89bc82b724 Moved unit_addr closer to the beginning so it's always in the same place for sorting. 2022-04-08 13:35:57 -04:00
David E. Tiller 2ea1a1892f Added support for gen_packets.
**** NOTE THAN THE MARK AND SPACE FREQUENCIES ARE BACKWARDS in gen_tone.c.

Lines 228-229 correctly set f1_change_per_sample to the MARK frequency and
f2_change_per_sample the space frequency.

Line 383, however, sends MARK on 0 and SPACE on 1:

tone_phase[chan] += dat ? f2_change_per_sample[chan] : f1_change_per_sample[chan];

As such, you have to generate packets like this:

	gen_packets -e R -m 1800 -s 1200 -o test.wav eotd.data

EOTD input to the program consists of lines of 8 byte packets in HCB+ATAD
format; i.e. the format that direwolf appends to the decoded packet.

Ex: 81 b0 32 fb 31 23 73 8f

A new option has been added to atest: -e type. That enables EOTD generation and
the 'type' signifies 'R'ear to front or 'F'ront to rear decoding.

Using "atest -B EOTD test.wav" the above packet decodes to:

DECODED[1] 0:00.123 EOTD audio level = 49(30/31)
[0] EOTD>APDW16:{DRREAR>FRONT:ts=2022-04-07T10:02:00.350,chain=ONLY,block=BASIC,devbat=OK,msgid=ONEWAY,unit_addr=18151,brake_status=GO(49 psig),disc_bits=f6,valve=OPERATIONAL,confirm=UPDATE,disc_bit_1=1,motion=STOPPED/NOT_MONITORED,light_batt=OK/NOT_MONITORED,light=ON,hex=81 b0 32 fb 31 23 73 8f
2022-04-07 10:03:49 -04:00
David E. Tiller 971383adfa Deleted unneeded file. 2022-04-06 20:59:56 +01:00
David E. Tiller f20fcd0e61 Debian is _picky_. Fixed a few warnings. 2022-04-06 15:09:05 -04:00
David E. Tiller 16d102e601 Cleanup and changes to fix DTMF message. 2022-04-06 07:57:08 -04:00
David E. Tiller 27c97e3e2e Debian needs stdint.h in more places. 2022-04-05 21:30:11 -04:00
dtiller b17d987368
Merge branch 'wb2osz:master' into feat-EOTD-master 2022-04-05 16:38:14 -04:00
David E. Tiller a12f9e0bb1 Added option block processing. 2022-04-05 15:47:34 -04:00
David E. Tiller 09d2d5f6c5 Added ARM logic. 2022-04-05 14:30:16 -04:00
David E. Tiller 72708ecb40 Added mS to time. 2022-04-05 14:10:13 -04:00
David E. Tiller 9871ba87d6 Added f2r decoder. 2022-04-05 12:32:26 -04:00
David E. Tiller 7646fc5748 Shortened timestamp. 2022-04-04 19:20:01 -04:00
David E. Tiller fa49b6a40b Starting to look like a real project. 2022-04-04 18:53:27 -04:00
David E. Tiller 07209b5f22 First fully-working BCH code. 2022-04-04 13:52:07 -04:00
David E. Tiller 1fb18ed542 changes for 64 bit uint. Not sure I like them. 2022-04-02 17:59:28 -04:00
David E. Tiller 2cf23db340 Default buffer was _way_ too small. 2022-04-02 17:55:59 -04:00
David E. Tiller 7d58e40bdb New branch for 64 bit processing. Probably not needed. 2022-03-30 11:40:06 -04:00
David E. Tiller 98b8949f3b Slight fixes before switching to uint64_t and MSB processing. 2022-03-30 10:43:02 -04:00
David E. Tiller 742dfb486b Last checkin before trying dev branch. 2022-03-29 09:12:41 -04:00
wb2osz 7d3c1d100e
Create codeql-analysis.yml 2022-03-23 18:38:53 -04:00
David E. Tiller 5be9e44c5b Closer. Lots of ACCA data to chew on. 2022-03-22 16:26:15 -04:00
David E. Tiller a707fc8225 Cleaned up output. 2022-03-22 08:43:41 -04:00
David E. Tiller 53d5b2b9f8 checked return status and found that we _can_ use 'forward' packets (data + bch), not only (bch + data). 2022-03-21 20:35:47 -04:00
David E. Tiller 475f951457 Put original program back for reference. Added fixed codes. 2022-03-21 19:38:02 -04:00
David E. Tiller be0f9c4d2f debug and comment changes. 2022-03-21 14:52:01 -04:00
David E. Tiller d898d1b4c4 Added derived code to calc/apply BCH codes. 2022-03-21 14:43:35 -04:00
David E. Tiller 26ac27bf57 Added beginnings of BCH processing. 2022-03-20 17:10:15 -04:00
David E. Tiller 3b17d45f5a #ifdef'ed a lot of stuff. 2022-03-20 17:08:57 -04:00
David E. Tiller 507f04ea59 Added date tag for debugging. 2022-03-20 13:19:47 -04:00
David E. Tiller 7bde86f6fc #ifdef'ed debugging. 2022-03-18 20:43:45 -04:00
David E. Tiller c491655edb More framework. 2022-03-18 20:33:59 -04:00
David E. Tiller 709f229d83 Initial checkin for EOTD support. 2022-03-18 14:30:32 -04:00
wb2osz fe6cba2b0d
Merge pull request #309 from df7cb/telemetry-python3
scripts/telemetry-toolkit/telem-volts.py: Port to python3
2021-01-03 17:47:36 -05:00
Christoph Berg a30f90956b scripts/telemetry-toolkit/telem-volts.py: Port to python3 2021-01-03 22:45:36 +01:00
wb2osz 8ac14f86f5 Mention cmake scripts contributor. 2020-11-07 18:12:46 -05:00
wb2osz 413855e791 Merge branch 'dev' to master for release 1.6. 2020-10-27 20:45:30 -04:00
wb2osz bfc708d014 Final User Guide for release 1.6. 2020-10-27 20:25:09 -04:00
wb2osz 37f148ef25 Misc. RPi documentation updates for release 1.6. 2020-10-27 20:15:28 -04:00
wb2osz 7cd027fcda Issue 295 - Yet another incompatible change for the libgps API. 2020-10-27 18:04:07 -04:00
wb2osz 512e8f88a9 Avoid compiler error. 2020-10-26 20:41:49 -04:00
wb2osz fb888577fb Cleanup sample direwolf.conf file. 2020-10-26 20:23:40 -04:00