Specialist Supplier of Crystals & Frequency Control Componentssales@mecxtal.com.cn0755-26500570
MERLIN home / Rednote / Low-Frequency Timing and System Power

Separating Bluetooth Advertising, Scan Windows, and Logging From 32.768 kHz Crystal Timing

A coin-cell temperature and humidity tag set to advertise once a second may produce log entries 2 to 3 seconds apart. Check advertising events, scan windows and application logging separately. Received-packet spacing is not a crystal measurement.

On a bench with owned warehouse tags and a controlled receiver, “one second” can mean the base Bluetooth Low Energy advertising interval. It guarantees neither one reception per second at every gateway nor fresh sensor data in every packet. A scanner may not be listening on the right channel, and the application can merge repeats. Subtracting backend timestamps mixes transmission, reception and reporting. Do not capture traffic from other devices or networks.

The advertiser's interval is not the logger's interval

This discussion covers ordinary legacy advertising, not periodic advertising or connected operation. An event can send on one or more primary advertising channels. Multiple packets from one event are not separate consecutive events. The gap between event starts can include a pseudorandom 0 to 10 ms link-layer delay added to the base interval. That is expected scheduling variation, not changing crystal speed. Application data update or advertising startup is also not necessarily the instant an event is transmitted.

The scanner has a scan interval and scan window. The interval is the time between starts; the window is listening time within it. If the gateway is not listening on the applicable channel, it can miss an event. Listening still does not guarantee reception: channel, signal and implementation matter. Gateway software or the operating system can filter, combine or delay reports, so a gap in the backend does not establish transmitter silence.

For a radio chip that supports an external low-speed crystal, TXC's 9H T11 series is a 32.768 kHz passive crystal candidate in a 2.0 × 1.2 mm package. Verify the exact ordering code, target load capacitance, equivalent series resistance, temperature range and chip oscillator requirements. Confirm whether the platform uses an external crystal, an internal low-speed clock or another source. Its nominal frequency alone cannot identify the clock that schedules advertising or the part fitted in a finished tag.

Worked example: why can a few milliseconds turn into a missing second?

Assume a 1,000 ms base interval and four observed event starts at 0, 1,004, 2,011 and 3,013 ms. The successive gaps are 1,004, 1,007 and 1,002 ms. The additional 4, 7 and 2 ms fit the stated random-delay range. The example omits component error and does not prescribe actual timings.

Suppose scanning opens a 100 ms window every 400 ms from time zero. In a point-event model with the right channel and ideal reception during each window, 0 and 2,011 ms fall inside, while 1,004 and 3,013 ms fall outside. The logger sees a 2,011 ms gap. It spans a missed event, not a tag base setting or a crystal running at half speed.

Actual events have duration and may use several channels. This point model does not predict reception probability. A one-quarter window duty cycle does not imply every event has a fixed one-quarter chance. Capture long matched windows and distinguish duplicates from gaps between separate events.

Trace the clock, radio events and saved records using owned test logs

Hold tag settings, power and data input fixed. Confirm the base timing against controlled transmit logs or approved observation. If testing supports correlation IDs, do not treat an ID that changes only with a sensor reading as an event sequence. Repeated advertisements can legitimately carry the same value, and an application that records only changes will produce gaps. That is different from missing reception.

Keep the tag settings unchanged and vary only the controlled receiver's scan-window configuration. Save raw reception events and application ingestion timestamps. If longer effective listening yields more closely spaced receptions while sender timestamps, event IDs and the base interval stay unchanged, check scan overlap and application deduplication. If raw reception is already regular and ingestion remains intermittent, check buffering, filtering and log refresh. Keep separate transmission and reception evidence even when the scan configuration looks continuous.

Check hardware if sender configuration is correct but long-term cadence is wrong or fails after sleep. Confirm the active low-speed source and use an approved point. Do not load high-impedance crystal pins with an ordinary probe. Distinguish error in one timebase from the actual scheduling path instead of inferring from one log interval.

Engineering and purchasing checklist

CheckEngineering evidencePurchasing and quality record
Base advertising intervalLegacy mode, event identifiers and observation timestampsBoard, firmware and advertising configuration
Scanning and receptionWindow, interval and raw reception dataTest receiver and supported settings
Application loggingDeduplication, reporting policy and delayIdentify which stage defines acceptance
Low-speed referenceActual source and oscillator compatibilityExact code, load and lot

If acceptance requires a fresh reading within a short interval, specify both the base advertising interval and the application observation conditions. Preserve the original timestamps and state whether they share a timebase. Where instruments are unsynchronized, compare intervals within each timebase and leave the cross-instrument offset out of component inspection results.

Repeat with both ends unchanged and record first reception and later gaps. Do not treat one favorable phase alignment as approval. Mark advertisements that continue without new sensor data.

Frequently asked questions

Does one-second advertising require one log entry each second? No. It controls the transmit base interval, not scan or reporting. Decide whether acceptance concerns transmission, reception or saved records.

Does a larger scan window prove the 32.768 kHz crystal is fine? No. Shorter gaps suggest the receive conditions may have contributed. Verify the actual clock source and transmitter timing separately.

WeChat

MERLIN · TIMING COMPONENTS

Scan with WeChat to contact Sales

Add our WeCom contacts from your usual WeChat app.

On desktop, scan with your phone. On mobile, save the QR image and select it from your album in WeChat Scan.