I plugged a Pulse W3906 antenna into the Notecard to test GPS functionality (card has functions for months without it).
The notecard is near a window
I am getting as a response to card.location:
{‘status’: ‘GPS is off {gps-inactive}’, ‘mode’: ‘periodic’}
A cellular phone positioned right next to it “sees” 6 satellites, not great but it gets a lat/lon
The response is a bit cryptic:
Is it because my antenna is no good? The GPS circuitry on the notecard not properly enabled?
Is there a way to get more info as to what is going on?
@RobLauer I am using the Notecarrier Pi (aka hat). BTW I’ve been given a last minute chance to do some wardriving in Puerto Rico this long weekend, that’s why I’m trying to get the GPS running.
@Francois Do you have access to another Notecarrier, or do you just have the Notecarrier-Pi with you?
While I expect the antenna you have selected to work, there are a number of variables here, and would like to see if we can eliminate the Notecard as the source of the problem.
I have a Notecarrier B (I think), the one that is about the same size as the Notecard. I have connected now to my laptop with the Pulse W3906 antenna. Same result – which is why I am thinking I might be missing something totally obvious:
@Francois Can you attach the external GPS antenna to a metal surface?
Often with these external patch antennas there’s an expectation of a ground plane which is assumed if it is attached magnetically. One of our engineers does lots of testing with an external patch antenna, but it is mounted to a metal plane. We haven’t tested without that plane yet, so we don’t know exactly what impact that will have.
Also, I found out more about GPS lock. The onboard GPS needs at least a 25dB SNR for at least 3 satellites. We may not have been getting that. The standard GPS trace info only shows the max of available satellites. We should be able to use the +gpsmax on the trace info to see the details SNR information.
While I requested the use of +gpsmax, I think I formatted incorrectly.
trace +gpsmax
should do it.
If you can test outside, maybe with the antenna on the roof of a car, I suspect it will improve.
@gwolff I put the external antenna on metallic pot holder (ext has magnet at the bottom). Got 11/11 sats in 41 seconds. No fix.
Then issued the command trace +gpsmax instead of trace on +gpsmax but the info scrolls too fast to tell.
Forum won’t allow uploading .log file, sending to Skype
@gwolff Never got the carrier B to work reliably.
1- Back to the Carrier Pi, switched from 1.0. to 1.1
2- Made sure GPS DIP was Active
3- Place the Adafruit external antenna on a metal surface (antenna has a magnet)
4- Put the antenna outside
5- Tighten the tiny connector on the Carrier for good measure
6- Rebooted
7- Set card.location.mode to continuous (and hub.set to periodic)
8- Waited several minutes
Success!
Further testing indicates that 3,4 and 6 are not a factor.
Item 7 is: when hub.set is in continuous and card.location.mode in periodic, it does not acquire/search for the satellites. Possibly because it takes an unusually long time for the notecard to acquire a sat fix (several minutes). Same antenna/position with an Adafruit GPS hat locks in just a few seconds.
Other suggestion:
Given that external antennas (including the recommended Taoglas MA256.A.LBI.001) use SMA connectors, the uFL adapter weight/rigidity does not permit to truly secure the connection to the notecard. Perhaps another connector?
@gwolff back at my office now, I will run the another test with CoolTerm, external antenna and Carrier Pi. While in PR I noticed that it takes a very long time for the Carrier A to get a sat fix after a power off, over 20 minutes even with a clear view of the sky.
Thanks for the feedback Francois. We will probably need to investigate that separately as the Notecarrier A adds an additional variable of a different antenna and RF layout.
We expect customers to be able to use the active antenna and the Notecarrier B or Notecarrier-Pi. We use that combination frequently, and have not seen such weak GPS signal strength. We are wondering if it happens to be the GPS patch antenna you are using. I know you sent a link, but can you confirm the model number? We are interested in testing with the same antenna.
Using the Notecarrier Hat + an external antenna GPS does not get a fix in the following configuration:
{“req”:“hub.set”,“mode”:“continuous”}
{“card.location.mode”,“mode”:“periodic”}
{“card.motion.track”,“start”:true}
I do see the motion events routed to notehub but there is no location available in a {“req”:“card.location”}
The only way to make this work is to first set the card.location.mode to continuous, wait after power on for a fix (7 minutes or so), then switch back to the configuration above.