Date:2011-03-04 03:18:43 (8 years 4 months ago)
Author:Werner Almesberger
Commit:da8962344cca0c59b7c9efa74b8592bd02876040
Message:tools/atrf-txrx (DEFAULT_TRIM, usage, main): changed default trim from 0 to 8

As explained in ECN0002, atben and atusb are designed for the trim to
be set to the mid-range value. This just wasn't implemented so far.
Files: tools/atrf-txrx/atrf-txrx.c (3 diffs)

Change Details

tools/atrf-txrx/atrf-txrx.c
3535
3636#define DEFAULT_CHANNEL 15 /* channel 15, 2425 MHz */
3737
38#define DEFAULT_TRIM 8 /* trim range is 0-15, see also ECN0002 */
39
40
3841/*
3942 * Transmit power, dBm. IEEE 802.15.4-2003 section E.3.1.3 specifies a transmit
4043 * power of 0 dBm for IEEE 802.15.4. We assume an antenna gain of 3 dB or
...... 
593596" -o file write received data to a file in pcap format\n"
594597" -p power transmit power, -17.2 to 3.0 dBm (default %.1f)\n"
595598" -r rate data rate, 250k, 500k, 1M, or 2M (default: 250k)\n"
596" -t trim trim capacitor, 0 to 15 (default 0)\n"
599" -t trim trim capacitor, 0 to 15 (default %d)\n"
597600        , name, name, name, name,
598        DEFAULT_CHANNEL, 2405+5*(DEFAULT_CHANNEL-11), DEFAULT_POWER);
601        DEFAULT_CHANNEL, 2405+5*(DEFAULT_CHANNEL-11), DEFAULT_POWER,
602        DEFAULT_TRIM);
599603    exit(1);
600604}
601605
...... 
611615    int channel = DEFAULT_CHANNEL;
612616    double power = DEFAULT_POWER;
613617    uint8_t rate = OQPSK_DATA_RATE_250;
614    int trim = 0, times = 1;
618    int trim = DEFAULT_TRIM, times = 1;
615619    uint8_t cont_tx = 0;
616620    double pause_s = 0;
617621    char *end;

Archive Download the corresponding diff file



interactive