SENSIRION SHT31 Smart Gadget Скачать руководство пользователя страница 9

 

© Copyright Sensirion AG, Switzerland 

 

9/11 

There is no official profile defined by Bluetooth SIG for Temperature/Humidity sensors and the profile described 

here is proprietary. Besides transmitting the live values, the device always logs the sensor values and if needed, 

historical data can be retrieved over Bluetooth Low Energy. 
Device Behavior: 

 

BLE Advertising: If the button is pressed long enough (>1s) the BLE Advertising is turned on. After 
disconnection, the device enters again the advertising mode. The advertise packages are sent every two 
seconds. To turn off BLE Advertising, the button has to be pressed again for more than 1s. 

 

Connection parameters: After a connection is established, the device remains for a minute within the 
initial connection speed (depending on the used device). If the logger download is not started at this 
point, the device requests a slower connection interval (1 second) to save energy. If logged data is 
requested, the device requests a faster connection interval again. 

 

Logger: The logger is always running. The physical values are logged separately, whereas the available 
memory is shared among them. If you change the logging interval, the memory gets cleared. To retrieve 
the data, follow this procedure: 

o

 

Subscribe for notification of the Value-Characteristics of the desired services (e.g. Humidity- 

and/or Temperature-Characteristics) 

o

 

Write your (host) current timestamp (64bit, milliseconds) into the SyncTimeMs characteristic. 

o

 

Write or leave zero the OldestTimestampMs Characteristics. If left zero, all logged data is 

retrieved. If set to a time between now (=SyncTimeMs) and zero, all available data between 

these points in time is retrieved. 

o

 

The host can retrieve the NewestTimestampMs, which contains the timestamp of the latest 

logged value calculated back from the SyncTimeMs timestamp. This characteristic gets 
updated only after the SyncTimeMs was written. The host can modify this value as well to 

retrieve only a certain block of data in the past. After modification the value is adjusted to the 

timestamp of the previous available measurement. 

o

 

Write a non-zero value to StartLoggerDownload. The subscribed Value-Characteristics start 

notifying the logged values in the following notification format: 

i.

 

first four bytes: sequence number starting from 0 and increasing 

ii.

 

next n*four bytes: logged float32 values where n can be between one and four 

Every service’s LoggedValues Characteristic has its own increasing sequence number. They 

can be distinguished by their unique handle number and the corresponding UUID. 

Following is a simplified visualization of the device’s profile: 

Содержание SHT31 Smart Gadget

Страница 1: ...button and BLE module including battery supports and quick start guide Apps for iOS and Android devices for download in respective app stores Complete design resources available on GitHub Hardware des...

Страница 2: ...ugging 6 3 2 2 BLE Profile Description 8 3 3 Firmware for LCD Driver 10 3 4 Software 10 3 4 1 iOS SmartGadget App 10 3 4 2 Android SmartGadget App 10 Revision History 11 1 Quick Start Guide 1 Getting...

Страница 3: ...is lost the Bluetooth symbol will start blinking Once the SmartGadget is within reach again the connection is established automatically The battery life is improved when the Bluetooth mode is disabled...

Страница 4: ...t of reach of children and pets contains swallowable parts If any part is swallowed contact a physician immediately Battery type CR2032 Dispose of the battery properly special waste Smart Gadget opera...

Страница 5: ...s github com Sensirion SmartGadget iOS Software code for Android app https github com Sensirion SmartGadget Android 3 1 Hardware 3 1 1 Block Diagram 3 1 2 Bill of Materials Component Type Qty Designat...

Страница 6: ...n a n a 3 1 3 PCB Layout PCB layout data including schematic Gerber files assembly files and bill of materials is available on GitHub https github com Sensirion SmartGadget Hardware 3 2 Firmware for B...

Страница 7: ...mware for the nRF51822 Bluetooth Low Energy Chip Folder BLE_Module_nRF51822 which runs the application and the firmware for the LCD Driver Folder LCD_Driver_MC9S08LL8 The scope lies on the nRF51822 th...

Страница 8: ...re are five services available The Device Information Service contains information about the device manufacturer versions etc The Battery Service contains a Battery Level Characteristic Level in The L...

Страница 9: ...follow this procedure o Subscribe for notification of the Value Characteristics of the desired services e g Humidity and or Temperature Characteristics o Write your host current timestamp 64bit milli...

Страница 10: ...e found on GitHub https github com Sensirion SmartGadget Firmware tree master LCD_Driver_MC9S08LL8 3 4 Software 3 4 1 iOS SmartGadget App The software code for the Smart Gadget iOS app can be found on...

Страница 11: ...0 info sensirion com www sensirion com Sensirion Inc USA Phone 1 805 409 4900 info_us sensirion com www sensirion com Sensirion Japan Co Ltd Phone 81 3 3444 4940 info sensirion co jp www sensirion co...

Страница 12: ...Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery Lifecycle Information Sensirion 1 101294 01 SHT31 SMART GADGET...

Отзывы: