diff --git a/app/src/main/java/app/fieldwatch/domain/DefaultCatalog.kt b/app/src/main/java/app/fieldwatch/domain/DefaultCatalog.kt index f321c57a..42dc9e22 100644 --- a/app/src/main/java/app/fieldwatch/domain/DefaultCatalog.kt +++ b/app/src/main/java/app/fieldwatch/domain/DefaultCatalog.kt @@ -701,6 +701,7 @@ object DefaultCatalog { name("iPhone"), name("iPad"), name("MacBook"), + bleGlob("Apple Pencil*"), ), ) @@ -2294,6 +2295,7 @@ object DefaultCatalog { listOf( wifiGlob("CARLINK-??????"), wifiGlob("CARLINK_*"), + wifiGlob("smartDongle-????"), ), listOf("CC:57:63", "68:8F:C9"), ), @@ -2333,6 +2335,7 @@ object DefaultCatalog { bleGlob("GV5108*"), bleGlob("GVH5*"), bleGlob("GVH5075*"), + bleGlob("GVH6*"), ), ) @@ -2391,6 +2394,7 @@ object DefaultCatalog { wifiGlob("Motive Hotspot*"), wifiGlob("KeepTruckin*"), bleGlob("AABL*"), + bleGlob("ADBV52*"), ), ) @@ -3416,6 +3420,7 @@ object DefaultCatalog { glob("U6-*"), glob("UXG*"), wifiGlob("UDM Setup*"), + bleGlob("AP-UBWAPM-*"), ), ) @@ -3821,6 +3826,7 @@ object DefaultCatalog { wifiGlob("[cooktop]*"), wifiGlob("[refrigerator]*"), bleGlob("[oven]*"), + bleGlob("Samsung Range*"), ), ) @@ -5257,6 +5263,7 @@ object DefaultCatalog { rules = listOf( bleGlob("LAP-*"), bleGlob("Core300*"), + bleGlob("Core200*"), ), ) @@ -5281,7 +5288,10 @@ object DefaultCatalog { matchAny = true, notes = "ELK RGB light-strip controller. The name starts with ELK-BLEDO. The HID and Battery services are shared, and the manufacturer field is not a Bluetooth company id, so this row uses the name. MELK lamps stay on MELK.", builtIn = true, - rules = listOf(bleGlob("ELK-BLEDO*")), + rules = listOf( + bleGlob("ELK-BLEDO*"), + bleGlob("ELK-BLEDDM*"), + ), ) private fun midea() = Fleet( @@ -5308,7 +5318,10 @@ object DefaultCatalog { matchAny = true, notes = "Zebra scanner or printer on service FE79.", builtIn = true, - rules = listOf(bleUuid("FE79")), + rules = listOf( + bleUuid("FE79"), + bleMfg(0x01F1), + ), ) private fun jlab() = Fleet( @@ -5733,6 +5746,9 @@ object DefaultCatalog { wifiGlob("[LG_Window A/C]*"), bleGlob("LG_Speaker*"), bleGlob("LG S77S*"), + bleGlob("LG CK*(*)"), + bleGlob("LG CL*(*)"), + bleGlob("LG SP*(*)"), ), ) @@ -5745,7 +5761,10 @@ object DefaultCatalog { matchAny = true, notes = "Open LED sign. The name starts with GLI1050. The Nordic UART service is shared, so this row uses the name.", builtIn = true, - rules = listOf(bleGlob("GLI1050*")), + rules = listOf( + bleGlob("GLI1050*"), + bleGlob("GLI1057*"), + ), ) private fun iosix() = Fleet( @@ -5757,7 +5776,10 @@ object DefaultCatalog { matchAny = true, notes = "IOSiX electronic logging device in a truck. The name starts with IOSiX ELD.", builtIn = true, - rules = listOf(wifiGlob("IOSiX ELD*")), + rules = listOf( + wifiGlob("IOSiX ELD*"), + bleGlob("IOSiX ELD*"), + ), ) private fun rove() = Fleet( @@ -5946,7 +5968,10 @@ object DefaultCatalog { matchAny = true, notes = "BlueParrott headset. The Bluetooth name starts with BlueParrott.", builtIn = true, - rules = listOf(bleGlob("BlueParrott*")), + rules = listOf( + bleGlob("BlueParrott*"), + bleUuid("95665A00-8704-11E5-960C-0002A5D5C51B"), + ), ) private fun danlaw() = Fleet( @@ -6009,7 +6034,11 @@ object DefaultCatalog { matchAny = true, notes = "Grundfos pump. The Bluetooth name starts with ALPHA HWR.", builtIn = true, - rules = listOf(bleGlob("ALPHA HWR*")), + rules = listOf( + bleGlob("ALPHA HWR*"), + bleGlob("Grundfos"), + bleUuid("FE5D"), + ), ) private fun hughesNet() = Fleet( diff --git a/app/src/test/java/app/fieldwatch/domain/DefaultCatalogTest.kt b/app/src/test/java/app/fieldwatch/domain/DefaultCatalogTest.kt index c48adfde..cd3191fb 100644 --- a/app/src/test/java/app/fieldwatch/domain/DefaultCatalogTest.kt +++ b/app/src/test/java/app/fieldwatch/domain/DefaultCatalogTest.kt @@ -1390,7 +1390,7 @@ class DefaultCatalogTest { assertEquals(SignatureClass.HOME, row.kind) assertTrue(row.attentionNote.isBlank()) assertFalse("fleet-elk-led" in DefaultCatalog.defaultWatchlist().mapNotNull { it.fleetId }) - assertEquals(listOf("ELK-BLEDO*"), row.rules.map { it.text }) + assertEquals(listOf("ELK-BLEDO*", "ELK-BLEDDM*"), row.rules.map { it.text }) assertTrue(row.rules.all { it.kind == RuleKind.NAME_GLOB && it.radio == RadioKind.BLE }) val dob = ble(name = "ELK-BLEDOB").copy(key = "BLE:e1", mac = "AA:BB:CC:14:04:01") val dom = ble(name = "ELK-BLEDOM").copy(key = "BLE:e2", mac = "AA:BB:CC:14:04:02") diff --git a/dist/fieldwatch-signatures-v2.json b/dist/fieldwatch-signatures-v2.json index d9aef85e..05d0a16e 100644 --- a/dist/fieldwatch-signatures-v2.json +++ b/dist/fieldwatch-signatures-v2.json @@ -1148,6 +1148,14 @@ "dataPrefixHex": "", "radio": null, "enabled": true + }, + { + "kind": "NAME_GLOB", + "text": "Apple Pencil*", + "companyId": 0, + "dataPrefixHex": "", + "radio": "BLE", + "enabled": true } ], "minPeers": 0, @@ -9155,6 +9163,14 @@ "dataPrefixHex": "", "radio": "BLE", "enabled": true + }, + { + "kind": "SERVICE_UUID", + "text": "95665A00-8704-11E5-960C-0002A5D5C51B", + "companyId": 0, + "dataPrefixHex": "", + "radio": "BLE", + "enabled": true } ], "minPeers": 0, @@ -10200,6 +10216,14 @@ "radio": "WIFI", "enabled": true }, + { + "kind": "NAME_GLOB", + "text": "smartDongle-????", + "companyId": 0, + "dataPrefixHex": "", + "radio": "WIFI", + "enabled": true + }, { "kind": "OUI", "text": "CC:57:63", @@ -23770,6 +23794,14 @@ "dataPrefixHex": "", "radio": "BLE", "enabled": true + }, + { + "kind": "NAME_GLOB", + "text": "ELK-BLEDDM*", + "companyId": 0, + "dataPrefixHex": "", + "radio": "BLE", + "enabled": true } ], "minPeers": 0, @@ -25995,6 +26027,14 @@ "dataPrefixHex": "", "radio": "BLE", "enabled": true + }, + { + "kind": "NAME_GLOB", + "text": "GLI1057*", + "companyId": 0, + "dataPrefixHex": "", + "radio": "BLE", + "enabled": true } ], "minPeers": 0, @@ -26886,6 +26926,14 @@ "dataPrefixHex": "", "radio": "BLE", "enabled": true + }, + { + "kind": "NAME_GLOB", + "text": "GVH6*", + "companyId": 0, + "dataPrefixHex": "", + "radio": "BLE", + "enabled": true } ], "minPeers": 0, @@ -27395,6 +27443,22 @@ "dataPrefixHex": "", "radio": "BLE", "enabled": true + }, + { + "kind": "NAME_GLOB", + "text": "Grundfos", + "companyId": 0, + "dataPrefixHex": "", + "radio": "BLE", + "enabled": true + }, + { + "kind": "SERVICE_UUID", + "text": "FE5D", + "companyId": 0, + "dataPrefixHex": "", + "radio": "BLE", + "enabled": true } ], "minPeers": 0, @@ -46312,6 +46376,14 @@ "dataPrefixHex": "", "radio": "WIFI", "enabled": true + }, + { + "kind": "NAME_GLOB", + "text": "IOSiX ELD*", + "companyId": 0, + "dataPrefixHex": "", + "radio": "BLE", + "enabled": true } ], "minPeers": 0, @@ -46945,6 +47017,14 @@ "dataPrefixHex": "", "radio": "BLE", "enabled": true + }, + { + "kind": "NAME_GLOB", + "text": "Core200*", + "companyId": 0, + "dataPrefixHex": "", + "radio": "BLE", + "enabled": true } ], "minPeers": 0, @@ -47026,6 +47106,30 @@ "dataPrefixHex": "", "radio": "BLE", "enabled": true + }, + { + "kind": "NAME_GLOB", + "text": "LG CK*(*)", + "companyId": 0, + "dataPrefixHex": "", + "radio": "BLE", + "enabled": true + }, + { + "kind": "NAME_GLOB", + "text": "LG CL*(*)", + "companyId": 0, + "dataPrefixHex": "", + "radio": "BLE", + "enabled": true + }, + { + "kind": "NAME_GLOB", + "text": "LG SP*(*)", + "companyId": 0, + "dataPrefixHex": "", + "radio": "BLE", + "enabled": true } ], "minPeers": 0, @@ -49343,6 +49447,14 @@ "dataPrefixHex": "", "radio": "BLE", "enabled": true + }, + { + "kind": "NAME_GLOB", + "text": "ADBV52*", + "companyId": 0, + "dataPrefixHex": "", + "radio": "BLE", + "enabled": true } ], "minPeers": 0, @@ -59388,6 +59500,14 @@ "dataPrefixHex": "", "radio": "BLE", "enabled": true + }, + { + "kind": "NAME_GLOB", + "text": "Samsung Range*", + "companyId": 0, + "dataPrefixHex": "", + "radio": "BLE", + "enabled": true } ], "minPeers": 0, @@ -64623,6 +64743,14 @@ "dataPrefixHex": "", "radio": "WIFI", "enabled": true + }, + { + "kind": "NAME_GLOB", + "text": "AP-UBWAPM-*", + "companyId": 0, + "dataPrefixHex": "", + "radio": "BLE", + "enabled": true } ], "minPeers": 0, @@ -67276,6 +67404,14 @@ "dataPrefixHex": "", "radio": "BLE", "enabled": true + }, + { + "kind": "MANUFACTURER_ID", + "text": "", + "companyId": 497, + "dataPrefixHex": "", + "radio": "BLE", + "enabled": true } ], "minPeers": 0, diff --git a/dist/fieldwatch-signatures.rsi b/dist/fieldwatch-signatures.rsi index c73e3a73..a167dd1a 100644 --- a/dist/fieldwatch-signatures.rsi +++ b/dist/fieldwatch-signatures.rsi @@ -1161,6 +1161,14 @@ "dataPrefixHex": "", "radio": null, "enabled": true + }, + { + "kind": "NAME_GLOB", + "text": "Apple Pencil*", + "companyId": 0, + "dataPrefixHex": "", + "radio": "BLE", + "enabled": true } ], "minPeers": 0, @@ -9195,6 +9203,14 @@ "dataPrefixHex": "", "radio": "BLE", "enabled": true + }, + { + "kind": "SERVICE_UUID", + "text": "95665A00-8704-11E5-960C-0002A5D5C51B", + "companyId": 0, + "dataPrefixHex": "", + "radio": "BLE", + "enabled": true } ], "minPeers": 0, @@ -10252,6 +10268,14 @@ "radio": "WIFI", "enabled": true }, + { + "kind": "NAME_GLOB", + "text": "smartDongle-????", + "companyId": 0, + "dataPrefixHex": "", + "radio": "WIFI", + "enabled": true + }, { "kind": "OUI", "text": "CC:57:63", @@ -23851,6 +23875,14 @@ "dataPrefixHex": "", "radio": "BLE", "enabled": true + }, + { + "kind": "NAME_GLOB", + "text": "ELK-BLEDDM*", + "companyId": 0, + "dataPrefixHex": "", + "radio": "BLE", + "enabled": true } ], "minPeers": 0, @@ -26107,6 +26139,14 @@ "dataPrefixHex": "", "radio": "BLE", "enabled": true + }, + { + "kind": "NAME_GLOB", + "text": "GLI1057*", + "companyId": 0, + "dataPrefixHex": "", + "radio": "BLE", + "enabled": true } ], "minPeers": 0, @@ -27009,6 +27049,14 @@ "dataPrefixHex": "", "radio": "BLE", "enabled": true + }, + { + "kind": "NAME_GLOB", + "text": "GVH6*", + "companyId": 0, + "dataPrefixHex": "", + "radio": "BLE", + "enabled": true } ], "minPeers": 0, @@ -27521,6 +27569,22 @@ "dataPrefixHex": "", "radio": "BLE", "enabled": true + }, + { + "kind": "NAME_GLOB", + "text": "Grundfos", + "companyId": 0, + "dataPrefixHex": "", + "radio": "BLE", + "enabled": true + }, + { + "kind": "SERVICE_UUID", + "text": "FE5D", + "companyId": 0, + "dataPrefixHex": "", + "radio": "BLE", + "enabled": true } ], "minPeers": 0, @@ -46475,6 +46539,14 @@ "dataPrefixHex": "", "radio": "WIFI", "enabled": true + }, + { + "kind": "NAME_GLOB", + "text": "IOSiX ELD*", + "companyId": 0, + "dataPrefixHex": "", + "radio": "BLE", + "enabled": true } ], "minPeers": 0, @@ -47123,6 +47195,14 @@ "dataPrefixHex": "", "radio": "BLE", "enabled": true + }, + { + "kind": "NAME_GLOB", + "text": "Core200*", + "companyId": 0, + "dataPrefixHex": "", + "radio": "BLE", + "enabled": true } ], "minPeers": 0, @@ -47205,6 +47285,30 @@ "dataPrefixHex": "", "radio": "BLE", "enabled": true + }, + { + "kind": "NAME_GLOB", + "text": "LG CK*(*)", + "companyId": 0, + "dataPrefixHex": "", + "radio": "BLE", + "enabled": true + }, + { + "kind": "NAME_GLOB", + "text": "LG CL*(*)", + "companyId": 0, + "dataPrefixHex": "", + "radio": "BLE", + "enabled": true + }, + { + "kind": "NAME_GLOB", + "text": "LG SP*(*)", + "companyId": 0, + "dataPrefixHex": "", + "radio": "BLE", + "enabled": true } ], "minPeers": 0, @@ -49551,6 +49655,14 @@ "dataPrefixHex": "", "radio": "BLE", "enabled": true + }, + { + "kind": "NAME_GLOB", + "text": "ADBV52*", + "companyId": 0, + "dataPrefixHex": "", + "radio": "BLE", + "enabled": true } ], "minPeers": 0, @@ -59667,6 +59779,14 @@ "dataPrefixHex": "", "radio": "BLE", "enabled": true + }, + { + "kind": "NAME_GLOB", + "text": "Samsung Range*", + "companyId": 0, + "dataPrefixHex": "", + "radio": "BLE", + "enabled": true } ], "minPeers": 0, @@ -64957,6 +65077,14 @@ "dataPrefixHex": "", "radio": "WIFI", "enabled": true + }, + { + "kind": "NAME_GLOB", + "text": "AP-UBWAPM-*", + "companyId": 0, + "dataPrefixHex": "", + "radio": "BLE", + "enabled": true } ], "minPeers": 0, @@ -67639,6 +67767,14 @@ "dataPrefixHex": "", "radio": "BLE", "enabled": true + }, + { + "kind": "MANUFACTURER_ID", + "text": "", + "companyId": 497, + "dataPrefixHex": "", + "radio": "BLE", + "enabled": true } ], "minPeers": 0,