Hi. I want ask, for some problem what I find if test my program.
If send to GSM module any AT command (test only few) then GSM module respond :
at command (is is enable to send) and + char 13 + char 10 after this send :
char 13 + char 10 respond + char 13 + char 10
+ char 13 + char 10 OK + char 13 + char 10
example :
I send to GSM : AT+GMI +13+10
GSM answer :
AT+GMI + 13+10
+13+10 +Telit+13+10
+13+10+OK+13+10
I receive this directly from Tx pin in GSM to hardware COM port in my PC.
and what is problem???
some time GSM module answer only AT+GMI+13 , missing char 10
I need this , it’s very important for me , in PC if receive this string and want copy just Manufacturer then just copy string from to but if missing some char then I bud copy data , yes I can control where are data start but :
is it problem in firmware or what ???
regards
Please report firmware version.
AT+GMR
10.00.004
I made a small program to send and watch response, automatically: in 800 trials failed 10 times to echo LF.
But think at these:
– the first line of the response is the echo of what you are sending
– you should terminate the command with CR, ie dec 13 hex 0D and not with CR-LF. Maybe the unnecessary LF is ignored and discarded even in echo sometimes
– solution: don’t send LF, and look for the first CR-LF, before "Telit", as the start in your parsing
thanks ,
I thinks so problem is so need terminate command only with 13 don’t need use 10
and yes I create small function what parse received data and work good.
We use cookies to enhance your browsing experience and help us improve our websites. To improve our website, we carefully select third parties that use cookies to allow us to serve specific content and achieve the purposes set out in our cookie policy. For more information on how to make adjustments through your browser to the cookies being used on your device, please click Find Out More link. By closing this banner or continuing to browse our website, you agree to our use of such cookies. FIND OUT MORE
Hi.
I want ask, for some problem what I find if test my program.
If send to GSM module any AT command (test only few) then GSM module respond :
at command (is is enable to send) and + char 13 + char 10 after this send :
char 13 + char 10 respond + char 13 + char 10
+ char 13 + char 10 OK + char 13 + char 10
example :
I send to GSM : AT+GMI +13+10
GSM answer :
AT+GMI + 13+10
+13+10 +Telit+13+10
+13+10+OK+13+10
I receive this directly from Tx pin in GSM to hardware COM port in my PC.
and what is problem???
some time GSM module answer only AT+GMI+13 , missing char 10
I need this , it’s very important for me , in PC if receive this string and want copy just Manufacturer then just copy string from to but if missing some char then I bud copy data , yes I can control where are data start but :
is it problem in firmware or what ???
regards
Please report firmware version.
AT+GMR
10.00.004
I made a small program to send and watch response, automatically: in 800 trials failed 10 times to echo LF.
But think at these:
– the first line of the response is the echo of what you are sending
– you should terminate the command with CR, ie dec 13 hex 0D and not with CR-LF. Maybe the unnecessary LF is ignored and discarded even in echo sometimes
– solution: don’t send LF, and look for the first CR-LF, before "Telit", as the start in your parsing
thanks ,
I thinks so problem is so need terminate command only with 13 don’t need use 10
and yes I create small function what parse received data and work good.
regards