AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • Início
  • system&network
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • Início
  • system&network
    • Recentes
    • Highest score
    • tags
  • Ubuntu
    • Recentes
    • Highest score
    • tags
  • Unix
    • Recentes
    • tags
  • DBA
    • Recentes
    • tags
  • Computer
    • Recentes
    • tags
  • Coding
    • Recentes
    • tags
Início / ubuntu / Perguntas / 1413674
Accepted
John Rose
John Rose
Asked: 2022-06-13 06:30:21 +0800 CST2022-06-13 06:30:21 +0800 CST 2022-06-13 06:30:21 +0800 CST

gps não funciona no Ubuntu 20.04

  • 772

Acabei de tentar usar meu dispositivo GPS USB. cgps mostra N/A para todas as medições. lsusb mostra meu dispositivo GPS. Eu alterei /etc/default/gpsdpara ter DEVICES="/dev/ttyS0"como eu não tenho ttyUSB0.

john@desktop:~$ cat /etc/default/gpsd

# Devices gpsd should collect to at boot time.
# They need to be read/writeable, either by user gpsd or the group dialout.
DEVICES="/dev/ttyS0"

# Other options you want to

john@desktop:~/Temporary$ sudo systemctl status gpsd 
[sudo] password for john: 
● gpsd.service - GPS (Global Positioning System) Daemon
     Loaded: loaded (/lib/systemd/system/gpsd.service; enabled; vendor>
     Active: active (running) since Sun 2022-06-12 09:05:53 BST; 6h ago
TriggeredBy: ● gpsd.socket
   Main PID: 65983 (gpsd)
      Tasks: 1 (limit: 19050)
     Memory: 588.0K
     CGroup: /system.slice/gpsd.service
             └─65983 /usr/sbin/gpsd /dev/ttyS0

Jun 12 09:05:53 desktop systemd[1]: Starting GPS (Global Positioning S>
Jun 12 09:05:53 desktop systemd[1]: Started GPS (Global Positioning Sy>
autofs
block
bsg
btrfs-control
bus
cdrom
cdrw
char
console
core
cpu
cpu_dma_latency
cuse
disk
dma_heap
dri
dvd
dvdrw
ecryptfs
fb0
fd
full
fuse
gpiochip0
gpiochip1
gps0
hidraw0
hidraw1
hidraw2
hidraw3
hidraw4
hidraw5
hpet
hugepages
hwrng
i2c-0
i2c-1
i2c-2
initctl
input
kmsg
kvm
lightnvm
log
loop0
loop1
loop10
loop11
loop12
loop13
loop14
loop15
loop16
loop17
loop18
loop19
loop2
loop20
loop21
loop22
loop23
loop24
loop25
loop26
loop27
loop28
loop29
loop3
loop30
loop4
loop5
loop6
loop7
loop8
loop9
loop-control
mapper
mcelog
media0
mem
mqueue
net
null
nvidia0
nvidiactl
nvidia-modeset
nvidia-uvm
nvidia-uvm-tools
nvram
port
ppp
pps0
psaux
ptmx
ptp0
pts
random
rfkill
rtc
rtc0
sda
sda1
sda2
serial
sg0
sg1
shm
snapshot
snd
sr0
stderr
stdin
stdout
tty
tty0
tty1
tty10
tty11
tty12
tty13
tty14
tty15
tty16
tty17
tty18
tty19
tty2
tty20
tty21
tty22
tty23
tty24
tty25
tty26
tty27
tty28
tty29
tty3
tty30
tty31
tty32
tty33
tty34
tty35
tty36
tty37
tty38
tty39
tty4
tty40
tty41
tty42
tty43
tty44
tty45
tty46
tty47
tty48
tty49
tty5
tty50
tty51
tty52
tty53
tty54
tty55
tty56
tty57
tty58
tty59
tty6
tty60
tty61
tty62
tty63
tty7
tty8
tty9
ttyACM0
ttyprintk
ttyS0
ttyS1
ttyS10
ttyS11
ttyS12
ttyS13
ttyS14
ttyS15
ttyS16
ttyS17
ttyS18
ttyS19
ttyS2
ttyS20
ttyS21
ttyS22
ttyS23
ttyS24
ttyS25
ttyS26
ttyS27
ttyS28
ttyS29
ttyS3
ttyS30
ttyS31
ttyS4
ttyS5
ttyS6
ttyS7
ttyS8
ttyS9
udmabuf
uhid
uinput
urandom
usb
userio
v4l
vboxdrv
vboxdrvu
vboxnetctl
vboxusb
vcs
vcs1
vcs2
vcs3
vcs4
vcs5
vcs6
vcsa
vcsa1
vcsa2
vcsa3
vcsa4
vcsa5
vcsa6
vcsu
vcsu1
vcsu2
vcsu3
vcsu4
vcsu5
vcsu6
vfio
vga_arbiter
vhci
vhost-net
vhost-vsock
video0
video1
video2
zero
zfs
john@desktop:~/Temporary$ usb-devices | awk '/1546/' RS=
T:  Bus=01 Lev=01 Prnt=01 Port=04 Cnt=04 Dev#=  6 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=02(commc) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1546 ProdID=01a7 Rev=01.00
S:  Manufacturer=u-blox AG - www.u-blox.com
S:  Product=u-blox 7 - GPS/GNSS Receiver
C:  #Ifs= 2 Cfg#= 1 Atr=c0 MxPwr=100mA
I:  If#=0x0 Alt= 0 #EPs= 1 Cls=02(commc) Sub=02 Prot=01 Driver=cdc_acm
I:  If#=0x1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=ff Driver=cdc_acm
20.04
  • 1 1 respostas
  • 115 Views

1 respostas

  • Voted
  1. Best Answer
    Pilot6
    2022-06-13T09:00:09+08:002022-06-13T09:00:09+08:00

    O dispositivo correto não é /dev/ttyS0, mas /dev/ttyACM0.

    Altere a configuração.

    Cuidado, você deve adicionar o usuário ao dialoutgrupo para obter acesso à porta.

    • 0

relate perguntas

  • Como posso configurar a resolução de domínio curinga local (127.0.0.1) em 18.04..20.04?

Sidebar

Stats

  • Perguntas 205573
  • respostas 270741
  • best respostas 135370
  • utilizador 68524
  • Highest score
  • respostas
  • Marko Smith

    Existe um comando para listar todos os usuários? Também para adicionar, excluir, modificar usuários, no terminal?

    • 9 respostas
  • Marko Smith

    Como excluir um diretório não vazio no Terminal?

    • 4 respostas
  • Marko Smith

    Como descompactar um arquivo zip do Terminal?

    • 9 respostas
  • Marko Smith

    Como instalo um arquivo .deb por meio da linha de comando?

    • 11 respostas
  • Marko Smith

    Como instalo um arquivo .tar.gz (ou .tar.bz2)?

    • 14 respostas
  • Marko Smith

    Como listar todos os pacotes instalados

    • 24 respostas
  • Martin Hope
    Flimm Como posso usar o docker sem sudo? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    led-Zepp Como faço para salvar a saída do terminal em um arquivo? 2014-02-15 11:49:07 +0800 CST
  • Martin Hope
    ubuntu-nerd Como descompactar um arquivo zip do Terminal? 2011-12-11 20:37:54 +0800 CST
  • Martin Hope
    TheXed Como instalo um arquivo .deb por meio da linha de comando? 2011-05-07 09:40:28 +0800 CST
  • Martin Hope
    Ivan Como listar todos os pacotes instalados 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    David Barry Como determino o tamanho total de um diretório (pasta) na linha de comando? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher "Os seguintes pacotes foram retidos:" Por que e como resolvo isso? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford Como os PPAs podem ser removidos? 2010-07-30 01:09:42 +0800 CST

Hot tag

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • Início
  • Perguntas
    • Recentes
    • Highest score
  • tag
  • help

Footer

AskOverflow.Dev

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve