gpsd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: u-blox : layers are confusing me (Hans Mayer)


From: Jason A. McPeak
Subject: Re: u-blox : layers are confusing me (Hans Mayer)
Date: Sat, 20 May 2023 12:40:26 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0

I believe that the U-BLOX GPS unit is auto baud configuring by default. I have accessed mine using Minicom under Linux at all kinds of different speeds, and it always sends clear messages, unlike the GPS devices on commercial ships which if you had your baud rate wrong all you got was garbage sentences.

On 5/20/23 11:00, gpsd-users-request@nongnu.org wrote:
Send gpsd-users mailing list submissions to
	gpsd-users@nongnu.org

To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.nongnu.org/mailman/listinfo/gpsd-users
or, via email, send a message with subject or body 'help' to
	gpsd-users-request@nongnu.org

You can reach the person managing the list at
	gpsd-users-owner@nongnu.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of gpsd-users digest..."


Today's Topics:

   1. Re: course of AIS targets (Владимир Калачихин)
   2. Re: AIS message 1, Rate of turn
      (Владимир Калачихин)
   3. u-blox : layers are confusing me (Hans Mayer)


----------------------------------------------------------------------

Message: 1
Date: Sat, 20 May 2023 12:06:35 +0300
From: Владимир Калачихин  <v.kalachikhin@gmail.com>
To: gpsd-users@nongnu.org
Subject: Re: course of AIS targets
Message-ID: 896490ef-5732-1a09-322d-bb4aa4fcb102@gmail.com"><896490ef-5732-1a09-322d-bb4aa4fcb102@gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed

20.05.2023 01:16, Gary E. Miller пишет:
Since JSON has no "null" value, and numerics must be numeric, it is normal
to follow the spec and use 360.0 as "not available".  Exactly as the spec
says to do.
Spec says about 3600...
Ok, but for speed gpsd use 'nan' instead 1023, and for ROT - 'nan' 
instead 128.

If you prefer, since the COG is "not available", I could change gpsd_json.c
sp that when 360.0 == COG, to not output the field at all.  Would you
prefer that.
Yes.




Владимир Калачихин




------------------------------

Message: 2
Date: Sat, 20 May 2023 12:19:46 +0300
From: Владимир Калачихин  <v.kalachikhin@gmail.com>
To: gpsd-users@nongnu.org
Subject: Re: AIS message 1, Rate of turn
Message-ID: f17c7e4a-60a9-f603-1a5c-d3f7eec5a267@gmail.com"><f17c7e4a-60a9-f603-1a5c-d3f7eec5a267@gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed

20.05.2023 02:51, Charles Douglass пишет:
Anyway, they apparently don't realize that gpsd is feeding them bad values.
The OpenCPN gets from gpsd raw NMEA flow, not JSON. So the discussed 
problem of gpsd should not affect to OpenCPN.



Владимир Калачихин




------------------------------

Message: 3
Date: Sat, 20 May 2023 15:43:51 +0200
From: Hans Mayer <gpsd@ma.yer.at>
To: gpsd-users@nongnu.org
Subject: u-blox : layers are confusing me
Message-ID: 44048f28-0efe-1f04-7a85-58608b5cbf6a@ma.yer.at"><44048f28-0efe-1f04-7a85-58608b5cbf6a@ma.yer.at>
Content-Type: text/plain; charset="utf-8"; Format="flowed"


Dear All,

my environment:

U-blox ZED-F9P with version 27.12

gpsd: 3.25.1~dev (revision release-3.25-48-gfa2081388)

Debian GNU/Linux 11 (bullseye)


I am trying to understand the layers, especially with the baudrate 
configuration.


This is the situation after a RESET


UBX-CFG-VALGET:
  version 1 layer 0 position 0
   layers (ram)
     item CFG-UART1-BAUDRATE/0x40520001 val 38400

UBX-ACK-ACK:
   ACK to Class x06 (CFG) ID x8b (VALGET)

UBX-ACK-NAK:
   NAK to Class x06 (CFG) ID x8b (VALGET)

UBX-ACK-NAK:
   NAK to Class x06 (CFG) ID x8b (VALGET)

UBX-CFG-VALGET:
  version 1 layer 7 position 0
   layers (default)
     item CFG-UART1-BAUDRATE/0x40520001 val 38400

UBX-ACK-ACK:
   ACK to Class x06 (CFG) ID x8b (VALGET)


Now I am running

/ubxtool -z CFG-UART1-BAUDRATE,115200,0 localhost:gpsd:/dev/serial0 /

and I am wondering why gpsd can still access the device with 38400 bd

When I look for the settings I get the same result as above. I try it 
with layer 1

/ubxtool -z CFG-UART1-BAUDRATE,115200,1 localhost:gpsd:/dev/serial0/

Now communications is broken to the ZED-F9P. I have to reconfigure the 
gpsd with 115200 bd

I have the following situation, layer 0 has 115200 bd


UBX-CFG-VALGET:
  version 1 layer 0 position 0
   layers (ram)
     item CFG-UART1-BAUDRATE/0x40520001 val 115200

UBX-ACK-ACK:
   ACK to Class x06 (CFG) ID x8b (VALGET)

UBX-ACK-NAK:
   NAK to Class x06 (CFG) ID x8b (VALGET)

UBX-ACK-NAK:
   NAK to Class x06 (CFG) ID x8b (VALGET)

UBX-CFG-VALGET:
  version 1 layer 7 position 0
   layers (default)
     item CFG-UART1-BAUDRATE/0x40520001 val 38400

UBX-ACK-ACK:
   ACK to Class x06 (CFG) ID x8b (VALGET)


Now I do the same with 2

/ubxtool -z CFG-UART1-BAUDRATE,115200,2 localhost:gpsd:/dev/serial0/

and layer 1 (bbr) is changed


UBX-CFG-VALGET:
  version 1 layer 0 position 0
   layers (ram)
     item CFG-UART1-BAUDRATE/0x40520001 val 115200

UBX-ACK-ACK:
   ACK to Class x06 (CFG) ID x8b (VALGET)

UBX-CFG-VALGET:
  version 1 layer 1 position 0
   layers (bbr)
     item CFG-UART1-BAUDRATE/0x40520001 val 115200

UBX-ACK-ACK:
   ACK to Class x06 (CFG) ID x8b (VALGET)

UBX-ACK-NAK:
   NAK to Class x06 (CFG) ID x8b (VALGET)

UBX-CFG-VALGET:
  version 1 layer 7 position 0
   layers (default)
     item CFG-UART1-BAUDRATE/0x40520001 val 38400

UBX-ACK-ACK:
   ACK to Class x06 (CFG) ID x8b (VALGET)

What happens with 3 ?

/ubxtool -z CFG-UART1-BAUDRATE,115200,3 localhost:gpsd:/dev/serial0/

nothing, same config as before

and with 4

/ubxtool -z CFG-UART1-BAUDRATE,115200,4 localhost:gpsd:/dev/serial0/

now layer 2 changed


UBX-CFG-VALGET:
  version 1 layer 0 position 0
   layers (ram)
     item CFG-UART1-BAUDRATE/0x40520001 val 115200

UBX-ACK-ACK:
   ACK to Class x06 (CFG) ID x8b (VALGET)

UBX-CFG-VALGET:
  version 1 layer 1 position 0
   layers (bbr)
     item CFG-UART1-BAUDRATE/0x40520001 val 115200

UBX-ACK-ACK:
   ACK to Class x06 (CFG) ID x8b (VALGET)

UBX-CFG-VALGET:
  version 1 layer 2 position 0
   layers (flash)
     item CFG-UART1-BAUDRATE/0x40520001 val 115200

UBX-ACK-ACK:
   ACK to Class x06 (CFG) ID x8b (VALGET)

UBX-CFG-VALGET:
  version 1 layer 7 position 0
   layers (default)
     item CFG-UART1-BAUDRATE/0x40520001 val 38400

UBX-ACK-ACK:
   ACK to Class x06 (CFG) ID x8b (VALGET)


I am quite sure there is an explanation. The ZED-F9P interface 
description PDF is in general very useful but didn't give me a solution 
for my question.

It seems there is sometimes an offset of 1 but not always


Kind regards

Hans


--

Jason Allen McPeak (mcpeak.jason@gmail.com)
+1 (281) 673-0865 Mobile
FCC Call sign: KG5CYH (Technician Class)
PUC Authorized to transmit 1 watt EIRP on the 2200 meter band
FCC Licenses: GROL, MROP, GMDSS operator/maintainer, RADAR endorsement
Gas/Petrochemical Operator Qualifications (OQ's) are available upon request.

Sent from MOZILLA THUNDERBIRD EMAIL 110.0.0. LINUX MINT 21.1 VERA

reply via email to

[Prev in Thread] Current Thread [Next in Thread]