Hi Folks
Looking for help to interface a GPS sensor unit with a rs232 ascii string ouput to a 877A. The rs232 board tests successfully using rs232.hex.
The string ouput has a CR LF at the end and I hope to evaluate each of the parameters within this string (3 in total) for use within a flowcode program.
Anybody been there or know of anyone who has?
Regards
Dave.
Help needed with RS232 and 877A.
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Hi Dave
We are looking to implement a GPS E-block in the near future but unfortunatly I have no information about them at the moment and therefore I cannot really help you at this point in time. Let us know how you get on.
We are looking to implement a GPS E-block in the near future but unfortunatly I have no information about them at the moment and therefore I cannot really help you at this point in time. Let us know how you get on.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- Steve
- Matrix Staff
- Posts: 3422
- Joined: Tue Jan 03, 2006 3:59 pm
- Has thanked: 114 times
- Been thanked: 422 times
- Contact:
Hello Dave,
Create an array (e.g. DATA[24]) within Flowcode (how big it is depends on the size of your expected input). Also create a variable (e.g. IDX) to keep track of the index and another (e.g. IN) to read rs232 data. Here's a suggested procedure:
1) IDX = 0
2) IN = read_rs232()
3) if data exists
4) DATA[IDX] = IN
5) IDX = IDX + 1
6) if IN = CR or LF, exit the loop and process data
7) otherwise, loop back to (2)
Create an array (e.g. DATA[24]) within Flowcode (how big it is depends on the size of your expected input). Also create a variable (e.g. IDX) to keep track of the index and another (e.g. IN) to read rs232 data. Here's a suggested procedure:
1) IDX = 0
2) IN = read_rs232()
3) if data exists
4) DATA[IDX] = IN
5) IDX = IDX + 1
6) if IN = CR or LF, exit the loop and process data
7) otherwise, loop back to (2)