Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
View: 3358|Reply: 1

[OrangePi4G-iot] How to enable the GPS device?

[Copy link]

2

Threads

2

Posts

30

Credits

Novice

Rank: 1

Credits
30
Post time 2019-9-3 15:04:12 | Show all posts |Read mode
I am new to OrangePi and to Linux, and I am trying to get data out of the OrangePi4G-iot onboard gps chip.

So far I have found that I have an stpgps device that I can interface to:
root@orangepi:/# find -name "*stpgps*"
./dev/stpgps
./sys/devices/virtual/stpgps
./sys/devices/virtual/stpgps/stpgps
./sys/class/stpgps
./sys/class/stpgps/stpgps

When I open this device and ioctl to it when I check the output of dmesg, I can see the driver performing all kinds of steps to turn on gps and so on, however when I try to read from the stpgps character device file I get nothing from it.

Do I need to manually connect this device/driver to the hardware? If so, how do I do this?

I did find a configuration file:
root@orangepi:/system/etc/firmware# ls -l | grep WMT
-rw-r--r-- 1 root root      80 Nov 15  2018 WMT_SOC.cfg

coex_wmt_ant_mode=1

wmt_gps_lna_pin=0
wmt_gps_lna_enable=0

co_clock_flag=1

Where lna_enable appearantly controls the GPS antenna signal. How do I find out which is the appropriate pin # to set for lna?

1

Threads

4

Posts

47

Credits

Novice

Rank: 1

Credits
47
Post time 2022-1-6 18:11:24 | Show all posts
If you guys are looking for the best GPS tracker? Here you are alist of the best GPS trackers. GPS trackers are the best option when you aim to track your kids, loved ones, and assets.
You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2022-5-18 10:35 GMT+8 , Processed in 0.030947 second(s), 22 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list