PROBLEM SOLVED
After solving the SIM card slot hardware problem I have changed my debugging platform to QNavigator.
I have discovered that there was problem with my main SIM card. I was able to register to a network with my personal SIM card and also work with TCP/IP to send data to Thingspeak.
My QNavigator steps:
SIM initialization (SIM PIN removed beforehand)
Enter TCP/IP
TCP/UDP -> PDP ACT
IP Connect
Send data
Connection closes automatically
TCP/IP -> DEACT
Here is my last log:
/* MY APP HERE ************************************************************************************************************************************************************************************************************************************************** */
[2021-11-11 15:00:11:828_S:] AT+CPIN?
[2021-11-11 15:00:11:885_R:] AT+CPIN?
[2021-11-11 15:00:11:885_R:] +CPIN: READY
[2021-11-11 15:00:11:885_R:] OK
/* INITIALIZE SIM ************************************************************************************************************************************************************************************************************************************************** */
/* Start AT SYNC: Send AT every 500ms, if receive OK, SYNC success, if no OK return after sending AT 10 times, SYNC fail */
[2021-11-11 15:00:20:718_S:] AT
[2021-11-11 15:00:20:781_R:] AT
[2021-11-11 15:00:20:781_R:] OK
[2021-11-11 15:00:20:786_S:] ATI
[2021-11-11 15:00:20:847_R:] ATI
[2021-11-11 15:00:20:847_R:] Quectel
[2021-11-11 15:00:20:847_R:] BG95-M3
[2021-11-11 15:00:20:847_R:] Revision: BG95M3LAR02A03
[2021-11-11 15:00:20:847_R:] OK
[2021-11-11 15:00:20:855_S:] ATI
[2021-11-11 15:00:20:912_R:] ATI
[2021-11-11 15:00:20:912_R:] Quectel
[2021-11-11 15:00:20:912_R:] BG95-M3
[2021-11-11 15:00:20:912_R:] Revision: BG95M3LAR02A03
[2021-11-11 15:00:20:912_R:] OK
/* Use ATV1 to set the response format */
[2021-11-11 15:00:20:925_S:] ATV1
[2021-11-11 15:00:20:986_R:] ATV1
[2021-11-11 15:00:20:986_R:] OK
/* Use ATE1 to enable echo mode */
[2021-11-11 15:00:21:236_S:] ATE1
[2021-11-11 15:00:21:297_R:] ATE1
[2021-11-11 15:00:21:297_R:] OK
/* Use AT+CMEE=2 to enable result code and use verbose values */
[2021-11-11 15:00:21:446_S:] AT+CMEE=2
[2021-11-11 15:00:21:506_R:] AT+CMEE=2
[2021-11-11 15:00:21:506_R:] OK
/* Get the baudrate, if the value is 0 (auto baudrate), then it will be set to 115200 (fixed baudrate) to assure reliable communication and avoid any problems caused by undetermined baudrate between DCE and DTE, value of IPR should be saved with AT&W */
[2021-11-11 15:00:21:759_S:] AT+IPR?
[2021-11-11 15:00:21:820_R:] AT+IPR?
[2021-11-11 15:00:21:820_R:] +IPR: 115200
[2021-11-11 15:00:21:820_R:] OK
/* Use ATI to get module information of Manufacturer ID, Device module and Firmware version */
[2021-11-11 15:00:21:870_S:] ATI
[2021-11-11 15:00:21:931_R:] ATI
[2021-11-11 15:00:21:931_R:] Quectel
[2021-11-11 15:00:21:931_R:] BG95-M3
[2021-11-11 15:00:21:931_R:] Revision: BG95M3LAR02A03
[2021-11-11 15:00:21:931_R:] OK
/* Use AT+GSN to query the IMEI of module /
[2021-11-11 15:00:22:040_S:] AT+GSN
[2021-11-11 15:00:22:101_R:] AT+GSN
[2021-11-11 15:00:22:101_R:] 123**********
[2021-11-11 15:00:22:101_R:] OK
/* Use AT+CPIN? to query the SIM card status : SIM card inserted or not, locked or unlocked */
[2021-11-11 15:00:22:607_S:] AT+CPIN?
[2021-11-11 15:00:22:669_R:] AT+CPIN?
[2021-11-11 15:00:22:669_R:] +CPIN: READY
[2021-11-11 15:00:22:669_R:] OK
/* Use AT+CIMI to query the IMSI of SIM card /
[2021-11-11 15:00:22:781_S:] AT+CIMI
[2021-11-11 15:00:22:843_R:] AT+CIMI
[2021-11-11 15:00:22:843_R:] 123**********
[2021-11-11 15:00:22:843_R:] OK
/* Use AT+QCCID to query ICCID number of SIM card /
[2021-11-11 15:00:22:994_S:] AT+QCCID
[2021-11-11 15:00:23:056_R:] AT+QCCID
[2021-11-11 15:00:23:056_R:] +QCCID: 123************
[2021-11-11 15:00:23:056_R:] OK
/* Use AT+CSQ to query current signal quality */
[2021-11-11 15:00:23:106_S:] AT+CSQ
[2021-11-11 15:00:23:167_R:] AT+CSQ
[2021-11-11 15:00:23:167_R:] +CSQ: 31,99
[2021-11-11 15:00:23:167_R:] OK
/* Use AT+CEREG? to query the network registration status. */
[2021-11-11 15:00:23:179_S:] AT+CEREG?
[2021-11-11 15:00:23:240_R:] AT+CEREG?
[2021-11-11 15:00:23:240_R:] +CEREG: 0,4
[2021-11-11 15:00:23:240_R:] OK
/* Use AT+CEREG? to query the network registration status. */
[2021-11-11 15:00:25:252_S:] AT+CEREG?
[2021-11-11 15:00:25:315_R:] AT+CEREG?
[2021-11-11 15:00:25:315_R:] +CEREG: 0,4
[2021-11-11 15:00:25:315_R:] OK
/* Use AT+CEREG? to query the network registration status. */
[2021-11-11 15:00:27:327_S:] AT+CEREG?
[2021-11-11 15:00:27:389_R:] AT+CEREG?
[2021-11-11 15:00:27:389_R:] +CEREG: 0,4
[2021-11-11 15:00:27:389_R:] OK
/* Use AT+CEREG? to query the network registration status. */
[2021-11-11 15:00:29:402_S:] AT+CEREG?
[2021-11-11 15:00:29:465_R:] AT+CEREG?
[2021-11-11 15:00:29:465_R:] +CEREG: 0,4
[2021-11-11 15:00:29:465_R:] OK
/* Use AT+CEREG? to query the network registration status. */
[2021-11-11 15:00:31:478_S:] AT+CEREG?
[2021-11-11 15:00:31:540_R:] AT+CEREG?
[2021-11-11 15:00:31:540_R:] +CEREG: 0,4
[2021-11-11 15:00:31:540_R:] OK
/* Use AT+CEREG? to query the network registration status. */
[2021-11-11 15:00:33:554_S:] AT+CEREG?
[2021-11-11 15:00:33:614_R:] AT+CEREG?
[2021-11-11 15:00:33:614_R:] +CEREG: 0,4
[2021-11-11 15:00:33:614_R:] OK
/* Use AT+CEREG? to query the network registration status. */
[2021-11-11 15:00:35:629_S:] AT+CEREG?
[2021-11-11 15:00:35:689_R:] AT+CEREG?
[2021-11-11 15:00:35:689_R:] +CEREG: 0,4
[2021-11-11 15:00:35:689_R:] OK
/* Use AT+CEREG? to query the network registration status. */
[2021-11-11 15:00:37:705_S:] AT+CEREG?
[2021-11-11 15:00:37:765_R:] AT+CEREG?
[2021-11-11 15:00:37:765_R:] +CEREG: 0,4
[2021-11-11 15:00:37:765_R:] OK
/* Use AT+CEREG? to query the network registration status. */
[2021-11-11 15:00:39:780_S:] AT+CEREG?
[2021-11-11 15:00:39:841_R:] AT+CEREG?
[2021-11-11 15:00:39:841_R:] +CEREG: 0,4
[2021-11-11 15:00:39:841_R:] OK
[2021-11-11 15:00:40:611_S:] AT+COPS?
[2021-11-11 15:00:40:667_R:] AT+COPS?
[2021-11-11 15:00:40:667_R:] +COPS: 0,0,“Turkcell”,0
[2021-11-11 15:00:40:667_R:] OK
/* Use AT+CEREG? to query the network registration status. */
[2021-11-11 15:00:41:853_S:] AT+CEREG?
[2021-11-11 15:00:41:914_R:] AT+CEREG?
[2021-11-11 15:00:41:914_R:] +CEREG: 0,4
[2021-11-11 15:00:41:914_R:] OK
/* Make sure the Antenna is connected and the network is normal */
/* TCP/UDP ENTER ************************************************************************************************************************************************************************************************************************************************** */
/* use AT+CPIN? to query the SIM card status : SIM card inserted or not, locked or unlocked */
[2021-11-11 15:00:47:533_S:] AT+CPIN?
[2021-11-11 15:00:47:596_R:] AT+CPIN?
[2021-11-11 15:00:47:596_R:] +CPIN: READY
[2021-11-11 15:00:47:596_R:] OK
/* use AT+CSQ to query current signal quality */
[2021-11-11 15:00:47:608_S:] AT+CSQ
[2021-11-11 15:00:47:668_R:] AT+CSQ
[2021-11-11 15:00:47:668_R:] +CSQ: 31,99
[2021-11-11 15:00:47:668_R:] OK
/* use AT+CREG? /AT+CGREG? to query the network registration status, if the return value is [0,1] or [0,5], it is successfully registered, other value is fail to register */
[2021-11-11 15:00:47:680_S:] AT+CREG?
[2021-11-11 15:00:47:742_R:] AT+CREG?
[2021-11-11 15:00:47:742_R:] +CREG: 0,1
[2021-11-11 15:00:47:742_R:] OK
[2021-11-11 15:00:47:746_S:] AT+CGREG?
[2021-11-11 15:00:47:807_R:] AT+CGREG?
[2021-11-11 15:00:47:807_R:] +CGREG: 0,1
[2021-11-11 15:00:47:807_R:] OK
/* TCP/UDP -> PDP ACT ************************************************************************************************************************************************************************************************************************************************** */
/* Use AT+CPIN? to query the SIM status */
[2021-11-11 15:00:50:147_S:] AT+CPIN?
[2021-11-11 15:00:50:203_R:] AT+CPIN?
[2021-11-11 15:00:50:203_R:] +CPIN: READY
[2021-11-11 15:00:50:203_R:] OK
/* Use AT+CEREG? to query network registration status */
[2021-11-11 15:00:50:216_S:] AT+CEREG?
[2021-11-11 15:00:50:278_R:] AT+CEREG?
[2021-11-11 15:00:50:278_R:] +CEREG: 0,4
[2021-11-11 15:00:50:278_R:] OK
/* Use AT+QICSGP=1,1,“UNINET”,“mms”,"",0 to set APN as “UNINET”,user name as “mms”,password as “”*/
[2021-11-11 15:00:50:291_S:] AT+QICSGP=1,1,“UNINET”,“mms”,"",0
[2021-11-11 15:00:50:351_R:] AT+QICSGP=1,1,“UNINET”,“mms”,"",0
[2021-11-11 15:00:50:351_R:] OK
/* Query the status of the context profile */
[2021-11-11 15:00:50:363_S:] AT+QIACT?
[2021-11-11 15:00:50:423_R:] AT+QIACT?
[2021-11-11 15:00:50:423_R:] OK
/* Activate context profile */
[2021-11-11 15:00:50:434_S:] AT+QIACT=1
[2021-11-11 15:00:50:495_R:] AT+QIACT=1
[2021-11-11 15:00:51:358_R:] OK
/* Query the status of the context profile /
[2021-11-11 15:00:51:370_S:] AT+QIACT?
[2021-11-11 15:00:51:432_R:] AT+QIACT?
[2021-11-11 15:00:51:432_R:] +QIACT: 1,1,1,"10.181..*"
[2021-11-11 15:00:51:432_R:] OK
/* IP CONNECT_1 ************************************************************************************************************************************************************************************************************************************************** */
/* Use ATV1 to set the response format */
[2021-11-11 15:00:55:235_S:] ATV1
[2021-11-11 15:00:55:299_R:] ATV1
[2021-11-11 15:00:55:299_R:] OK
/* Use AT+QIOPEN=1,0,“TCP”,“184.106.153.149”,80,0,1 to connect to a TCP server (IP address: 184.106.153.149:80). */
[2021-11-11 15:00:55:313_S:] AT+QIOPEN=1,0,“TCP”,“184.106.153.149”,80,0,1
[2021-11-11 15:00:55:374_R:] AT+QIOPEN=1,0,“TCP”,“184.106.153.149”,80,0,1
[2021-11-11 15:00:55:374_R:] OK
[2021-11-11 15:00:56:530_R:] +QIOPEN: 0,0
/* SEND DATA_1 ************************************************************************************************************************************************************************************************************************************************** */
/* Use AT+QISEND=0 to send data to server, “>” from the UART or USB port indicates the following input data is considered as data to be sent. After receiving “>”, input data (TEST), the maximum length of the data is 1460, the data beyond 1460 will be omitted. Then use <CTRL+Z> to send data. When receive SEND OK means the data has been sent */
[2021-11-11 15:00:57:769_S:] AT+QISEND=0
[2021-11-11 15:00:57:830_R:] AT+QISEND=0
[2021-11-11 15:00:57:830_R:] > GET https://api.thingspeak.com/update?api_key=***********&field1=123
[2021-11-11 15:00:58:088_R:] SEND OK
/* Use AT+QISEND=0,0 to query whether all the data have been sent out */
[2021-11-11 15:00:58:100_S:] AT+QISEND=0,0
[2021-11-11 15:00:58:160_R:] AT+QISEND=0,0
[2021-11-11 15:00:58:160_R:] +QISEND: 77,0,77
[2021-11-11 15:00:58:160_R:] OK
[2021-11-11 15:00:59:169_S:] AT+QISEND=0,0
[2021-11-11 15:00:59:225_R:] AT+QISEND=0,0
[2021-11-11 15:00:59:225_R:] +QISEND: 77,77,0
[2021-11-11 15:00:59:225_R:] OK
[2021-11-11 15:00:59:225_R:] +QIURC: “recv”,0,1
[2021-11-11 15:00:59:225_R:] 1
[2021-11-11 15:00:59:225_R:] +QIURC: “closed”,0
/* Use AT+QICLOSE=0 to change the <socket_state> to initial */
[2021-11-11 15:01:01:650_S:] AT+QICLOSE=0
[2021-11-11 15:01:01:712_R:] AT+QICLOSE=0
[2021-11-11 15:01:01:712_R:] OK
/*
- More re-connection and send data.
- Repeated processes omitted.
-
-
*/
/* TCP/UDP DEACT ************************************************************************************************************************************************************************************************************************************************** */
/* Use ATE1 to enable echo mode */
[2021-11-11 15:08:14:595_S:] ATE1
[2021-11-11 15:08:14:657_R:] ATE1
[2021-11-11 15:08:14:657_R:] OK
/* Use AT+QIDEACT=1 to deactivate GPRS context */
[2021-11-11 15:08:15:108_S:] AT+QIDEACT=1
[2021-11-11 15:08:15:169_R:] AT+QIDEACT=1
[2021-11-11 15:08:15:806_R:] OK