Changes between Version 31 and Version 32 of expansion/gw16143


Ignore:
Timestamp:
10/25/2024 05:00:02 PM (4 weeks ago)
Author:
Ryan Erbstoesser
Comment:

add information

Legend:

Unmodified
Added
Removed
Modified
  • expansion/gw16143

    v31 v32  
    361361View the Gateworks [wiki:gettingstarted SBC Quickstart Guide] to get a serial console connection to the Gateworks SBC.
    362362
    363 Validate the GPS can be seen on the system and is picking up satellites:
     363Validate the GPS can be seen on the system and is picking up satellites via the instructions below:
    364364
    365365Viewing standard (<15 meter accuracy) GNSS data using the GW16143 is simple on a Gateworks board using the cat command as shown in the example below:
     
    391391}}}
    392392
    393 Then, download dependencies by running ./setup.sh which can take a few minutes while all the required packages are downloaded and installed:
     393Then, download dependencies by running ./setup.sh which can take a few minutes while all the required packages are downloaded and installed:(This creates the virtual environment)
    394394{{{
    395395./setup.sh
     
    398398Then, configure settings.toml and .secrets.toml using your favorite text editor like vi.
    399399
    400 Then run ./start_gps.py
     400Then Activate the virtual environment which has the dependencies via the command:
     401{{{
     402 source activate_venv.sh
     403}}}
     404
     405Then run ./start_gps.py which by default uses 'cgps' to monitor data from the u-blox module
    401406{{{
    402407./start_gps.py
    403408}}}
    404409
     410!!! NOTE: setup.sh MASKS gpsd with the command "systemctl mask gpsd". !!! This is because the scripts provided use custom instances of gpsd + cgps, and pygnssutils uses /dev/ttyACM0. To reduce conflict the system daemon is disabled. You should re-enable it for your own programs.
     411
    405412More information about !PointPerfect is shown on this page under the [#pointperfect PointPerfect section]
    406413
     414A common evaluation usecase is: Running "cgps" in the foreground to monitor GPS data, along with PointPerfect GNSS corrections.
     415
     416To do this, you would edit the credentials in the secret settings file as per the PointPerfect site, set run_pygnssutils_in_foreground to false, and set the foreground process to "cgps". To use cgps with the script, you also must enable the gpsd bridge. The default settings will be OK in most instances.
     417
     418Another usecase may be configuring and viusalizing the GPS data in u-center. u-center is a Windows application, but it nevertheless can be both powerful in configuring and visualizing the GPS. To use u-center, you do NOT want to use our script, rather just use a one line command to send all /dev/ttyACM0 data over TCP.
     419{{{
     420$ socat TCP-LISTEN:12345,reuseaddr,fork /dev/ttyACM0,raw,echo=0
     421}}}
     422
     423=== Troubleshooting
     424
     425
     426If you're getting 0,0,-17 as a coordinate, make sure that your antenna is connected well. Ensure python is updated, the script used Python 3.10.12.
     427
     428=== Architecture
     429{{{
     430                 GPS TESTING SCRIPT: start_gps.py
     431                  What can it do out of the box?                       
     432
     433
     434┌───────────────────────┐
     435│                       │
     436│  GPS Device GW16143   │
     437│     /dev/ttyACM0      │ ──────┐                         ┌─────────────┐
     438│                       │       ▼                         │             │
     439│     Location Info     │    ┌─────────────────────┐      │   Logging   │
     440│                       │    │                     │      │  Raw & KML  │        ┌───────────────────┐
     441└───────────────────────┘    │                     │ ───► │ --> Google  │        │                   │
     442                             │     PyGNSSUtils     │      │    Earth    │        │    GPSD / cgps    │
     443                             │  Core data handler  │      └─────────────┘        │                   │
     444┌───────────────────────┐    │                     │                             │    Visualizer     │
     445│                       │    │                     │    ┌─────────────────┐      │ OPTIONAL standard │
     446│     PointPerfect      │    └─────────────────────┘    │                 │ ───► │ Linux GNSS Client │
     447│    < 2cm GNSS fix     │       ▲                       │      Socat      │      │                   │
     448│                       ├───────┘               │       │                 │      └───────────────────┘
     449│                       │                       └────►  │ VIRT0 --> VIRT1 │
     450└───────────────────────┘                               │     Virtual     │      ┌───────────────────┐
     451                                                        │   serial port   │      │                   │
     452                                                        │                 │      │     u-center      │
     453                                                        └─────────────────┘      │  u-blox gps tool  │
     454                                                                                 │   Windows ONLY    │
     455                                                                                 │  Configuration &  │
     456                                                                                 │   Visualization   │
     457                                                                                 │                   │
     458                                                                                 └───────────────────┘
     459
     460}}}
     461