\hypertarget{md_README_autotoc_md1}{}\doxysection{Git repository link}\label{md_README_autotoc_md1}
\href{https://git.cse.iitb.ac.in/rajneeshkatkam/PARA-Site_WirelessX}{\texttt{ https\+://git.\+cse.\+iitb.\+ac.\+in/rajneeshkatkam/\+PARA-\/\+Site\+\_\+\+WirelessX}}\hypertarget{md_README_autotoc_md2}{}\doxysection{Installation Setup}\label{md_README_autotoc_md2}
\begin{DoxyVerb}1. Make sure that you are in the Wireless-X source directory

2. Grant the permission to execute install.sh installation script using the following command:
        $ sudo chmod a+x install.sh

3. Execute the install.sh script to install the necessary dependencies using the following command:
        $ sudo ./install.sh
\end{DoxyVerb}
 \hypertarget{md_README_autotoc_md3}{}\doxysection{Running the application (\+Strictly follow the below order to run it successfully)\+:}\label{md_README_autotoc_md3}
\begin{DoxyVerb}1. Run the Wireless-X server using the following command:
        $ python3 Wireless-X_server.py

2. Enter your linux system password (the same password you enter while executing a command as "sudo"). This is required in order to set up the virtual webcam device.               

3. Application Installation and Setup on Android Smartphone:

    a. Install the Wireless-X apk on Android smartphone and give required permissions.

    b. Now, enter the IP address displayed in the terminal (on which the server is running) into the android application.

    c. Click on Test Button to test the connection of smartphone with the server. If failed, Recheck if you have entered correct IP address of Laptop/ Desktop (on which the server is running).

    d. After successfull connection, you would be able to control mouse, keyboard of laptop and use smartphones camera as webcam for the laptop/Desktop.

    e. Now you would be able to use this virtual webcam device on chrome for video conferincing. (Tested on chrome for MS Teams and Google Meet).

    f. (Optional) Inorder to test if camera frames are received to the Laptop/ Desktop, use the below command while (Note: camera option should be turned on in the 
        Wireless-X apk on Android):
            $ ffplay /dev/video20 
\end{DoxyVerb}
\hypertarget{md_README_autotoc_md4}{}\doxysubsubsection{$\ast$\+Extra (\+Inorder to remove v42loopback devices, use below command)\+:}\label{md_README_autotoc_md4}
\begin{DoxyVerb}        $ sudo modprobe -r v4l2loopback
\end{DoxyVerb}
\hypertarget{md_README_autotoc_md5}{}\doxysection{Steps for Debugging (\+If python code doesn\textquotesingle{}t run after above commands)\+:}\label{md_README_autotoc_md5}
\begin{DoxyVerb}1. Check if your virtual device is created

    $ ls /dev | grep -P '^video\d+$'
    OR
    $ v4l2-ctl --list-devices    # TO List the virtual devices in detail

        Output should look somewhat like this:

            Wireless-X Camera (platform:v4l2loopback-000):
                /dev/video20

            Webcam C170: Webcam C170 (usb-0000:00:1a.0-1.2):
                /dev/video0
                /dev/video1


2. Inorder to test if virtual device is working:
    Copy the sample code from  https://github.com/jremmons/pyfakewebcam page and save it as python file and run it.

        $ python3 demo.py

    If everything worked correctly, no error should be displayed and terminal should be blank.
    Now, Open another terminal and test if virtual device output is being display by entering below command:

        $ ffplay /dev/video20

    Note: ffplay
\end{DoxyVerb}
\hypertarget{md_README_autotoc_md6}{}\doxysection{Working (\+TODO)}\label{md_README_autotoc_md6}
\hypertarget{md_README_autotoc_md7}{}\doxysection{References}\label{md_README_autotoc_md7}
Open\+CV Reference\+: \begin{DoxyVerb}https://cmsdk.com/java/android-opencv-tcp-video-streaming.html
\end{DoxyVerb}


v4l2loopback References\+: \begin{DoxyVerb}https://github.com/jremmons/pyfakewebcam
https://github.com/jremmons/pyfakewebcam/issues/5
https://github.com/umlaeute/v4l2loopback#DKMS
\end{DoxyVerb}


Android Reference\+: \begin{DoxyVerb}https://stackoverflow.com/questions/23024831/android-shared-preferences-for-creating-one-time-activity-example
\end{DoxyVerb}
 