SIM8200EA-M2 5G HAT is equipped with Raspbian Pi to open hotspots
Many friends have asked me how to open hotspots through SIM8200, the following arrangements are for you:
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.
4. Enter the super administrator user
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
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:
Enter the following command:
rfkill unblock all