From 972a602920fc4c87ccef034f37fa5eb4a966b527 Mon Sep 17 00:00:00 2001 From: Lawrence Date: Fri, 1 Aug 2025 00:39:26 -0700 Subject: [PATCH] Renamed the file to tsr1000.json Restore "profile" (1300) to data size u8 so it's compatible with ping1D Added "profile16" (1500) for data size u16 Added "set_gps_location" (1501) to send the current GPS location to the sensor added "get_gps_location" (1502) to retrieve the last GPS location from the sensor --- .../{ping1dtsr.json => tsr1000.json} | 60 ++++++++++++++++++- 1 file changed, 58 insertions(+), 2 deletions(-) rename src/definitions/{ping1dtsr.json => tsr1000.json} (89%) diff --git a/src/definitions/ping1dtsr.json b/src/definitions/tsr1000.json similarity index 89% rename from src/definitions/ping1dtsr.json rename to src/definitions/tsr1000.json index ecbefc28..1e3ea5b6 100644 --- a/src/definitions/ping1dtsr.json +++ b/src/definitions/tsr1000.json @@ -472,6 +472,62 @@ "type": "u32", "description": "The current gain setting. 0: 0.6, 1: 1.8, 2: 5.5, 3: 12.9, 4: 30.2, 5: 66.1, 6: 144" }, + { + "name": "profile_data", + "type": "vector", + "vector": { + "sizetype": "u16", + "datatype": "u8", + "size": "dynamic" + }, + "description": "An array of return strength measurements taken at regular intervals across the scan region. The first element is the closest measurement to the sensor, and the last element is the farthest measurement in the scanned range." + } + ] + }, + "profile16": { + "id": 1500, + "description": "A profile produced from a single acoustic measurement. The data returned is an array of response strength at even intervals across the scan region. The scan region is defined as the region between and millimeters away from the transducer. A distance measurement to the target is also provided.", + "payload": [ + { + "name": "distance", + "type": "u32", + "description": "The current return distance determined for the most recent acoustic measurement.", + "units": "mm" + }, + { + "name": "confidence", + "type": "u16", + "description": "Confidence in the most recent range measurement.", + "units": "%" + }, + { + "name": "transmit_duration", + "type": "u16", + "description": "The acoustic pulse length during acoustic transmission/activation.", + "units": "us" + }, + { + "name": "ping_number", + "type": "u32", + "description": "The pulse/measurement count since boot." + }, + { + "name": "scan_start", + "type": "u32", + "description": "The beginning of the scan region in mm from the transducer.", + "units": "mm" + }, + { + "name": "scan_length", + "type": "u32", + "description": "The length of the scan region.", + "units": "mm" + }, + { + "name": "gain_setting", + "type": "u32", + "description": "The current gain setting. 0..3" + }, { "name": "profile_data", "type": "vector", @@ -572,7 +628,7 @@ { "name": "id", "type": "u16", - "description": "The message id to stream. 1500: profile" + "description": "The message id to stream. 1300/1500: profile" } ] }, @@ -583,7 +639,7 @@ { "name": "id", "type": "u16", - "description": "The message id to stop streaming. 1500: profile" + "description": "The message id to stop streaming. 1300/1500: profile" } ] }