## 1 Introduction
The use of smartphones in the management of such a problem can substantially reduce  
Figure 1: LED lighting sources installed in road and pedestrian infrastructures, capable of providing communications through visible light and optical camera communications. the risk of road accidents and can combat the loss of human life caused by carelessness. Although the fifth generation (5G) has been introduced, there is still no stability in terms of data transfer rate, and it is not possible to take into account the reference speeds that have transfer rates above 10 Gbps [16; 17]. Given the fact that there is a problem with the degree of massive connectivity of users through the Internet-of-Things (IoT) paradigm, we cannot have extremely viable expectations for RF technologies, and therefore we need an alternative. Existing RF resources do not have the necessary power and are not sufficient to support massive accessibility among consumers; in addition to this issue is the issue of bandwidth-limiting interfaces [18; 19]. We must take into account that the optical spectrum has a problem, that of bandwidth, as it offers a wide range of frequencies (0.2-3000 THz) [20]. Therefore, wireless optical technologies (OWC), such as visible light communication (VLC), Li-Fi, optical camera communication (OCC) and top optical communication in an open environment, can make a significant contribution [21; 22]. The existence of backhaul solutions that offer the possibility to optimize certain limitations, small cells and backhauling becomes a solution that offers a greater outsourcing capacity for 5G. Their usefulness is observed in implementation, flexibility and interference management but also delay management or overload. An advantage for OWC is that it supports much higher data transfer rates and communication distances that range from limited areas to extremely large areas depending on the spectrum available [23]. It should be noted that OCC does not support the densest link connections, which is caused by the hardware limitations of the cameras, which require the use of applications with low transfer rates, indoor simulations, low mobility and small scanning areas [24]. We must not neglect the fact that light-emitting diodes (LEDs), in addition to being used as emitters for OCC technology, can also be used for lighting (see Figure 2). Both the cameras and the front area where the proximity sensors of light are found are embedded in smartphone devices. They are ideal for creating a wireless communication platform, saving installation costs, power consumption and hardware for receiving information. Such a solution could also facilitate the exchange of information between devices within the platform without any problems or interruptions of connectivity or limiting the number of users [25]. Perhaps the main problem is caused by the existence of several types of operating systems for smartphones (Android, Windows, iOS, BlackBerry OS). Thus, the same application that would facilitate direct communication between users could not be installed on all devices, requiring the development of customized mobile applications. In this case, the largest number of users of an operating system use Android, and thus they are part of the perspective of developing a solution. We believe that OCC is becoming a promising technology in both indoor and outdoor applications, facilitating people monitoring,  
Figure 2: (**a**) The main scheme of V2I communications (vehicle-to-infrastructure) and (**b**) represent visible light communications based on optical camera communication and environmental sensors. intelligent lighting, artificial intelligence, augmented reality, image processing, detection and location [26; 27; 28; 29]. The article comes with a solution dedicated to communication between infrastructure, vehicles and pedestrians by using visible light, OCC and light ambient sensors to prevent the loss of human life caused by carelessness. The article highlights the importance of mixed communications and the use of smartphones in managing extreme situations.