Hi Dave,
I think your latest solution might have worked, but I had already got it working by parsing it after the fact based on Jersons parse routine. I really appreciate everyones input. Here is...
Type: Posts; User: TerdRatchett; Keyword(s):
Hi Dave,
I think your latest solution might have worked, but I had already got it working by parsing it after the fact based on Jersons parse routine. I really appreciate everyones input. Here is...
That was the way I read the manual as well. I thought that as soon as the function saw a character meeting the WAIT criteria it would terminate collecting any more characters. In fact what I'm seeing...
Hi David,
That would almost work. The problem is that neither string is guaranteed to be exactly 5 characters. So if the sent data was 1499,136 I would actually get 1499, likewise if the data is...
So now that I'm just looking at a parsing issue I've changed the serial in code to:
hserIN 65535, oops, [STR smallp\5, WAIT(","), STR largep\5\10]
It doesn't work as expected. When...
Well, I got the serial function working reliably by doing this:
hserIN 65535, oops, [STR smallp\12\10]
rather than this:
hserIN 65535, oops, [STR smallp\12\13]
aparently...
and to make matters worse I am unable to consistantly and correctly receive serial packets.
I think that's a great suggestion and I agree. I have been unable to successfully parse it after the fact.
I appreciate your help! Very confused :(
hserIN 65535, oops, [STR smallp\10\","]
The first time thru I get the correct first part of the string. the device was sent 777,53 and smallp received...
I've tried dozens of ideas along those lines and no solution works....
Like:
hserIN 65535, oops, [STR smallp\5, WAIT(","), STR largep\5\13]
problem here is the string size I expect to receive...
Both great suggestions for which I appreciate!!! I'm pondering....
I appreciate all of your help!
I had written the code using Hserin to capture the raw data from my serial port into a single string of [10]. It works so now I need to separate the two values....
Hi Everyone,
I have written a big chunk of code an it is working well, but I am stuck on something having to do with strings.
I have received a string from a serial device which contains two...