Earlier quoted context omitted.
Yes, that's called ADS-B. It's a huge improvement in avoiding collisions. But both planes need to be transmitting their location and vectors. The military plane was running silent.
Why would both planes have to be transmitting? The military plane can read the commercial plane's transponder.
Re: Pilot narrowly avoids 'midair collision' with US Air Force plane near Venezuela
#31Even if the military aircraft could read the ADS-B from the commercial plane, they were flying with their night vision goggles on. It's very unlikely that they would have seen all the instruments and could very well have missed the display. And since the two aircrafts were flying approximately at right angles to each other, the warning may have been degraded. (I'm not very sure about this point though. Needs confirmation.)