Hallo miteinander,
ich möchte AT-Command AT^U2DIAG=0 an Surfstick (Huawei) senden, um CD-Rom auf dem Stick zu deaktivieren.
Auf meinen Raspi 3+ läuft Raspbian Stretch.
Wie mache ich es?
Hallo miteinander,
ich möchte AT-Command AT^U2DIAG=0 an Surfstick (Huawei) senden, um CD-Rom auf dem Stick zu deaktivieren.
Auf meinen Raspi 3+ läuft Raspbian Stretch.
Wie mache ich es?
pi@raspberrypi:~ $ systemctl status hostapd
● hostapd.service - Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator
Loaded: loaded (/lib/systemd/system/hostapd.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2019-05-06 21:27:47 CEST; 1min 14s ago
Process: 2159 ExecStart=/usr/sbin/hostapd -P /run/hostapd.pid -B $DAEMON_OPTS ${DAEMON_CONF} (code=exited, status=0/SUCCESS)
Main PID: 2160 (hostapd)
CGroup: /system.slice/hostapd.service
└─2160 /usr/sbin/hostapd -P /run/hostapd.pid -B /etc/hostapd/hostapd.conf
Mai 06 21:27:47 raspberrypi hostapd[2159]: Configuration file: /etc/hostapd/hostapd.conf
Mai 06 21:27:47 raspberrypi hostapd[2159]: Failed to create interface mon.wlan0: -95 (Operation not supported)
Mai 06 21:27:47 raspberrypi hostapd[2159]: wlan0: Could not connect to kernel driver
Mai 06 21:27:47 raspberrypi hostapd[2159]: Using interface wlan0 with hwaddr b8:27:eb:81:7c:39 and ssid "delta021"
Mai 06 21:27:47 raspberrypi hostapd[2159]: wlan0: interface state UNINITIALIZED->ENABLED
Mai 06 21:27:47 raspberrypi hostapd[2159]: wlan0: AP-ENABLED
Mai 06 21:27:47 raspberrypi systemd[1]: Started Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator.
Mai 06 21:27:54 raspberrypi hostapd[2160]: wlan0: STA 00:08:10:73:5f:d4 IEEE 802.11: associated
Mai 06 21:27:54 raspberrypi hostapd[2160]: wlan0: STA 00:08:10:73:5f:d4 RADIUS: starting accounting session B5158DBE269AB065
Mai 06 21:27:54 raspberrypi hostapd[2160]: wlan0: STA 00:08:10:73:5f:d4 WPA: pairwise key handshake completed (RSN)
pi@raspberrypi:~ $
Alles anzeigen
anscheinend hat sich nichts geändert.
Die "/etc/hostapd/hostapd.conf"-Datei aktuell:
pi@raspberrypi:~ $ systemctl status hostapd.service
● hostapd.service - Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authent
Loaded: loaded (/lib/systemd/system/hostapd.service; enabled; vendor preset:
Active: active (running) since Sun 2019-05-05 14:58:22 CEST; 16min ago
Process: 1020 ExecStart=/usr/sbin/hostapd -P /run/hostapd.pid -B $DAEMON_OPTS
Main PID: 1025 (hostapd)
CGroup: /system.slice/hostapd.service
└─1025 /usr/sbin/hostapd -P /run/hostapd.pid -B /etc/hostapd/hostapd.
Mai 05 14:58:21 raspberrypi hostapd[1020]: Failed to create interface mon.wlan0:
Mai 05 14:58:21 raspberrypi hostapd[1020]: wlan0: Could not connect to kernel dr
Mai 05 14:58:21 raspberrypi hostapd[1020]: Using interface wlan0 with hwaddr b8:
Mai 05 14:58:22 raspberrypi hostapd[1020]: wlan0: interface state UNINITIALIZED-
Mai 05 14:58:22 raspberrypi hostapd[1020]: wlan0: AP-ENABLED
Mai 05 14:58:22 raspberrypi systemd[1]: Started Advanced IEEE 802.11 AP and IEEE
Mai 05 15:00:29 raspberrypi hostapd[1025]: wlan0: STA 00:19:d2:c1:67:e0 IEEE 802
Mai 05 15:00:29 raspberrypi hostapd[1025]: wlan0: STA 00:19:d2:c1:67:e0 RADIUS:
Mai 05 15:00:29 raspberrypi hostapd[1025]: wlan0: STA 00:19:d2:c1:67:e0 WPA: pai
Mai 05 15:09:03 raspberrypi hostapd[1025]: wlan0: STA 00:19:d2:c1:67:e0 WPA: gro
lines 1-18/18 (END)
Alles anzeigen
Hurra! es funktioniert
Herzlichen Dank.
kann ich jetzt runtefahren und neu starten?
pi@raspberrypi:~ $ systemctl is-enabled hostapd.service
enabled
pi@raspberrypi:~ $ systemctl is-active hostapd.service
active
pi@raspberrypi:~ $ systemctl cat hostapd.service
# /lib/systemd/system/hostapd.service
[Unit]
Description=Advanced IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator
After=network.target
[Service]
Type=forking
PIDFile=/run/hostapd.pid
Restart=on-failure
RestartSec=2
EnvironmentFile=/etc/default/hostapd
ExecStart=/usr/sbin/hostapd -P /run/hostapd.pid -B $DAEMON_OPTS ${DAEMON_CONF}
[Install]
WantedBy=multi-user.target
pi@raspberrypi:~ $ ps aux | grep -i [h]ostapd
root 2606 0.0 0.1 7044 1876 ? Ss 14:46 0:00 /usr/sbin/hostapd -P /run/hostapd.pid -B /etc/hostapd/hostapd.conf
Alles anzeigen
pi@raspberrypi:~ $ sudo systemctl unmask hostapd.service
Removed /etc/systemd/system/hostapd.service.
pi@raspberrypi:~ $ sudo systemctl enable hostapd.service
Synchronizing state of hostapd.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable hostapd
pi@raspberrypi:~ $ sudo systemctl start hostapd.service
pi@raspberrypi:~ $ sudo systemctl enable hostapd.service
Synchronizing state of hostapd.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable hostapd
Failed to enable unit: Unit file /etc/systemd/system/hostapd.service is masked.
pi@raspberrypi:~ $ sudo systemctl start hostapd.service
Failed to start hostapd.service: Unit hostapd.service is masked.
ich habe Raspbian Stretch. Die Version vom 08.04.2019
es gibt eine "/etc/default/hostapd"-Datei.
Aktuelle Inhalt:
DAEMON_CONF="/etc/hostapd/hostapd.conf"
ich weiss leider nicht wie der Start konfiguriert werden kann.
Bitte um weitere Hinweise. Danke.
Hallo zusammen,
ich habe mein Raspi 3+ Accesspoint eingerichtet, aber es läuft nicht wie ich erwarte.
In /etc/hostapd/hostapd.conf habe ich eingetragen:
interface=wlan0
ssid=meinSSID
hw_mode=g
channel=6
ieee80211n=1
wmm_enabled=1
macaddr_acl=0
auth_algs=1
wpa=2
wpa_passphrase=meinPASSWORD
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
Alles anzeigen
Aber anscheinend wurden die o.g. Angaben nicht berücksichtigt.
Denn Abfrage "iw dev" ergibt folgendes :
pi@raspberrypi:~ $ iw dev
phy#0
Interface wlan0
ifindex 3
wdev 0x1
addr b8:27:eb:81:7c:39
type managed
channel 34 (5170 MHz), width: 20 MHz, center1: 5170 MHz
txpower 31.00 dBm
Hat jemand eine Idee, wo es liegen könnte. Danke im voraus.
Ich hab jetzt noch mal alles platt gemacht und nach der Anleitung neu auf gesetzt.
predictable network interface sind enabled. Allerdings ist die intere Wifi schnittstelle dagegen irgenwie resistent, was dazu führt, dass diese mal wlan0 und mal wlan1 heißt....gibts dafür einen Trick?
Der Accesspoint von Wifi auf LAN funktioniert erstmal sehr stabil (bis auf die wlan0/wlan1 Sache).
Jetzt kommt das Verbinden mit per Wifi auf die Fritzbox dran.
ich habe mein Raspi 3+ auch so gesetzt, jedoch weis ich nicht genau wie "predictable network interface sind enabled" gemacht wird.
Ich habe in cmdline.txt ergänzt
net.ifnames=0
Leider funktioniert AP nocht nicht. Was müsste ich noch tun?
Danke im voraus.