Skip to content

Commit

Permalink
Merge pull request #360 from this-Aditya/mac_hash
Browse files Browse the repository at this point in the history
Added Schemas and specifications for phone_bluetooth_devices_scanned
  • Loading branch information
mpgxvii authored Nov 24, 2023
2 parents 30f1201 + 788d3b0 commit 9b2b5ae
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
13 changes: 13 additions & 0 deletions commons/passive/phone/phone_bluetooth_device_scanned.avsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"namespace": "org.radarcns.passive.phone",
"type": "record",
"name": "PhoneBluetoothDeviceScanned",
"doc": "Phone Bluetooth device info.",
"fields": [
{"name": "time", "type": "double", "doc": "Device timestamp in UTC (s)."},
{"name": "timeReceived", "type": "double", "doc": "Device receiver timestamp in UTC (s)."},
{"name": "macAddressHash", "type": ["null", "bytes"], "default": null, "doc":"Hash of Nearby Bluetooth device MAC address."},
{"name": "hashSaltReference", "type": ["null", "int"], "doc": "Random identifier associated with the device or installation of the app. If the app gets reinstalled or installed on another device, it's clear during analysis that the mac addresses between iterations are not comparable.", "default": null},
{"name": "isPaired", "type": ["null","boolean"], "doc": "Whether the bluetooth device is paired.", "default": null}
]
}
6 changes: 6 additions & 0 deletions specifications/passive/android_phone-1.0.0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@ data:
sample_rate:
interval: 3600
configurable: true
- type: PHONE_BLUETOOTH_DEVICE_SCANNED
app_provider: .phone.PhoneBluetoothService
unit: NON_DIMENSIONAL
processing_state: RAW
topic: android_phone_bluetooth_device_scanned
value_schema: .passive.phone.PhoneBluetoothDeviceScanned
# Usage
- type: USAGE_EVENT
app_provider: .phone.PhoneUsageProvider
Expand Down

0 comments on commit 9b2b5ae

Please sign in to comment.