Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HEV - High Energy Ventilator
Manage
Activity
Members
Labels
Plan
Issues
5
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
HEV - High Energy Ventilator
Commits
d8496407
Commit
d8496407
authored
4 years ago
by
Karol Hennessy
Browse files
Options
Downloads
Patches
Plain Diff
minor changes, added sw packages
parent
2c5977f3
Branches
Branches containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ansible/playbooks/install_software.yml
+6
-0
6 additions, 0 deletions
ansible/playbooks/install_software.yml
ansible/playbooks/lists.yml
+2
-0
2 additions, 0 deletions
ansible/playbooks/lists.yml
raspberry-dataserver/hevserver.py
+9
-3
9 additions, 3 deletions
raspberry-dataserver/hevserver.py
with
17 additions
and
3 deletions
ansible/playbooks/install_software.yml
+
6
−
0
View file @
d8496407
...
...
@@ -32,6 +32,12 @@
name
:
"
{{
item
}}"
with_items
:
"
{{
pip_list
}}"
-
name
:
link fonts for hev-display
file
:
src
:
"
/usr/share/fonts/truetype/dejavu"
dest
:
"
/usr/local/qt5pi/lib/fonts"
state
:
link
#- name: install arduino suite
#command: ./arduino_suite.sh
...
...
This diff is collapsed.
Click to expand it.
ansible/playbooks/lists.yml
+
2
−
0
View file @
d8496407
...
...
@@ -6,6 +6,8 @@ rpi_swlist:
-
python3-serial
-
python3-flask
-
sqlite3
-
fonts-open-sans
-
libts0
pip_list
:
-
libscrc
...
...
This diff is collapsed.
Click to expand it.
raspberry-dataserver/hevserver.py
+
9
−
3
View file @
d8496407
...
...
@@ -184,9 +184,9 @@ class HEVServer(object):
LOCALHOST
=
"
127.0.0.1
"
b1
=
self
.
serve_broadcast
(
LOCALHOST
,
54320
)
# WebUI broadcast
r1
=
self
.
serve_request
(
LOCALHOST
,
54321
)
# joint request socket
#
b2 = self.serve_broadcast(LOCALHOST, 54322) # NativeUI broadcast
#
tasks = [b1, r1, b2]
tasks
=
[
b1
,
r1
]
b2
=
self
.
serve_broadcast
(
LOCALHOST
,
54322
)
# NativeUI broadcast
tasks
=
[
b1
,
r1
,
b2
]
#
tasks = [b1, r1]
await
asyncio
.
gather
(
*
tasks
,
return_exceptions
=
True
)
def
serve_all
(
self
)
->
None
:
...
...
@@ -206,8 +206,14 @@ if __name__ == "__main__":
else
:
# get arduino serial port
for
port
in
list_ports
.
comports
():
vidpid
=
""
if
port
.
pid
!=
None
and
port
.
vid
!=
None
:
vidpid
=
f
"
{
port
.
vid
:
04
x
}
:
{
port
.
pid
:
04
x
}
"
.
upper
()
logging
.
debug
(
vidpid
)
if
port
.
manufacturer
and
"
ARDUINO
"
in
port
.
manufacturer
.
upper
():
port_device
=
port
.
device
elif
vidpid
==
"
10C4:EA60
"
:
port_device
=
port
.
device
# initialise low level interface
try
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment