Commit Graph

80 Commits

Author SHA1 Message Date
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
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
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 413855e791 Merge branch 'dev' to master for release 1.6. 2020-10-27 20:45:30 -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 e8f1133226 Increase tocalls limit. 2020-10-25 22:01:09 -04:00
wb2osz 79d80ccb8e Change from development to release version. 2020-10-25 21:38:51 -04:00
wb2osz 3960942488 Fix compile warnings on Mac. 2020-10-25 21:35:19 -04:00
wb2osz b12e56fef4 Add link to more information. 2020-10-24 19:33:58 -04:00
wb2osz c0fc5f052d Increase default for time since message addressee heard. 2020-10-24 11:38:44 -04:00
wb2osz 7d4a49aecb Issue 290 - Add capability to set serial port speed for hamlib. 2020-10-21 22:07:19 -04:00
wb2osz 909b703b7e FX.25 enable value 1 now selects appropriate tag for frame length. 2020-06-22 17:04:03 -04:00
wb2osz 4b0395aeaf Remove speed warning for special cases. 2020-06-20 21:15:44 -04:00
wb2osz d747620257 Add another search location for tocalls.txt. 2020-06-20 21:06:00 -04:00
wb2osz 74cf91cc98 Issue 241 - Catch up with new gpsd incompatbilities. 2020-06-20 20:49:00 -04:00
wb2osz e2b32d1d2a EAS SAME reception. 2020-06-13 21:33:10 -04:00
wb2osz 45136a91eb AIS Reception enhancements. 2020-05-26 21:20:37 -04:00
wb2osz 6be428bea1 More comments. 2020-05-21 22:19:45 -04:00