Keyboard Shortcuts
Likes
Search
GPS and Build-a-Pi V3
On my V3 installation, conky shows?
You see that there is no gridsquare listed.? I recall when reading about conky, that it gets this from the GPS. I did have some trouble getting Pi to recognize my GPS, which is a BU-353S4 on a USB port.? I think it is resolved now. When I run? $ cgps I get a display showing the GPS information to confirm it is working.? The display includes the gridsquare. How do I get conky to show the gridsquare? -- --Bill AA6BD |
Bill,
I have the same gps.? The problem is the script was developed for a specific GPS and does not allow for different ports. Do the following to fix it. First verify the port of your gps witht the following command. ls /dev/*USB* You should see your gps as? /dev/ttyUSB0 Now edit gpsd sudo nano /etc/default/gpsd Change your Devices to the folowing DEVICES="/dev/ttyUSB0"
Save changes and reboot. You should be good to go.?? Joe AF1E ?
DEVICES="/dev/ttyUSB0"
? |
I see mine as /dev/ttyAMC0 or something?like that. I see my GPS flashing mongps-n shows but when mobile it seems the PI takes forever to put anything on the map. later Don Poaps
New Westminster, BC
VA7DGP DATA VA7QU ? VOICE Winlink: va7qu@... Subject://wl2k ? ? ? ? ?? ? On Thu, Jun 25, 2020 at 7:22 AM Joe Spears <jgspears@...> wrote: Bill, |
My GPS is now running and when I run cgps, I can see
Grid Square:? CM88pl which is correct.? But still I see no grid square displayed in Conky next to the "Gridsquare" label.? I found ~/bin/conky/get-grid but it is Ruby which I don't know at all. Where does Conky get the grid square, and what can I do to get it to display it? -- --Bill AA6BD |
On Thu, Jun 25, 2020 at 12:15 PM, Bill Dornbush wrote:
Where does Conky get the grid square, and what can I do to get it to display it? Conky calls the script ~/bin/conky/grid which in turn calls ~/bin/conky/get-grid This is done so the first script verifies we have data from the GPS. I didn't write the ruby script but you can check and see if it is working with your GPS by running After 3-4 seconds, it should return your grid. 73, de KM4ACK
|
|
|
I ran?
ruby ~/bin/conky/get-grid and got Traceback (most recent call last):
2: from /home/pi/bin/conky/get-grid:3:in `<main>'
1: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
/usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require': cannot load such file -- gpsd_client (LoadError)
I am not sure how to proceed from here.? Ideas? --Bill AA6BD |
OK, I have the same GPS and neither my laptop (linux Mint) or my Rpi don't see it. What did you do.
toggle quoted message
Show quoted text
I have found another issue when I "try" to use the [ U-Blox AG ] or the U-Blox dongle... It was working on my RPi, then I made changes. I went from a metal case (enclosed) to a RPi "stack". The SSB "shield", 12V to 5V Hat with Fan, and the overclocking must be producing enough RFI to "kill" the GPS even the one on the 2M USB cord. I can move the GPS(s) to my laptop and they work... Back into the case?? Now, maybe the BU-353S4 will be more RFI proof??? Help... 73, Steve WB3LGC On 6/24/20 6:02 PM, Bill Dornbush wrote:
On my V3 installation, conky shows |
On Thu, Jun 25, 2020 at 03:26 PM, Bill Dornbush wrote:
I am not sure how to proceed from here.? Ideas?Sorry Bill. I am not going to be much help as I don't have that GPS unit to test with. It looks like the ruby script isn't working with that GPS model. Is GPSD running? Try running systemctl is-active gpsd and see what it returns? It should show active. -- 73, de KM4ACK
|
|
|
I don't think it is an RFI issue, but I always position my GPS near a window so it is away from my Pi.
I tried a bunch of things before it worked but I will try to detail the steps as best I can. I installed minicom and used it to verify that the GPS was working. $ sudo apt-get install minicom $ minicom -b 4800 -o -D /dev/ttyUSB0 $ ls -la /dev/serial/by-id lrwxrwxrwx 1 root root 13 Jun 24 14:10 usb-Prolific_Technology_Inc._USB-Serial_Controller_D-if00-port0 -> ../../ttyUSB0 Note: usb-Prolific_Technology_Inc._USB-Serial_Controller_D-if00-port0 change it to ? ? ? ? ? ListenStream=0.0.0.0:2947 ? $ sudo nano /etc/default/gpsd 1. Find the line that says USBAUTO.? This setting will let gpsd interogate any new USB devices to see USBAUTO="false" 2. Find the line that says "DEVICES="" and update it to reflect your proper device-by-id serial port.? In my case: ? DEVICES="/dev/serial/by-id/usb-Prolific_Technology_Inc._USB-Serial_Controller_D-if00-port0" --Bill AA6BD |
Jason KM4ACK,
After working with Build-a-Pi for a while, it appears to me that things are built to work with specific hardware that you have and tested this with. It would really help to have a list of what that hardware is so I would know if I had different hardware, where I might run into problems. -- --Bill AA6BD |
Thanks for the info.
toggle quoted message
Show quoted text
I will give it a try for my usb-Prolific_Technology_Inc._USB-GPS. NOW, RFI "issue" using the "standard" GPS with my stacked (open) RPi. I think the same problem will happen with plastic cases. Not a build-a-pi V3 issue... I re-mounted a RPi into a metal case with a heat sink and small fan and the GPS works... You, decide... It would not work before, window or not (open case). I have a metal case with plastic top/bottom that had problems, too. It runs about 10C hotter, though. 73, steve WB3LGC On 6/25/20 8:37 PM, Bill Dornbush wrote:
I don't think it is an RFI issue, but I always position my GPS near a window so it is away from my Pi. |
On Thu, Jun 25, 2020 at 07:51 PM, Bill Dornbush wrote:
Jason KM4ACK,It's not intended to only be used with certain hardware. I do my best to make sure that isn't the case. I am limited to what hardware I own that I can test with. I have a list of recommended accessories on my FAQ page There's a link at the top. Thank you for documenting the changes needed to make this particular GPS work. I have opened an issue to see if I can support this type of GPS in the future. ? -- 73, de KM4ACK
|
|
|
I am also having GPS issues, using the recommended GPS/GLONASS U-Blox7 GPS from Amazon. My GPS shows a flashing green light, I have nothing plugged into any USB 3 ports, and if I run cgps or xgps, I am not seeing any data at all. So I have been reading the comments (above), and the information Bill Dornbush shared was invaluable. I followed the link, and ended up trying the following... with the below results...
?
I ran?
dmesg
to verify that there was an active GPS USB device...?
?
I then ran
ls -la /dev/serial/by-id
and I got the following result:
lrwxrwxrwx 1 root root 13 Jul? 7 15:15 usb-u-blox_AG_-_www.u-blox.com_u-blox_7_-_GPS_GNSS_Receiver-if00 -> ../../ttyACM0
?
So, my device name is...
usb-u-blox_AG_-_www.u-blox.com_u-blox_7_-_GPS_GNSS_Receiver-if00
?
I then ran the following steps
sudo apt-get update
sudo apt-get install gpsd gpsd-clients libgps-dev
sudo systemctl enable gpsd
This last step supposedly manually configured gpsd to use my GPS device
?
Now, conky is showing my Gridsquare, and not saying no GPS. I run cgps, and there is valid data, and run xgps and I am seeing 8 locked satellites, as well as 4 more that are not locked (or yellow). This looks like the results I was hoping to get...
?
However, when I try to backup my SD card (using the SD Card Copier app), the app hangs after starting Copying partition 2 of 2, and just sits there... Clock on Conky is still running, and CPU, Frequency, and Temp are still changing... So I cancel SD card copier, and reboot. I close the app, unplug my USB SD card adaper, and now my Pi locks up, clock and all...
?
I am forced to do a power-down to reset the Pi, and powered back up to restart it.?
?
When my Pi restarts, conky is no longer working (and won't restart). So going to my backup...
-- 73, Mark Hetherington KF5KUW |
Joe I modified it to read /dev/ttyUSB0 from /dev/ttyAMC0. Picking up GPS data now.? I've rebooted. The conky info is not showing grid square?etc. later Don va7dgp Time: ? ? ? 2020-07-08T14:17:49.000Z ? ©¦©¦PRN: ? Elev: ?Azim: ?SNR: ?Used ©¦ ? ?Latitude: ? ?49.20064717 N ? ? ? ? ? ? ©¦©¦ ? 1 ? ?25 ? ?061 ? ?32 ? ? ?Y ©¦ ? ?Longitude: ?122.95373220 W ? ? ? ? ? ? ©¦©¦ ? 7 ? ?04 ? ?132 ? ?30 ? ? ?Y ©¦ ? ?Altitude: ? 214.665 ft ? ? ? ? ? ? ? ? ©¦©¦ ?11 ? ?12 ? ?039 ? ?09 ? ? ?Y ©¦ ? ?Speed: ? ? ?0.00 mph ? ? ? ? ? ? ? ? ? ©¦©¦ ?13 ? ?41 ? ?226 ? ?23 ? ? ?Y ©¦ ? ?Heading: ? ?0.0 deg (true) ? ? ? ? ? ? ©¦©¦ ?15 ? ?33 ? ?267 ? ?21 ? ? ?Y ©¦ ? ?Climb: ? ? ?0.00 ft/min ? ? ? ? ? ? ? ?©¦©¦ ?17 ? ?65 ? ?169 ? ?37 ? ? ?Y ©¦ ? ?Status: ? ? 3D DIFF FIX (30 secs) ? ? ?©¦©¦ ?19 ? ?42 ? ?192 ? ?33 ? ? ?Y ©¦ ? ?Longitude Err: ? +/- 9 ft ? ? ? ? ? ? ?©¦©¦ ?28 ? ?67 ? ?058 ? ?13 ? ? ?Y ©¦ ? ?Latitude Err: ? ?+/- 8 ft ? ? ? ? ? ? ?©¦©¦ ?30 ? ?34 ? ?135 ? ?31 ? ? ?Y ©¦ ? ?Altitude Err: ? ?+/- 26 ft ? ? ? ? ? ? ©¦©¦ 138 ? ?31 ? ?159 ? ?36 ? ? ?Y ©¦ ? ?Course Err: ? ? ?n/a ? ? ? ? ? ? ? ? ? ©¦©¦ ?10 ? ?01 ? ?343 ? ?13 ? ? ?N ©¦ ? ?Speed Err: ? ? ? +/- 12 mph ? ? ? ? ? ?©¦©¦ ?24 ? ?18 ? ?306 ? ?00 ? ? ?N ©¦ ? ?Time offset: ? ? 1.370 ? ? ? ? ? ? ? ? ©¦©¦ ©¦ ? ?Grid Square: ? ? CN89me ? ? ? ? ? ? ? ?©¦©¦ ©¸©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¼©¸©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤ 0.000,"eps":5.67,"epc":16.31} {"class":"TPV","device":"/dev/ttyUSB0","status":2,"mode":3,"time":"2020-07-08 T14:17:49.000Z","ept":0.005,"lat":49.200647173,"lon":-122.953732210,"alt":65. 430,"epx":2.837,"epy":2.608,"epv":8.155,"track":0.0000,"speed":0.000,"climb": 0.000,"eps":5.67,"epc":16.31} Don Poaps
New Westminster, BC
VA7DGP DATA VA7QU ? VOICE Winlink: va7qu@... Subject://wl2k ? ? ? ? ?? ? On Thu, Jun 25, 2020 at 7:21 AM Joe Spears <jgspears@...> wrote: Bill, |