SIM8200EA-M2 5G HAT is equipped with Raspbian Pi to open hotspots

From Waveshare Wiki
Revision as of 06:57, 15 March 2021 by Eng26 (talk | contribs) (→‎FAQ)
Jump to: navigation, search

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 
7z x SIM8200-M2_5G_HAT_code.7z 
sudo chmod 777 -R SIM8200-M2_5G_HAT_code 
cd SIM8200-M2_5G_HAT_code sudo ./

Please do not modify option, qmi_wwan_simcom, default.script, 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://
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



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: