You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Iam trying to use your snapclient on a bar Metal konfiguration.
My Config is
TTGO T8 V1.7 ESP32 4MB PSRAM TF and pure PCM5102
in menuconfig i used first the pcm51xx konfig which results in
endless reboots.
At the moment I removed from PCM51xx.c all parts, that depend on I2C
because the pure PC5102 does not have I2c for volume control etc.
I have done it like this
esp_err_t pcm51xx_get_volume(int value) {
/// FIXME: Got the digit volume is not right.
esp_err_t ret = ESP_OK;
/
uint8_t cmd[2] = {PCM51XX_REG_VOL_L, 0x00};
esp_err_t ret =
i2c_bus_read_bytes(i2c_handler, pcm51xx_addr, &cmd[0], 1, &cmd[1], 1);
PCM51XX_ASSERT(ret, "Fail to get volume", ESP_FAIL);
ESP_LOGI(TAG, "Volume is %d", cmd[1]);
*value = cmd[1];
*/
return ret;
}
the function is called, but will exit with OK
this works at the moment, I get in Monitor
(when the stream is muted)
.. waiting .. no data
there is no reboot and the client is registered at the snapserver.
BUT if I unmute the Client in SNAPWEB, I get a never ending
reboot at ESP32 Client, until the Client in SNAPWEB is muted.
Can you give me an hint where to search?
I think there is a part using i2c that trys to set volume
or something else.
Regards
Andreas
The text was updated successfully, but these errors were encountered:
Hi Jorgen,
Iam trying to use your snapclient on a bar Metal konfiguration.
My Config is
TTGO T8 V1.7 ESP32 4MB PSRAM TF and pure PCM5102
in menuconfig i used first the pcm51xx konfig which results in
endless reboots.
At the moment I removed from PCM51xx.c all parts, that depend on I2C
because the pure PC5102 does not have I2c for volume control etc.
I have done it like this
esp_err_t pcm51xx_get_volume(int value) {
/// FIXME: Got the digit volume is not right.
esp_err_t ret = ESP_OK;
/
uint8_t cmd[2] = {PCM51XX_REG_VOL_L, 0x00};
esp_err_t ret =
i2c_bus_read_bytes(i2c_handler, pcm51xx_addr, &cmd[0], 1, &cmd[1], 1);
PCM51XX_ASSERT(ret, "Fail to get volume", ESP_FAIL);
ESP_LOGI(TAG, "Volume is %d", cmd[1]);
*value = cmd[1];
*/
return ret;
}
the function is called, but will exit with OK
this works at the moment, I get in Monitor
(when the stream is muted)
.. waiting .. no data
there is no reboot and the client is registered at the snapserver.
BUT if I unmute the Client in SNAPWEB, I get a never ending
reboot at ESP32 Client, until the Client in SNAPWEB is muted.
Can you give me an hint where to search?
I think there is a part using i2c that trys to set volume
or something else.
Regards
Andreas
The text was updated successfully, but these errors were encountered: