# V2X (Vehicle-to-Everything) enables cars to communicate with other vehicles (V2V), infrastructure (V2I), pedestrians (V2P), and networks (V2N)

**Date:** 2025-12-18  
**Tags:** 5G, Automotive, IoT  
**URL:** https://kelexine.is-a.dev/til/v2x-vehicle-communication

---

TIL: V2X (Vehicle-to-Everything) enables cars to communicate with other vehicles (V2V), infrastructure (V2I), pedestrians (V2P), and networks (V2N). This is essential for autonomous driving - vehicles share position, speed, and intent, enabling coordination impossible with sensors alone.


```javascript
// V2X message types
const v2xMessage = {
  type: 'BSM', // Basic Safety Message
  position: { lat: 37.77, lng: -122.41 },
  heading: 270,
  speed: 45,
  acceleration: 0.5,
  intent: 'lane_change_left',
  timestamp: Date.now()
};
v2x.broadcast(v2xMessage);
```




---

*This content is available at [kelexine.is-a.dev/til/v2x-vehicle-communication](https://kelexine.is-a.dev/til/v2x-vehicle-communication)*
