Boa noite amigos garagistas, estou usando um ESP32 via Bluetooth e outro ESP32 via Wiffi, tentei juntar os dois Código bluettoth e wiffi mais não estive exito, alguém poderia me ajudar , gostaria de usar estes código em uma só placa ESP32, para ligar minha lampada via Wiffi ou Bluetooth segue os código em anexo....

Exibições: 891

Anexos

Responder esta

Respostas a este tópico

Consegui juntar os dois código só que ficou muito grande para o esp32, esta travando, alguém poderia me ajudar a da uma resumida neste código para ficar menor segue o código em anexo .....

Anexos

boa noite Elcids Chagas gostaria de saber se tem como trabalhar com esses dois código juntos, numa só placa  ESP32 Wifi e Bluetooth

Olá. 

  Não tem como isso ter ficado grande, o ESP32 tem muuuuita memória.

  Eu começaria tirando o delay(20) do loop.

 Mas exatamente o que está acontecendo ? O que te levou a concluir que ficou grande ?

Eduardo Henrique Marcondes esta usando 90% da memoria

esta acontecendo um problema nesse código, so consigo usar o bluetooth se o wiffi estiver conectado, sem o wiffi conectado o bluetooth conecta mais não funciona,que seria o erro?

Marcela, 

Os links que eu lhe enviei explicam como usar os dois WIFI e BLE.

Terá que observar algumas restrições e recomendações.

boa noite  José Gustavo Abreu Murta eu estou trabalhando com WIFFI e BLUETOOTH CLASSICO

• If the Classic Bluetooth and Wi-Fi coexistence is required, it is recommended that you enable this option.


In ESP-IDF V3.0 and earlier versions, the performance of Classic Bluetooth and Wi-Fi coexistence might be poor at times. However, in ESP-IDF V3.1 and later versions, we has solved this issue. At the moment, ESP32 can simultaneously function as a Wi-Fi module and as a Bluetooth speaker, playing music smoothly.

Coloca o Partition Scheme em "No OTA".

O sketch usa 1189302 bytes (56%) de espaço de armazenamento para programas. O máximo são 2097152 bytes

Bom dia,

Acho importante você ler esses tópicos do forum do ESP32 :

https://esp32.com/viewtopic.php?t=6707

https://www.espressif.com/sites/default/files/documentation/ESP32_F...

5.3.2. How do ESP32 Bluetooth and Wi-Fi coexist?
In the menuconfig menu, there is a special option called “Software controls WiFi/
Bluetooth coexistence”, which is used to control the ESP32's Bluetooth and Wi-Fi
coexistence using software, thus balancing the coexistence requirement for controlling the
RF module by both the Wi-Fi and Bluetooth modules. Please note that if Option “Software
controls WiFi/Bluetooth coexistence” is enabled, the BLE scan interval shall not exceed
0x100 slots (about 160 ms).
• If only the BLE and Wi-Fi coexistence is required, this option can be enabled or
disabled. However, if this option is not enabled, please note that the “BLE scan
interval - BLE scan window” should be larger than 150 ms, and the BLE scan interval
should be less than 500 ms.
• If the Classic Bluetooth and Wi-Fi coexistence is required, it is recommended that you
enable this option.
In ESP-IDF V3.0 and earlier versions, the performance of Classic Bluetooth and Wi-Fi
coexistence might be poor at times. However, in ESP-IDF V3.1 and later versions, we has
solved this issue. At the moment, ESP32 can simultaneously function as a Wi-Fi module
and as a Bluetooth speaker, playing music smoothly.

obrigada  José Gustavo Abreu Murta pela atenção vou da uma olhada..

boa noite Elcids Chagas gostaria de saber se tem como trabalhar com esses dois código juntos, numa só placa  ESP32 Wifi e Bluetooth classic

RSS

© 2024   Criado por Marcelo Rodrigues.   Ativado por

Badges  |  Relatar um incidente  |  Termos de serviço