Wi-Fi Old/en: различия между версиями

м
FuzzyBot переименовал страницу Wi-Fi/en в Wi-Fi Old/en без оставления перенаправления: Часть переводимой страницы Wi-Fi.
м (FuzzyBot переименовал страницу Wi-Fi/en в Wi-Fi Old/en без оставления перенаправления: Часть переводимой страницы Wi-Fi.)
 
(не показано 14 промежуточных версий 2 участников)
Строка 9: Строка 9:


# [[File:connectors-sma-rpsma.jpg|thumb|right|300 px|Wi-Fi (RP-SMA) and GSM (SMA) terminals comparasion]] Connect antenna to the Wi-Fi connector.
# [[File:connectors-sma-rpsma.jpg|thumb|right|300 px|Wi-Fi (RP-SMA) and GSM (SMA) terminals comparasion]] Connect antenna to the Wi-Fi connector.
#: The Wiren Board Wi-Fi is available at a distance of no more than one meter without the antenna.To get a standart Wi-Fi radius of operation, you need to connect antenna to the appropriate connector of the controller. If the controller is in the closet(especially in a metal one) or a separate room, it is better to use a remote antenna.
#: The Wiren Board Wi-Fi is available at a distance of no more than one meter without the antenna.To get a standart Wi-Fi radius of operation, you need to connect antenna to the appropriate connector of the controller. If the controller is in the closet (especially in a metal one) or a separate room, it is better to use a remote antenna.
#: The antenna has standart Wi-Fi connector: RP-SMA (differs from SMA-connector for GSM antennas)[https://en.wikipedia.org/wiki/SMA_connector#Reverse_polarity_SMA RP-SMA]  
#: The antenna has standart Wi-Fi connector: RP-SMA (differs from SMA-connector for GSM antennas)[https://en.wikipedia.org/wiki/SMA_connector#Reverse_polarity_SMA RP-SMA]  
# Wiren Board controller's WI-Fi works in hotspot mode by default:
# Wiren Board controller's WI-Fi works in hotspot mode by default:
Строка 16: Строка 16:
#* adress of the controller in the created network: ''192.168.42.1''
#* adress of the controller in the created network: ''192.168.42.1''


== Wi-Fi configuration in Linux ==
== Setting up Wi-Fi in Linux ==


The configuration is usually proceed in a standart way for Linux Debian: via file <code>/etc/network/interfaces</code>. The following are brief instructions for common tasks on Linux Debian, there is a detailed documentation on the Linux site. [https://wiki.debian.org/ru/NetworkConfiguration detailed documentation].
The setting up is usually proceed in a standart way for Linux Debian: via file <code>/etc/network/interfaces</code>. The following are brief instructions for common tasks on Linux Debian, there is a detailed documentation on the Linux site. [https://wiki.debian.org/ru/NetworkConfiguration detailed documentation].


=== Setting in a hotspot mode ===
=== Setting up in a hotspot mode ===


Access point mode is enabled by default. Operation in the access point mode is provided by the '''[https://wireless.wiki.kernel.org/en/users/documentation/hostapd hostapd]''' daemon.
Access point mode is enabled by default. Operation in the access point mode is provided by the '''[https://wireless.wiki.kernel.org/en/users/documentation/hostapd hostapd]''' daemon.
Строка 38: Строка 38:
rsn_pairwise=TKIP CCMP  
rsn_pairwise=TKIP CCMP  
</syntaxhighlight>
</syntaxhighlight>
# Edit<code>/etc/network/interfaces</code>:
# Edit <code>/etc/network/interfaces</code>:
#* uncomment and edit  the lines(or add them, if there were none) related to the hotspot settings: <syntaxhighlight lang="bash">
#* uncomment and edit  the lines(or add them, if there were none) related to the hotspot settings: <syntaxhighlight lang="bash">
iface wlan0 inet static
iface wlan0 inet static
Строка 50: Строка 50:
#                wpa-psk  {password}
#                wpa-psk  {password}
</syntaxhighlight>
</syntaxhighlight>
# Execute the command
# Run the command
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
/etc/init.d/hostapd restart
/etc/init.d/hostapd restart
Строка 56: Строка 56:




=== Setup in client mode ===
=== Setting up in client mode ===


# Disable hotspot mode.
# Disable hotspot mode.
#: To do this, in the  <code>/etc/default/hostapd</code> file, comment out the line (that is, add the '''#''' sign to the beginning of the line) <syntaxhighlight lang="bash">#DAEMON_CONF="/etc/hostapd.conf"</syntaxhighlight>
#: To do this, in the  <code>/etc/default/hostapd</code> file, comment out the line (e.g., add the '''#''' sign at the beginning of the line) <syntaxhighlight lang="bash">#DAEMON_CONF="/etc/hostapd.conf"</syntaxhighlight>
# Edit <code>/etc/network/interfaces</code>:
# Edit <code>/etc/network/interfaces</code>:
#* comment out the lines related to the setting in access point mode: <syntaxhighlight lang="bash">
#* comment out the lines related to the setting in access point mode: <syntaxhighlight lang="bash">
Строка 80: Строка 80:
=== Setting up in hotspot and client mode simultaneously ===
=== Setting up in hotspot and client mode simultaneously ===


The mode of simultaneous operation of the Wi-Fi module in both the hotspot mode and the client mode is called ''Concurrent Mode'' or ''STA+SoftAP'',and is not supported by all Wi-Fi modules. It also does not work on all versions of the Wiren Board controllers. We've found out that it works out of the box on Wiren Board controllers with Realtek 8723BU chip and Linux kernel 4.1.15. To check that, run the following commands:  
The mode of simultaneous operation of the Wi-Fi module in both the hotspot mode and the client mode is called ''Concurrent Mode'' or ''STA+SoftAP'', and is not supported by all Wi-Fi modules. It also does not work on all versions of the Wiren Board controllers. We've found out that it works out of the box on Wiren Board controllers with Realtek 8723BU chip and Linux kernel 4.1.15. To check that, run the following commands:  
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
uname -a
uname -a
Строка 90: Строка 90:


If conditions are met:
If conditions are met:
# Execute the command
# Run command
#:<syntaxhighlight lang="bash">
#:<syntaxhighlight lang="bash">
iwconfig
iwconfig
Строка 188: Строка 188:
fi
fi
</syntaxhighlight>
</syntaxhighlight>
# Make the file executable by running the command <syntaxhighlight lang="bash">
# Make file executable by running the command <syntaxhighlight lang="bash">
chmod +x /root/wifi_autoconnect.sh
chmod +x /root/wifi_autoconnect.sh
</syntaxhighlight>
</syntaxhighlight>
Строка 203: Строка 203:
== Limits ==
== Limits ==


#Wi-Fi in Wiren Board in hotspot mode is relatively slow. The speed is enough to work with the web interface, but do not use the Wiren Board as a replacement for a standart router.
#Wi-Fi in Wiren Board controllers in hotspot mode is relatively slow. The speed is enough to work with the web interface, but do not use the Wiren Board as a replacement for a standart router.
# In very rare cases, the Wi-Fi adapter on the Wiren Board may not be compatible with some other Wi-Fi devices. This is a common problem of Wi-Fi implementations on chipsets from different manufacturers. If you encounter unexplained problems, we recommend changing the encryption settings, channel width, etc.
# In very rare cases, the Wi-Fi adapter on the Wiren Board controllers may not be compatible with some other Wi-Fi devices. This is a common problem of Wi-Fi implementations on chipsets from different manufacturers. If you encounter unexplained problems, we recommend to change the encryption settings, channel width, etc.
wb_editors
14 355

правок