Open ajg79 opened 5 years ago
Hi,
I have the same problem.
I've done some debugging and I found that when the name of the configuration file is created (when the .json is added) a character "\r" (line break) appears between the name and the extension :
respeaker_4_mic_hat\r.json
Thus the configuration file is not found when loaded.
My C skills are a quiterusty so I need more time to propose some kind of solution but it may help the snips team to patch this problem :)
Try doing the following:
cd /var/lib/snips/skills/snips-skill-respeaker
sudo sh setup.sh
./action-led_animation_1.6.3
During the setup.sh prompt just press ENTER.
Thank you @dchatry ! It worked just fine ! Do you know why the manual setup works but not the sam installation ?
No idea, as I understand it, sam installation is supposed to be a wrapper of setup.sh, so it should work just the same.
So, much like Flote37, this worked to get the LEDs operating. However, later on when using sam update-assistant and going through all the config settings, the LEDs stopped working again. For interest, I tried running the action-led command and got the following.
pi@raspberrypi:~ $ cd /var/lib/snips/skills/snips-skill-respeaker pi@raspberrypi:/var/lib/snips/skills/snips-skill-respeaker $ ./action-led_animation_1.6.3 .json.json [Error] [load_json_file] Can not load ./hardware_specs/./hardware_specs/respeaker_4_mic_hat [17:14:19] [Info] [reset_power_pin] Mode has no power pin [17:14:19] [Info] [terminate_mqtt_client] Disconnecting mqtt
Re-running setup.sh fixed the error to get the LEDs operating again, but not sure what sam did to break them.
Anyway, this gives a workaround, but definitely something not quite working right with the sam installation that is in some way breaking the hardware specs file.
Same here, the LEDs stop working everytime I update Snips with sam update-assistant
, except the idle green one which is working fine.
Same for me, thanks for the advises!
Running Snips on a Raspberrypi 3B+ with Respeaker 4 Mic Hat, but the LEDs do not turn on. They work correctly when using the seeed pixels_demo so I am assuming that the hardware is installed correctly.
Looking at the other threads on this, I have run the steps which give the following outputs.
pi@raspberrypi:~ $ groups _snips-skills _snips-skills : _snips-skills audio spi gpio
pi@raspberrypi:~ $ sudo systemctl stop snips-skill-server pi@raspberrypi:~ $ cd /var/lib/snips/skills/snips-skill-respeaker pi@raspberrypi:/var/lib/snips/skills/snips-skill-respeaker $ ./action-led_animation_1.6.3 -d .json :25] [Debug] [load_json_file] Opening file: ./hardware_specs/respeaker_4_mic_hat .json.json [Error] [load_json_file] Can not load ./hardware_specs/./hardware_specs/respeaker_4_mic_hat [17:44:25] [Info] [reset_power_pin] Mode has no power pin [17:44:25] [Info] [terminate_mqtt_client] Disconnecting mqtt [Error] can't send spi message pi@raspberrypi:/var/lib/snips/skills/snips-skill-respeaker $
Grateful for any help you can give.