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
28 changes: 28 additions & 0 deletions app/src/main/java/app/fieldwatch/domain/ApVendorOuis.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1072,4 +1072,32 @@ internal object ApVendorOuis {
val PLUME = listOf(
"60:B4:F7",
)

/** 22 MA-L — Seiko Epson Corporation */
val EPSON = listOf(
"00:00:48", "00:26:AB", "38:1A:52", "38:9D:92", "44:D2:44", "50:57:9C", "58:05:D9", "64:C6:D2",
"64:EB:8C", "68:55:D4", "9C:AE:D3", "A4:D7:3C", "A4:EE:57", "AC:18:26", "B0:E8:92", "BC:C8:CC",
"D4:80:8B", "DC:83:BF", "DC:CD:2F", "E0:BB:9E", "F8:25:51", "F8:D0:27",
)

/** 52 MA-L — GD Midea Air-Conditioning Equipment Co., Ltd. */
val MIDEA = listOf(
"04:D6:F4", "10:2C:8D", "18:41:C3", "24:27:30", "24:59:E5", "2C:E6:4D", "30:52:23", "30:B2:37",
"34:5B:BB", "38:2F:B0", "3C:20:93", "44:35:D3", "50:2D:BB", "50:5E:3A", "54:92:6A", "54:B8:74",
"60:7A:D8", "6C:CB:7F", "70:86:CE", "80:3E:4F", "80:76:C2", "84:7C:9B", "88:F2:BD", "8C:3F:44",
"9C:C1:2D", "A0:68:1C", "A0:99:21", "A4:2A:26", "A8:40:7D", "AC:72:DD", "AC:93:C4", "B0:78:39",
"B0:96:EA", "B4:90:E5", "B8:0B:DA", "B8:8C:29", "BC:04:35", "BC:89:F8", "C0:84:FF", "C0:88:40",
"C4:39:60", "D4:50:EE", "D4:84:57", "D8:34:1C", "D8:D2:61", "E8:22:81", "E8:F0:94", "F0:C9:D1",
"F4:66:39", "F8:2A:53", "F8:D5:54", "FC:DF:00",
)

/** 42 MA-L — Tuya Smart Inc. */
val TUYA = listOf(
"00:33:7A", "10:5A:17", "10:D5:61", "18:69:D8", "18:DE:50", "1C:90:FF", "20:F1:B2", "2C:B4:71",
"30:48:7D", "38:1F:8D", "38:2C:E5", "38:A5:C9", "3C:0B:59", "4C:A9:19", "50:8A:06", "50:8B:B9",
"68:57:2D", "70:89:76", "7C:F6:66", "80:64:7C", "84:E3:42", "A0:92:08", "A8:80:55", "A8:DD:BC",
"AC:F8:78", "B8:06:0D", "BC:35:1E", "C0:F8:53", "C4:82:E1", "CC:8C:BF", "D0:32:E7", "D0:82:E8",
"D0:82:EB", "D4:A6:51", "D8:1F:12", "D8:C8:0C", "D8:D6:68", "D8:FC:92", "E4:AE:E4", "F8:17:2D",
"FC:3C:D7", "FC:67:1F",
)
}
117 changes: 81 additions & 36 deletions app/src/main/java/app/fieldwatch/domain/DefaultCatalog.kt
Original file line number Diff line number Diff line change
Expand Up @@ -486,13 +486,14 @@ object DefaultCatalog {
colorIndex = Hue.TRACKER,
kind = SignatureClass.FINDER,
matchAny = true,
notes = "Samsung SmartTag / SmartTag+ item finder. Matches the name or service FD5A. Addresses often rotate.",
notes = "Samsung SmartTag or SmartThings Find offline-finding beacon. Matches the SmartTag name, command service FD5A, or offline-finding service FD69. Offline Galaxy phones can also advertise FD69. Addresses rotate.",
builtIn = true,
rules = listOf(
name("SmartTag"),
name("Smart Tag"),
name("Galaxy SmartTag"),
uuid("FD5A"),
bleUuid("FD69"),
),
)

Expand All @@ -507,6 +508,7 @@ object DefaultCatalog {
builtIn = true,
rules = listOf(
mfgData(0x004C, "0215"),
MatchRule(RuleKind.MANUFACTURER_DATA, companyId = 0x4C00, dataPrefixHex = "0215", radio = RadioKind.BLE),
bleName("iBeacon"),
bleGlob("*iBeacon*"),
),
Expand Down Expand Up @@ -1585,6 +1587,7 @@ object DefaultCatalog {
wifiGlob("VerizonFiOS*"),
wifiGlob("Fios-*"),
wifiGlob("MyVerizon*"),
wifiGlob("FWA_*"),
wifiName("Verizon"),
),
ApVendorOuis.VERIZON,
Expand Down Expand Up @@ -1940,15 +1943,19 @@ object DefaultCatalog {
colorIndex = Hue.HOME_CAM,
kind = SignatureClass.HOME,
matchAny = true,
notes = "Tuya plug, light, camera, or sensor. Dense in some apartments. Decoded fields can show whether it is bound.",
notes = "Tuya / SmartLife plug, light, camera, or sensor on BLE or setup Wi-Fi. Dense in some apartments. Decoded fields can show whether it is bound.",
builtIn = true,
decode = CatalogDecodes.tuya,
rules = listOf(
mfg(0x07D0),
uuid("FD50"),
bleName("TUYA"),
bleGlob("TUYA*"),
bleGlob("Tuya*"),
rules = withWifiOuis(
listOf(
mfg(0x07D0),
uuid("FD50"),
bleName("TUYA"),
bleGlob("TUYA*"),
bleGlob("Tuya*"),
wifiGlob("SmartLife-????"),
),
ApVendorOuis.TUYA,
),
)

Expand Down Expand Up @@ -2235,11 +2242,20 @@ object DefaultCatalog {
colorIndex = Hue.VEHICLE,
kind = SignatureClass.VEHICLE,
matchAny = true,
notes = "In-car CarPlay / Alpine head-unit hotspot. Factory name from the dash, not an ISP.",
notes = "In-car Wireless CarPlay or Android Auto head-unit projection hotspot (OEM Panasonic, Visteon, Alps Alpine, or aftermarket Sony XAV, Pioneer NEX, and JVC receivers). Factory name from the dash, not an ISP.",
builtIn = true,
rules = listOf(
wifiGlob("CarPlay*"),
wifiName("CarPlay"),
rules = withWifiOuis(
listOf(
wifiGlob("CarPlay*"),
wifiName("CarPlay"),
wifiGlob("PROJ??????"),
wifiGlob("Smartphone_connect_??????"),
wifiGlob("ScreenAudio????"),
wifiGlob("XAV-AX*"),
wifiGlob("DMH-W*"),
wifiGlob("KW-Z*"),
),
listOf("EC:65:CC", "0C:65:9A", "F8:55:CD", "A8:40:0B", "4C:D9:C4", "50:C3:A2"),
),
)

Expand All @@ -2256,6 +2272,9 @@ object DefaultCatalog {
listOf(
wifiGlob("CARLINK-??????"),
wifiGlob("CARLINK_*"),
wifiGlob("AutoSky-*"),
wifiGlob("AIBox-BT-*"),
wifiGlob("CarScreen_*"),
),
listOf("CC:57:63", "68:8F:C9"),
),
Expand Down Expand Up @@ -2345,13 +2364,15 @@ object DefaultCatalog {
colorIndex = Hue.VEHICLE,
kind = SignatureClass.VEHICLE,
matchAny = true,
notes = "Motive (KeepTruckin) electronic logging device / fleet Wi-Fi in a truck.",
notes = "Motive (KeepTruckin) electronic logging device, asset gateway, or fleet Wi-Fi in a truck.",
builtIn = true,
rules = listOf(
wifiGlob("Motive *"),
wifiGlob("Motive_*"),
wifiGlob("Motive Hotspot*"),
wifiGlob("KeepTruckin*"),
bleUuid("FC6D"),
bleGlob("AABL36*"),
),
)

Expand Down Expand Up @@ -2567,17 +2588,15 @@ object DefaultCatalog {
colorIndex = Hue.VEHICLE,
kind = SignatureClass.VEHICLE,
matchAny = true,
notes = "Samsara fleet tracker or vehicle Wi-Fi. Truck / van telematics, adjacent to Motive.",
notes = "Samsara fleet vehicle gateway, asset tag, or in-cab Wi-Fi. Truck and van telematics, adjacent to Motive.",
builtIn = true,
rules = withWifiOuis(
listOf(
mfg(0x0B6B),
bleName("Samsara"),
bleGlob("Samsara*"),
wifiGlob("Samsara*"),
),
ApVendorOuis.SAMSARA,
),
rules = listOf(
mfg(0x0B6B),
bleUuid("FCE5"),
bleName("Samsara"),
bleGlob("Samsara*"),
wifiGlob("Samsara*"),
) + ApVendorOuis.SAMSARA.map { oui(it) },
)

private fun tapo() = Fleet(
Expand Down Expand Up @@ -3376,6 +3395,10 @@ object DefaultCatalog {
glob("UAP-*"),
glob("U6-*"),
glob("UXG*"),
bleGlob("UDM"),
bleGlob("UDM-*"),
bleUuid("D83B80E3-E81F-4F66-879B-779BE5F6A693"),
bleUuid("73B08668-52DF-4626-A3E3-7638815B781A"),
),
)

Expand Down Expand Up @@ -4044,15 +4067,22 @@ object DefaultCatalog {
matchAny = true,
notes = "Epson EcoTank or WorkForce printer (Wi-Fi Direct or BLE).",
builtIn = true,
rules = listOf(
wifiGlob("*EPSON-ET-*"),
wifiGlob("*EPSON-WF-*"),
bleGlob("EPSON-ET-*"),
bleGlob("EPSON-WF-*"),
bleName("EPSON-ET"),
bleName("EPSON-WF"),
bleGlob("ET-* Series"),
wifiGlob("ET-* Series"),
rules = withWifiOuis(
listOf(
wifiGlob("*EPSON-ET-*"),
wifiGlob("*EPSON-WF-*"),
wifiGlob("*EPSON-EP-*"),
wifiGlob("*EPSON-XP-*"),
bleGlob("EPSON-ET-*"),
bleGlob("EPSON-WF-*"),
bleGlob("EPSON-EP-*"),
bleGlob("EPSON-XP-*"),
bleName("EPSON-ET"),
bleName("EPSON-WF"),
bleGlob("ET-* Series"),
wifiGlob("ET-* Series"),
),
ApVendorOuis.EPSON,
),
)

Expand Down Expand Up @@ -4392,13 +4422,14 @@ object DefaultCatalog {
colorIndex = Hue.HOME_CAM,
kind = SignatureClass.ISP,
matchAny = true,
notes = "HPE Aruba campus or Instant On Wi-Fi access point. An HPE BSSID here is an AP, not a server. Not an HP printer.",
notes = "HPE Aruba campus or Instant On Wi-Fi access point, including its built-in BLE telemetry radio. An HPE BSSID here is an AP, not a server. Not an HP printer.",
builtIn = true,
rules = withWifiOuis(
listOf(
wifiGlob("Aruba*"),
wifiGlob("SetMeUp*"),
wifiGlob("InstantOn*"),
bleMfg(0x011B),
),
ApVendorOuis.HPE,
),
Expand Down Expand Up @@ -5213,11 +5244,15 @@ object DefaultCatalog {
colorIndex = Hue.HOME_CAM,
kind = SignatureClass.HOME,
matchAny = true,
notes = "Levoit air purifier. The name starts with LAP- or Core300. Espressif's company id is shared, so this row uses the name.",
notes = "Levoit air purifier or humidifier (LAP-, Core, or LUH- series). Shared company ids are omitted so this row uses the name.",
builtIn = true,
rules = listOf(
bleGlob("LAP-*"),
bleGlob("Core200*"),
bleGlob("Core300*"),
bleGlob("Core400*"),
bleGlob("Core600*"),
bleGlob("LUH-*"),
),
)

Expand Down Expand Up @@ -5252,9 +5287,15 @@ object DefaultCatalog {
colorIndex = Hue.HOME_CAM,
kind = SignatureClass.HOME,
matchAny = true,
notes = "Midea air conditioner. The company id is Midea's. The advertisement name is often just net, and that word is not the rule.",
notes = "Midea air conditioner or dehumidifier on BLE or setup Wi-Fi.",
builtIn = true,
rules = listOf(bleMfg(0x06A8)),
rules = withWifiOuis(
listOf(
bleMfg(0x06A8),
wifiGlob("midea_??_????"),
),
ApVendorOuis.MIDEA,
),
)

private fun zebra() = Fleet(
Expand Down Expand Up @@ -5691,6 +5732,10 @@ object DefaultCatalog {
wifiGlob("[LG_Window A/C]*"),
bleGlob("LG_Speaker*"),
bleGlob("LG S77S*"),
bleGlob("LG S??TR(*)"),
bleGlob("LG SP*(*)"),
bleGlob("LG SH*(*)"),
bleGlob("LG CK*(*)"),
),
)

Expand Down
Loading