Xinyuan-LilyGO / LilyGO-T-SIM7000G

LilyGO T-SIM7000G
https://pt.aliexpress.com/item/4000542688096.html
284 stars 123 forks source link

At&t Cat M Network #145

Open ghost opened 2 years ago

ghost commented 2 years ago

Hello, I just got in the mail 2 lilygo T-SIM7000G boards that I'm trying to connect to the AT&T cat M network.. I'm using the Arduino_NetworkTest sketch and Neither will connect with changing the APN to m2m64.com.attz and changing nothing else. The boards appear to be working as far as uploading the sketches, I've tried uploading with the arduino ide from my computer and arduino Droid with my phone. The board type I've tried esp32 dev module and wrover module...

In the Serial monitor i get

18:01:42.205 -> Signal: 30 isNetworkConnected: NO CONNECT 18:01:43.321 -> Signal: 30 isNetworkConnected: NO CONNECT 18:01:44.439 -> Signal: 30 isNetworkConnected: NO CONNECT 18:01:45.555 -> Signal: 30 isNetworkConnected: NO CONNECT 18:01:46.716 -> Signal: 30 isNetworkConnected: NO CONNECT 18:01:47.794 -> Signal: 30 isNetworkConnected: NO CONNECT 18:01:48.869 -> Try 52 method 18:01:51.936 -> Signal: 31 isNetworkConnected: NO CONNECT 18:01:53.055 -> Signal: 31 isNetworkConnected: NO CONNECT 18:01:54.173 -> Signal: 31 isNetworkConnected: NO CONNECT 18:01:55.290 -> Signal: 31 isNetworkConnected: NO CONNECT 18:01:56.409 -> Signal: 31 isNetworkConnected: NO CONNECT 18:01:57.525 -> Signal: 31 isNetworkConnected: NO CONNECT 18:01:58.642 -> Signal: 31 isNetworkConnected: NO CONNECT

The signal bounces between 9 and 32, 99 when it first starts. And I've tried in a few locations so far..

Any help would be appreciated.

Screenshot_20211029-181125_ArduinoDroid

ghost commented 2 years ago

Also when i run the AllFunctions.ino changing only the apn i get

monitor.txt

ghost commented 2 years ago

Also when i run the AllFunctions.ino changing only the apn i get


18:30:15.942 -> AT+CFUN=0
18:30:18.698 -> 怘⸮f`⸮f⸮⸮Failed to restart modem, attempting to continue without restarting
18:30:25.954 -> AT+CFUN=0 
18:30:35.946 -> AT+CFUN=1 
18:30:45.947 -> Initializing modem...
18:30:45.953 -> AT
18:30:46.246 -> AT
18:30:46.257 -> AT
18:30:46.261 -> OK
18:30:46.264 -> ATE0
18:30:46.268 -> ATE0
18:30:46.271 -> OK
18:30:46.273 -> AT+CMEE=0
18:30:46.276 -> 
18:30:46.278 -> OK
18:30:46.280 -> AT+CLTS=1
18:30:46.282 -> 
18:30:46.285 -> OK
18:30:46.288 -> AT+CBATCHK=1
18:30:46.290 -> 
18:30:46.292 -> OK
18:30:46.294 -> AT+CPIN?
18:30:46.297 -> 
18:30:46.299 -> +CPIN: READY
18:30:46.302 -> 
18:30:46.303 -> OK
18:30:46.305 -> AT+GMM
18:30:46.308 -> 
18:30:46.310 -> SIMCOM_SIM7000G
18:30:46.313 -> 
18:30:46.314 -> OK
18:30:46.778 -> Modem Name: SIMCOM SIM7000G
18:30:46.785 -> ATI
18:30:46.789 -> 
18:30:46.791 -> SIM7000G R1529
18:30:46.793 -> 
18:30:46.796 -> OK
18:30:47.288 -> Modem Info: SIM7000G R1529
18:30:47.296 -> AT+SGPIO=0,4,1,0
18:30:47.300 -> 
18:30:47.303 -> OK
18:30:47.305 -> AT+CPIN?
18:30:47.308 -> 
18:30:47.310 -> +CPIN: READY
18:30:47.314 -> 
18:30:47.316 -> OK
18:30:47.318 -> AT+CNMP=38
18:30:47.321 -> 
18:30:47.323 -> OK
18:30:47.325 -> AT+CMNB=2
18:30:47.328 -> 
18:30:47.330 -> OK
18:30:48.808 -> AT+CGDCONT=1,"IP","m2m64.com.attz","0.0.0.0",0,0,0,0
18:30:48.818 -> AT+CGDCONT=13,"IP","m2m64.com.attz","0.0.0.0",0,0,0,0
18:30:48.827 -> 
18:30:48.830 -> 
18:30:48.833 -> 
18:30:48.835 -> Waiting for network...
18:30:48.838 -> AT+CEREG?
18:30:48.842 -> 
18:30:48.844 -> OK
18:30:48.853 -> 
18:30:48.861 -> OK
18:30:48.868 -> 
18:30:48.871 -> +CEREG: 0,0
18:30:48.874 -> 
18:30:48.876 -> OK
18:30:48.878 -> AT+CGREG?
18:30:48.881 -> 
18:30:48.883 -> +CGREG: 0,2
18:30:48.886 -> 
18:30:48.888 -> OK
18:30:49.115 -> AT+CEREG?
18:30:49.127 -> 
18:30:49.130 -> +CEREG: 0,0
18:30:49.134 -> 
18:30:49.136 -> OK
18:30:49.139 -> AT+CGREG?
18:30:49.141 -> 
18:30:49.143 -> +CGREG: 0,2
18:30:49.146 -> 
18:30:49.148 -> OK
18:30:49.376 -> AT+CEREG?
18:30:49.384 -> 
18:30:49.387 -> +CEREG: 0,0
18:30:49.391 -> 
18:30:49.393 -> OK
18:30:49.396 -> AT+CGREG?
18:30:49.400 -> 
18:30:49.402 -> +CGREG: 0,2
18:30:49.404 -> 
18:30:49.405 -> OK
18:30:49.637 -> AT+CEREG?
18:30:49.642 -> 
18:30:49.651 -> +CEREG: 0,0
18:30:49.654 -> 
18:30:49.656 -> OK
18:30:49.658 -> AT+CGREG?
18:30:49.660 -> 
18:30:49.661 -> +CGREG: 0,2
18:30:49.664 -> 
18:30:49.666 -> OK
18:30:49.900 -> AT+CEREG?
18:30:49.909 -> 
18:30:49.912 -> +CEREG: 0,0
18:30:49.915 -> 
18:30:49.917 -> OK
18:30:49.920 -> AT+CGREG?
18:30:49.924 -> 
18:30:49.927 -> +CGREG: 0,2
18:30:49.929 -> 
18:30:49.932 -> OK
18:30:50.160 -> AT+CEREG?
18:30:50.167 -> 
18:30:50.171 -> +CEREG: 0,0
18:30:50.174 -> 
18:30:50.176 -> OK
18:30:50.179 -> AT+CGREG?
18:30:50.183 -> 
18:30:50.186 -> +CGREG: 0,2
18:30:50.189 -> 
18:30:50.191 -> OK
18:30:50.421 -> AT+CEREG?
18:30:50.426 -> 
18:30:50.436 -> +CEREG: 0,0
18:30:50.439 -> 
18:30:50.442 -> OK
18:30:50.445 -> AT+CGREG?
18:30:50.448 -> 
18:30:50.450 -> +CGREG: 0,2
18:30:50.454 -> 
18:30:50.456 -> OK
18:30:50.681 -> AT+CEREG?
18:30:50.691 -> 
18:30:50.694 -> +CEREG: 0,0
18:30:50.698 -> 
18:30:50.701 -> OK
18:30:50.705 -> AT+CGREG?
18:30:50.709 -> 
18:30:50.711 -> +CGREG: 0,2
18:30:50.714 -> 
18:30:50.715 -> OK
18:30:50.942 -> AT+CEREG?
18:30:50.953 -> 
18:30:50.956 -> +CEREG: 0,0
18:30:50.960 -> 
18:30:50.962 -> OK
18:30:50.965 -> AT+CGREG?
18:30:50.969 -> 
18:30:50.972 -> +CGREG: 0,2
18:30:50.975 -> 
18:30:50.978 -> OK
18:30:51.206 -> AT+CEREG?
18:30:51.215 -> 
18:30:51.220 -> +CEREG: 0,0
18:30:51.224 -> 
18:30:51.226 -> OK
18:30:51.229 -> AT+CGREG?
18:30:51.231 -> 
18:30:51.233 -> +CGREG: 0,2
18:30:51.235 -> 
18:30:51.237 -> OK
18:30:51.466 -> AT+CEREG?
18:30:51.470 -> 
18:30:51.475 -> +CEREG: 0,0
18:30:51.478 -> 
18:30:51.481 -> OK
18:30:51.484 -> AT+CGREG?
18:30:51.488 -> 
18:30:51.490 -> +CGREG: 0,2
18:30:51.493 -> 
18:30:51.495 -> OK
18:30:51.727 -> AT+CEREG?
18:30:51.739 -> 
18:30:51.744 -> +CEREG: 0,0
18:30:51.747 -> 
18:30:51.750 -> OK
18:30:51.754 -> AT+CGREG?
18:30:51.758 -> 
18:30:51.761 -> +CGREG: 0,2
18:30:51.764 -> 
18:30:51.767 -> OK
18:30:51.987 -> AT+CEREG?
18:30:51.996 -> 
18:30:52.001 -> +CEREG: 0,0
18:30:52.005 -> 
18:30:52.008 -> OK
18:30:52.011 -> AT+CGREG?
18:30:52.019 -> 
18:30:52.039 -> +CGREG: 0,2
18:30:52.042 -> 
18:30:52.045 -> OK
18:30:52.249 -> AT+CEREG?
18:30:52.266 -> 
18:30:52.276 -> +CEREG: 0,0
18:30:52.282 -> 
18:30:52.284 -> OK
18:30:52.288 -> AT+CGREG?
18:30:52.292 -> 
18:30:52.295 -> +CGREG: 0,2
18:30:52.298 -> 
18:30:52.301 -> OK
18:30:52.511 -> AT+CEREG?
18:30:52.531 -> 
18:30:52.538 -> +CEREG: 0,0
18:30:52.542 -> 
18:30:52.545 -> OK
18:30:52.550 -> AT+CGREG?
18:30:52.554 -> 
18:30:52.557 -> +CGREG: 0,2
18:30:52.560 -> 
18:30:52.563 -> OK
18:30:52.769 -> AT+CEREG?
18:30:52.783 -> 
18:30:52.793 -> +CEREG: 0,0
18:30:52.798 -> 
18:30:52.801 -> OK
18:30:52.806 -> AT+CGREG?
18:30:52.810 -> 
18:30:52.813 -> +CGREG: 0,2
18:30:52.817 -> 
18:30:52.819 -> OK
18:30:53.031 -> AT+CEREG?
18:30:53.049 -> 
18:30:53.055 -> +CEREG: 0,0
18:30:53.059 -> 
18:30:53.062 -> OK
18:30:53.066 -> AT+CGREG?
18:30:53.069 -> 
18:30:53.072 -> +CGREG: 0,2
18:30:53.076 -> 
18:30:53.079 -> OK
18:30:53.293 -> AT+CEREG?
18:30:53.302 -> 
18:30:53.309 -> +CEREG: 0,0
18:30:53.313 -> 
18:30:53.316 -> OK
18:30:53.319 -> AT+CGREG?
18:30:53.323 -> 
18:30:53.326 -> +CGREG: 0,2
18:30:53.329 -> 
18:30:53.334 -> OK
18:30:53.555 -> AT+CEREG?
18:30:53.568 -> 
18:30:53.578 -> +CEREG: 0,0
18:30:53.586 -> 
18:30:53.589 -> OK
18:30:53.594 -> AT+CGREG?
18:30:53.598 -> 
18:30:53.601 -> +CGREG: 0,2
18:30:53.606 -> 
18:30:53.609 -> OK
18:30:53.815 -> AT+CEREG?
18:30:53.832 -> 
18:30:53.839 -> +CEREG: 0,0
18:30:53.844 -> 
18:30:53.847 -> OK
18:30:53.851 -> AT+CGREG?
18:30:53.855 -> 
18:30:53.858 -> +CGREG: 0,2
18:30:53.862 -> 
18:30:53.865 -> OK
18:30:54.076 -> AT+CEREG?
18:30:54.095 -> 
18:30:54.100 -> +CEREG: 0,0
18:30:54.107 -> 
18:30:54.110 -> OK
18:30:54.113 -> AT+CGREG?
18:30:54.118 -> 
18:30:54.121 -> +CGREG: 0,2
18:30:54.124 -> 
18:30:54.128 -> OK
18:30:54.337 -> AT+CEREG?
18:30:54.350 -> 
18:30:54.360 -> +CEREG: 0,0
18:30:54.365 -> 
18:30:54.369 -> OK
18:30:54.373 -> AT+CGREG?
18:30:54.378 -> 
18:30:54.383 -> +CGREG: 0,2
18:30:54.387 -> 
18:30:54.392 -> OK
18:30:54.598 -> AT+CEREG?
18:30:54.607 -> 
18:30:54.614 -> +CEREG: 0,0
18:30:54.619 -> 
18:30:54.623 -> OK
18:30:54.629 -> AT+CGREG?
18:30:54.634 -> 
18:30:54.637 -> +CGREG: 0,2
18:30:54.641 -> 
18:30:54.646 -> OK
18:30:54.858 -> AT+CEREG?
18:30:54.875 -> 
18:30:54.883 -> +CEREG: 0,0
18:30:54.887 -> 
18:30:54.894 -> OK
18:30:54.897 -> AT+CGREG?
18:30:54.901 -> 
18:30:54.905 -> +CGREG: 0,2
18:30:54.908 -> 
18:30:54.912 -> OK
18:30:55.119 -> AT+CEREG?
18:30:55.134 -> 
18:30:55.141 -> +CEREG: 0,0
18:30:55.146 -> 
18:30:55.150 -> OK
18:30:55.154 -> AT+CGREG?
18:30:55.161 -> 
18:30:55.164 -> +CGREG: 0,2
18:30:55.168 -> 
18:30:55.172 -> OK
18:30:55.382 -> AT+CEREG?
18:30:55.397 -> 
18:30:55.409 -> +CEREG: 0,0
18:30:55.413 -> 
18:30:55.418 -> OK
18:30:55.422 -> AT+CGREG?
18:30:55.426 -> 
18:30:55.430 -> +CGREG: 0,2
18:30:55.441 -> 
18:30:55.453 -> OK
18:30:55.643 -> AT+CEREG?
18:30:55.661 -> 
18:30:55.667 -> +CEREG: 0,0
18:30:55.671 -> 
18:30:55.675 -> OK
18:30:55.679 -> AT+CGREG?
18:30:55.683 -> 
18:30:55.689 -> +CGREG: 0,2
18:30:55.696 
`
ghost commented 2 years ago

When i use the Reset Modem code example under https://github.com/Xinyuan-LilyGO/LilyGO-T-SIM7000G/blob/master/examples/Arduino_TinyGSM/ResetModem/ResetModem.ino i get a reurn of


19:51:15.942 -> ⸮⸮⸮⸮⸮<⸮⸮&ki*jp⸮⸮⸮q⸮aNqja
19:51:17.408 -> Starting Up Modem...
19:51:27.718 -> 
19:51:27.718 -> Testing Modem Response...
19:51:27.751 -> 
19:51:27.751 -> ****
19:51:37.721 -> ****
19:51:37.721 -> 
19:51:37.721 -> ***********************************************************
19:51:37.787 ->  Failed to connect to the modem! Check the baud and try again.
19:51:37.853 -> ***********************************************************
19:51:37.921 -> 
19:52:41.362 -> ⸮⸮⸮⸮⸮<⸮⸮&ki*jp⸮⸮⸮q⸮aNqja
19:52:42.862 -> Starting Up Modem...
19:52:53.163 -> 
19:52:53.163 -> Testing Modem Response...
19:52:53.198 -> 
19:52:53.198 -> ****
19:53:03.166 -> ****
19:53:03.166 -> 
19:53:03.166 -> ***********************************************************
19:53:03.232 ->  Failed to connect to the modem! Check the baud and try again.
19:53:03.299 -> ***********************************************************
19:53:03.365 -> 
19:59:40.239 -> ⸮⸮⸮⸮⸮<⸮⸮&kI
19:59:40.272 -> jP⸮⸮⸮QҚanqJa
19:59:41.738 -> Starting Up Modem...
19:59:52.036 -> 
19:59:52.036 -> Testing Modem Response...
19:59:52.070 -> 
19:59:52.070 -> ****
20:00:02.034 -> ****
20:00:02.034 -> 
20:00:02.034 -> ***********************************************************
20:00:02.101 ->  Failed to connect to the modem! Check the baud and try again.
20:00:02.167 -> ***********************************************************
20:00:02.233 -> 
`
ghost commented 2 years ago

And just for further information, i'm located in the USA and i tried switching the antenna out to the pulse antenna with no change, also this simcard works and publishes to adafruit.io in the DIYmalls SIM7000A Board 4G GSM... https://www.amazon.com/dp/B0825MFP8P?ref=ppx_pop_mob_ap_share Using the botletics examples https://github.com/botletics/SIM7000-LTE-Shield

LilyGO commented 2 years ago

Hello. If you are in the US, you should buy sim7000A instead of sim7000G

ghost commented 2 years ago

Shouldn't the G work as well as the A, the G supports the same bands no?

https://github.com/botletics/SIM7000-LTE-Shield/blob/master/SIM7000%20Documentation/Spec%20Overview%20Docs/SIM7000G_SPEC_2018-05-15.pdf

https://github.com/botletics/SIM7000-LTE-Shield/blob/master/SIM7000%20Documentation/Spec%20Overview%20Docs/SIM7000A_SPEC_2017-9-21.pdf

ghost commented 2 years ago

Hello. If you are in the US, you should buy sim7000A instead of sim7000G

https://github.com/botletics/SIM7000-LTE-Shield/wiki/Board-Versions

LilyGO commented 2 years ago

Only SIM7000A has AT&T and Version authentication.

bhupiister commented 2 years ago

@LilyGO Can sim7000G work in USA with any service provider such as hologram or Google sim ? I am asking because sim7000G is easily available. @Rax2647 were you able to solve?

ghost commented 2 years ago

@LilyGO Can sim7000G work in USA with any service provider such as hologram or Google sim ? I am asking because sim7000G is easily available. @Rax2647 were you able to solve?

I was by altering the network bands on the network test sketch, i was able to make it read connected and give location what not through at commands. I'll upload the code later, I'm on my way to work. My current issue is getting the gps to relay to Adafruit.io as my project is a gps tracker. I'm not the best at coding and I'm having issues with the Adafruit fona library stepping over the tiny gsm library i think...

ghost commented 2 years ago
Serial.println("=====Preferred mode selection=====");

modem.sendAT("+CNMP?"); if (modem.waitResponse(1000L, res) == 1) { res.replace(GSM_NL "OK" GSM_NL, ""); Serial.println(res); } res = ""; Serial.println("=======================");

Serial.println("=====Preferred selection between CAT-M and NB-IoT=====");
Serial.println("ADDED BAND ALTERATION...");
 modem.sendAT("+CBANDCFG=2,4,12,13 ");
modem.sendAT("+CMNB=1");
if (modem.waitResponse(1000L, res) == 1) {
    res.replace(GSM_NL "OK" GSM_NL, "");
    Serial.println(res);
}
res = "";
Serial.println("=======================");

<

ghost commented 2 years ago

@LilyGO Can sim7000G work in USA with any service provider such as hologram or Google sim ? I am asking because sim7000G is easily available. @Rax2647 were you able to solve?

Now if you have an example sketch to adafruit io or a similar mqtt site that's preferably free and allows for map tracking and subscribe for three switches. . I tried adapting the Botletics sketch to this one and partial luck so far.. they are very conflicting due to the library's i believe, i could be wrong though if i actually took a coding class

bhupiister commented 2 years ago

I'll rather be pushing data on my own server. All I want is to be able to send small string which is acceleration data to my server every 5 minutes. My project does not use GPS. So if you were able to connect to internet, I can finally buy and test it.

bhupiister commented 2 years ago

@LilyGO Can sim7000G work in USA with any service provider such as hologram or Google sim ? I am asking because sim7000G is easily available. @Rax2647 were you able to solve?

Now if you have an example sketch to adafruit io or a similar mqtt site that's preferably free and allows for map tracking and subscribe for three switches. . I tried adapting the Botletics sketch to this one and partial luck so far.. they are very conflicting due to the library's i believe, i could be wrong though if i actually took a coding class

I generally don't use any library and make my own functions to send and receive AT commands. It is very easy to follow and not hard to code. Just make sure that you read the updated document from SIMCOM and follow the commands. I can help you once I have this module in my hand.

ghost commented 2 years ago

@bhupiister Thank you, it would be great if you could just get me on my feet transferring a working code i had for another board for this one, again my coding knowledge is very limited... I created a repository where i added my working code for the lilygo t sim7000g as well as my old code for the sim7000 evb board and esp8266, and a butchered mix of the two, any help would be appreciated

ghost commented 2 years ago

@bhupiister https://github.com/Rax2647/GPS-Tracker.git

ghost commented 2 years ago

Solved !