# SIM7020e and SIM7000

**URL:** <https://forum.core-electronics.com.au/t/sim7020e-and-sim7000/10403>\
**Category:** Raspberry Pi\
**Created:** [10 June 2021 06:28 UTC](https://forum.core-electronics.com.au/t/sim7020e-and-sim7000/10403 "2021-06-10T06:28:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mat165730](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@Mat165730](https://forum.core-electronics.com.au/u/Mat165730)\
**Post date:** [10 June 2021 06:28 UTC](https://forum.core-electronics.com.au/t/sim7020e-and-sim7000/10403/1 "2021-06-10T06:28:29Z")

</div>

**CONTEXT:**  
I had difficulties connecting my raspberry pi (tested on 3B+, 4 and 0) using SIM7000, so i purchased a SIM7020e. But this one also have similar connection issue.  
I was using a Telstra data package pre-paid sim but after chatting to a support staff from core-electronics, replaced the sim with a “hologram” sim but still have the same issue.

**WHAT IS THE ISSUE:**  
sim seems to be detected alright by the device. The device is unable to communicate with the antenna. I am not yet using my code. Just followed steps in this link:

[https://www.waveshare.com/wiki/SIM7020E\_NB-IoT\_HAT](https://www.waveshare.com/wiki/SIM7020E_NB-IoT_HAT)

and used the code provided by the company . Here are the outputs running the examples in the library:

AT example:  
AT  
OK  
Wait 5 seconds…  
AT+CGMR  
1752B10SIM7020E

OK  
AT+CPIN?  
+CPIN: READY

OK  
AT+CSQ  
+CSQ: 0,0

OK  
AT+CGREG?  
+CGREG: 0,2

OK  
AT+CGREG?  
+CGREG: 0,2

OK  
AT+CGACT?  
AT+COPS?  
+COPS: 0

OK

* * *

TCP example:

AT  
OK  
Wait 5 seconds…  
AT+CGMR  
1752B10SIM7020E

OK  
AT+CPIN?  
+CPIN: READY

OK  
AT+CSQ  
+CSQ: 26,0

OK  
AT+CGREG?  
+CGREG: 0,0

OK  
AT+CGREG?  
+CGREG: 0,0

OK  
AT+CGACT?  
AT+COPS?  
+COPS: 0

OK  
The module starts…  
AT+CSOC=1,1,1  
+CSOC:  
Created TCP socket id 0 Successfully!  
AT+CSOCON=0,2317,“118.190.93.84”  
ERROR  
AT+CSOSEND=0,0,“Waveshare Send to Socket id 0 using TCP”  
ERROR

AT+CSOCL=0  
OK  
Close Socket

---

<div class="post-metadata">

**Author:** ![Oliver33](https://avatars.discourse-cdn.com/v4/letter/o/a9adbd/32.png) [@Oliver33](https://forum.core-electronics.com.au/u/Oliver33)\
**Post date:** [12 June 2021 00:47 UTC](https://forum.core-electronics.com.au/t/sim7020e-and-sim7000/10403/2 "2021-06-12T00:47:38Z")

</div>

> [@Mat165730](#):
>
> OK  
> AT+CSQ  
> +CSQ: 0,0

This means you have no signal. Is the antenna properly connected and pointing away from the PCB?

> [@Mat165730](#):
>
> OK  
> AT+CGREG?  
> +CGREG: 0,2

This means you’re not connected to a network.

I have a sim7000e arduino shield and I did some work on getting it connected here:

> [@Sim7000e can't Connect to the any network](https://forum.core-electronics.com.au/t/sim7000e-cant-connect-to-the-any-network/9810/10):
>
> Your troubles have encouraged me to pull out my [SIM7000E Shield for my Arduino](https://core-electronics.com.au/sim7000e-arduino-nb-iot-lte-gprs-gps-expansion-shield.html). I bought it ages ago when they were on clearance, but hadn’t even taken it out of the packet until now! Here’s a really great thread from a while back: Here’s what I’ve learned so far: The SIM7000E is [certified by Telstra](https://www.telstra.com.au/content/dam/shared-component-assets/tecom/iot/capabilities/certified-devices/telstra-m2m-certified-devices-modules.pdf), so no issues there. It definitely works in Aus, and others have gotten them working. [image] Your path of least resistance will be to get an IoT SIM from Telstra or Hologram: [IoT Data SIM p…](https://www.telstra.com.au/small-business/internet-of-things/data-sim-plans#standalone)

If you’re having trouble I’d recommend getting SMS working before trying to tackle tcp/ip.

---

<div class="post-metadata">

**Author:** ![Mat165730](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@Mat165730](https://forum.core-electronics.com.au/u/Mat165730)\
**Post date:** [28 June 2021 06:16 UTC](https://forum.core-electronics.com.au/t/sim7020e-and-sim7000/10403/3 "2021-06-28T06:16:51Z")

</div>

Thanks Oliver. well in my case, i am trying do it on raspberry pi. It doesn’t seem to work! this is the output from TCP:  
OK  
The module starts…  
AT+CSOC=1,1,1  
+CSOC:  
Created TCP socket id 0 Successfully!  
AT+CSOCON=0,2317,“118.190.93.84”  
ERROR  
AT+CSOSEND=0,0,“Waveshare Send to Socket id 0 using TCP”  
ERROR

AT+CSOCL=0  
OK  
Close Socket

---

<div class="post-metadata">

**Author:** ![Oliver33](https://avatars.discourse-cdn.com/v4/letter/o/a9adbd/32.png) [@Oliver33](https://forum.core-electronics.com.au/u/Oliver33)\
**Post date:** [28 June 2021 11:33 UTC](https://forum.core-electronics.com.au/t/sim7020e-and-sim7000/10403/4 "2021-06-28T11:33:31Z")

</div>

Yes, you need to get connected to a network first. You can’t establish a TCP connection if you’re not connected to anything.

Definitely follow my advice above to get SMS working before adding the additional complexity of TCP.
