aprsorg / aprs-deviceid

APRS device identification data: tocalls.txt + mic-e-types.txt current master allocations (YAML, JSON, XML)
60 stars 23 forks source link

Confused about ordering / preference on overlapping tocalls #86

Closed xssfox closed 1 year ago

xssfox commented 1 year ago

The README.md suggests looking for the longest match however there are cases where you can have a tie based on how many characters match (see example below). I'm guessing that the idea is that we should favour the longest matching prefix first? so APC??? would be the APRS device ID. Some clarification around this would be good.

What does APCAD match?

 - tocall: APC???
   vendor: Rob Wittner, KZ5RW
   model: APRS/CE
   class: app
 - tocall: APnnnD
   vendor: Painter Engineering
   model: uSmartDigi D-Gate
   class: dstar
hessu commented 1 year ago

Hi! APCAD would match APC???, as the 'n' wildcard should only match numeric (0-9) characters. The spec is not spelling that out, I'll fix that.

These are both old assignments and there may be some ambiguity in there, and we should avoid these in the future. In this case there's no ambiguity since APC has a 'C' where the second assignment shall have a number.

APRS/CE is probably not that frequently met (Windows CE...), I'd guess.

xssfox commented 1 year ago

That makes sense, thanks!