C++ builder 6 pros need help
•
30 Mar 2010, 15:40
•
Journals
Hoi Crossfire,
I'm a student in network & development. My group project is a Weather report Station.
My job in this project at the moments is to develop an application to link the card with a server ( database....). The link is made by RS232,baud rate no parity etc.
So before my mate finished the card i have to train on a GPS captor.
I'm working with C++ builder 6, installed the Tcomport api to communicate with RS232 link.
The connexion between the computer and the captor has been succesfull, so now i have to manage to filter the nmea frames.
Every frames are sent every seconds, the thing is the code i created, provides only GPRMS frames from the captor, and seems to bug after a few seconds.
Giving the source code if anybodys sees any mistake, I would like to have some advice about the rxchar part from the code.
Thanks in advance.
description :
My problem is located on the ComPort1RxChar part :
variables : dollar is to take the $ which is the beginning of a nmea frame.
etoile is to take the end of the frame "*".
longTrame is the length
The problem might be in the condition "if.....{}" but i can't find what makes me get only a few part of the datas.
I'm a student in network & development. My group project is a Weather report Station.
My job in this project at the moments is to develop an application to link the card with a server ( database....). The link is made by RS232,baud rate no parity etc.
So before my mate finished the card i have to train on a GPS captor.
I'm working with C++ builder 6, installed the Tcomport api to communicate with RS232 link.
The connexion between the computer and the captor has been succesfull, so now i have to manage to filter the nmea frames.
Every frames are sent every seconds, the thing is the code i created, provides only GPRMS frames from the captor, and seems to bug after a few seconds.
Giving the source code if anybodys sees any mistake, I would like to have some advice about the rxchar part from the code.
Thanks in advance.
description :
My problem is located on the ComPort1RxChar part :
variables : dollar is to take the $ which is the beginning of a nmea frame.
etoile is to take the end of the frame "*".
longTrame is the length
The problem might be in the condition "if.....{}" but i can't find what makes me get only a few part of the datas.
Code Hacks
alrdy 2 high