This is not like that that communication stuff is somehow corrupted immediately when GC is executed but it looks like that from my debug snippet because I have copied right communication transaction sequence
stringToSend: AT+CREG?
responseTimeout: 500
maxTimeoutBetweenCharacters: 100
numOfReceivedBytes: 20
receivedString:
+CREG: 0,1
OK
immediately before GC stuff to see the difference.
Here is whole problematic sequence:
From my DEBUG output(COM1):
stringToSend: AT+CREG?
responseTimeout: 500
maxTimeoutBetweenCharacters: 100
numOfReceivedBytes: 20
receivedString:
+CREG: 0,1
OK
stringToSend: AT+CMGL=“ALL”
responseTimeout: 2000
maxTimeoutBetweenCharacters: 500
numOfReceivedBytes: 6
receivedString:
OK
stringToSend: AT+CLCC
responseTimeout: 5000
maxTimeoutBetweenCharacters: 500
numOfReceivedBytes: 6
receivedString:
OK
GC: 2msec 448980 bytes used, 66656784 bytes available
Type 0F (STRING ): 7728 bytes
Type 11 (CLASS ): 33276 bytes
Type 12 (VALUETYPE ): 3144 bytes
Type 13 (SZARRAY ): 11280 bytes
Type 01 (BOOLEAN ): 24 bytes
Type 03 (U1 ): 3060 bytes
Type 04 (CHAR ): 1032 bytes
Type 07 (I4 ): 1716 bytes
Type 0F (STRING ): 648 bytes
Type 11 (CLASS ): 4800 bytes
Type 15 (FREEBLOCK ): 66656784 bytes
Type 17 (ASSEMBLY ): 38004 bytes
Type 18 (WEAKCLASS ): 48 bytes
Type 19 (REFLECTION ): 168 bytes
Type 1B (DELEGATE_HEAD ): 648 bytes
Type 1D (OBJECT_TO_EVENT ): 552 bytes
Type 1E (BINARY_BLOB_HEAD ): 343248 bytes
Type 1F (THREAD ): 2688 bytes
Type 20 (SUBTHREAD ): 336 bytes
Type 21 (STACK_FRAME ): 2244 bytes
Type 22 (TIMER_HEAD ): 216 bytes
Type 27 (FINALIZER_HEAD ): 408 bytes
Type 31 (IO_PORT ): 396 bytes
Type 33 (I2C_XACTION ): 48 bytes
Type 34 (APPDOMAIN_HEAD ): 72 bytes
Type 36 (APPDOMAIN_ASSEMBLY ): 4476 bytes
GC: performing heap compaction…
stringToSend: AT+CREG?
responseTimeout: 500
receivedString:
stringToSend: AT+CREG?
responseTimeout: 500
receivedString:
stringToSend: AT+CREG?
responseTimeout: 500
receivedString:
stringToSend: AT+CREG?
responseTimeout: 500
receivedString:
gsmTaskState (%5): 2
debugCounter (%5): 11450
time (%5): 02/05/2015 11:12:51
stringToSend: AT+CREG?
responseTimeout: 500
receivedString:
GC: 2msec 448980 bytes used, 66656784 bytes available
Type 0F (STRING ): 7728 bytes
Type 11 (CLASS ): 33276 bytes
Type 12 (VALUETYPE ): 3144 bytes
Type 13 (SZARRAY ): 11280 bytes
Type 01 (BOOLEAN ): 24 bytes
Type 03 (U1 ): 3060 bytes
Type 04 (CHAR ): 1032 bytes
Type 07 (I4 ): 1716 bytes
Type 0F (STRING ): 648 bytes
Type 11 (CLASS ): 4800 bytes
Type 15 (FREEBLOCK ): 66656784 bytes
Type 17 (ASSEMBLY ): 38004 bytes
Type 18 (WEAKCLASS ): 48 bytes
Type 19 (REFLECTION ): 168 bytes
Type 1B (DELEGATE_HEAD ): 648 bytes
Type 1D (OBJECT_TO_EVENT ): 552 bytes
Type 1E (BINARY_BLOB_HEAD ): 343248 bytes
Type 1F (THREAD ): 2688 bytes
Type 20 (SUBTHREAD ): 336 bytes
Type 21 (STACK_FRAME ): 2244 bytes
Type 22 (TIMER_HEAD ): 216 bytes
Type 27 (FINALIZER_HEAD ): 408 bytes
Type 31 (IO_PORT ): 396 bytes
Type 33 (I2C_XACTION ): 48 bytes
Type 34 (APPDOMAIN_HEAD ): 72 bytes
Type 36 (APPDOMAIN_ASSEMBLY ): 4476 bytes
GC: performing heap compaction…
stringToSend: AT+CREG?
responseTimeout: 500
receivedString:
stringToSend: AT+CREG?
responseTimeout: 500
receivedString:
stringToSend: AT+CREG?
responseTimeout: 500
receivedString:
stringToSend: AT+CREG?
responseTimeout: 500
receivedString:
gsmTaskState (%5): 2
debugCounter (%5): 11455
time (%5): 02/05/2015 11:12:54
stringToSend: AT+CREG?
responseTimeout: 500
receivedString:
GC: 2msec 448980 bytes used, 66656784 bytes available
Type 0F (STRING ): 7728 bytes
Type 11 (CLASS ): 33276 bytes
Type 12 (VALUETYPE ): 3144 bytes
Type 13 (SZARRAY ): 11280 bytes
Type 01 (BOOLEAN ): 24 bytes
Type 03 (U1 ): 3060 bytes
Type 04 (CHAR ): 1032 bytes
Type 07 (I4 ): 1716 bytes
Type 0F (STRING ): 648 bytes
Type 11 (CLASS ): 4800 bytes
Type 15 (FREEBLOCK ): 66656784 bytes
Type 17 (ASSEMBLY ): 38004 bytes
Type 18 (WEAKCLASS ): 48 bytes
Type 19 (REFLECTION ): 168 bytes
Type 1B (DELEGATE_HEAD ): 648 bytes
Type 1D (OBJECT_TO_EVENT ): 552 bytes
Type 1E (BINARY_BLOB_HEAD ): 343248 bytes
Type 1F (THREAD ): 2688 bytes
Type 20 (SUBTHREAD ): 336 bytes
Type 21 (STACK_FRAME ): 2244 bytes
Type 22 (TIMER_HEAD ): 216 bytes
Type 27 (FINALIZER_HEAD ): 408 bytes
Type 31 (IO_PORT ): 396 bytes
Type 33 (I2C_XACTION ): 48 bytes
Type 34 (APPDOMAIN_HEAD ): 72 bytes
Type 36 (APPDOMAIN_ASSEMBLY ): 4476 bytes
GC: performing heap compaction…
stringToSend: AT+CREG?
responseTimeout: 500
receivedString:
stringToSend: AT+CREG?
responseTimeout: 500
receivedString:
stringToSend: AT+CREG?
responseTimeout: 500
receivedString:
stringToSend: AT+CREG?
responseTimeout: 500
receivedString:
gsmTaskState (%5): 2
debugCounter (%5): 11460
time (%5): 02/05/2015 11:12:58
stringToSend: AT+CREG?
responseTimeout: 500
receivedString:
GC: 2msec 448980 bytes used, 66656784 bytes available
Type 0F (STRING ): 7728 bytes
Type 11 (CLASS ): 33276 bytes
Type 12 (VALUETYPE ): 3144 bytes
Type 13 (SZARRAY ): 11280 bytes
Type 01 (BOOLEAN ): 24 bytes
Type 03 (U1 ): 3060 bytes
Type 04 (CHAR ): 1032 bytes
Type 07 (I4 ): 1716 bytes
Type 0F (STRING ): 648 bytes
Type 11 (CLASS ): 4800 bytes
Type 15 (FREEBLOCK ): 66656784 bytes
Type 17 (ASSEMBLY ): 38004 bytes
Type 18 (WEAKCLASS ): 48 bytes
Type 19 (REFLECTION ): 168 bytes
Type 1B (DELEGATE_HEAD ): 648 bytes
Type 1D (OBJECT_TO_EVENT ): 552 bytes
Type 1E (BINARY_BLOB_HEAD ): 343248 bytes
Type 1F (THREAD ): 2688 bytes
Type 20 (SUBTHREAD ): 336 bytes
Type 21 (STACK_FRAME ): 2244 bytes
Type 22 (TIMER_HEAD ): 216 bytes
Type 27 (FINALIZER_HEAD ): 408 bytes
Type 31 (IO_PORT ): 396 bytes
Type 33 (I2C_XACTION ): 48 bytes
Type 34 (APPDOMAIN_HEAD ): 72 bytes
Type 36 (APPDOMAIN_ASSEMBLY ): 4476 bytes
GC: performing heap compaction…
stringToSend: AT+CREG?
responseTimeout: 500
receivedString:
stringToSend: AT+CREG?
responseTimeout: 500
receivedString:
stringToSend: AT+CREG?
responseTimeout: 500
receivedString:
stringToSend: AT+CREG?
responseTimeout: 500
receivedString:
gsmTaskState (%5): 2
debugCounter (%5): 11465
time (%5): 02/05/2015 11:13:02
stringToSend: AT+CREG?
responseTimeout: 500
RomBOOT
G400
Version: 4.3.6.0
Debug: COM1
LCD: 0x0
úG400
Version: 4.3.6.0
Debug: COM1
LCD: 0x0
.NetMF v4.3.1.0
G400, Build Date:
Oct 21 2014 13:05:29
ARM Compiler version 410713
TinyCLR (Build 4.3.1.0)
Starting…
Created EE.
Started Hardware.
MSdbgV1 •…ó
"p đ› Create TS.
Loading start at 202d8818, end 20307cac
Assembly: mscorlib (4.3.1.0) Assembly: Microsoft.SPOT.Native (4.3.1.0) Assembly: Microsoft.SPOT.Security.PKCS11 (4.3.1.0) Assembly: System.Security (4.3.1.0) Assembly: Microsoft.SPOT.Hardware (4.3.1.0) Assembly: Microsoft.SPOT.Graphics (4.3.1.0) Assembly: Microsoft.SPOT.TinyCore (4.3.1.0) Assembly: Microsoft.SPOT.IO (4.3.1.0) Assembly: System.IO (4.3.1.0) Assembly: Microsoft.SPOT.Hardware.Usb (4.3.1.0) Assembly: Microsoft.SPOT.Hardware.SerialPort (4.3.1.0) Assembly: Microsoft.SPOT.Touch (4.3.1.0) Assembly: Microsoft.SPOT.Ink (4.3.1.0) Assembly: Microsoft.SPOT.Hardware.PWM (4.3.1.0) Loading Deployment Assemblies.