-
Notifications
You must be signed in to change notification settings - Fork 4
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
First step at supporting aiy-voicebonnet #13
Conversation
- respeaker 4mic and 6mic i2c numbers reversed - fixed command with bus number
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting. If this is tested and works (flipping 4mic and 6mic), then I have the same mistake on buildroot OS level;
https://github.com/OpenVoiceOS/ovos-buildroot/blob/develop/buildroot-external/board/raspberrypi/rootfs-overlay/usr/libexec/ovos-i2csound
I do not have a voicebonnet, so can't check that code. I do have the Chatterbox bonnet but that one is undetectable.
@builderjer What is needed on an OS level to configure that HAT? Then I can add the bonnet to the above script as well.
I have the voicebonnet and a 4-mic respeaker to test with. soon a voice hat also and will add that detection. The voicebonnet needs drivers from this fork of aiyprojects. I got the speaker and mic to work pretty easy, and have been working on the LED button. a multi-colored led on the bonnet, not sure of the hat yet. I needed to change permissions somewhere though. Viraniac also made a deb file for the bonnet which was nice of him. https://github.com/viraniac/aiy-voicebonnet-soundcard-dkms/releases/tag/3.0-1.1-beta |
just got the voicehat v1. It does not register with i2cdetect, but it does work with just the overlay |
So, the v2 hat can be detected, the v1 cannot? I can confirm the v1, however do not have a v2 to test. |
Yes, that is correct. My V1 is NOT detected with |
Incase you are feeling brave enough to enable autodetection for Voice Hat v1, please follow the instructions provided here |
Hmmm, maybe I will try that with mine, and then at least we can write the code to support this. Then if anybody wants to do so, they can. |
Out of curiosity and I might be missing the bigger picture here, but why are you using i2cdetect to check whether aiy voice_bonnet is connected or not? Cant you use the contents of |
I was emulating the code that was written for other devices. I will check that when I hook one up again. Thanks for the tip |
this only works after the dtoverlay is added to boot/config.txt right? we want to detect this before that step, to automatically configure whatever is needed, but @j1nx is the one to explain better the constraints edit: see here OpenVoiceOS/community-docs#49 (comment) |
As far as I can recall and assuming my understanding is correct, dtoverlay has nothing to do with it. I believe it is populated by the raspberrypi's bootloader after reading the hat's eeprom. The eeprom may or may not contain the dtoverlay dtb. Like in case of voice-hat v1, it doesn't contain the dtb and hence we manually have to add the dtoverlay. But even before adding dtoverlay manually, the |
I have the voice hat v1 installed right now on a pi3b, and |
Thats weird. Do you have force_eeprom_read or disable_poe_fan in your
config.txt?
Maybe you can share the config.txt and the os you are using and I can try
to troubleshoot it tomorrow.
…On Sat, 1 Apr, 2023, 2:48 am builderjer, ***@***.***> wrote:
I have the voice hat v1 installed right now on a pi3b, and
/proc/device-tree/hat is not there. I checked before I added the
dtoverlay, and after. I does not show up there. Is that because I did not
flash the hat, (yet), like in your HACKING.md.
—
Reply to this email directly, view it on GitHub
<#13 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABTBO2HREMARCXUJ6IF3PALW65C3LANCNFSM6AAAAAAVZCF53I>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
no As for what os? It is a custom raspbian image built with pi-gen
|
Ok... Do you by any chance have multiple hats connected at the same time?
Like if i recall correctly,, last time you had both poe and bonnet
connected at the same time.
If thats also not the case then I will try it out again tomorrow. Have to
sleep now its 3AM here :) zZZ
|
no, just the voice hat v1
|
Alright. I will have to simulate what you have and troubleshoot the same.
Could you please backup and upload your hat's eeprom? I will flash it on my
hat tomorrow and see whats wrong with it.
You can follow the first 3 steps from
https://github.com/viraniac/aiyprojects-raspbian/blob/aiyprojects/HACKING.md#appendix-hacking-aiy-voice-kit-v1-voice-hat-for-autodetection
to backup your eeprom
…On Sat, 1 Apr, 2023, 3:28 am builderjer, ***@***.***> wrote:
no, just the voice hat v1
—
Reply to this email directly, view it on GitHub
<#13 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABTBO2FBY2L2NEWHJIMHNVDW65HPVANCNFSM6AAAAAAVZCF53I>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
This is weird. Your eeprom is completely empty. Mine had the hat metadata present in it. Here is my stock eeprom image for comparision |
I think I will flash like your instructions describe and see what shows up then. Ya, mine was unreadable, I thought it was supposed to be that way. It'll be later today though |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## dev #13 +/- ##
=====================================
Coverage 0.00% 0.00%
=====================================
Files 6 6
Lines 163 169 +6
=====================================
- Misses 163 169 +6 ☔ View full report in Codecov by Sentry. |
Not sure why the build tests are still failing, but without this, the ReSpeaker 4mic and 6mic are reversed, and will be configured wrong on boot, and by the PHAL plugin associated with them. |
Closing this as there is |
i2cdetect
command with bus number