Skip to content
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

ESP32 Snapclient pure PCM5102 endless reboot #25

Open
andreaskraft1 opened this issue Mar 10, 2021 · 0 comments
Open

ESP32 Snapclient pure PCM5102 endless reboot #25

andreaskraft1 opened this issue Mar 10, 2021 · 0 comments

Comments

@andreaskraft1
Copy link

andreaskraft1 commented Mar 10, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant