Technology and connectivity fans, welcome!
Today we shed some light on a few fundamental wireless protocols that are shaping the way we interact with the digital world, with a special focus on the promising Wi-Fi Aware. Let’s find out how our devices can connect in new and surprising ways, even when there is no traditional network.
Wireless Fundamentals: Wi-Fi and the Obsolete WEP
Let’s start with the basics.
Wi-Fi: Our Digital Cornerstone
Wi-Fi is the standard that lets us browse the internet without wires. It is the invisible cable that connects our smartphones, laptops and tablets to the online world. It typically works through an access point (router) and can cover considerable distances, from tens to hundreds of metres, depending on the environment and the specific Wi-Fi technology used. It is the backbone of our everyday connectivity.
WEP: A Ghost from the Past
When it comes to wireless security, a name you may have heard is WEP (Wired Equivalent Privacy). However, it is crucial to understand that WEP is an obsolete security system that is no longer safe. If your network is still using it, it is time to upgrade to more robust protocols such as WPA2 or WPA3 to protect your data.
Wi-Fi Aware: When Devices Talk to Each Other Directly
And now to the star of our deep dive: Wi-Fi Aware, also known as NAN (Neighbor Awareness Networking). This is not just an evolution of Wi-Fi, but a genuine revolution in the way devices interact. Imagine your smartphones, tablets or accessories being able to detect and communicate with each other directly, with no need for a router or even an internet connection!
It is a global standard maintained by the Wi-Fi Alliance, which means compatibility across different platforms and manufacturers.
How Does Wi-Fi Aware Work? A Dance in Three Steps
The secret of Wi-Fi Aware lies in a smart process built on three pillars:
- Proximity detection: Wi-Fi Aware-enabled devices are like small radios that “announce” their presence and the services they offer. At the same time, they “discover” the services of other nearby devices. Think of how a photo-sharing app might announce “I’m ready to receive photos!” and your friend might “discover” this possibility. All of this happens without being connected to an existing network. As Apple’s Swetank pointed out, “services are used to discover devices and connect to them”, acting as “specific features that your app provides or consumes from other devices.”
- Clustering: Wi-Fi Aware devices automatically group into “clusters” with their neighbours or form new ones. This is handled by the device’s operating system and ensures that all participants are synchronised and ready to communicate.
- Peer-to-peer connection: Once the devices have “found” each other and decided to communicate, they establish a direct, two-way connection. These connections are dynamic and on demand, meaning they form only when needed and dissolve when no longer required. The beauty of it is that they offer high data transfer speeds and a longer range than Bluetooth, making them perfect for exchanging large files. One crucial point is that Wi-Fi Aware operates in parallel with your normal Wi-Fi connection: you can stay online while using this technology.
The Benefits of Wi-Fi Aware: A World of New Possibilities
Why should we be excited about Wi-Fi Aware? The benefits are many:
- Effortless local interaction: Forget the hassle! Sharing content with friends in the same room, playing local multiplayer games or connecting smart home devices becomes incredibly simple and intuitive.
- High speed and greater distance: It overcomes the speed and range limits of other proximity technologies, such as Bluetooth, making it ideal for transferring large files quickly.
- Energy saving: Despite the discovery and clustering activity, the technology is designed to be energy-efficient, especially when not actively in use.
- Built-in privacy and security: Privacy is at the heart of the design, letting users control what is shared and with whom. In addition, Wi-Fi Aware connections are fully authenticated and encrypted at the Wi-Fi level, with automatic handling of key exchange and link encryption.
Applications and Use Cases: The Future Is Here
Wi-Fi Aware opens the door to fascinating usage scenarios:
- Smart sharing: Exchanging photos or videos with friends becomes child’s play, with no third-party apps or cloud.
- Gaming without limits: Local multiplayer gaming sessions without lag, even with no internet connection.
- Contextual services: Shops offering personalised discounts when you are nearby, or museums with interactive guides based on your exact position.
- A smart home revolution: Smart home devices can communicate with each other directly, even without a central hub or an active Wi-Fi network.
- Indoor navigation: Finding your way around large venues such as airports or shopping centres becomes easier.
- Automatic synchronisation: Your phone and laptop sync automatically when they are close to each other.
- Control and sharing: Managing accessories or sharing your device’s screen quickly and securely.
Implementation and Adoption: Who Is Using It?
Wi-Fi Aware is finding a home on several platforms:
- Android: Supported from Android 8.0 (API level 26) onwards, although its availability also depends on the device’s hardware.
- Apple: Apple has also introduced the Wi-Fi Aware framework for iPhone and iPad, allowing connection with “other Apple devices, third-party devices and even accessories”. Let’s not forget that Apple has a similar technology, AWDL (Apple Wireless Direct Link), which underpins AirDrop.
- European Union: There is strong interest in adopting open standards such as Wi-Fi Aware to promote greater interoperability between devices.
Range: How Far Does It Reach?
It is important to distinguish the range of Wi-Fi Aware from that of traditional Wi-Fi. Wi-Fi Aware is designed for proximity communication. There is no fixed distance, as it depends on factors such as the hardware, the environment and the version of the standard.
Typically, we are talking about 30-70 metres for discovery and direct communication features. In ideal conditions and with no obstacles, the range could extend to around 100 metres, but that is not the typical operating range for everyday use.
Developing Apps with Wi-Fi Aware: A World for Developers (Apple Focus)
For developers, Wi-Fi Aware offers fertile ground for creating new experiences. Apps that intend to use this technology mainly need to handle two flows:
- Pairing a device: An initial setup process to establish trust and ensure secure communication. This can be done through DeviceDiscoveryUI (for app-to-app and app-to-third-party-device) or AccessorySetupKit (recommended for accessory manufacturers).
- Connecting paired devices: Once the devices have been paired, the app can easily reconnect without having to repeat the pairing process.
Key Concepts for Developers
- Services: They are the heart of Wi-Fi Aware. They identify the features an app offers (Publisher) or looks for (Subscriber). Service names must be unique and well defined (e.g.
com.miodominio.mi-servizio.tcp). - Service roles: An app can be a Publisher (offering a service like a server), a Subscriber (using a service like a client), or both at the same time.
- Declaring services: Services must be declared in the app’s Info.plist file using the
WiFiAwareServiceskey. - Checking capabilities: Apps must always check whether Wi-Fi Aware is supported on the device.
- Managing connections: With Apple’s Network framework, you can establish and manage Wi-Fi Aware connections, filtering devices by various criteria.
- Performance optimisation: Developers can adjust the Performance Mode (e.g.
Bulkfor energy saving,Real Timefor low latency) and the Traffic Service Class to prioritise packets (voice, video, data). The framework also offers performance reports to optimise the user experience.
Emergency Networks: Connected Even Without Infrastructure
In disaster or emergency scenarios, when traditional network infrastructure collapses, the ability to communicate becomes vital. Here is how peer-to-peer protocols can make a difference:
Wi-Fi Direct (or Wi-Fi P2P): The Immediate Lifeline
Wi-Fi Direct lets Wi-Fi devices connect to each other without a router. Every smartphone can become a temporary “access point”.
- Advantages: Found on practically every modern smartphone, it offers high speed and decent range (greater than Bluetooth), and is relatively easy to set up.
- Limitations: The range is still limited to a few tens of metres and, by itself, it does not create an extended “mesh” network.
Wi-Fi Aware (NAN): The Proximity Detector for Emergencies
As we have seen, Wi-Fi Aware excels at detecting and communicating with nearby devices without depending on an access point or the internet.
- Advantages: Extremely energy-efficient for discovering devices and setting up fast, direct connections.
- Limitations: It is not designed to build a large-scale mesh network, but rather for direct interactions between a few devices. Support may vary.
Mesh Networks: Strength in Digital Numbers
A mesh network is a topology in which every device (node) can communicate with its neighbours and, if necessary, relay messages to other nodes that cannot be reached directly. This creates a self-organising and self-healing network.
- Bluetooth Mesh: Extends Bluetooth’s range by letting devices act as repeaters. Ideal for short messages, but with limited bandwidth.
- Wi-Fi Mesh (with dedicated apps): It is not a native smartphone feature, but some apps (such as Bridgefy or the now less active FireChat) have tried to implement it using Wi-Fi Direct or hotspots.
- Advantages: Resilience (if a node drops out, communication finds alternative paths), extended range (messages “hop” from one phone to another) and decentralisation (no single point of failure).
- Limitations: It can drain a lot of battery, scalability can be complex and it requires all participants to install specific apps.
What Should We Recommend for Emergencies?
For immediate peer-to-peer communication and the exchange of small to medium-sized files, Wi-Fi Direct is the most accessible and best-performing option on most smartphones.
For a wider and more resilient network (a true “emergency network”), the ideal solution would be an application that implements a mesh network using the phones’ Wi-Fi (or Bluetooth for very short messages).
A few additional considerations that are crucial in emergency situations:
- Battery: Power consumption is fundamental. Solutions that minimise radio use are to be preferred.
- Ease of use: Setup must be very simple and intuitive, given the stress of the situation.
- Standardisation: Protocols natively supported by operating systems are preferable, so as not to depend on specific apps.
In conclusion, while there is no “plug-and-play” magic wand for every disaster, the combination of native features such as Wi-Fi Direct and the potential of mesh communication apps (if installed in advance) is our best current approach to staying connected peer-to-peer when traditional infrastructure is no longer available.
I hope this deep dive has given you a clear overview of these fascinating wireless protocols! Have you ever used Wi-Fi Direct, or do you have experience with mesh communication apps? Let us know in the comments!
This article was previously published on francamente.tech.














