Difference between revisions of "SIM8200EA-M2 5G HAT is equipped with Raspbian Pi to open hotspots"

From Waveshare Wiki
Jump to: navigation, search
Line 1: Line 1:
 
Many friends have asked me how to open hotspots through SIM8200, the following arrangements are for you:
 
Many friends have asked me how to open hotspots through SIM8200, the following arrangements are for you:
1. Configuration
+
==1. Configuration==
  
 
This configuration is only needed at the first time.
 
This configuration is only needed at the first time.
Line 22: Line 22:
  
  
2. Testing with AT command
+
==2. Testing with AT command==
 
  sudo apt-get install minicom sudo minicom -D /dev/ttyUSB2
 
  sudo apt-get install minicom sudo minicom -D /dev/ttyUSB2
 
[[file:SIM8200_RPI_1.png]]<br />
 
[[file:SIM8200_RPI_1.png]]<br />
  
3. 5G Networking
+
==3. 5G Networking==
 
  cd Goonline make sudo ./simcom-cm
 
  cd Goonline make sudo ./simcom-cm
 
After running codes, DNS information are shown as figure below: <br/>
 
After running codes, DNS information are shown as figure below: <br/>
Line 35: Line 35:
  
  
Do not close the above terminal window,open another terminal window to run the following commands
+
<font color="red">Do not close the above terminal window,open another terminal window to run the following commands.</font><br />
  
  
  
6. Enter the super administrator user
+
==4. Enter the super administrator user==
  
sudo -i
+
sudo -i
  
  
7. Install the library files
+
==5. Install the library files==
  
sudo apt-get install util-linux procps hostapd iproute2 iw haveged dnsmasq
+
sudo apt-get install util-linux procps hostapd iproute2 iw haveged dnsmasq
8. Install AP software
+
==6. Install AP software==
  
git clone git://github.com/oblique/create_ap
+
git clone git://github.com/oblique/create_ap
cd create_ap
+
cd create_ap
sudo make install
+
sudo make install
  
  
9. Create AP
+
==7. Create AP==
  
 
Create a Wi-Fi network with WPA + WPA2 password:
 
Create a Wi-Fi network with WPA + WPA2 password:
  
sudo create_ap --no-virt wlan0 eth0 PI 12345678
+
sudo create_ap --no-virt wlan0 eth0 PI 12345678
 
This command creates a wireless network named PI on the wlan0 channel, and the password is 12345678.
 
This command creates a wireless network named PI on the wlan0 channel, and the password is 12345678.
  
Line 64: Line 64:
  
  
 
+
==8. Connect your phone to WIFI==
10. Connect your phone to WIFI
 
  
 
Select Service Set Identifier Service Set Identifier: PI
 
Select Service Set Identifier Service Set Identifier: PI
Line 73: Line 72:
 
Mobile phone WIFI connected to SSID: PI <br/>
 
Mobile phone WIFI connected to SSID: PI <br/>
 
[[File:Hot spot wifi.png]]<br/>
 
[[File:Hot spot wifi.png]]<br/>
FAQ:
+
== FAQ ==
1)If it appears that Your adapter can not be a station (i.e. be connected) and an AP at the same time, you need to disconnect the WIFI connection. Be careful not to turn off the WIFI, but forget the network. Do not connect to other hotspots, otherwise there will be conflict:
+
1)If it appears that Your adapter can not be a station (i.e. be connected) and an AP at the same time, you need to disconnect the WIFI connection. Be careful not to turn off the WIFI, but forget the network. Do not connect to other hotspots, otherwise there will be conflict: <br/>
 
+
[[File:Hotspot FAQ.png]]<br/>
2)If there is an Operation not possible due to RF-kill problem, use the following command to unlock:
+
2)If there is an Operation not possible due to RF-kill problem, use the following command to unlock:<br/>
 
+
[[File:Hotspot FAQ2.png]]
rfkill unblock all
+
rfkill unblock all

Revision as of 06:49, 15 March 2021

Many friends have asked me how to open hotspots through SIM8200, the following arrangements are for you:

1. Configuration

This configuration is only needed at the first time.

Open a terminal and run the following commands:

sudo apt-get install p7zip-full 
wget https://www.waveshare.com/w/upload/f/fb/SIM8200-M2_5G_HAT_code.7z 
7z x SIM8200-M2_5G_HAT_code.7z 
sudo chmod 777 -R SIM8200-M2_5G_HAT_code 
cd SIM8200-M2_5G_HAT_code sudo ./install.sh

Please do not modify option, qmi_wwan_simcom, default.script,install.sh files or directorys, otherwise the dirver cannot be installed normally.

If you get error information, please check ifyou use the 2020-08-20-raspios-buster-armhf OS and take screenshot of error information and contact our support team for help.

Run ifconfig -a command to check WWAN0 interface.

SIM8200 RPI 2.png


2. Testing with AT command

sudo apt-get install minicom sudo minicom -D /dev/ttyUSB2

SIM8200 RPI 1.png

3. 5G Networking

cd Goonline make sudo ./simcom-cm

After running codes, DNS information are shown as figure below:

SIM8200 RPI 3.png



Do not close the above terminal window,open another terminal window to run the following commands.


4. Enter the super administrator user

sudo -i


5. Install the library files

sudo apt-get install util-linux procps hostapd iproute2 iw haveged dnsmasq

6. Install AP software

git clone git://github.com/oblique/create_ap
cd create_ap
sudo make install


7. Create AP

Create a Wi-Fi network with WPA + WPA2 password:

sudo create_ap --no-virt wlan0 eth0 PI 12345678

This command creates a wireless network named PI on the wlan0 channel, and the password is 12345678.

After completing the creation of a wireless network, you can connect to a device with WiFi function such as a mobile phone.


8. Connect your phone to WIFI

Select Service Set Identifier Service Set Identifier: PI

Enter the corresponding Password: 12345678

Mobile phone WIFI connected to SSID: PI
Hot spot wifi.png

FAQ

1)If it appears that Your adapter can not be a station (i.e. be connected) and an AP at the same time, you need to disconnect the WIFI connection. Be careful not to turn off the WIFI, but forget the network. Do not connect to other hotspots, otherwise there will be conflict:
Hotspot FAQ.png
2)If there is an Operation not possible due to RF-kill problem, use the following command to unlock:
Hotspot FAQ2.png

rfkill unblock all