Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 35 additions & 6 deletions app/src/main/java/app/fieldwatch/domain/DefaultCatalog.kt
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,7 @@ object DefaultCatalog {
name("iPhone"),
name("iPad"),
name("MacBook"),
bleGlob("Apple Pencil*"),
),
)

Expand Down Expand Up @@ -2294,6 +2295,7 @@ object DefaultCatalog {
listOf(
wifiGlob("CARLINK-??????"),
wifiGlob("CARLINK_*"),
wifiGlob("smartDongle-????"),
),
listOf("CC:57:63", "68:8F:C9"),
),
Expand Down Expand Up @@ -2333,6 +2335,7 @@ object DefaultCatalog {
bleGlob("GV5108*"),
bleGlob("GVH5*"),
bleGlob("GVH5075*"),
bleGlob("GVH6*"),
),
)

Expand Down Expand Up @@ -2391,6 +2394,7 @@ object DefaultCatalog {
wifiGlob("Motive Hotspot*"),
wifiGlob("KeepTruckin*"),
bleGlob("AABL*"),
bleGlob("ADBV52*"),
),
)

Expand Down Expand Up @@ -3416,6 +3420,7 @@ object DefaultCatalog {
glob("U6-*"),
glob("UXG*"),
wifiGlob("UDM Setup*"),
bleGlob("AP-UBWAPM-*"),
),
)

Expand Down Expand Up @@ -3821,6 +3826,7 @@ object DefaultCatalog {
wifiGlob("[cooktop]*"),
wifiGlob("[refrigerator]*"),
bleGlob("[oven]*"),
bleGlob("Samsung Range*"),
),
)

Expand Down Expand Up @@ -5257,6 +5263,7 @@ object DefaultCatalog {
rules = listOf(
bleGlob("LAP-*"),
bleGlob("Core300*"),
bleGlob("Core200*"),
),
)

Expand All @@ -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(
Expand All @@ -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(
Expand Down Expand Up @@ -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*(*)"),
),
)

Expand All @@ -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(
Expand All @@ -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(
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
136 changes: 136 additions & 0 deletions dist/fieldwatch-signatures-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -1148,6 +1148,14 @@
"dataPrefixHex": "",
"radio": null,
"enabled": true
},
{
"kind": "NAME_GLOB",
"text": "Apple Pencil*",
"companyId": 0,
"dataPrefixHex": "",
"radio": "BLE",
"enabled": true
}
],
"minPeers": 0,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -23770,6 +23794,14 @@
"dataPrefixHex": "",
"radio": "BLE",
"enabled": true
},
{
"kind": "NAME_GLOB",
"text": "ELK-BLEDDM*",
"companyId": 0,
"dataPrefixHex": "",
"radio": "BLE",
"enabled": true
}
],
"minPeers": 0,
Expand Down Expand Up @@ -25995,6 +26027,14 @@
"dataPrefixHex": "",
"radio": "BLE",
"enabled": true
},
{
"kind": "NAME_GLOB",
"text": "GLI1057*",
"companyId": 0,
"dataPrefixHex": "",
"radio": "BLE",
"enabled": true
}
],
"minPeers": 0,
Expand Down Expand Up @@ -26886,6 +26926,14 @@
"dataPrefixHex": "",
"radio": "BLE",
"enabled": true
},
{
"kind": "NAME_GLOB",
"text": "GVH6*",
"companyId": 0,
"dataPrefixHex": "",
"radio": "BLE",
"enabled": true
}
],
"minPeers": 0,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -46312,6 +46376,14 @@
"dataPrefixHex": "",
"radio": "WIFI",
"enabled": true
},
{
"kind": "NAME_GLOB",
"text": "IOSiX ELD*",
"companyId": 0,
"dataPrefixHex": "",
"radio": "BLE",
"enabled": true
}
],
"minPeers": 0,
Expand Down Expand Up @@ -46945,6 +47017,14 @@
"dataPrefixHex": "",
"radio": "BLE",
"enabled": true
},
{
"kind": "NAME_GLOB",
"text": "Core200*",
"companyId": 0,
"dataPrefixHex": "",
"radio": "BLE",
"enabled": true
}
],
"minPeers": 0,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -49343,6 +49447,14 @@
"dataPrefixHex": "",
"radio": "BLE",
"enabled": true
},
{
"kind": "NAME_GLOB",
"text": "ADBV52*",
"companyId": 0,
"dataPrefixHex": "",
"radio": "BLE",
"enabled": true
}
],
"minPeers": 0,
Expand Down Expand Up @@ -59388,6 +59500,14 @@
"dataPrefixHex": "",
"radio": "BLE",
"enabled": true
},
{
"kind": "NAME_GLOB",
"text": "Samsung Range*",
"companyId": 0,
"dataPrefixHex": "",
"radio": "BLE",
"enabled": true
}
],
"minPeers": 0,
Expand Down Expand Up @@ -64623,6 +64743,14 @@
"dataPrefixHex": "",
"radio": "WIFI",
"enabled": true
},
{
"kind": "NAME_GLOB",
"text": "AP-UBWAPM-*",
"companyId": 0,
"dataPrefixHex": "",
"radio": "BLE",
"enabled": true
}
],
"minPeers": 0,
Expand Down Expand Up @@ -67276,6 +67404,14 @@
"dataPrefixHex": "",
"radio": "BLE",
"enabled": true
},
{
"kind": "MANUFACTURER_ID",
"text": "",
"companyId": 497,
"dataPrefixHex": "",
"radio": "BLE",
"enabled": true
}
],
"minPeers": 0,
Expand Down
Loading