Difference between revisions of "Template:Allwinner-APmode"

From FriendlyARM WiKi
Jump to: navigation, search
(配置WiFi无线热点)
(updated by API)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<!--待翻译为英文-->
+
===Setup Wi-Fi Hotspot===
===Setup WiFi Hotspot===
+
Run the following command to enter AP mode:<br />
If your board has onboard AP6xxx WiFi IC you can enter AP mode by running the following commands:<br />
+
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
sudo turn-wifi-into-apmode yes
+
$ su root
 +
$ turn-wifi-into-apmode yes
 
</syntaxhighlight>
 
</syntaxhighlight>
You will be prompted to enter your WiFi hotspot's name and password. Follow the prompt to proceed.<br />
+
You will be prompted to type your WiFi hotspot's name and password and then proceed with default prompts.<br />
After it succeeds you will be able to find this hotspot and login to your board at 192.168.8.1:
+
After this is done you will be able to find this hotspot in a neadby cell phone or PC. You can login to this board at 192.168.8.1:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
ssh root@192.168.8.1
+
$ ssh root@192.168.8.1
 
</syntaxhighlight>
 
</syntaxhighlight>
The password is fa <br />
+
When asked to type a password you can type "fa".<br />
 
<br />
 
<br />
To speed up SSH login you can turn off WiFi by running the following command:
+
To speed up your ssh login you can turn off your wifi by running the following command:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
sudo iwconfig wlan0 power off
+
$ iwconfig wlan0 power off
 
</syntaxhighlight>
 
</syntaxhighlight>
 
To switch back to Station mode run the following command:<br />
 
To switch back to Station mode run the following command:<br />
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
sudo turn-wifi-into-apmode no
+
$ turn-wifi-into-apmode no
 
</syntaxhighlight>
 
</syntaxhighlight>

Latest revision as of 08:20, 9 October 2018

Setup Wi-Fi Hotspot

Run the following command to enter AP mode:

$ su root
$ turn-wifi-into-apmode yes

You will be prompted to type your WiFi hotspot's name and password and then proceed with default prompts.
After this is done you will be able to find this hotspot in a neadby cell phone or PC. You can login to this board at 192.168.8.1:

$ ssh root@192.168.8.1

When asked to type a password you can type "fa".

To speed up your ssh login you can turn off your wifi by running the following command:

$ iwconfig wlan0 power off

To switch back to Station mode run the following command:

$ turn-wifi-into-apmode no