xmos / vocalfusion_3510_avs_setup

1 stars 4 forks source link

Upgrade avs-device-sdk to Version 1.19.0 - current won't install #36

Closed netkruzer closed 3 years ago

netkruzer commented 4 years ago

Tried installing on a fresh-ish raspberry pi image. Kept running into this error:

libcurl4-openssl-dev : conflicts: libssl1.0-dev but 1.0.2q-2 is to be installed

I found that changing the pi.sh file from installing libssl1.0-dev to just libssl-dev made the installation work.

I also found that the updated Alexa/avs-device-sdk file has that change made already.

https://github.com/alexa/avs-device-sdk/blob/master/tools/Install/pi.sh

I suggest updating your local copy for pi.sh on xmos/avs-device-sdk to the most recent Alexa/avs-device-sdk/tools/Install/pi.sh

This would fix that error.

lucianomartin commented 4 years ago

Hi @netkruzer, thanks for reporting this issue.

I merged the latest alexa/avs-device-sdk (v1.19) on top of the XMOS changes and I didn't manage to compile it, it freezes at 97% of the AVS compilation. I tried on both a RPi Model 3B and a Model 3B+ using kernel:

Linux raspberrypi 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l GNU/Linux

Can you let me know what kernel and hardware you used?

We cannot use more recent kernels at the moment as it causes a failure while building the I2S drivers.

Luciano

netkruzer commented 4 years ago

I gave up on the newest OS and switched back to Stretch:

cat /proc/device-tree/model
Raspberry Pi 3 Model B Rev 1.2

uname -a
Linux raspberrypi 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l GNU/Linux

I'm able to compile now, following the steps on this repo. I'm able to play audio out the 3.5mm jack on the daughter board, but I'm not able to record anything.

Any idea why Audacity would not record anything? I tried cycling through all of the recording inputs and nothing worked. I see the one multicolored light on the daughter board (on top of the Raspi) but nothing is lit on the microphone adapter board where the XMOS chip is.

I tried re-seating the cable, but still nothing. Any ideas?

netkruzer commented 4 years ago

Turns out, there is no documentation telling you the Raspberry Pi needs to be connected to the XMOS XVF3510 Motherboard through a Micro USB cable. The Motherboard is not powered by the Raspberry Pi backpack. image Raspberry Pi connection has 3v3.

image XMOS motherboard does not have the 3v3 connected.

netkruzer commented 4 years ago

image Connecting the 5v and GND to the USB connector powers and allows the XMOS board to transmit audio over the i2s connections. USB is not needed to get audio out of the XMOS motherboard.

lucianomartin commented 4 years ago

Hi @netkruzer, I am sorry about the issues you described in the previous comments. I am not 100% sure about the documentation included in the dev kit, but on the XMOS website we have this doc: https://www.xmos.com/download/XVF3510-AVS-Quick-Start---PDF_IDD(August-2019).pdf and at step 5 it mentions to connect the USB cable between the RPi and the XVF3510. As you correctly said, the XVF3510 is powered through that cable. It is not used for any USB communication in the AVS dev kit. Let me know if you have any more questions or feedback, but it seems that everything is working as expected now.

netkruzer commented 4 years ago

Hi @lucianomartin, I did not see that document. I went off the github install guides and this document: XVF3510-Quick-Start---PDF_IDD_2.pdf image It doesn't show the USB connected to the Raspberry Pi version of the board.

netkruzer commented 4 years ago

I guess it's my bad for not looking around more for more guidance. The one picture in the above does not have the USB connected to the Raspberry Pi. I would assume the Raspberry Pi Dev kit would connect and power fully over the ribbon cable, especially when it puts 3v on the ribbon, but the XMOS board has those pins disconnected.

lucianomartin commented 4 years ago

I see, the document you posted earlier is part of the non-AVS dev kit. It is our USB solution and it is not supposed to be used with the Raspberry Pi. Sorry for the confusion. If you have any feedback about how to avoid this issue in the future, please let us know.

DaveAtkinsonXMOS commented 3 years ago

This repo is to be discontinued so I am closing this issue. Please reopen in the new unified xmos/vocalfusion-avs-setup repo if you have any futher issues. Thanks.