opengisch / QField

A simplified touch optimized interface for QGIS
http://www.qfield.org
GNU General Public License v2.0
798 stars 221 forks source link

iOS - UDP receiver error #4925

Open DavidBerschauer opened 8 months ago

DavidBerschauer commented 8 months ago

Describe the issue

When connecting to a external GNSS receiver via UDP an error occurs. This error seems to be independent from the external device and unfortunately makes GNSS receivers with NMEA over UDP functionality useless for QField.

Reproduction steps

Steps to reproduce the behavior:

  1. Got to settings
  2. Go to Positioning
  3. Add or select a positioning device with the following configuration
    • Connection type: UDP (NMEA)
    • Adress: (also tested with multiple domains or IPv4 adresses)
    • Port: 10110
  4. Connect to the device

Expected behavior

QField opens the specified port and waits for UDP packets to arrive

Observed behavior

An error occurs: Positioning device error: UDP receiver error (UnsupportedSocketOperation)

Screenshots and GIFs

QField_UDP_receiver_error

Desktop

not relevant, also not working with example projects

Mobile

Additional information

This error did not occur in previous versions. On a different iPhone with iOS 17 and QField 3.0.7 installed everything works fine.

nirvn commented 8 months ago

@DavidBerschauer , on that different iPhone device that works fine, can you update QField to the latest version there and see if it continues to work? I.e., trying to figure out whether it's a regression between 3.0 and 3.1 or if this is a device-specific issue.

DavidBerschauer commented 8 months ago

After updating from 3.0.7 to 3.1.3 on the second iPhone the same error occurs.

nirvn commented 8 months ago

@DavidBerschauer , useful information, thanks.

nirvn commented 8 months ago

@DavidBerschauer , could you do the following: a/ enable the send anonymized metrics toggle (in QField settings' general panel), then restart QField b/ switch from internal device to your UDP device, try to connect c/ when that fails, go to the message logs (through the side dashboard's main menu), and hit send application log d/ a popup will appear, please type your github user name in the optional details text input, then click on OK

When that's done, let me know.

DavidBerschauer commented 8 months ago

Done

nirvn commented 8 months ago

@DavidBerschauer , could you send me your UDID via email (mathieu@opengis.ch)? I would like to add your device in the list of devices allowed to run development builds so we can see if the following PR will improve things for you (https://github.com/opengisch/QField/pull/4952).