<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>deciphering the sms response Keil oriented,the string manipulations</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/24790/deciphering-the-sms-response-keil-oriented-the-string-manipulations</link><description> 
(using a phone as a modem gsm).Avoiding the problems of delays,AT
gramathic having a lucky of using textmode,I waiting a string of only
4 numbers,but I receive also of course a lot information as sender
number,time,..the &amp;quot;okeys&amp;quot;back from the phone etc</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: deciphering the sms response Keil oriented,the string manipulations</title><link>https://community.arm.com/thread/125169?ContentTypeID=1</link><pubDate>Sat, 10 Jan 2009 05:10:32 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:c4c61c4f-8e3b-4ace-97b4-9ad7d516ab13</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
Yes, I second that.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: deciphering the sms response Keil oriented,the string manipulations</title><link>https://community.arm.com/thread/114572?ContentTypeID=1</link><pubDate>Sat, 10 Jan 2009 03:07:24 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:6513d3c9-3657-4b28-abbe-5a3f7eb7e872</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
I really can&amp;#39;t see this as an exercise. Stripping a response
string into the individual fields and picking up the relevant
information is a quite trivial operation.&lt;/p&gt;

&lt;p&gt;
Scanning from the start has the big advantage that the processor
may throw away irrelevant information on-the-fly which may possibly
reduce the required buffer sizes. I normally use a state machine and
work character for character through the data.&lt;/p&gt;

&lt;p&gt;
It takes time for the tranfer of serial data because of the
baudrate. Processing the data while it arrives means that you can
know the result a the same moment as you get the last character of
the line.&lt;/p&gt;

&lt;p&gt;
I work with the ARM tools, not the C51 tools. Must have missed
anything about any bugs...&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: deciphering the sms response Keil oriented,the string manipulations</title><link>https://community.arm.com/thread/102931?ContentTypeID=1</link><pubDate>Sat, 10 Jan 2009 00:12:17 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:9c500020-9c45-4cf3-bdda-8775abde5064</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
What bug(s)?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: deciphering the sms response Keil oriented,the string manipulations</title><link>https://community.arm.com/thread/77039?ContentTypeID=1</link><pubDate>Fri, 09 Jan 2009 23:08:35 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:cb03ec1d-4afa-4aba-86d1-a2b745c823c1</guid><dc:creator>carlos andador</dc:creator><description>&lt;p&gt;&lt;p&gt;
converting digit caracters from the string into a numeric
value...of course... you sugest &amp;quot;start at the end of the response and
work backwards to the start of your application-specific text!&amp;quot;&lt;br /&gt;
because the information on the received sms string is at the end of
the string text (the 4 caracters)&lt;br /&gt;
But given the bugs with function for string conversions we&amp;#39;ve been
seing on Keil like atoi,strtol,atof and the others,Im asking to the
experts for a most robust way,or at last if you where in my place:how
you should avoid those conversions bugs and extract the 4
caracters,or use others functions,..&amp;quot;text parsing exercise&amp;quot;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: deciphering the sms response Keil oriented,the string manipulations</title><link>https://community.arm.com/thread/53241?ContentTypeID=1</link><pubDate>Wed, 07 Jan 2009 23:06:40 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:29a7e535-7856-4ff3-a69e-22b47624e573</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
This has nothing specifically to do with the 8051 nor Keil - it is
a standard &amp;#39;C&amp;#39; text parsing exercise.&lt;/p&gt;

&lt;p&gt;
The &amp;quot;preamble&amp;quot; giving the sender number, etc, is in a standard
format with well-defined delimiters between the elements.&lt;br /&gt;
So you just need to &amp;quot;walk&amp;quot; through those elements - and what follows
them must be your application-specific text!&lt;/p&gt;

&lt;p&gt;
Or, perhaps, you could start at the end of the response and work
&lt;i&gt;backwards&lt;/i&gt; to the start of your application-specific text!&lt;/p&gt;

&lt;p&gt;
Converting the digit characters from a text string into a numeric
value is trivial...&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>