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

From Waveshare Wiki
Revision as of 03:55, 15 March 2021 by Eng26 (talk | contribs) (Created page with "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....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 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.



2. Testing with AT command

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


3. 5G Networking

cd Goonline make sudo ./simcom-cm After running codes, DNS information are shown as figure below:



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


6. Enter the super administrator user

sudo -i


7. Install the library files

sudo apt-get install util-linux procps hostapd iproute2 iw haveged dnsmasq 8. Install AP software

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


9. 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.


10. 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



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:


2)If there is an Operation not possible due to RF-kill problem, use the following command to unlock:

rfkill unblock all