I tried to use sample/sensors/gps/sample_gps_logger for reading NMEA out from GPS through USB serial.
However sample program showed the message like below and stopped;
./sample_gps_logger --driver=gps.uart --params=device=/dev/ttyUSB0
[19-11-2019 20:45:40] Platform: Detected Generic x86 Platform
[19-11-2019 20:45:40] Initialize DriveWorks SDK v2.0.2081
[19-11-2019 20:45:40] Release build with GNU 4.9.4 from heads/buildbrain-branch-0-g36b127f
[19-11-2019 20:45:40] TimeSource: monotonic epoch time offset is 1574150330453817
[19-11-2019 20:45:41] Platform: number of GPU devices detected 1
[19-11-2019 20:45:41] Platform: currently selected GPU device discrete ID 0
[19-11-2019 20:45:41] SDK: Resources mounted from /usr/local/driveworks-2.0/data/
[19-11-2019 20:45:41] SensorFactory::createSensor() -> gps.uart, device=/dev/ttyUSB0
[19-11-2019 20:45:41] SensorFactory::createSensor() -> gps.uart, device=/dev/ttyUSB0
[19-11-2019 20:45:41] EndpointTTY: started on /dev/ttyUSB0
I checked the status of dwSensorGPS_readFrame() and found that it always returned DW_TIME_OUT.
The GPS module sent the NMEA sentences like below (I used cu command directly);
$GPGSA,A,3,31,26,21,27,29,,,,,,,,2.76,1.61,2.24*08
$GPGSV,2,1,07,09,10,319,21,14,19,183,,21,34,094,31,26,65,012,35*73
$GPGSV,2,2,07,27,42,217,23,29,13,040,30,31,54,123,31*47
$GPGLL,xxxx.55212,N,xxxxx.90875,E,132844.00,A,A*64
$GPRMC,132845.00,A,xxxx.55212,N,xxxxx.90879,E,0.578,,091119,,,A*7B
$GPVTG,,T,,M,0.578,N,1.071,K,A*2E
$GPGGA,132845.00,xxxx.55212,N,xxxxx.90879,E,1,05,1.61,35.6,M,39.2,M,,*67
$GPGSA,A,3,31,26,21,27,29,,,,,,,,2.76,1.61,2.24*08
$GPGSV,2,1,07,09,10,319,21,14,19,183,,21,34,094,31,26,65,012,35*73
$GPGSV,2,2,07,27,42,217,23,29,13,040,31,31,54,123,31*46
$GPGLL,xxxx.55212,N,xxxxx.90879,E,132845.00,A,A*69
$GPRMC,132846.00,A,xxxx.55210,N,xxxxx.90873,E,0.547,,091119,,,A*7C
$GPVTG,,T,,M,0.547,N,1.013,K,A*26
$GPGGA,132846.00,xxxx.55210,N,xxxxx.90873,E,1,05,1.61,35.6,M,39.2,M,,*6C
$GPGSA,A,3,31,26,21,27,29,,,,,,,,2.76,1.61,2.24*08
$GPGSV,2,1,08,09,10,319,21,14,19,183,,21,34,094,31,23,28,296,*78
$GPGSV,2,2,08,26,65,012,35,27,42,217,23,29,13,040,31,31,54,123,30*7A
$GPGLL,xxxx.55210,N,xxxxx.90873,E,132846.00,A,A*62
How can I use this GPS module for DriveWorks?
Or DriveWorks can work with the GPS/IMUs in the supported device list only?
Environment : Ubuntu 16.04
Drive OS API 5.1.0.2
DriveWorks SDK version : 2.0.2085 Release