minor: Change Digitech-XC0324 to default enabled

This commit is contained in:
Christian W. Zuckschwerdt 2022-12-23 11:54:12 +01:00
parent 616b5d5eba
commit 3ff11b4fe3
4 changed files with 14 additions and 13 deletions

View file

@ -40,7 +40,7 @@ See [CONTRIBUTING.md](./docs/CONTRIBUTING.md).
= General options = = General options =
[-V] Output the version string and exit [-V] Output the version string and exit
[-v] Increase verbosity (can be used multiple times). [-v] Increase verbosity (can be used multiple times).
-v : verbose, -vv : verbose decoders, -vvv : debug decoders, -vvvv : trace decoding). -v : verbose notice, -vv : verbose info, -vvv : debug, -vvvv : trace.
[-c <path>] Read config options from a file [-c <path>] Read config options from a file
= Tuner options = = Tuner options =
[-d <RTL-SDR USB device index> | :<RTL-SDR USB device serial> | <SoapySDR device query> | rtl_tcp | help] [-d <RTL-SDR USB device index> | :<RTL-SDR USB device serial> | <SoapySDR device query> | rtl_tcp | help]
@ -202,7 +202,7 @@ See [CONTRIBUTING.md](./docs/CONTRIBUTING.md).
[117]* ESA1000 / ESA2000 Energy Monitor [117]* ESA1000 / ESA2000 Energy Monitor
[118]* Biltema rain gauge [118]* Biltema rain gauge
[119] Bresser Weather Center 5-in-1 [119] Bresser Weather Center 5-in-1
[120]* Digitech XC-0324 temperature sensor [120] Digitech XC-0324 / AmbientWeather FT005RH temp/hum sensor
[121] Opus/Imagintronix XT300 Soil Moisture [121] Opus/Imagintronix XT300 Soil Moisture
[122]* FS20 [122]* FS20
[123]* Jansite TPMS Model TY02S [123]* Jansite TPMS Model TY02S

View file

@ -341,7 +341,7 @@ stop_after_successful_events false
# protocol 117 # ESA1000 / ESA2000 Energy Monitor # protocol 117 # ESA1000 / ESA2000 Energy Monitor
# protocol 118 # Biltema rain gauge # protocol 118 # Biltema rain gauge
protocol 119 # Bresser Weather Center 5-in-1 protocol 119 # Bresser Weather Center 5-in-1
# protocol 120 # Digitech XC-0324 temperature sensor protocol 120 # Digitech XC-0324 / AmbientWeather FT005RH temp/hum sensor
protocol 121 # Opus/Imagintronix XT300 Soil Moisture protocol 121 # Opus/Imagintronix XT300 Soil Moisture
# protocol 122 # FS20 # protocol 122 # FS20
# protocol 123 # Jansite TPMS Model TY02S # protocol 123 # Jansite TPMS Model TY02S

View file

@ -44,7 +44,7 @@ Output the version string and exit
.TP .TP
[ \fB\-v\fI\fP ] [ \fB\-v\fI\fP ]
Increase verbosity (can be used multiple times). Increase verbosity (can be used multiple times).
\-v : verbose, \-vv : verbose decoders, \-vvv : debug decoders, \-vvvv : trace decoding). \-v : verbose notice, \-vv : verbose info, \-vvv : debug, \-vvvv : trace.
.TP .TP
[ \fB\-c\fI <path>\fP ] [ \fB\-c\fI <path>\fP ]
Read config options from a file Read config options from a file

View file

@ -9,7 +9,9 @@
(at your option) any later version. (at your option) any later version.
*/ */
/** /**
Digitech XC-0324 device. Decoder for Digitech XC-0324 temperature sensor.
Also AmbientWeather FT005RH.
The encoding is pulse position modulation The encoding is pulse position modulation
(i.e. gap width contains the modulation information) (i.e. gap width contains the modulation information)
@ -88,9 +90,9 @@ static int decode_xc0324_message(r_device *decoder, bitbuffer_t *bitbuffer,
// NB : b[0] ^ b[1] ^ b[2] ^ b[3] ^ b[4] ^ b[5] == 0x00 for a clean message // NB : b[0] ^ b[1] ^ b[2] ^ b[3] ^ b[4] ^ b[5] == 0x00 for a clean message
chksum = xor_bytes(b, 6); chksum = xor_bytes(b, 6);
if (chksum != 0x00) { if (chksum != 0x00) {
if (decoder->verbose) { if (decoder->verbose > 1) {
// Output the "bad" message (only for message level deciphering!) // Output the "bad" message (only for message level deciphering!)
decoder_logf_bitrow(decoder, 1, __func__, b, XC0324_MESSAGE_BITLEN, decoder_logf_bitrow(decoder, 2, __func__, b, XC0324_MESSAGE_BITLEN,
"chksum = 0x%02X not 0x00 <- XC0324:vv row %d bit %d", "chksum = 0x%02X not 0x00 <- XC0324:vv row %d bit %d",
chksum, row, bitpos); chksum, row, bitpos);
} }
@ -125,8 +127,8 @@ static int decode_xc0324_message(r_device *decoder, bitbuffer_t *bitbuffer,
} }
// Output (simulated) message level deciphering information.. // Output (simulated) message level deciphering information..
if (decoder->verbose) { if (decoder->verbose > 1) {
decoder_logf_bitrow(decoder, 1, __func__, b, XC0324_MESSAGE_BITLEN, decoder_logf_bitrow(decoder, 2, __func__, b, XC0324_MESSAGE_BITLEN,
"Temp was %4.1f <- XC0324:vv row %03d bit %03d", "Temp was %4.1f <- XC0324:vv row %03d bit %03d",
temperature, row, bitpos); temperature, row, bitpos);
} }
@ -144,7 +146,7 @@ static int decode_xc0324_message(r_device *decoder, bitbuffer_t *bitbuffer,
Digitech XC-0324 device. Digitech XC-0324 device.
@sa decode_xc0324_message() @sa decode_xc0324_message()
*/ */
static int xc0324_callback(r_device *decoder, bitbuffer_t *bitbuffer) static int digitech_xc0324_decode(r_device *decoder, bitbuffer_t *bitbuffer)
{ {
uint8_t const preamble_pattern[] = {0x5F}; uint8_t const preamble_pattern[] = {0x5F};
@ -216,12 +218,11 @@ static char *output_fields[] = {
}; };
r_device digitech_xc0324 = { r_device digitech_xc0324 = {
.name = "Digitech XC-0324 temperature sensor", .name = "Digitech XC-0324 / AmbientWeather FT005RH temp/hum sensor",
.modulation = OOK_PULSE_PPM, .modulation = OOK_PULSE_PPM,
.short_width = 520, // = 130 * 4 .short_width = 520, // = 130 * 4
.long_width = 1000, // = 250 * 4 .long_width = 1000, // = 250 * 4
.reset_limit = 3000, .reset_limit = 3000,
.decode_fn = &xc0324_callback, .decode_fn = &digitech_xc0324_decode,
.disabled = 1, // stop debug output from spamming unsuspecting users
.fields = output_fields, .fields = output_fields,
}; };