Wi-Fi Direct cmdline

This commit is contained in:
Robin Davies
2022-04-22 02:20:44 -04:00
parent 88178d01d5
commit 7f058b6ed9
47 changed files with 2106 additions and 2109 deletions
+24
View File
@@ -0,0 +1,24 @@
/*
* MIT License
*
* Copyright (c) 2022 Robin E. R. Davies
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
* of the Software, and to permit persons to whom the Software is furnished to do
* so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
+11
View File
@@ -0,0 +1,11 @@
server=8.8.8.8
server=8.8.4.4
interface=p2p-wlan0-0
dhcp-range=p2p-wlan0,173.23.0.3,172.23.0.127,1h
domain=local
address=/pipedal.local/172.23.0.2
except-interface=eth0
except-interface=wlan0
+24
View File
@@ -0,0 +1,24 @@
[Unit]
Description=Jack Audio Daemon
After=sound.target
After=local-fs.target
After=dbus.socket
[Service]
LimitMEMLOCK=infinity
LimitRTTIME=infinity
LimitRTPRIO=95
ExecStartPre=/bin/sleep 3
ExecStart=/etc/jackdrc
User=jack
Group=audio
Restart=always
RestartSec=30
Environment=JACK_PROMISCUOUS_SERVER=audio
Environment=JACK_NO_AUDIO_RESERVATION=1
[Install]
WantedBy=multi-user.target
+42
View File
@@ -0,0 +1,42 @@
# WiFi regdomain 2-letter country code.
# see: http://www.davros.org/misc/iso3166.txt
country_code=${COUNTRY_CODE}
# keypad/label pin
p2p_pin=${PIN}
# Name that appears when you connect.
p2p_device_name=${DEVICE_NAME}
# DIRECT-XX-postfix (appears on Android p2p Group names)
p2p_ssid_postfix=${DEVICE_NAME}
# Wifi frequency (kHz).
# Should almost always be 2412 (ch1),2437 (ch6), or 2462 (ch11).
wifiGroupFrequency=${WIFI_GROUP_FREQUENCY}
# P2P Device info
p2p_model_name=PiPedal
p2p_model_number=1
p2p_manufacturer="The PiPedal Project"
p2p_serial_number=1
p2p_device_type=1-0050F204-1
# Wi-Fi configuration
wlanInterface=wlan0
p2pInterface=p2p-dev-wlan0
p2p_go_ht40=0
p2p_go_vht=0
p2p_go_he=0
# Ipv4 address for the P2P group interface
p2p_ip_address=172.24.0.2/16
# File containing the globally-unique id that identifies the service on this machine
# in this format: 0a6045b0-1753-4104-b3e4-b9713b9cc356
service_guid_file=${INSTANCE_ID_FILE}
# GUID identifying the PiPedal service
# (if service_guid_file is not provided.)
service_guid=
@@ -0,0 +1,13 @@
[Unit]
Description=PiPedal P2P Session Manager
After=network.target
[Service]
ExecStart=${COMMAND} --systemd --log-level debug
Type=notify
WorkingDirectory=/var/pipedal
TimeOutStopSec=5
[Install]
WantedBy=multi-user.target
@@ -0,0 +1,13 @@
[Unit]
Description=${DESCRIPTION}
After=network.target
[Service]
ExecStart=${COMMAND}
Restart=always
RestartSec=60
WorkingDirectory=/var/pipedal
[Install]
WantedBy=multi-user.target
+28
View File
@@ -0,0 +1,28 @@
[Unit]
Description=${DESCRIPTION}
Before=jack.service
After=network.target
After=sound.target
After=local-fs.target
[Service]
Type=notify
LimitMEMLOCK=infinity
LimitRTPRIO=95
ExecStart=${COMMAND}
User=pipedal_d
Group=pipedal_d
Restart=always
TimeoutStartSec=60
RestartSec=25
TimeoutStopSec=10
WorkingDirectory=/var/pipedal
Environment=JACK_PROMISCUOUS_SERVER=audio
Environment=JACK_NO_AUDIO_RESERVATION=1
[Install]
WantedBy=multi-user.target