-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Invalid response from Ambient module #54
Comments
I get the same response running the demo code |
Thanks, I'll check that out this week. |
+1 for seeing this error: https://forums.tessel.io/t/tessel-2-error-invalid-response-from-ambient-module/2316 |
Thanks everyone. It's likely that because T2 is faster than T1, we're running into issues that we haven't seen before. I think it can likely be fixed by making sure all messages sent between the Tessel and the module are serialized (ie don't send the next packet until you got a response from the previous) but I won't get a chance to work on this until later this week (currently working on install issues). @corymickelson or @draco2003 if you want to work on a fix, I can help advise in the meantime. |
I won't get a chance to work on it this week, but i did notice that it randomly updates the firmware as well, which might be a related issue when it's asking for the firmware version info. |
Thanks for the extra info @draco2003. |
I can give it a go this weekend. |
Just wanted to note that this happens to me regularly. I take a reading of data every 5 minutes for a chart for my place of residence, and the ambient module seems to just die randomly. Same error as stated in the topic. |
@johnnyman727 thanks, I've subscribed to that PR. I'll watch and update you if my situation changes. |
Some investigation into this problem. I have a screen grab of when the error occurs based on this example code:
The problem occurs with the second transaction (requesting the sound data). The first transaction can be analyzed as: Tessel0x2 = Send me light data Ambient0x55 = Confirming we are starting a transaction Then we can see the problem with the second transaction when we request sound data: Tessel0x3 = Send me sound data Ambient0x0 = Confirmation byte (SHOULD BE 0x55) I'm not yet sure why the ATTINY is not able to respond correctly to such a simple command. My guess is that the SPI protocol or timing is not what it's expecting. |
This should be fixed with a combination of c11274f and tessel/t2-firmware#209. Should be closed once tessel/t2-firmware#209 is merged and a new firmware build is released. |
I'm following the example on http://tessel.github.io/t2-start/modules/ambient.html but I can't get my module to work. This is what I get:
I also tried running the ambient triggers example, and it doesn't crash like this one, but it doesn't seem to register sound or light.
The text was updated successfully, but these errors were encountered: