Venus gps utility bug
Home › Forums › MultiConnect OCG › Venus gps utility bug
- This topic has 15 replies, 3 voices, and was last updated 11 years, 2 months ago by Bryan Tran.
-
AuthorPosts
-
August 13, 2013 at 1:24 am #4610Miguel ÁngelParticipant
I am use Venus-gps utility with zda option compiled and I run the program:
venus-gps –mode server –port 8888 –gga 0 –gsa 0 –gsv 0 –gll 0 –rmc 5 –zda 0 –vtg 0
I observed that always get the same error. The eighth message always arrives incomplete, look at the following image:
https://www.dropbox.com/l/C90HmiDUoF6acnG21QWOjF
Is this normal?
- This topic was modified 11 years, 3 months ago by Miguel Ángel.
- This topic was modified 11 years, 3 months ago by Miguel Ángel.
- This topic was modified 11 years, 3 months ago by Miguel Ángel.
August 13, 2013 at 5:55 pm #4620Darrik SpaudeKeymasterNo, that doesn’t appear to be normal. We have done testing with that utility and didn’t notice the malformed responses.
Which product/model are you using?
Which version of CoreCDP are you using?
August 16, 2013 at 4:24 am #4627Miguel ÁngelParticipantThe product/model is MTCDP-H5-GP and the version of CoreCDP is 2.2.2.
I made one more test. I have run the original application venus-gps (venus-gps –mode server –port 8888 –gga 0 –gsa 0 –gsv 0 –gll 0 –rmc 5 –vtg 0) and the result is the following:
https://www.dropbox.com/l/YU94s2X5dERc8xXmLsTFH9
In the picture you see that I do not receive complete messages.
¿what is the problem?
- This reply was modified 11 years, 3 months ago by Miguel Ángel.
August 16, 2013 at 4:37 am #4629Miguel ÁngelParticipantI’ve been tested on another MTCDP-H4-GP with version of CoreCDP is 1.1.1.
I have run the original application venus-gps (venus-gps –mode server –port 8888 –gga 0 –gsa 0 –gsv 0 –gll 0 –rmc 5 –vtg 0) and the result is the following:
https://www.dropbox.com/l/kLeMj5SLTUN86xvaoXNC4b
In this case do not appear zda frames but I receive incomplete messages.
- This reply was modified 11 years, 3 months ago by Miguel Ángel.
- This reply was modified 11 years, 3 months ago by Miguel Ángel.
August 20, 2013 at 4:57 am #4638Miguel ÁngelParticipantCan anyone check if the same thing happens?
August 20, 2013 at 2:52 pm #4639Bryan TranModeratorHi Miguel,
Pls, try this and let me know if this fix the problem.
1. Go to your /corecdp-2.2.2/bitbake venus-gps -c devshell
2. Another window popped-up, then go to /src
3. Type gedit cbuffer.c
4. Go to function – bufferred_read (int fd, struct cbuffer *buf), and find:
…
if(len <= 0){
if(total) {
return total;
…change it to:
…
if(len <= 0){
if(total) {
buf->write_index = i + len;
return total;
…5. Save and then type: exit
6. Then type: bitbake venus-gps -f -c compile
7. Type: bitbake corecdp-base-image or whatever yours might be.
8. Upload to the CDP and see if it helps.
Regards,
BT
August 21, 2013 at 2:13 am #4641Miguel ÁngelParticipantHi Bryan,
I have made the changes.
Now I get an error only in the frame number 8. See the following image:
https://www.dropbox.com/s/252kbbf1c8amd8w/captura5.png
Can you see that disappears the digit 6 in frame number 8? This error appear only in frame number 8. If I restart the application reappears the error. This error is not very serious because I use the CRC to check error frames.
Is it an error from “HW gps” or “SW venus-gps”? It can be corrected?
Thanks a lot
- This reply was modified 11 years, 3 months ago by Miguel Ángel.
August 22, 2013 at 8:31 am #4643Bryan TranModeratorHi Miguel,
This should fix your problem. Pls, use the same procedure to go into the cbuffer.c and go to function – bufferred_read (int fd, struct cbuffer *buf), and find:
…
int total=0;i = buf->write_index;
….
Change it to:
…
int total=0;i = buf->write_index;
if( i == -1 )
i=0;
….
Then do: Save and then type – exit
Then type: bitbake venus-gps -f -c compile
Type: bitbake corecdp-base-image or whatever yours might be.
Upload to the CDP and test it out.
Regards,
BT
August 22, 2013 at 8:52 am #4644Bryan TranModeratorHi Miguel,
I forgot to mention that – You also need to re – add the previous fix and the new fix at the same time and recompile them. This is because the previous fix will not be there in the file.
I will try to put this fix into git repos once I have confirmed from you. So that later on other people do not have to add it manually.
Thanks,
BT
August 22, 2013 at 9:32 am #4645Miguel ÁngelParticipantHi Bryan! It works ok, thanks a lot for your support!
September 16, 2013 at 5:27 am #4681Miguel ÁngelParticipantHi Bryan!
I think I’ve found some bug.
I run the application venus-gps (venus-gps –mode server –port 8888 –gga 30 –gsa 0 –gsv 30 –gll 0 –rmc 5 –vtg 0) and the result is the following:
$GPRMC,100700.841,A,3935.3672,N,00239.1183,E,000.8,067.9,160913,,,A*66 $GPGGA,100705.841,3935.3670,N,00239.1256,E,1,03,2.0,0.0,M,47.3,M,,0000*55 $GPGSV,3,1,11,31,65,273,00,29,64,037,00,25,48,090,,21,40,172,24*76 $GPGSV,3,2,11,12,11,103,09,14,08,218,31,05,05,067,12,16,05,294,21*78 $GPGSV,3,3,11,02,03,036,21,06,01,247,,23,00,332,*4B $GPRMC,100705.841,A,3935.3670,N,00239.1256,E,002.8,068.4,160913,,,A*6A $GPRMC,100710.841,V,3935.3670,N,00239.1256,E,002.8,068.4,160913,,,N*76 $GPRMC,100715.841,A,3935.3650,N,00239.1286,E,001.1,072.9,160913,,,A*68 $GPRMC,100720.841,A,3935.3644,N,00239.1282,E,000.0,078.0,160913,,,A*6C $GPRMC,100725.841,A,3935.3643,N,00239.1280,E,000.0,078.0,160913,,,A*6C $GPRMC,100730.841,A,3935.3643,N,00239.1280,E,000.0,078.0,160913,,,A*68 $GPGGA,100735.841,3935.3643,N,00239.1280,E,1,05,2.0,0.0,M,47.3,M,,0000*5B $GPGSV,3,1,11,31,65,273,32,29,64,037,25,25,48,091,00,21,40,172,27*72 $GPGSV,3,2,11,12,10,103,11,14,08,218,30,16,06,294,19,05,05,067,*7A $GPGSV,3,3,11,02,03,036,22,06,01,247,,23,00,332,*48 $GPRMC,100735.841,A,3935.3643,N,00239.1280,E,000.0,078.0,160913,,,A*6D $GPRMC,100740.841,A,3935.3635,N,00239.1278,E,000.0,078.0,160913,,,A*69 $GPRMC,100745.841,A,3935.3635,N,00239.1278,E,000.0,078.0,160913,,,A*6C $GPRMC,100750.841,V,3935.3643,N,00239.1275,E,004.2,078.0,160913,,,E*71 $GPRMC,100755.841,A,3935.3642,N,00239.1264,E,000.0,078.0,160913,,,A*60 $GPRMC,100800.841,A,3935.3639,N,00239.1260,E,000.0,078.0,160913,,,A*67 $GPGGA,100805.841,3935.3639,N,00239.1260,E,1,06,1.4,0.0,M,47.3,M,,00,160913,,,A*62 $GPRMC,100810.841,A,3935.3640,N,00239.1260,E,000.0,078.0,160913,,,A*68 $GPRMC,100815.841,A,3935.3640,N,00239.1260,E,000.0,078.0,160913,,,A*6D $GPRMC,100820.841,A,3935.3640,N,00239.1260,E,000.0,078.0,160913,,,A*6B $GPRMC,100825.841,A,3935.3640,N,00239.1260,E,000.0,288.3,160913,,,A*60 $GPRMC,100830.841,A,3935.3641,N,00239.1258,E,000.0,288.3,160913,,,A*6E $GPGGA,100835.841,3935.3641,N,00239.1258,E,1,07,1.1,0.0,M,47.3,M,,0000*53 $GPGSV,3,1,11,31,65,271,25,29,63,037,27,25,48,091,18,21,40,171,20*7E $GPGSV,3,2,11,12,10,103,17,14,08,218,28,16,06,294,16,05,05,067,*7A $GPGSV,3,3,11,02,03,036,20,06,02,248,,23,00,332,*46 $GPRMC,100835.841,A,3935.3641,N,00239.1258,E,000.0,288.3,160913,,,A*6B $GPRMC,100840.841,A,3935.3641,N,00239.1258,E,000.0,288.3,160913,,,A*69 $GPRMC,100845.841,A,3935.3641,N,00239.1258,E,000.0,288.3,160913,,,A*6C $GPRMC,100850.841,A,3935.3641,N,00239.1258,E,000.0,288.3,160913,,,A*68 $GPRMC,100855.841,A,3935.3641,N,00239.1258,E,000.0,288.3,160913,,,A*6D $GPRMC,100900.841,A,3935.3641,N,00239.1258,E,000.9,284.6,160913,,,A*6C $GPGGA,100905.841,3935.3641,N,00239.1258,E,1,05,1.6,0.0,M,47.3,M,,0000*54 $GPGSV,3,1,11,31,65,271,26,29,63,037,27,25,47,091,20,21,41,171,25*7D $GPGSV,3,2,11,12,10,104,13,14,08,218,29,16,06,294,20,05,05,066,*7C $GPGSV,3,3,11,02,03,035,20,06,02,248,,23,00,332,*45 $GPRMC,100905.841,A,3935.3641,N,00239.1258,E,000.0,301.3,160913,,,A*69 $GPRMC,100910.841,A,3935.3634,N,00239.1260,E,000.9,280.5,160913,,,A*63 $GPRMC,100915.841,A,3935.3634,N,00239.1260,E,000.0,280.5,160913,,,A*6F $GPRMC,100920.841,A,3935.3634,N,00239.1260,E,001.9,144.8,160913,,,A*67 $GPRMC,100925.841,A,3935.3634,N,00239.1260,E,000.0,145.4,160913,,,A*67 $GPRMC,100930.841,A,3935.3634,N,00239.1260,E,000.0,145.4,160913,,,A*63 $GPGGA,100935.841,30935.841,A,3935.3634,N,00239.1260,E,000.0,145.4,160913,,,A*66 $GPRMC,100940.841,A,3935.3634,N,00239.1260,E,000.0,145.4,160913,,,A*64 $GPRMC,100945.841,A,3935.3634,N,00239.1260,E,000.0,145.4,160913,,,A*61 $GPRMC,100950.841,A,3935.3634,N,00239.1260,E,000.0,145.4,160913,,,A*65 $GPRMC,100955.841,A,3935.3634,N,00239.1260,E,000.0,145.4,160913,,,A*60 $GPRMC,101000.841,A,3935.3634,N,00239.1260,E,000.0,145.4,160913,,,A*68 $GPGGA,101005.841,3935.3634,N,00239.1260,E,1,06,1.4,0.0,M,47.3,M,,0000*54 $GPGSV,3,1,11,31,65,270,29,29,63,038,18,25,47,092,24,21,41,171,27*75 $GPGSV,3,2,11,12,10,104,13,14,08,218,32,16,06,294,26,05,05,066,*70 $GPGSV,3,3,11,02,02,035,20,06,02,248,,23,00,331,*47 $GPRMC,101005.841,A,3935.3634,N,00239.1260,E,000.0,145.4,160913,,,A*6D $GPRMC,101010.841,A,3935.3634,N,00239.1260,E,000.0,145.4,160913,,,A*69 $GPRMC,101015.841,A,3935.3634,N,00239.1260,E,000.0,145.4,160913,,,A*6C $GPRMC,101020.841,A,3935.3634,N,00239.1260,E,000.0,145.4,160913,,,A*6A $GPRMC,101025.841,A,3935.3634,N,00239.1260,E,000.0,145.4,160913,,,A*6F $GPRMC,101030.841,A,3935.3634,N,00239.1260,E,000.0,145.4,160913,,,A*6B $GPGGA,101035.841,3935.3634,N,00239.1260,E,1,06,1.2,0.0,M,47.3,M,,0000*51 $GPGSV,3,1,11,31,65,269,26,29,63,038,00,25,47,092,21,21,41,171,24*7D $GPGSV,3,2,11,12,10,104,18,14,07,218,32,16,06,295,24,05,06,066,11*74 $GPGSV,3,3,11,02,02,035,22,06,02,248,,23,00,331,*45 $GPRMC,101035.841,A,3935.3634,N,00239.1260,E,000.0,145.4,160913,,,A*6E $GPRMC,101040.841,A,3935.3634,N,00239.1260,E,000.0,145.4,160913,,,A*6C $GPRMC,101045.841,A,3935.3634,N,00239.1260,E,000.0,145.4,160913,,,A*69 $GPRMC,101050.841,A,3935.3634,N,00239.1260,E,000.0,145.4,160913,,,A*6D $GPRMC,101055.841,A,3935.3634,N,00239.1260,E,000.0,145.4,160913,,,A*68 $GPRMC,101100.841,A,3935.3624,N,00239.1278,E,000.9,074.5,160913,,,A*6A $GPGGA,101105.841,3935.3626,N,00239.1280,E,1,05,1.5,0.0,M,47.3,M,,0000*5A $GPGSV,3,1,11,31,65,268,34,29,62,038,23,25,47,093,21,21,42,171,27*7E $GPGSV,3,2,11,12,09,104,14,14,07,217,31,16,07,295,26,05,06,066,*7F $GPGSV,3,3,11,06,03,248,,02,02,035,,23,00,331,*44 $GPRMC,101105.841,A,3935.3626,N,00239.1280,E,000.0,074.4,160913,,,A*62 $GPRMC,101110.841,A,3935.3626,N,00239.1280,E,000.0,074.4,160913,,,A*66 $GPRMC,101115.841,A,3935.3626,N,00239.1280,E,000.0,074.4,160913,,,A*63 $GPRMC,101120.841,A,3935.3624,N,00239.1280,E,000.8,115.1,160913,,,A*6C $GPRMC,101125.841,A,3935.3624,N,00239.1278,E,000.0,115.1,160913,,,A*66 $GPRMC,101130.841,A,3935.3623,N,00239.1280,E,000.0,114.3,160913,,,A*61 $GPGGA,101135.841,3935.3620,N,00239.1284,E,1,05,1.5,0.0,M,47.3,M,,0000*5B $GPGSV,3,1,11,31,65,268,37,29,62,038,25,25,47,093,18,21,42,171,27*71 $GPGSV,3,2,11,12,09,104,00,14,07,217,30,16,07,295,27,05,06,065,*79 $GPGSV,3,3,11,06,03,248,,02,02,035,11,23,00,331,*44 $GPRMC,101135.841,A,3935.3620,N,00239.1284,E,000.0,114.3,160913,,,A*63 $GPRMC,101140.841,A,3935.3620,N,00239.1284,E,000.0,114.3,160913,,,A*61 $GPRMC,101145.841,A,3935.3620,N,00239.1284,E,000.0,114.3,160913,,,A*64 $GPRMC,101150.841,A,3935.3620,N,00239.1284,E,000.0,114.3,160913,,,A*60
¿Does you can see that there is an error in frames GGA?
- This reply was modified 11 years, 2 months ago by Miguel Ángel.
- This reply was modified 11 years, 2 months ago by Miguel Ángel.
- This reply was modified 11 years, 2 months ago by Miguel Ángel.
- This reply was modified 11 years, 2 months ago by Miguel Ángel.
- This reply was modified 11 years, 2 months ago by Miguel Ángel.
September 16, 2013 at 11:21 am #4687Bryan TranModeratorHi Miguel,
Can you go into the /multitech/recipes/multitech/venus-gps_0.0.2.bb and modify the following:
a. tag=0.0.2 to tag=0.1.0
b. PR=”r0″ to PR=”r1″
Then do: bitbake corecdp-base-image or whatever your image might be.
Let me know if it helps.
Regards,
BT
September 16, 2013 at 11:36 am #4688Miguel ÁngelParticipantHi Bryan,
Thanks for your support.
I have the source file and I made the changes directly. I downloaded the source files (venus-gps-0.0.2.zip) by http://git.multitech.net/cgi-bin/cgit.cgi/venus-gps.git/
In that case, what would you propose?
September 16, 2013 at 11:39 am #4689Bryan TranModeratorHi Miguel,
Try to download the new version venus-gps-0.1.0.zip.
Thanks,
BT
September 16, 2013 at 11:45 am #4690Miguel ÁngelParticipantHi Bryan,
In version venus-gps-0.1.0.zip the file ‘cbuffer.c’ has not updated changes.
Are you sure it’s the latest version?
September 16, 2013 at 1:45 pm #4691Bryan TranModeratorHi Miguel,
Yes. I am sure.
Regards,
BT
-
AuthorPosts
- You must be logged in to reply to this topic.