Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
PARA-Site_WirelessX
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Rajneesh Katkam
PARA-Site_WirelessX
Commits
cf7eaebe
Commit
cf7eaebe
authored
Nov 17, 2020
by
rajneesh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Python printout changes and Android app added in the root folder
parent
f2366e60
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
24 deletions
+10
-24
Wireless-X.apk
Wireless-X.apk
+0
-0
WirelessX-Android-Client/app/release/output-metadata.json
WirelessX-Android-Client/app/release/output-metadata.json
+0
-18
WirelessX-Python-Server/Wireless-X_server.py
WirelessX-Python-Server/Wireless-X_server.py
+10
-6
No files found.
Wireless
X-Android-Client/app/release/app-release
.apk
→
Wireless
-X
.apk
100644 → 100755
View file @
cf7eaebe
No preview for this file type
WirelessX-Android-Client/app/release/output-metadata.json
deleted
100644 → 0
View file @
f2366e60
{
"version"
:
2
,
"artifactType"
:
{
"type"
:
"APK"
,
"kind"
:
"Directory"
},
"applicationId"
:
"com.example.wireless_x"
,
"variantName"
:
"processReleaseResources"
,
"elements"
:
[
{
"type"
:
"SINGLE"
,
"filters"
:
[],
"versionCode"
:
1
,
"versionName"
:
"1.0"
,
"outputFile"
:
"app-release.apk"
}
]
}
\ No newline at end of file
WirelessX-Python-Server/Wireless-X_server.py
View file @
cf7eaebe
...
...
@@ -22,17 +22,14 @@ from pynput.mouse import Button, Controller as MouseController
## Creates a virtual camera on the laptop/PC
virtualCamera
=
subprocess
.
run
([
"sudo"
,
"modprobe"
,
"v4l2loopback"
,
"devices=1"
,
"video_nr=20"
,
"card_label='Wireless-X Camera'"
,
"exclusive_caps=1"
])
print
(
"Virtual camera status:"
,
virtualCamera
.
returncode
)
print
(
'----------Wireless-X Server----------'
)
print
(
'Press Ctrl+C to terminate the server'
)
print
(
'
\n\n
----------Wireless-X Server----------
\n\n
'
)
## @var width
# Stores the width of the screen
## @var height
# Stores the height of the screen
width
,
height
=
autopy
.
screen
.
size
()
print
(
"width: "
+
str
(
width
)
+
" height: "
+
str
(
height
))
## @var curr_x
# Stores the x-coordinate of the current mouse location
...
...
@@ -94,14 +91,21 @@ def bind_sockets():
cam_port
=
9998
cameraSocket
.
bind
((
"0.0.0.0"
,
cam_port
))
print
(
"Camera stream port: "
+
str
(
cam_port
))
#
print("Camera stream port: "+ str(cam_port))
cameraSocket
.
listen
(
10
)
key_port
=
6666
s
.
bind
((
"0.0.0.0"
,
key_port
))
print
(
"Keyboard and Mouse Listening port: "
+
str
(
key_port
))
#
print("Keyboard and Mouse Listening port: "+ str(key_port))
s
.
listen
(
10
)
print
(
"
\n
Wireless Server Up and Running ....
\n\n
"
)
print
(
"Enter Below IP address in your android app"
)
subprocess
.
run
([
"hostname"
,
"-I"
])
print
(
'
\n
Press Ctrl+C to terminate the server'
)
except
socket
.
error
as
msg
:
print
(
"Socket Binding error: "
+
str
(
msg
))
time
.
sleep
(
5
)
# Time to sleep before reattempting the bind connection
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment