sparkfun / Run-SPOT-Run

Breakout board and example code to control the SPOT Connect Geolocator
https://www.sparkfun.com/products/retired/11088
11 stars 3 forks source link

Spot device not recognized #1

Closed c0t0d0s0 closed 11 years ago

c0t0d0s0 commented 12 years ago

I've got the hardware all wired up and the example code installed on my Ardonio Uno but it doesn't recognize the Spot Connect. I get the following from the code:

Regulators off
Regulators on
Turning SPOT on
SPOT is now on
Status Array: AA 2B A4 01 02 14 68 10 20 80 FF FF 00 00 01 02 04 08 30 40 80 00 00 00 01 02 04 08 30 40 80 FF
Status Array: AA 2B 52 00 00 05 1A 04 08 B0 FF 00 00 00 00 00 00 01 02 04 08 30 40 80 00 00 00 01 02 F4 FF 00
[Unit Status:No response]4 (No location) [Sats:00] [Next Xmit:00] [Try#:04] [#ofPowerOns:26]
Status Array: AA 2B 52 00 00 02 0D 02 04 E8 FF 00 00 01 02 04 08 20 40 80 00 00 00 01 02 04 08 30 40 80 FF FF
[Unit Status:No response]2 [Sats:255] [Next Xmit:00] [Try#:128] [#ofPowerOns:13]
Status Array: AA 2B 52 00 01 0A 34 08 30 40 FF 00 00 00 00 00 01 02 04 08 30 40 80 00 00 00 01 02 04 E8 FF 00
[Unit Status:No response]8 (Location good) [Sats:00] [Next Xmit:00] [Try#:08] [#ofPowerOns:52]
Status Array: AA 2B A4 01 02 14 68 10 20 80 FF FF 00 00 01 02 04 08 30 40 80 00 00 00 01 02 04 08 30 40 80 FF
[Unit Status:No response]16 [Sats:255] [Next Xmit:-256] [Try#:64] [#ofPowerOns:104]
Status Array: AA 2B A4 01 02 14 68 10 20 80 FF FF 00 00 01 02 04 08 30 40 80 00 00 00 01 02 04 08 30 40 80 FF
[Unit Status:No response]16 [Sats:255] [Next Xmit:-256] [Try#:64] [#ofPowerOns:104]
Status Array: AA 2B 52 00 00 02 0D 02 04 E8 FF 00 00 01 02 04 08 30 40 80 00 00 00 01 02 04 08 30 40 80 FF FF
[Unit Status:No response]2 [Sats:255] [Next Xmit:00] [Try#:128] [#ofPowerOns:13]
Status Array: AA 2B 52 00 00 02 0D 02 04 E8 FF 00 00 00 00 00 00 01 02 04 08 30 40 80 00 00 00 01 02 F4 FF 00
[Unit Status:No response]2 (No location) [Sats:00] [Next Xmit:00] [Try#:04] [#ofPowerOns:13]
Status Array: AA 2B 52 00 01 0A 34 08 30 40 FF 00 00 00 00 00 01 02 04 08 30 40 80 00 00 00 01 02 04 E8 FF 00
[Unit Status:No response]8 (Location good) [Sats:00] [Next Xmit:00] [Try#:08] [#ofPowerOns:52]
Status Array: AA 2B 52 00 00 05 1A 04 08 B0 FF 00 00 00 00 00 01 02 04 08 30 40 80 00 00 00 00 01 02 F4 FF 00
[Unit Status:No response]4 (No location) [Sats:00] [Next Xmit:00] [Try#:08] [#ofPowerOns:26]
Status Array: AA 2B 52 00 00 02 0D 02 04 E8 FF 00 00 01 02 04 08 20 40 80 00 00 00 01 02 04 08 30 40 80 FF FF
[Unit Status:No response]2 [Sats:255] [Next Xmit:00] [Try#:128] [#ofPowerOns:13]
Status Array: AA 2B 52 00 00 02 0D 02 04 E8 FF 00 00 00 00 00 00 01 02 04 08 30 40 80 00 00 00 00 01 FA FF 00
[Unit Status:No response]2 (No location) [Sats:00] [Next Xmit:00] [Try#:04] [#ofPowerOns:13]
Status Array: AA 2B 52 00 00 01 06 01 02 F4 FF 00 00 01 02 04 08 30 40 80 00 00 00 01 02 04 08 30 40 80 FF FF
[Unit Status:No response]1 [Sats:255] [Next Xmit:00] [Try#:128] [#ofPowerOns:06]
Status Array: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
SPOT failed to respond to status check
Status Array: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
SPOT failed to respond to status check
Status Array: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
SPOT failed to respond to status check
Status Array: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
SPOT failed to respond to status check

You'll notice the number after the "[Unit Status:No response]". That is the unitStatus number. None of my numbers match up to the values in the code.

nseidle commented 12 years ago

I found it's usually a serial baud issue. Since we have to bit-bang RX at 115200, the reception can often get mangled. I recommend using a USB Logic analyzer (http://www.sparkfun.com/products/8938) to see what's actually coming out of the SPOT and adjust the timing in getByte_115200().

The delay_us(2); and delay_us(3); amounts are very sensitive. A small skew could lead to reading bytes incorrectly.

johnm4 commented 12 years ago

Not having any previous experience with a Logic Analyzer, what exactly should I be looking for with it, and where, and what resulting timing delta? :) Sorry I'm a mechanical guy, I'd greatly appreciate any direction!

johnm4 commented 12 years ago

After messing with the getByte number a bit I've still been unsuccessful. Am I correct in assuming that us(2) and (3) are proportional to the baud rate, so if say I had 115947 bps, rather than 2us it would be 2.013? Any time I change the us amounts I get 00's for the register, and "please check connections". Stating the obvious here, but "I think I'm doing something wrong"......:) Any thoughts?

jimjiminyjimjim commented 11 years ago

I'm getting exactly the same issues - can't seem to get a response status from the connect

Here is my serial readout:


Regulators off Regulators on Turning SPOT on SPOT is now on Status Array: AA 2B 52 00 01 0A 34 08 20 40 FF 00 00 01 02 04 18 20 40 80 00 00 00 00 01 02 04 08 20 40 FF 00 Status Array: AA 2B A4 01 02 14 68 10 40 80 FF FF 00 00 01 02 04 08 20 40 80 00 00 00 00 00 01 02 04 08 A0 FF [Unit Status:No response](Location good) [Sats:255] [Next Xmit:-256] [Try#:64] [#ofPowerOns:104] Status Array: AA 2B A4 01 02 14 68 10 40 80 FF FF 00 00 01 02 04 08 20 40 80 00 00 00 00 00 01 02 04 08 A0 FF [Unit Status:No response](Location good) [Sats:255] [Next Xmit:-256] [Try#:64] [#ofPowerOns:104] Status Array: AA 2B A4 01 02 14 68 10 60 80 FF FF 00 00 00 01 02 04 08 20 40 80 00 00 00 00 00 01 02 04 C8 FF [Unit Status:No response](No location) [Sats:255] [Next Xmit:-256] [Try#:32] [#ofPowerOns:104] Status Array: AA 2B A4 01 02 14 68 10 40 80 FF FF 00 00 01 02 04 08 20 40 80 00 00 00 00 00 01 02 04 08 A0 FF [Unit Status:No response](Location good) [Sats:255] [Next Xmit:-256] [Try#:64] [#ofPowerOns:104] Status Array: AA 2B 52 00 00 05 1A 04 08 A0 FF 00 00 01 02 04 08 20 40 80 00 00 00 00 00 01 02 04 08 A0 FF 00 [Unit Status:No response] [Sats:00] [Next Xmit:00] [Try#:128] [#ofPowerOns:26] Status Array: AA 2B 52 00 00 05 1A 04 08 A0 FF 00 00 01 02 04 08 20 40 80 00 00 00 00 00 01 02 04 08 A0 FF 00 [Unit Status:No response] [Sats:00] [Next Xmit:00] [Try#:128] [#ofPowerOns:26] Status Array: AA 2B A4 01 02 14 68 10 40 80 FF FF 00 00 01 02 04 08 20 40 80 00 00 00 00 00 01 02 04 08 A0 FF [Unit Status:No response](Location good) [Sats:255] [Next Xmit:-256] [Try#:64] [#ofPowerOns:104] Status Array: AA 2B 52 00 01 0A 34 08 20 40 FF 00 00 01 02 04 08 20 40 80 00 00 00 00 01 02 04 08 20 40 FF 00 [Unit Status:No response] [Sats:00] [Next Xmit:00] [Try#:128] [#ofPowerOns:52] Status Array: AA 2B 52 00 01 0A 34 08 20 40 FF 00 00 00 00 00 01 02 04 08 20 40 80 00 00 00 00 00 01 FA FF 00 [Unit Status:No response](No location) [Sats:00] [Next Xmit:00] [Try#:08] [#ofPowerOns:52] Status Array: AA 2B A4 01 02 14 68 10 40 80 FF FF 00 00 01 02 04 08 20 40 80 00 00 00 00 00 01 02 04 08 A0 FF [Unit Status:No response](Location good) [Sats:255] [Next Xmit:-256] [Try#:64] [#ofPowerOns:104] Status Array: AA 2B 52 00 01 0A 34 08 20 40 FF 00 00 00 00 00 01 02 04 08 20 40 80 00 00 00 00 00 01 FA FF 00 [Unit Status:No response](No location) [Sats:00] [Next Xmit:00] [Try#:08] [#ofPowerOns:52] Status Array: AA 2B 52 00 01 0A 34 08 20 40 FF 00 00 01 02 04 18 20 40 80 00 00 00 00 01 02 04 08 20 40 FF 00 [Unit Status:No response] [Sats:00] [Next Xmit:00] [Try#:128] [#ofPowerOns:52] Status Array: AA 2B A4 01 02 14 68 10 40 80 FF FF 00 00 01 02 04 08 20 40 80 00 00 00 00 00 01 02 04 08 A0 FF [Unit Status:No response](Location good) [Sats:255] [Next Xmit:-256] [Try#:64] [#ofPowerOns:104] Status Array: AA 2B A4 01 02 14 68 10 40 80 FF FF 00 00 01 02 04 08 20 40 80 00 00 00 00 00 01 02 04 08 A0 FF [Unit Status:No response](Location good) [Sats:255] [Next Xmit:-256] [Try#:64] [#ofPowerOns:104] Status Array: AA 2B A4 01 02 14 68 10 60 80 FF FF 00 00 00 01 02 04 08 20 40 80 00 00 00 00 01 02 04 08 A0 FF [Unit Status:No response](Location good) [Sats:255] [Next Xmit:-256] [Try#:32] [#ofPowerOns:104]


Without spending a lot of money on a logic analyser - what else could I try - where does the serial problem lie? In the compatibility between the Ardiuino and spot connect - what factors effect the baud rate issues?

johnm4 commented 11 years ago

Well, so far my logic analyzer has been fun to play with, but has not gotten me anywhere.  I've been emailing back and forth with SF tech support, hope to have some direction soon.  I tried using another satuplink shield, a different arduino, no change.  I'm not about to go even deeper in the hole on a second SPOT, but since it still functions fine every time I reassemble it, I am inclined to think it is not the problem.  Will post up if I get some direction.


From: jimjiminyjimjim notifications@github.com To: sparkfun/Run-SPOT-Run Run-SPOT-Run@noreply.github.com Sent: Monday, October 1, 2012 5:14 AM Subject: Re: [Run-SPOT-Run] Spot device not recognized (#1)

I'm getting exactly the same issues - can't seem to get a response status from the connect Here is my serial readout: [code] Regulators off Regulators on Turning SPOT on SPOT is now on Status Array: AA 2B 52 00 01 0A 34 08 20 40 FF 00 00 01 02 04 18 20 40 80 00 00 00 00 01 02 04 08 20 40 FF 00 Status Array: AA 2B A4 01 02 14 68 10 40 80 FF FF 00 00 01 02 04 08 20 40 80 00 00 00 00 00 01 02 04 08 A0 FF Unit Status:No response [Sats:255] [Next Xmit:-256] [Try#:64] [#ofPowerOns:104] Status Array: AA 2B A4 01 02 14 68 10 40 80 FF FF 00 00 01 02 04 08 20 40 80 00 00 00 00 00 01 02 04 08 A0 FF Unit Status:No response [Sats:255] [Next Xmit:-256] [Try#:64] [#ofPowerOns:104] Status Array: AA 2B A4 01 02 14 68 10 60 80 FF FF 00 00 00 01 02 04 08 20 40 80 00 00 00 00 00 01 02 04 C8 FF Unit Status:No response [Sats:255] [Next Xmit:-256] [Try#:32] [#ofPowerOns:104] Status Array: AA 2B A4 01 02 14 68 10 40 80 FF FF 00 00 01 02 04 08 20 40 80 00 00 00 00 00 01 02 04 08 A0 FF Unit Status:No response [Sats:255] [Next Xmit:-256] [Try#:64] [#ofPowerOns:104] Status Array: AA 2B 52 00 00 05 1A 04 08 A0 FF 00 00 01 02 04 08 20 40 80 00 00 00 00 00 01 02 04 08 A0 FF 00 [Unit Status:No response] [Sats:00] [Next Xmit:00] [Try#:128] [#ofPowerOns:26] Status Array: AA 2B 52 00 00 05 1A 04 08 A0 FF 00 00 01 02 04 08 20 40 80 00 00 00 00 00 01 02 04 08 A0 FF 00 [Unit Status:No response] [Sats:00] [Next Xmit:00] [Try#:128] [#ofPowerOns:26] Status Array: AA 2B A4 01 02 14 68 10 40 80 FF FF 00 00 01 02 04 08 20 40 80 00 00 00 00 00 01 02 04 08 A0 FF Unit Status:No response [Sats:255] [Next Xmit:-256] [Try#:64] [#ofPowerOns:104] Status Array: AA 2B 52 00 01 0A 34 08 20 40 FF 00 00 01 02 04 08 20 40 80 00 00 00 00 01 02 04 08 20 40 FF 00 [Unit Status:No response] [Sats:00] [Next Xmit:00] [Try#:128] [#ofPowerOns:52] Status Array: AA 2B 52 00 01 0A 34 08 20 40 FF 00 00 00 00 00 01 02 04 08 20 40 80 00 00 00 00 00 01 FA FF 00 Unit Status:No response [Sats:00] [Next Xmit:00] [Try#:08] [#ofPowerOns:52] Status Array: AA 2B A4 01 02 14 68 10 40 80 FF FF 00 00 01 02 04 08 20 40 80 00 00 00 00 00 01 02 04 08 A0 FF Unit Status:No response [Sats:255] [Next Xmit:-256] [Try#:64] [#ofPowerOns:104] Status Array: AA 2B 52 00 01 0A 34 08 20 40 FF 00 00 00 00 00 01 02 04 08 20 40 80 00 00 00 00 00 01 FA FF 00 Unit Status:No response [Sats:00] [Next Xmit:00] [Try#:08] [#ofPowerOns:52] Status Array: AA 2B 52 00 01 0A 34 08 20 40 FF 00 00 01 02 04 18 20 40 80 00 00 00 00 01 02 04 08 20 40 FF 00 [Unit Status:No response] [Sats:00] [Next Xmit:00] [Try#:128] [#ofPowerOns:52] Status Array: AA 2B A4 01 02 14 68 10 40 80 FF FF 00 00 01 02 04 08 20 40 80 00 00 00 00 00 01 02 04 08 A0 FF Unit Status:No response [Sats:255] [Next Xmit:-256] [Try#:64] [#ofPowerOns:104] Status Array: AA 2B A4 01 02 14 68 10 40 80 FF FF 00 00 01 02 04 08 20 40 80 00 00 00 00 00 01 02 04 08 A0 FF Unit Status:No response [Sats:255] [Next Xmit:-256] [Try#:64] [#ofPowerOns:104] Status Array: AA 2B A4 01 02 14 68 10 60 80 FF FF 00 00 00 01 02 04 08 20 40 80 00 00 00 00 01 02 04 08 A0 FF Unit Status:No response [Sats:255] [Next Xmit:-256] [Try#:32] [#ofPowerOns:104] [/code] Without spending a lot of money on a logic analyser - what else could I try - where does the serial problem lie? In the compatibility between the Ardiuino and spot connect - what factors effect the baud rate issues? — Reply to this email directly or view it on GitHub.

jimjiminyjimjim commented 11 years ago

Thanks for letting me know - was seriously considering delving into using a logic analyser - but not so keen having heard this. Particularly if its a case changing these:

delay_us(2); and delay_us(3);

But even if theres a way to change these through trial and error (might be too hit and miss).

Got a response from Sparkfun saying:

"Unfortunately at this time, we have limited support on that product. I have received a SPOT and will be working on some trouble shooting for the device. I would like to get you helped as soon as possible. However I may require some time before I can provide any useful assistance. I will hang on to your message, and be back with you as I move forward."

But I'm hoping to move on this project pretty quickly. Any advice on this from anyone would be appreciated and also anyway to diagnose if this is down to the SPOT rather than the shield/arduino/cable combo?!

Will keep posting and watching on this git thread in the meantime.

fluffy commented 11 years ago

Any update on this? DId people get the board working?

johnm4 commented 11 years ago

Nope.  Sparkfun tech support still working on it.


From: Cullen Jennings notifications@github.com To: sparkfun/Run-SPOT-Run Run-SPOT-Run@noreply.github.com Sent: Tuesday, November 13, 2012 10:45 PM Subject: Re: [Run-SPOT-Run] Spot device not recognized (#1)

Any update on this? DId people get the board working? — Reply to this email directly or view it on GitHub.

fluffy commented 11 years ago

It's pretty weird - some times I get reasonable values in the status array but I have never managed to transmit a message. Other times I just get all zeros in the array.

ToniCorinne commented 11 years ago

Tech Support was never able to determine what the issue was with this particular problem. It was duplicated, but even with multiple troubleshooting options, we weren't able to pinpoint the exact problem. We had a few theories that the issue may be due to some kind of power issue on the Spot module itself where the gps unit isn't getting enough juice to get a lock, or there may be some kind of short negatively affecting the gps antenna.

Alternatively, it may have also been due to something as simple as the pins either got shorted or damaged in the hacking process, and the damage is just not easily discovered due to the lack of info on the internal hardware itself.

Anyway, SparkFun ended up retiring this board, so I am closing this issue, but hopefully the info being here may be helpful to anyone still hacking away on this.