Difference between revisions of "2 WiFI wireless connection"

From Banana Pi Wiki
Jump to: navigation, search
(connect WiFI by hand)
(connect WiFI by mobile)
Line 20: Line 20:
 
*Of course, your WIFI hotspot is definitely not this one, so now you can press and hold A key and press the reset key to start to enter the mode of distribution network, connect the board to other WIFI, help the board connect to the specified WIFI, enter the mode of distribution network of SmartConfig, LED (18) will light up, LED (18) is the LED light in the previous chapter.
 
*Of course, your WIFI hotspot is definitely not this one, so now you can press and hold A key and press the reset key to start to enter the mode of distribution network, connect the board to other WIFI, help the board connect to the specified WIFI, enter the mode of distribution network of SmartConfig, LED (18) will light up, LED (18) is the LED light in the previous chapter.
 
::[[File:Start_config.png]]
 
::[[File:Start_config.png]]
 +
 +
*LED lights will long bright when reset BPI:bit, If necessary, you can also view the corresponding output at this time of the serial port information, note that in this mode will not be able to use the Mpfshell open.This is because the board can no longer respond to the serial REPL operation, so you need to use the Mpfshell again when the network is complete
 +
 +
::[[File:Smartconfig.png]]
 +
 +
*If something goes wrong during the tool run, use another serial port tool to view the output, such as the windows-comdbg.zip provided under [https://github.com/BPI-STEAM/BPI-BIT-MicroPython/releases Release]
 +
::[[File:View_com.png]]
 +
 +
*Once you're in distribution mode, you'll need to use an android phone to install the distribution software provided by [https://github.com/BPI-STEAM/BPI-BIT-MicroPython/releases Release]
 +
::[[File:View_apk.png]]
 +
 +
*Take android-smartconfig.apk as an example, connect the mobile phone to WIFI first, then connect the board to the same WIFI, and then input the password of the WIFI to the software, which will tell the board how to connect to the WIFI.
 +
 +
::[[File:Open_apk.png]]
 +
 +
*Click the unique button to start the distribution network, you can see the corresponding information output of REPL, and the LED light of the board will also change accordingly
  
 
==connect WiFI by hand==
 
==connect WiFI by hand==
  
 
=BPI:bit WiFI connect with REPL=
 
=BPI:bit WiFI connect with REPL=

Revision as of 01:34, 21 February 2019

WiFI wireless connection

BPI:bit connect WiFI AP

  • After the firmware is powered on, it will try to connect to the Internet by default after the LED light in the panel has been rolled over. You may notice that if the tool or artificial Ctrl + C stops at this time, there will be no connection to the Internet. The following code is required
mport wifi # booy.py default enable
wifi.try_connect()
  • As shown below, import wifi is invoked by default in boot.py, so you can also call wifi.try_connect() directly from REPL.
Try connect.png
  • In the default networking mode, if no network has ever been configured, the board will initially automatically connect to the WIFI hotspot with WIFI name:webduino.io password:webduino.
  • If not near the hot spot, will output the no AP found, and my surroundings are prepared ahead of the hot spots, so to get an IP address 192.168.10.185 (pictured), otherwise it will be repeated output connection problems (this does not affect your input and output), if you don't want it to continue to connect to the Internet, you can manually enter wifi.close() to stop the wifi connection.
Got ip.png

connect WiFI by mobile

  • Of course, your WIFI hotspot is definitely not this one, so now you can press and hold A key and press the reset key to start to enter the mode of distribution network, connect the board to other WIFI, help the board connect to the specified WIFI, enter the mode of distribution network of SmartConfig, LED (18) will light up, LED (18) is the LED light in the previous chapter.
Start config.png
  • LED lights will long bright when reset BPI:bit, If necessary, you can also view the corresponding output at this time of the serial port information, note that in this mode will not be able to use the Mpfshell open.This is because the board can no longer respond to the serial REPL operation, so you need to use the Mpfshell again when the network is complete
Smartconfig.png
  • If something goes wrong during the tool run, use another serial port tool to view the output, such as the windows-comdbg.zip provided under Release
View com.png
  • Once you're in distribution mode, you'll need to use an android phone to install the distribution software provided by Release
View apk.png
  • Take android-smartconfig.apk as an example, connect the mobile phone to WIFI first, then connect the board to the same WIFI, and then input the password of the WIFI to the software, which will tell the board how to connect to the WIFI.
Open apk.png
  • Click the unique button to start the distribution network, you can see the corresponding information output of REPL, and the LED light of the board will also change accordingly

connect WiFI by hand

BPI:bit WiFI connect with REPL