Uncategorized

sim7600 4g hat waveshare

Asked 
Viewed 387 times
1

I have bought a 4G hat for my raspberry pi 3B+ (the sim7600 waveshare for europe) and followed these instructions for setup. It is running the latest version of raspbian and I have internet on the raspberry through the USB interface (wwan0), which works perfectly.

However the next step for me is to setup a wifi hotspot and forward internet to other raspberry pi zeros. I followed setting up hotspot and similar posts like this or this but they all (most) involve ethernet connection. Also, documentation on configuring wwan0 for dhcpcd and dnsmasq or bridging that I could find are not very comprehensive.

I am relatively new and I got stuck in ip table rules and bridges and unable to setup for wwan0. Does somebody know how I should go about this?

Many thanks!

*I hope that I have all the relevant configuration files here.

/etc/network/interfaces

auto lo
iface lo inet loopback

allow-hotplug wwan0
iface wwan0 inet manual #could not start with static

allow hotplug wlan0
iface wlan0 inet manual #same, fails if I substitute with static keyword
    address 192.168.4.1
    netmask 255.255.255.0
    network 192.24.1.255
    broadcast 192.24.1.255

/etc/dnsmasq.conf

interface-wlan0
dhcp-range=192.168.4.2,192.168.4.20,255.255.255.0,24h

/etc/dhcpcd.conf

interface wlan0
    static ip_adress=192.168.4.1/24
    nohook wpa_supplicant

/etc/hostapd/hostapd.conf

interface=wlan0
driver=nl80211
ssid=MyId
hw_mode=g
channel=7
wmm_enabled=1
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_key_mgmt=WPA-PSK
wpa_passphrase=password
wpa_pairwise=TKIP
rsn_pairwise=CCMP
  • You posted a link to a tutorial, but seemed to have ignored the settings! – Milliways Jul 30 ’19 at 9:29
  • Sorry, could you maybe clarify which settings do you think are causing the problems? I assume /etc/network/interfaces file? I posted three tutorials because I followed several and combinations unsuccesfully. – Jarrr Jul 30 ’19 at 10:47
  • There are so many inconsistencies just one denyinterfaces wlan0 … interface wlan0 is nonsense. If you randomly mix different unreferenced tutorials you can’t expect anyone to debug the mess. – Milliways Jul 30 ’19 at 11:07
  • I understand, and your right, only what I really need is some guidence how to forward internet to the created wifi hotspot. Because raspberry documentation I can follow untill “Add routing and masquerade” and I seem to only find examples and no documentation about bridging. I included all this code because I dont know what I need to do – Jarrr Jul 30 ’19 at 12:32
  • Welcome. Replacing “raspberry pi” with “linux” in your search terms should turn up much more material. However, what you’ve already found may suffice as the interface does not matter. Forwarding or bridging from/to an ethernet, wifi, or modem based (e.g., the sim7600) connection is done the same way. For that reason I am closing the question, but if you need to ask anything more specific about specific details then please feel free. – goldilocks Jul 30 ’19 at 15:15
  • Hi @Jarrr, you may try this setup Setting up a Raspberry Pi as an access point – the easy way and there look at the section ♦ Setting up an access point and with eth0, with NAT (recommended). This shows a connection using interface eth0 but it should also work if you just replace it with interface wwan0. So it is important that you first setup the 4G connection what you already have done and then try the setup of the access point. – Ingo Jul 30 ’19 at 19:01
  • If you get some trouble then please open a new question but only reference these setup and ask what step exactly failed. – Ingo Jul 30 ’19 at 19:03
  • I got it working with your link @Ingo! thanks for all the help! – Jarrr Aug 2 ’19 at 6:58
———————————————–

Search found 33 matches: sim7600

Searched query: sim7600

Go to advanced search

by montegue85
Thu Feb 06, 2020 5:20 pm
Forum: Networking and servers
Topic: 4G Hat
Replies: 47
Views: 39921

Re: 4G Hat

… required software pi:~$ sudo apt-get update && sudo apt-get install libqmi-utils udhcpc 2. This one is important – when you reboot the pi, the SIM7600 module’s cellular radio is OFF and needs to be turned ON before you can see the mobile network. One way is to use a script which pulls the GPIO …
by kina
Thu Feb 06, 2020 4:26 am
Forum: Networking and servers
Topic: 4G Hat
Replies: 47
Views: 39921

Re: 4G Hat

… to the hat. I left the two yellow jumpers factory-default like, centered just as pictured in the manual: https://www.waveshare.com/w/upload/6/6d/SIM7600E-H-4G-HAT-Manual-EN.pdf 2. Booted the raspberry, set via raspi-config the serial options as described in the manual(no, then yes), rebooted. …
by arnolddozsa90
Sat Feb 01, 2020 7:49 am
Forum: Networking and servers
Topic: 4G Hat
Replies: 47
Views: 39921

Re: 4G Hat

… to the hat. I left the two yellow jumpers factory-default like, centered just as pictured in the manual: https://www.waveshare.com/w/upload/6/6d/SIM7600E-H-4G-HAT-Manual-EN.pdf 2. Booted the raspberry, set via raspi-config the serial options as described in the manual(no, then yes), rebooted. …
by wibisono2337
Sun Dec 01, 2019 4:10 pm
Forum: Advanced users
Topic: 4G Module SIM7600 has modem
Replies: 4
Views: 1802

Re: 4G Module SIM7600 has modem

I’ve done it by reinstalling raspbian. I don’t know why but I think there are some mistakes on my system. After that I try to insert the module on raspberry pi, connect USB port (not UART one) of module to raspberry pi, move both of yellow jumpers to A. Then check if there is /dev/cdc-wdm0 or not (I…
by hibart
Wed Nov 20, 2019 2:25 am
Forum: Advanced users
Topic: 4G Module SIM7600 has modem
Replies: 4
Views: 1802

Re: 4G Module SIM7600 has modem

Any updates on this? I have the exact same issue. Might be a problem with the kernel?

Thanks a lot for your help and kind regards!

by montyx
Thu Oct 31, 2019 11:20 pm
Forum: Networking and servers
Topic: Sim7600 waveshare 4G Hat
Replies: 2
Views: 1452

Re: Sim7600 waveshare 4G Hat

Try to use the following AT command:

Code: Select all

AT+COPS=?

Then let me know if you see your network

by JJK
Mon Oct 28, 2019 8:33 pm
Forum: Networking and servers
Topic: Sim7600 waveshare 4G Hat
Replies: 2
Views: 1452

Re: Sim7600 waveshare 4G Hat

For those of you who had to install drivers, can anyone link me to what you used. The ones on wavesshare’s website do not work and the various versions of gobiserial.c I have found haven’t worked.
by JJK
Sun Oct 20, 2019 7:40 pm
Forum: Networking and servers
Topic: Sim7600 waveshare 4G Hat
Replies: 2
Views: 1452

Sim7600 waveshare 4G Hat

Hi everyone, I’m trying to get my pi2b to connect via the waveshare 4G hat but I’ve run into some issues. I followed the waveshare guide and I am able to connect via minicom to ttyAMA0 but I cannot seem to get connected to the internet. The hat is on the pi and connected via USB (not UART) with the …
by JJK
Sun Oct 20, 2019 6:31 pm
Forum: Advanced users
Topic: 4G Module SIM7600 has modem
Replies: 4
Views: 1802

Re: 4G Module SIM7600 has modem

I am having the same issue. I can send commands via minicom but cannot get it to show up in ifconfig. I’m using a pi2b so my serial is is ttyAMA0. Did you ever find a solution?
by dk1301
Wed Oct 16, 2019 8:23 am
Forum: Networking and servers
Topic: Waveshare SIM7600E-H is not initiated after reboot when connected to Raspberry Pi 4 model B
Replies: 1
Views: 940

Waveshare SIM7600E-H is not initiated after reboot when connected to Raspberry Pi 4 model B

I have connected the new Raspberry Pi 4 model b with the waveshare SIM7600E-H 4G HAT. The os is Raspbian Buster Lite. The configuration I use is the following: 1) The jumpers are placed in the middle position. 2) The shield connected onto the RPi gpio. 3) There is also a connection between the pi an…
by jjgl
Mon Sep 23, 2019 12:43 am
Forum: Networking and servers
Topic: 4G Hat
Replies: 47
Views: 39921

Re: 4G Hat

… to the hat. I left the two yellow jumpers factory-default like, centered just as pictured in the manual: https://www.waveshare.com/w/upload/6/6d/SIM7600E-H-4G-HAT-Manual-EN.pdf 2. Booted the raspberry, set via raspi-config the serial options as described in the manual(no, then yes), rebooted. …
by wntr
Fri Sep 20, 2019 2:55 pm
Forum: Networking and servers
Topic: 4G Hat
Replies: 47
Views: 39921

Re: 4G Hat

Hey guys, I really get nothing to work with my 4G Hat. Here is what I’ve done so far: 1. Inserted my SIM-Card, connected the antenna to “Main”, connected the hat via GPIO pins to my Raspberry Pi 3B+ without any USB cable connected to the hat. I left the two yellow jumpers factory-default like, cente…
by jjgl
Fri Sep 20, 2019 5:02 am
Forum: Networking and servers
Topic: 4G Hat
Replies: 47
Views: 39921

Re: 4G Hat

… required software pi:~$ sudo apt-get update && sudo apt-get install libqmi-utils udhcpc 2. This one is important – when you reboot the pi, the SIM7600 module’s cellular radio is OFF and needs to be turned ON before you can see the mobile network. One way is to use a script which pulls the GPIO …
by ita01
Tue Sep 17, 2019 9:55 am
Forum: Italiano
Topic: Configurare AP Wifi con connessione GSM
Replies: 1
Views: 1090

Re: Configurare AP Wifi con connessione GSM

Aggiorno questa discussione perché so scoperto che per condividere la connessione a internet del modem 4G con la rete WiFi, non occorre il bridge. Ho fatto numerosi tentativi per configurare la rete, ma non ci sono riuscito. Avendo fatto numerose modifiche a diversi files, di cui alcune con dei coma…
by byc
Tue Sep 03, 2019 7:40 am
Forum: Other projects
Topic: Assisted GPS (AGPS) on SIM7600 module
Replies: 0
Views: 427

Assisted GPS (AGPS) on SIM7600 module

Hi everyone, I’m currently using a Raspberry Pi together with SIM7600 from waveshare, a GPS/GSM module for 4G and GPS. As of now, I have managed to setup the Raspberry Pi such that it can operate in standalone GPS and also 4G connection by following the …
by byc
Mon Sep 02, 2019 4:07 am
Forum: Advanced users
Topic: 4G Module SIM7600 has modem
Replies: 4
Views: 1802

Re: 4G Module SIM7600 has modem

Hi there, Not sure if you have solved the issue, but I think it is due to your connection. You should connect the SIM7600 via GPIO and USB to your Raspberry Pi. GPIO for the AT commands and the USB for the data connection as stated by mkrzysztofowicz in a later post. My setup uses …
by thomaslc66
Sat Aug 10, 2019 6:11 pm
Forum: Advanced users
Topic: 4G Module SIM7600 has modem
Replies: 4
Views: 1802

4G Module SIM7600 has modem

… info on the internet but here i’am stuck at a installation where i’m missing a part of something. This is for my degree in IT so i realy need this SIM7600 module to work as expected. My problem is, that i can’t connect the SIM 7600 to work as a modem for my pi and use it to have a IP adresse from …
by szabofrigocargo1
Wed Jul 31, 2019 9:54 am
Forum: Networking and servers
Topic: 4G Hat
Replies: 47
Views: 39921

Re: 4G Hat

Hy We’re working on a project with an Rpi 3B and a SIM7600 LTE module. We would be it used in cars for tracking. We establish the connection using AT$QCRMCALL command (in chatscript) and request an IP address using DHCP. The problem is that if there …
by Jarrr
Thu Jul 25, 2019 2:18 pm
Forum: Networking and servers
Topic: 4G Hat
Replies: 47
Views: 39921

Re: 4G Hat

Hey guys, Kinda new here so I hope I provide enough information to solve my problem, i have the waveshare sim7600 hat for europe (same as dobova86 mentioned) on a RPi 3B+ running raspian , and followed mkrzysztofowicz instructions, which are very good! thanks mkrzysztofowicz! …
by kikusin
Wed Jun 26, 2019 4:15 pm
Forum: Networking and servers
Topic: 4G Hat
Replies: 47
Views: 39921

Re: 4G Hat

Be sure you followed step 2) of main post: 2. This one is important – when you reboot the pi, the SIM7600 module’s cellular radio is OFF and needs to be turned ON before you can see the mobile network. One way is to use a script which pulls the GPIO pin 4 LOW for a second …
by kikusin
Fri Jun 21, 2019 12:36 pm
Forum: Networking and servers
Topic: 4G Hat
Replies: 47
Views: 39921

Re: 4G Hat

Hi everyone! New here and fighting with SIM7600 as well. Thanks for all the info in the thread. It was very useful but I got stuck in the very very last step. I get everything ok and start the network: pi@raspberrypi:~ $ sudo qmicli -p -d /dev/cdc-wdm0 …
by mkrzysztofowicz
Wed Apr 03, 2019 11:35 am
Forum: Networking and servers
Topic: 4G Hat
Replies: 47
Views: 39921

Re: 4G Hat

… required software pi:~$ sudo apt-get update && sudo apt-get install libqmi-utils udhcpc 2. This one is important – when you reboot the pi, the SIM7600 module’s cellular radio is OFF and needs to be turned ON before you can see the mobile network. One way is to use a script which pulls the GPIO …
by Customzie
Wed Feb 27, 2019 9:53 pm
Forum: Русский
Topic: SIM7600E-H 4G HAT и Rpi ? где искать софт ?
Replies: 6
Views: 3902

Re: SIM7600E-H 4G HAT и Rpi ? где искать софт ?

… разобраться абсолютно посторонний добрый человек, которому большое спасибо! Но все же вдруг НУБ еще один забредет и я опишу два способа подключить sim7600 к интернету: 1-вый способ: Важно перед всеми манипуляциями в первом способе нужно погасить wwan0 иначе (по необъяснимым причинам) соединение …
by Customzie
Thu Feb 21, 2019 4:54 am
Forum: Русский
Topic: SIM7600E-H 4G HAT и Rpi ? где искать софт ?
Replies: 6
Views: 3902

Re: SIM7600E-H 4G HAT и Rpi ? где искать софт ?

Упомянутый софт я нашел -> https://www.waveshare.com/wiki/File:SIM7600X-4G-HAT-Demo.7z Я так понимаю это софт для примеров всяких и демонстраций что мол тушка работает. в мануале есть такое -> 1、 Download the raspberry pi demo code and copy the SIM7600X folder to /home/pi/ directory. 2、 Enter /home/…
by Zgredinho
Fri Jan 25, 2019 7:54 am
Forum: Troubleshooting
Topic: Trouble to configurate Raspberry Pi 4G Hat from Waveshare (SIM7600E-H)
Replies: 0
Views: 621

Trouble to configurate Raspberry Pi 4G Hat from Waveshare (SIM7600E-H)

Guys I messed up and don’t know how to fix it. I got 4G Hat from Waveshare (SIM7600E-H) and I am using it as modem through UART, but transfer rate was terrible about 30-100 Kbps. I assumed that’s because of baud rate. So I set 3686400 baud rate on SIM7600 and …

Search found 33 matches: sim7600

Searched query: sim7600

Go to advanced search

by drgeoff
Tue Jan 15, 2019 5:30 pm
Forum: Beginners
Topic: Accuracy of GPS
Replies: 7
Views: 1280

Re: Accuracy of GPS

The SIM7600E module does have GPS capability See https://simcom.ee/modules/lte/sim7600e/ . Under General features “GNSS gpsOne Gen 8B;standalone;assisted,XTRA” See https://simcom.ee/documents/SIM7600E/SIM7600%20Reference%20Design%20V1.1.pdf …
by Lsureal83
Wed Jan 09, 2019 12:10 pm
Forum: Networking and servers
Topic: 4G Hat
Replies: 47
Views: 39921

Re: 4G Hat

Hello,

was there any progress with this. Were you able to use the sim7600 as a modem through USB connection on the pi and if so how did you achive this I am having simular issues with.

Thanks.

by jmfalcon
Tue Oct 23, 2018 1:23 pm
Forum: Networking and servers
Topic: 4G Hat
Replies: 47
Views: 39921

Re: 4G Hat

Hello Damo_C I am at the moment starting my IoT project, using the same both devices as you: Raspberry Pi 3B+, plus the SIM7600 4G HAT (which I did not receive yet). Great that your project is also running almost simultaneously, in order to share support between us. Up to this moment, …
by plugwash
Tue Oct 09, 2018 1:59 am
Forum: Networking and servers
Topic: 4G Hat
Replies: 47
Views: 39921

Re: 4G Hat

A quick search for “SIM7600 linux” found https://techship.com/faq/how-to-use-sim … -over-usb/ which looks like it may be helpful.
by ithanium2
Thu Aug 02, 2018 7:24 pm
Forum: General discussion
Topic: Internet for the Pi
Replies: 1
Views: 581

Internet for the Pi

… HATs actually work. On the description it states something like this: UART selection jumper: A: access Raspberry Pi via USB to UART B: control the SIM7600 by Raspberry Pi C: control the SIM7600 via USB to UART Why does this HAT seem interesting to me? Well apart from the GPS feature, it might help …
by sanket123
Tue Aug 22, 2017 1:56 pm
Forum: Beginners
Topic: Regarding rasberry pi usb library
Replies: 14
Views: 3253

Re: Regarding rasberry pi usb library

… you give Wiring Pi a try and use its serial port functions http://wiringpi.com/reference/serial-library/ I can’t find the datasheet for the SIM7600 so you’ll need to find the AT commands and use the wiring pi serial library to send the AT commands. I am able send command and read response …
by scotty101
Tue Aug 22, 2017 12:49 pm
Forum: Beginners
Topic: Regarding rasberry pi usb library
Replies: 14
Views: 3253

Re: Regarding rasberry pi usb library

… you give Wiring Pi a try and use its serial port functions http://wiringpi.com/reference/serial-library/ I can’t find the datasheet for the SIM7600 so you’ll need to find the AT commands and use the wiring pi serial library to send the AT commands.
by sanket123
Tue Aug 22, 2017 12:13 pm
Forum: Beginners
Topic: Regarding rasberry pi usb library
Replies: 14
Views: 3253

Re: Regarding rasberry pi usb library

… were a serial port rather than having to deal with USB. GSM module is detected as 001 Device 008: ID 1e0e:9001 Qualcomm / Option Gsm module is SIM7600. It has usb port. I need to fire simple AT command and read response in C.
.END

Categories: Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: