gddcs
发表于 2018-9-29 16:28:19
jpchen 发表于 2018-9-28 09:09
先使用命令cat /dev/ttyS3节点,看是否有数据
换了根usb线连接可以输入字符,模块连接到板子的uart3口,就是蓝色下那个口,输入cat /dev/ttysWK2有数据输出,大概是这样的:
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,01,NMEA unknown msg*58
$GPTXT,01,01,00,txbuf alloc*7F
$GPTXT,01,01,01,NMEA unknown msg*58
$GPRMC,082557.00,V,,,,,,,290918,,,N*7B
$GPVTG,,,,,,,,,N*30
$GPGGA,082557.00,,,,,0,00,99.99,,,,,,*6B
$GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*30
$GPGSV,2,1,08,02,08,154,,05,33,092,,13,43,037,,15,69,333,*7F
$GPGSV,2,2,08,20,19,306,18,21,43,306,,24,49,174,21,29,16,225,*75
jpchen
发表于 2018-9-30 09:39:19
gddcs 发表于 2018-9-29 16:28
换了根usb线连接可以输入字符,模块连接到板子的uart3口,就是蓝色下那个口,输入cat /dev/ttysWK2有数据 ...
请在device/rockchip/rk3288/gps/u-blox.conf
修改
-SERIAL_DEVICE /dev/ttyS3
+SERIAL_DEVICE /dev/ttysWK2
然后编译上层
gddcs
发表于 2018-9-30 11:03:16
jpchen 发表于 2018-9-30 09:39
请在device/rockchip/rk3288/gps/u-blox.conf
修改
-SERIAL_DEVICE /dev/ttyS3
还是不行,而且现在也没有串口数据了,就上次成功输出过一次数据,之后输入cat /dev/ttysWK2和cat /dev/ttyS3回车后都没有任何数据输出
jpchen
发表于 2018-9-30 11:06:56
gddcs 发表于 2018-9-30 11:03
还是不行,而且现在也没有串口数据了,就上次成功输出过一次数据,之后输入cat /dev/ttysWK2和cat /dev/t ...
要先确保串口有数据,如果串口没数据的话,看硬件是否哪个地方出问题了
gddcs
发表于 2018-9-30 11:45:37
jpchen 发表于 2018-9-30 11:06
要先确保串口有数据,如果串口没数据的话,看硬件是否哪个地方出问题了
我检查了下接线好像接错了,rx和tx接反了,重新接线,然后用putty打开命令框,框里一直循环弹一下代码:
.772475] serial ff1b0000.serial: error:lsr=0xc9
serial ff1b0000.serial: error:lsr=0xc9
serial ff1b0000.serial: error:lsr=0xc9
serial ff1b0000.serial: error:lsr=0xc9
serial ff1b0000.serial: error:lsr=0xc9
serial ff1b0000.serial: error:lsr=0xc9
serial ff1b0000.serial: error:lsr=0xc9
无法输入命令,会被上面这个代码覆盖掉,GPStest里还是没有数据
jpchen
发表于 2018-10-10 09:36:04
gddcs 发表于 2018-9-30 11:45
我检查了下接线好像接错了,rx和tx接反了,重新接线,然后用putty打开命令框,框里一直循环弹一下代码: ...
有试过换成UART1是否也是这样的吗??
gddcs
发表于 2018-10-18 11:14:19
本帖最后由 gddcs 于 2018-10-18 11:15 编辑
现在可以输出串口数据了,但是gpstest数据还是都为0,怎么才能使gpstest获取到数据并显示出来?系统设置中位置信息是开启的
下面是串口的数据,数据里面是有定位成功的,固件是AIO-3288J_Android5.1.1_Public_180817
$GPRMC,030014.00,A,3102.65546,N,12116.24385,E,2.326,,181018,,,A*7B
$GPVTG,,T,,M,2.326,N,4.309,K,A*28
$GPGGA,030014.00,3102.65546,N,12116.24385,E,1,03,3.31,-1.8,M,9.5,M,,*49
$GPGSA,A,2,25,02,12,,,,,,,,,,3.46,3.31,1.00*04
$GPGSV,4,1,13,02,58,341,18,05,49,265,,06,49,070,,07,04,096,14*72
$GPGSV,4,2,13,09,24,047,,12,23,256,19,13,16,188,,17,18,151,*74
$GPGSV,4,3,13,19,44,154,,23,02,036,,25,13,293,22,29,03,323,*75
$GPGSV,4,4,13,30,02,126,*4F
$GPGLL,3102.65546,N,12116.24385,E,030014.00,A,A*66
jpchen
发表于 2018-10-18 11:52:44
gddcs 发表于 2018-10-18 11:14
现在可以输出串口数据了,但是gpstest数据还是都为0,怎么才能使gpstest获取到数据并显示出来?系统设置中 ...
把设备放到空旷的地方试试,在室内GPS信号很弱的
liuwentao
发表于 2018-10-24 15:26:15
jpchen 发表于 2018-10-18 11:52
把设备放到空旷的地方试试,在室内GPS信号很弱的
V/u-blox(462): ubx_thread: MSG UNKNOWN size 32
V/u-blox(462): ubx_thread: MSG UNKNOWN size 26
V/u-blox(462): ubx_thread: MSG UNKNOWN size 90
V/u-blox(462): ubx_thread: MSG UNKNOWN size 27
V/u-blox(462): ubx_thread: MSG UNKNOWN size 16
V/u-blox(462): ubx_thread: MSG UNKNOWN size 17
V/u-blox(462): ubx_thread: MSG UNKNOWN size 91
V/u-blox(462): ubx_thread: MSG UNKNOWN size 16
我连上GPS以后,报错了,大神帮我看看
jpchen
发表于 2018-10-24 15:36:02
liuwentao 发表于 2018-10-24 15:26
V/u-blox(462): ubx_thread: MSG UNKNOWN size 32
V/u-blox(462): ubx_thread: MSG UNKNOWN siz ...
先确认gps使用的是哪个串口,然后cat对应串口是否有数据,然后查看GPS模块指定串口是否匹配