New release 1.43.7 for ESP32

Here you'll find the updated available
cicciocb
Site Admin
Posts: 410
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 92 times
Been thanked: 295 times
Contact:

New release 1.43.7 for ESP32

Post by cicciocb »

Hi all,
please find here another release that fixes the problem seen with the modules without PSRAM.
You'll find here the full version and the one without bluetooth.
I suggest to use the latter with modules without PSRAM.

Version full
Annex32.bin
Version without BLE
Annex32NoBLE.bin
The main change, compared to the previous version, is the improvement of the mp3 radio streaming

This is an extract of the updated documentation

Code: [Local Link Removed for Guests]

It is also possible to play mp3 streaming web radios with the command
PLAY.STREAM streaming_url$ [,buffer] [,disable_id3] [,use_http10] [,show_buffer] [,preload_time]	
Example:
PLAY.STREAM "http://91.121.159.124:8000/eko-des-garrigues-128k.mp3"

To avoid glitches, the stream is buffered locally using a buffer of 20 Kbytes.
This can eventually be increased to improve the performance of the streaming, in particular with ESP32 modules that include the PSRAM.
Example:
PLAY.STREAM "http://audio4.nemostream.tv:8011/autodj", 50000

To avoid glitches, the stream is preloaded in the buffer for 4 seconds or until it reaches the 80% of the allocated size; the optional argument ‘preload_time’ can be used to modify this time.
It is important to note that streams using https:, require more memory and more CPU power to process the encrypted data. In this case, it is recommended to use modules with PSRAM and set a big buffer size ( at least 150000, for example).

The optional argument ‘disable_id3’ disables the parsing of the metadata included in the stream. This is particularly useful for high rate streams that uses massively the cpu (generating a lot of glitches)

The optional argument ‘use_http10’ is useful for streams that still uses the HTTP 1.0 protocol 
Example:
PLAY.STREAM "http://icecast.radiofrance.fr/franceinter-lofi.mp3", 50000,,1

The optional argument ‘show_buffer’ will show how the buffer is managed and can be useful for debug
You do not have the required permissions to view the files attached to this post.
PANNO2
Posts: 38
Joined: Tue Jun 08, 2021 6:26 pm
Has thanked: 27 times
Been thanked: 2 times

Re: New release 1.43.7 for ESP32

Post by PANNO2 »

hi ;
ESP WROOM 32

ive got following output and the modul restart if i use the blueooth demo source

iam not shure about the code so i ask here if anybody can post a working demo ?

thx

ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:8896
load:0x40080400,len:5816
entry 0x400806ac
E (421) psram: PSRAM ID read error: 0xffffffff
Annex initializing...
BLE support enabled
module Type 200 SD_Card 1
OK
No SD cards found. Reverts to FFAT

Annex32 WiFi BLE 1.43.7
(C) ciccioCB 2021
Personal use only, commercial use strictly prohibited

Chip revision 1 Freq 240
STARTING...
Connecting..........
Connected to WLAN
IP address: 192.168.0.10
User avatar
PeterN
Posts: 142
Joined: Mon Feb 08, 2021 7:56 pm
Location: Krefeld, Germany
Has thanked: 56 times
Been thanked: 75 times
Contact:

Re: New release 1.43.7 for ESP32

Post by PeterN »

HI CiccioCB

There seems to be a problem with the CSS811-lib and I2C.

I took the 1.43.7-non-BLE for an M5-ATOM-Matrix with CSS811-Sensor.
This constellation works fine with 1.43.5

ccs811.Setup(&h5a) now returns a "2" as indication of an "I2C-Error"

I then did an I2C-scan that returned the I2C-device responding as expected at hex5A

A side effect of the new firmware/IDE?

TNX and good luck
PETER
cicciocb
Site Admin
Posts: 410
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 92 times
Been thanked: 295 times
Contact:

Re: New release 1.43.7 for ESP32

Post by cicciocb »

Thanks Peter,
the problem of the SDK upgrade is that includes a lot of side effects.
The main problem is that you are almost obliged to follow, including the snags (I've already found 2 :D )
This could be one of them, I'll check what happens.
cicciocb
Site Admin
Posts: 410
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 92 times
Been thanked: 295 times
Contact:

Re: New release 1.43.7 for ESP32

Post by cicciocb »

[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Mon Nov 29, 2021 1:44 pm HI CiccioCB

There seems to be a problem with the CSS811-lib and I2C.

I took the 1.43.7-non-BLE for an M5-ATOM-Matrix with CSS811-Sensor.
This constellation works fine with 1.43.5

ccs811.Setup(&h5a) now returns a "2" as indication of an "I2C-Error"

I then did an I2C-scan that returned the I2C-device responding as expected at hex5A

A side effect of the new firmware/IDE?

TNX and good luck
PETER
Hi Peter,
I just discovered that, even if the result is "2", the module works correctly.
Ignoring the error, the result is correct
I'm trying to understand the source of the error
User avatar
PeterN
Posts: 142
Joined: Mon Feb 08, 2021 7:56 pm
Location: Krefeld, Germany
Has thanked: 56 times
Been thanked: 75 times
Contact:

Re: New release 1.43.7 for ESP32

Post by PeterN »

Thanks for your investigations, Francesco.
I am a little bit ashamed, that I did stop further researching after getting the error-result.
cicciocb
Site Admin
Posts: 410
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 92 times
Been thanked: 295 times
Contact:

Re: New release 1.43.7 for ESP32

Post by cicciocb »

[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Mon Nov 29, 2021 7:40 am hi ;
ESP WROOM 32

ive got following output and the modul restart if i use the blueooth demo source

iam not shure about the code so i ask here if anybody can post a working demo ?

thx

ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:8896
load:0x40080400,len:5816
entry 0x400806ac
E (421) psram: PSRAM ID read error: 0xffffffff
Annex initializing...
BLE support enabled
module Type 200 SD_Card 1
OK
No SD cards found. Reverts to FFAT

Annex32 WiFi BLE 1.43.7
(C) ciccioCB 2021
Personal use only, commercial use strictly prohibited

Chip revision 1 Freq 240
STARTING...
Connecting..........
Connected to WLAN
IP address: 192.168.0.10
Hi Panno,
yes I confirm that using the BLE the module restarts.
In fact it is linked to the PSRAM that is not available in your module.

Next version will fix this problem.
bugs
Posts: 59
Joined: Mon Feb 08, 2021 10:10 pm
Has thanked: 14 times
Been thanked: 21 times

Re: New release 1.43.7 for ESP32

Post by bugs »

Updated documentation was mentioned in the first post:-
"This is an extract of the updated documentation"
Trying to use the play.stream command with its new variations.
But when I hit F2 in this 1.43.7 version I only get 1.43.5 help. Is there somewhere else to look? :?
bugs
Posts: 59
Joined: Mon Feb 08, 2021 10:10 pm
Has thanked: 14 times
Been thanked: 21 times

Re: New release 1.43.7 for ESP32

Post by bugs »

Ok - my problem sorted.
In the UK the BBC changed their streaming audio to use "chunked" HTTP 1.1. The extra data information inserted in the stream wrecks the audio with both Annex and Arduino. Luckily they have (so far) retained the option to connect with HTTP 1.0 which does not support chunked format.
So the new option in the play command:-
The optional argument ‘use_http10’ is useful for streams that still uses the HTTP 1.0 protocol
restores the music to normal.

Thanks.
its1000
Posts: 65
Joined: Thu May 20, 2021 6:57 pm
Has thanked: 3 times
Been thanked: 1 time

Re: New release 1.43.7 for ESP32

Post by its1000 »

hello guys. hope every one is fine...

so much time without posting here and playing with my Annex, but I had a heavy loaded work last months.

I have 2 questions.
does the ESP32 modules with psram have a real interest when we develop programs with ANNEX? especially with color screens?
does annex 1.43.7 supports ESP32 with more flash ram? 8 or 16 instead of 4?

if yes can someone recommend me a model of ESP32 with psram and 8 or 16mb flash that is known as compatible with annex? on Amazon or Aliexpress would be great.

thank you very much for your help.
Post Reply