kriswiner / CMWX1ZZABZ

Collection of sketches using the Arduino core for Murata's CMWX1ZZABZ (STM32L082 and SX1276)
96 stars 30 forks source link

GNSS always busy--can't progress #17

Open TFenby opened 5 years ago

TFenby commented 5 years ago

I'm trying your simple GNSS tests/examples, and finding that the first loop of while (GNSS.busy()) { } never exits. I checked the source and found that it just returns the value of gnss_busy(), but can't find any source for that--I assume it's part of the GPS chip? Regardless, do you know what might be causing it never not to be "busy"?

kriswiner commented 5 years ago

Which device? And specifically which sketch (link please)?

On Wed, Jun 5, 2019 at 3:59 PM Tyler notifications@github.com wrote:

I'm trying your simple GNSS test/example, and finding that the first loop of while (GNSS.busy()) { } never exits. I checked the source and found that it returns the value of gnss_busy(), but can't find any source for that--I assume it's part of the GPS chip? Regardless, do you know what might be causing it never not to be "busy"?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kriswiner/CMWX1ZZABZ/issues/17?email_source=notifications&email_token=ABTDLKQP7WE7JIWI7ABGSK3PZBAM3A5CNFSM4HUM4TNKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GX4PGTA, or mute the thread https://github.com/notifications/unsubscribe-auth/ABTDLKVO5IBEWZTSPW5NKWDPZBAM3ANCNFSM4HUM4TNA .

TFenby commented 5 years ago

Long Cricket. This sketch and line in particular: https://github.com/kriswiner/CMWX1ZZABZ/blob/c4948da7bfa3430b15b012d4e20dac2a75118cf3/longCricketAssetTracker/AssetTracker_longCricket.v04i/AssetTracker_longCricket.v04i.ino#L183

TFenby commented 5 years ago

There's also the example named "GPS" that came with the Arduino IDE package via https://github.com/GrumpyOldPizza/ArduinoCore-stm32l0

kriswiner commented 5 years ago

Are you using the Arduino IDE? Did you select the Cricket board variant to program it?

On Wed, Jun 5, 2019 at 4:04 PM Tyler notifications@github.com wrote:

Long Cricket. This sketch and line in particular: https://github.com/kriswiner/CMWX1ZZABZ/blob/c4948da7bfa3430b15b012d4e20dac2a75118cf3/longCricketAssetTracker/AssetTracker_longCricket.v04i/AssetTracker_longCricket.v04i.ino#L183

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/CMWX1ZZABZ/issues/17?email_source=notifications&email_token=ABTDLKWPUHYGDXDPTMNJ2FDPZBBBFA5CNFSM4HUM4TNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXBINQY#issuecomment-499287747, or mute the thread https://github.com/notifications/unsubscribe-auth/ABTDLKVH3OJZOLFFYBRPPBTPZBBBFANCNFSM4HUM4TNA .

TFenby commented 5 years ago

Yes to both questions. I've actually successfully registered the LoRaWAN portion with TTN at this point. Just can't figure out what's up with GNSS.

kriswiner commented 5 years ago

You could try setting pinMode(GNSS_en, OUTPUT); and digitalWrite(GNSS_en, HIGH); but this should be automatic. Are you suing the latest Tlera Corp boards version? Maybe update to the latest version?

On Wed, Jun 5, 2019 at 4:08 PM Tyler notifications@github.com wrote:

Yes to both questions. I've actually successfully registered the LoRaWAN portion with TTN at this point. Just can't figure out what's up with GNSS.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/CMWX1ZZABZ/issues/17?email_source=notifications&email_token=ABTDLKUY25Y6RMJTWV45LDDPZBBNXA5CNFSM4HUM4TNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXBITCY#issuecomment-499288459, or mute the thread https://github.com/notifications/unsubscribe-auth/ABTDLKV5DAMBHOWOEJ3WKYDPZBBNXANCNFSM4HUM4TNA .

TFenby commented 5 years ago

Is there another repository for that besides https://github.com/GrumpyOldPizza? I've looked through your GitHub, Tindie, and even HAD but have only really found your sketches and GrumpyOldPizza's Arudino SDK board info.

kriswiner commented 5 years ago

Hnh? How are you programming this board then?

Use the Arduino IDE, load the Tlera Corp boards using the board manager and select the Cricket board variant for this sketch to work.

On Wed, Jun 5, 2019 at 4:18 PM Tyler notifications@github.com wrote:

Is there another repository for that besides https://github.com/GrumpyOldPizza? I've looked through your GitHub, Tindie, and even HAD but have only really found your sketches and GrumpyOldPizza's Arudino SDK board info.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/CMWX1ZZABZ/issues/17?email_source=notifications&email_token=ABTDLKUIOXGJXNM3BP47WK3PZBCULA5CNFSM4HUM4TNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXBJDUA#issuecomment-499290576, or mute the thread https://github.com/notifications/unsubscribe-auth/ABTDLKTAA2VALUM75IFRQNTPZBCULANCNFSM4HUM4TNA .

TFenby commented 5 years ago

Yeah, that's what I've done. Tlera Corp didn't show up in the boards manager, though, until I added https://grumpyoldpizza.github.io/ArduinoCore-stm32l0/package_stm32l0_boards_index.json as a board manager URL in the IDE. Perhaps that's where I went astray?

kriswiner commented 5 years ago

No that's right. Did you select the Cricket variant? Are you using v.0.0.10 (the latest)?

On Wed, Jun 5, 2019 at 4:28 PM Tyler notifications@github.com wrote:

Yeah, that's what I've done. Tlera Corp didn't show up in the boards manager, though, until I added https://grumpyoldpizza.github.io/ArduinoCore-stm32l0/package_stm32l0_boards_index.json as a board manager URL in the IDE. Perhaps that's where I went astray?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/CMWX1ZZABZ/issues/17?email_source=notifications&email_token=ABTDLKQZAL53WRGFBYMRC2TPZBDZHA5CNFSM4HUM4TNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXBJT3Y#issuecomment-499292655, or mute the thread https://github.com/notifications/unsubscribe-auth/ABTDLKSPWOROBIJNXEMSVNTPZBDZHANCNFSM4HUM4TNA .

TFenby commented 5 years ago

Yes to both. Sounds like I haven't made any obvious mistakes so far, so that's heartening at least. I think for the time being I'm going to focus back in on TTN and come back to this with a fresher mind. If I continue to have issues I'll reach out again. Thank you for your very rapid responses!

kriswiner commented 5 years ago

Do you have an active patch antenna on the longCricket?

Try setting pin 5 to HIGH, this turns on the LDO powering the GNSS engine. It is possible yours is defective but I ran this program on your board before shipping to you so I know it worked at least once.

On Wed, Jun 5, 2019 at 4:31 PM Tyler notifications@github.com wrote:

Yes to both. Sounds like I haven't made any obvious mistakes so far, so that's heartening at least. I think for the time being I'm going to focus back in on TTN and come back to this with a fresher mind. If I continue to have issues I'll reach out again. Thank you for your very rapid responses!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/CMWX1ZZABZ/issues/17?email_source=notifications&email_token=ABTDLKRE7F3N5D7P7YJSE5TPZBEGBA5CNFSM4HUM4TNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXBJYXI#issuecomment-499293277, or mute the thread https://github.com/notifications/unsubscribe-auth/ABTDLKT4JKMKVJNBNPMQPJ3PZBEGBANCNFSM4HUM4TNA .

TFenby commented 5 years ago

I'll give pin 5 a shot. And I do have an external antenna on order now to see how that affects it. Will let you know the results.

kriswiner commented 5 years ago

Select internal antenna if not using the external one in set up.

On Wed, Jun 5, 2019 at 4:44 PM Tyler notifications@github.com wrote:

I'll give pin 5 a shot. And I do have an external antenna on order now to see how that affects it. Will let you know the results.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kriswiner/CMWX1ZZABZ/issues/17?email_source=notifications&email_token=ABTDLKTTUTTXP65NMT2IZIDPZBFVNA5CNFSM4HUM4TNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXBKMRY#issuecomment-499295815, or mute the thread https://github.com/notifications/unsubscribe-auth/ABTDLKW4ZRKPMX36IVWLKSDPZBFVNANCNFSM4HUM4TNA .