Forums › SM Series Discussions › SM200C GPS issue
- This topic has 3 replies, 3 voices, and was last updated 3 weeks, 2 days ago by
Justin Crooks.
- AuthorPosts
RomanParticipant- This topic was modified 1 month ago by
Roman.
Dear developers,
I have next issue:
If the internal GPS sees satellites and can determine the location, then when sending commands using smWriteToGPS, I receive a response. However, if the GPS does not find satellites, no matter what commands I send, there is no response (NMEA length = 1 in command smGetGPSInfo).I checked the GPS using Spike. The GPS appears only after rebooting the SM200.
Our main problem is that sometimes the GPS disappears, and we have to restart the device.
Are there any ways to restore the GPS without rebooting?The NMEA cold boot command [ 0xB5, 0x62, 0x06, 0x04, 0x04, 0x00, 0xFF, 0xFF, 0x01, 0x00 ] does not help. Checksum are computed late by next code:
uint8_t ck_a = 0;
uint8_t ck_b = 0;
for (uint16_t i = 2; i < data.size(); i++) {
ck_a += data[i];
ck_b += ck_a;
}Also I tryed to change GPS configuration using UBX-CFG-PM2 and I receive UBX-ACK-ACK on my “test gps M8N”. But on SM200 also no response.
Thank you in advance!
AndrewModeratorRoman,
The API is setup to only return UBX messages when GPS is locked and outputting NMEA sentences. This is a result of how we package and return this data. For this reason, yes, you would need to see GPS lock before expecting messages.
Is there an event that consistently leads to lost GPS lock? Is it after sending a message? Does your GPS antenna have access to clear sky? I can’t say that I have seen a scenario or heard from a customer that a reboot of the device was required to attain GPS lock. Is it possible one of the messages is configuring the device in an undesirable state?
We only have experience sending the NAV5 message for changing the platform model. That code example is in our SDK (you probably already found it). I have not used the cold boot command. If it forces the GPS to do a cold boot, this will take many minutes or longer to get GPS lock again, I’m assuming you are waiting an appropriate amount of time?
RomanParticipantAndrew, thank you for response!
– Is there an event that consistently leads to lost GPS lock?
– Yes, jamming.– Does your GPS antenna have access to clear sky?
– Yes, sure.– Is it possible one of the messages is configuring the device in an undesirable state?
– We haven’t got possibility to reproduce main problem with devices under jamming. But we can get simmilar behavior if we send coldboot command [ 0xB5, 0x62, 0x06, 0x04, 0x04, 0x00, 0xFF, 0xFF, 0x01, 0x00 ], 9th byte (0x01) repesents “Reset Type”
0x00 = Hardware reset (watchdog) immediately
0x01 = Controlled software reset
0x02 = Controlled software reset (GNSS only)In case of 0x02(Controlled software reset (GNSS only)) it continue work(without jamming) but it doesn’t help for devices under jamming.
Unfortunately its bad news that we can’t get GPS info without lock status.
We wanna try to connect external GPS. Will it be possible to get proper timestamp in spectrum and IQ traces from external GPS?
Also will be possible to communicate with external GPS through sm_api?
Justin CrooksModeratorRoman,
We have some customers who use the PPS from an external GPS as the trigger input. This marks the sample in an I/Q stream at the top of the second. The time stamping requires a little more work on your part, as you would need to interface the GPS yourself and generate the time stamp based on trigger position.- This topic was modified 1 month ago by
- AuthorPosts
You must be logged in to reply to this topic.