Firefly开源社区

标题: 请教GPS找不到 [打印本页]

作者: junbeder    时间: 2018-12-31 21:24
标题: 请教GPS找不到
按板子提示在build.prop打开了GPS,及硬件也连接正确,但就是找不到卫星,GPS模块定位也成功了的,望高手解答
作者: junbeder    时间: 2018-12-31 22:32
有人做过外置GPS么

作者: jpchen    时间: 2019-1-2 14:21
junbeder 发表于 2018-12-31 22:32
有人做过外置GPS么

请参考如下帖子
http://dev.t-firefly.com/forum.p ... 1&highlight=gps
作者: junbeder    时间: 2019-1-2 16:44
第一:改了使用时需要配置device/rockchip/rk3288/gps/u-blox.conf,设置成对应节点。用户可以根据需要修改/system/build.prop里面ro.factory.hasGPS参数(false/true),实现禁止或者使能GPS功能.又改了:请在device/rockchip/rk3288/gps/u-blox.conf
修改
-SERIAL_DEVICE          /dev/ttyS3
+SERIAL_DEVICE         /dev/ttysWK2
GPS信号绿灯会亮,搞不清还要改那里.
作者: junbeder    时间: 2019-1-2 17:48
D:\1.jpg
作者: junbeder    时间: 2019-1-2 17:50
tty里面输入命令无提示

作者: junbeder    时间: 2019-1-2 21:00
端口也正常了,但在户外GPS信号灯亮,但找不到卫星,串口读取的代码如下:
$GPVTG,,,,,,,,,N*30

$GPGGA,125152.00,,,,,0,00,99.99,,,,,,*66

$GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*30

$GPGLL,,,,,125152.00,V,N*4A

$GPRMC,125153.00,V,,,,,,,020119,,,N*77

$GPVTG,,,,,,,,,N*30

$GPGGA,125153.00,,,,,0,00,99.99,,,,,,*67

$GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*30

$GPGLL,,,,,125153.00,V,N*4B

$GPRMC,125154.00,V,,,,,,,020119,,,N*70

$GPVTG,,,,,,,,,N*30

$GPGGA,125154.00,,,,,0,00,99.99,,,,,,*60

$GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*30

$GPGLL,,,,,125154.00,V,N*4C

$GPRMC,125155.00,V,,,,,,,020119,,,N*71

$GPVTG,,,,,,,,,N*30

$GPGGA,125155.00,,,,,0,00,99.99,,,,,,*61

$GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*30

$GPGLL,,,,,125155.00,V,N*4D

$GPRMC,125156.00,V,,,,,,,020119,,,N*72

$GPVTG,,,,,,,,,N*30

$GPGGA,125156.00,,,,,0,00,99.99,,,,,,*62

$GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*30

$GPGSV,1,1,01,09,,,26*75

$GPGLL,,,,,125156.00,V,N*4E

$GPRMC,125157.00,V,,,,,,,020119,,,N*73

$GPVTG,,,,,,,,,N*30

$GPGGA,125157.00,,,,,0,00,99.99,,,,,,*63

$GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*30

$GPGSV,1,1,01,09,,,24*77

$GPGLL,,,,,125157.00,V,N*4F

$GPRMC,125158.00,V,,,,,,,020119,,,N*7C

$GPVTG,,,,,,,,,N*30

$GPGGA,125158.00,,,,,0,00,99.99,,,,,,*6C

$GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*30

$GPGLL,,,,,125158.00,V,N*40

$GPRMC,125159.00,V,,,,,,,020119,,,N*7D

$GPVTG,,,,,,,,,N*30

$GPGGA,125159.00,,,,,0,00,99.99,,,,,,*6D

$GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*30

$GPGLL,,,,,125159.00,V,N*41

$GPRMC,125200.00,V,,,,,,,020119,,,N*72

$GPVTG,,,,,,,,,N*30

$GPGGA,125200.00,,,,,0,00,99.99,,,,,,*62

$GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*30

$GPGLL,,,,,125200.00,V,N*4E

$GPRMC,125201.00,V,,,,,,,020119,,,N*73

$GPVTG,,,,,,,,,N*30

$GPGGA,125201.00,,,,,0,00,99.99,,,,,,*63

$GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*30

$GPGLL,,,,,125201.00,V,N*4F

$GPRMC,125202.00,V,,,,,,,020119,,,N*70

$GPVTG,,,,,,,,,N*30

$GPGGA,125202.00,,,,,0,00,99.99,,,,,,*60

$GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*30

$GPGLL,,,,,125202.00,V,N*4C

$GPRMC,125203.00,V,,,,,,,020119,,,N*71

$GPVTG,,,,,,,,,N*30

$GPGGA,125203.00,,,,,0,00,99.99,,,,,,*61

$GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*30

$GPGLL,,,,,125203.00,V,N*4D

$GPRMC,125204.00,V,,,,,,,020119,,,N*76

$GPVTG,,,,,,,,,N*30

$GPGGA,125204.00,,,,,0,00,99.99,,,,,,*66

$GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*30

$GPGLL,,,,,125204.00,V,N*4A

$GPRMC,125205.00,V,,,,,,,020119,,,N*77

$GPVTG,,,,,,,,,N*30

$GPGGA,125205.00,,,,,0,00,99.99,,,,,,*67

$GPGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99*30

$GPGSV,1,1,01,11,,,24*7E

$GPGLL,,,,,125205.00,V,N*4B

$GPRMC,125206.00,V,,,,,,,020119,,,N*74
那位大神帮看一下是那里不对呀

作者: junbeder    时间: 2019-1-3 22:35
用了两块UBLOX gps芯片,都还是找不到卫星,但在室外定位灯是亮的(绿灯),串口有信号.真烦
作者: jpchen    时间: 2019-1-4 11:04
junbeder 发表于 2019-1-3 22:35
用了两块UBLOX gps芯片,都还是找不到卫星,但在室外定位灯是亮的(绿灯),串口有信号.真烦

串口有数据说明硬件上是通的,看是不是软件哪个地方没修改好
作者: junbeder    时间: 2019-1-4 13:47
代码是7.1的那个版本的###############################################################################
#
# Copyright (C) u-blox AG
# u-blox AG, Thalwil, Switzerland
#
# All rights reserved.
#
# Permission to use, copy, modify, and distribute this software for any
# purpose without fee is hereby granted, provided that this entire notice
# is included in all copies of any software which is or includes a copy
# or modification of this software and in all copies of the supporting
# documentation for such software.
#
# THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
# WARRANTY. IN PARTICULAR, NEITHER THE AUTHOR NOR U-BLOX MAKES ANY
# REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
# OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
#
###############################################################################
#
# Project: Android GNSS Driver
#
###############################################################################
# $Id: u-blox.conf 83773 2014-08-07 12:20:13Z marcel.baracchi $
# $HeadURL: http://svn.u-blox.ch/GPS/SOFTWAR ... 2.3/gps/u-blox.conf $
###############################################################################


###############################################################################
#
# u-blox Android GNSS Driver configuration file
#
###############################################################################


### Serial interface
# Device to be used by the driver
-SERIAL_DEVICE           /dev/ttyS2
+SERIAL_DEVICE           /dev/ttysWK2
#SERIAL_DEVICE           /dev/s3c2410_serial2
#SERIAL_DEVICE           /dev/i2c-4
#SERIAL_DEVICE           /dev/ttyACM0

# The baudrate that should be used to communicate with the receiver and at
# which the receiver will output the NMEA messages.
BAUDRATE                9600

# The default baudrate the receiver is configured to after startup. The
# HAL interface will configure itself to this baudrate and send a command
# to the receiver to switch to the baudrate assigned to the BAUDRATE keyword
BAUDRATE_DEF            9600

### Assistance
# File path and name for aiding information
ALP_TEMP                /data/aiding.ubx

# Timeout for stopping the receiver [in seconds]
STOP_TIMEOUT            5

# AssistNow Offline (AGPS-XTRA) Link interval [in hours]
XTRA_POLL_INTERVAL         20

# AssistNow Online (AGPS-UBX) Link
#UBX_HOST                        = agps.u-blox.com
#UBX_PORT                        = 46434

# Save aiding data to file system when engine stops
PERSISTENCE                     1

### SUPL configuration
# SUPL requests configuration
SUPL_ALMANAC_REQUEST            0
SUPL_UTC_MODEL_REQUEST          0
SUPL_IONOSPHERIC_MODEL_REQUEST  1
SUPL_DGPS_CORRECTIONS_REQUEST   0
SUPL_REF_LOC_REQUEST            1
SUPL_REF_TIME_REQUEST           1
SUPL_AQUISITION_ASSIST_REQUEST  0
SUPL_TIME_INTEGRITY_REQUEST     0
SUPL_NAVIGATIONAL_MODEL_REQUEST 1

# The SUPL_CACERT keyword enables a TLS encryption to the SUPL server.
# It this keyword is missing, the communication will be unencrypted. If
# no value is assigned to this keyword every CA certificate will be
# accepted as valid. If a value is assigned to this keyword, this value
# will be interpreted as the path to a ca-certificate file. If the
# ca-certificate in this file does not match the root of the certificate
# chain the connection will be aborted.
#SUPL_CACERT                                        /system/etc/ca-cert-google.pem
SUPL_CACERT

# uncomment the line below to use the certificate in SUPL test server
# SUPL_CACERT                                         /system/etc/v1_slp_rs_de_cert.pem

# Number of retries for contacting the SUPL server
SUPL_CONNECT_RETRIES            0

# Maximum time to show the dialog for network initiated SUPL session [in seconds]
SUPL_NI_UI_TIMEOUT              10

# Maximum time for sending information to the SUPL server for network
# initiated SUPL session [in seconds]
SUPL_NI_RESPONSE_TIMEOUT        75


### Debugging aids

# Option to send fake mobile phone network information
# leave this as 0 unless you are testing
SUPL_FAKE_PHONE_CONNECTION      0

# Port number for the UDP debug server
UDP_SERVER_PORT         46434

# save decoded RRLP and UPL data to logcat
SUPL_LOG_MESSAGES                                0

# create CMCC compatible A-GPS.LOG and GPS.LOG
SUPL_CMCC_LOGGING                                0

# save decoded RRLP and UPL data to file SUPL-MESSAGE.LOG
SUPL_MSG_TO_FILE                                0

###############################################################################

作者: Demon    时间: 2019-7-3 09:53
junbeder 发表于 2019-1-2 21:00
端口也正常了,但在户外GPS信号灯亮,但找不到卫星,串口读取的代码如下:
$GPVTG,,,,,,,,,N*30

请问楼主这个问题解决了么??




欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1