Page 1 of 5

New Annex Release full 1.43

Posted: Mon Mar 01, 2021 7:43 pm
by cicciocb
Hi all,
after a long period, I finally had the time to finish another release of Annex, Annex32 and AnnexCAM.
All the versions have been updated at the same time and all are at the release 1.43.

All the versions contain a many improvements and additions but, the most important for all the versions, is the big speed improvement in the HTML functions WLOG, HTML, ...
In particular the WLOG can now be really used as a valid replacement of the print function.

For the ESP32, the big improvement is the support for the Bluetooth and the CAN BUS.

You can find the details below.

Do not hesitate to give your feedback.

Edit
I updated the post including another bin (version 1.43.2)for the ESP8266 that fixes a problem on the WGET$ command.
Simply put this file in the extracted package under the folder build
Enjoy.

cicciocb

[Local Link Removed for Guests]


Version 1.43.2 for ESP8266 that fixes the WGET$ problem
annex.bin

Version 1.43.2 for ESP32 that fixes the AUTOREFRESH problem
Annex32.bin

Version 1.43.2 for ESP-CAMERA that fixes the AUTOREFRESH problem
AnnexCAM.bin


Annex Change Log
Version 1.43

Improved the internal websocket communication mechanism
Improved the HTML like functions (HTML, CSS, WLOG, ...)
- They are very responsive
- WLOG can practically now be used as a real replacement of PRINT
- The WLOG can be stopped with the function OPTION WLOG 0 (and enabled with 1)
Improved the Email and EMAILASYNC
- Updated code (faster)
Improved the WGET$, WPOST$ and the WGETASYNC functions / command
- Syntax updated (the address can be specified directly as an url (ex http://www.xxxx.com/11 or https://www.yyy.com/22))
WIFI functions
- WIFI.RSSI : returns the RSSI (signal intensity)
Snags
- Fix SERIAL2.READ_IOBUFF out of memory error
Online help updated

Version 1.42.5C
Snags
- Fix for the command BAS.RTCMEM$ = "value" giving syntax error

Version 1.42.5B
Addition of the TUYALAMP RGBCW lamp support based on chip SM2135
- Commands TUYALAMP.INIT, TUYALAMP.RGB, TUYALAMP.WHITE

Increased the WIFI max connection time from 30 to 50 seconds
Reduced the time required for the WIFI connection storing internally the BSSID of last connection
SERIAL.mode and SERIAL2.mode
- Implemented the setting for bit length, parity and bit stop

ESP32
Version 1.43 CAN BLE

Implemented the support for the Bluetooth Low Energy (BLE) - experimental -
Improved the support for the BUS CAN with 32 buffers
Implemented the support for rotary encoders using H/W counters - experimental -
Improved the internal websocket communication mechanism
Improved the HTML like functions (HTML, CSS, WLOG, ...)
- They are very responsive
- WLOG can practically now be used as a real replacement of PRINT
- The WLOG can be stopped with the function OPTION WLOG 0 (and enabled with 1)
Improved the WGET$, WPOST$ and the WGETASYNC functions / command
- Completely new code
- Syntax updated (the address can be specified directly as an url (ex http://www.xxxx.com/11 or https://www.yyy.com/22))
Improved the Email and EMAILASYNC
- Updated code (faster)
Implemented PLAY.voiceRSS
- Alternative TTS based on the free service www.voicerss.org
PLAY.VOICE
- Fixed after google updates
SERIAL.mode and SERIAL2.mode
- Implemented the setting for bit length, parity and bit stop
SPI functions
Implemented SPI.STOP to recover the full control on the SPI I/O pins
Fixed the CS automatic management
Improved SPI.SETUP
WIFI functions
- WIFI.APMODE : Set the module in AP mode
- WIFI.RSSI : returns the RSSI (signal intensity)
AnnexCAM
- implemented the support for the camera xrz00001 - to be confirmed -
OLED
- Included the font 5x7 (font 0)
Snags
- Fix SERIAL2.READ_IOBUFF out of memory error
Several internal fixes / optimisations
Online help updated


Version 1.41 beta 6
Implemented the CAN BUS support
Improved the RFID functionalities
Restored the WIFI channel setting in the config page
change in the '7' font for the TM163x

Re: New Annex Release full 1.43

Posted: Mon Mar 01, 2021 8:08 pm
by Electroguard
Thanks for some fantastic new features CiccioCB, and all the time and effort it took.

Re: New Annex Release full 1.43

Posted: Mon Mar 01, 2021 8:18 pm
by PeterN
I was a bit confused for some minutes :shock: ...went to the old website's download page :? ... and back. The link in the post is a bit hidden
:D
Thanks again for that package!

Re: New Annex Release full 1.43

Posted: Mon Mar 01, 2021 10:38 pm
by Zim
Holy cow man....you have been busy!!!
Thanks soo much for your efforts!!

Zim

Re: New Annex Release full 1.43

Posted: Mon Mar 01, 2021 11:01 pm
by AndyGadget
Thanks for all the hard work you're putting into this project, Cicciocb.
There's a few new features there I'll be trying out.

I see no mention of the ST7735 driver bug on ESP32 I flagged up here : https://groups.google.com/g/annex_wifi_ ... 5_AOBqAwAJ

Is this still on the to-do list?

Re: New Annex Release full 1.43

Posted: Mon Mar 01, 2021 11:36 pm
by Fernando Perez
Saint Nicolas, Santa Claus, my "Reyes Magos"...
Childhood days come to mind when you didn't know which pack to open first to play. Simply thanks.

Re: New Annex Release full 1.43

Posted: Tue Mar 02, 2021 12:51 pm
by cicciocb
[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Mon Mar 01, 2021 11:01 pm Thanks for all the hard work you're putting into this project, Cicciocb.
There's a few new features there I'll be trying out.

I see no mention of the ST7735 driver bug on ESP32 I flagged up here : https://groups.google.com/g/annex_wifi_ ... 5_AOBqAwAJ

Is this still on the to-do list?
Hi Andy,
unfortunately I didn't had the time to fix it but, yes, it is in the to-do list.

Re: New Annex Release full 1.43

Posted: Tue Mar 02, 2021 2:28 pm
by GSontag
Ciciocb,
Thank you for taking time to maintain and give new functions to Annex!
Gérard

Re: New Annex Release full 1.43

Posted: Tue Mar 02, 2021 2:36 pm
by GSontag
[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Mon Mar 01, 2021 11:01 pm Thanks for all the hard work you're putting into this project, Cicciocb.
There's a few new features there I'll be trying out.

I see no mention of the ST7735 driver bug on ESP32 I flagged up here : https://groups.google.com/g/annex_wifi_ ... 5_AOBqAwAJ

Is this still on the to-do list?
Hi Andy,
Even if the splash screen at startup is not well sized in my case, i have no problem to use a 128x128 screen with ST7735 driver. Did you try using it anyway?
There is so many screens in the wild (green, red, black labels, sizes,...) using this driver that i am not sure it's possible for cicciocb to fit all of them.
Gérard

Re: New Annex Release full 1.43

Posted: Wed Mar 03, 2021 3:12 am
by N7QWT
I must be missing something, 1.43 completely breaks my program the uses WGET$.
It never returns anything back from the server using the same code that works with 1.42.4
Hardware is a Wemos D1 mini.

Code: [Local Link Removed for Guests]

ST=0
f=200
e=255
amp=0
SERIAL2.MODE 9600, 16, 14
OPTION.WDT 20000
OPTION.LOWRAM 1000
WIFI.POWER 20.5

print2 "g0.txt="+chr$(34)+"IP Address is "+WORD$(IP$, 1)+chr$(34);
SERIAL2.BYTE &h1ff, &hff, &hff
pause 10000


Main:
gosub Get_Data
gosub Update
gosub Time
If ST=3600 then gosub SyncTime
pause 2000
ST=ST+1
Goto Main

Not_Connected:
a$="g0.txt="+chr$(34)+"Not Connected"+chr$(34)
print2 a$;
SERIAL2.BYTE &h1ff, &hff, &hff
return

Connected:
a$="g0.txt="+chr$(34)+"Connected"+chr$(34)
print2 a$;
SERIAL2.BYTE &h1ff, &hff, &hff
return

Charging:
amp$ = LEFT$(amp$, 4)
a$="g0.txt="+chr$(34)+"Charging "+amp$+" Amps"+chr$(34)
print2 a$;
SERIAL2.BYTE &h1ff, &hff, &hff
return

Error:
a$="g0.txt="+chr$(34)+"Error"+chr$(34)
print2 a$;
SERIAL2.BYTE &h1ff, &hff, &hff
return

Paused:
a$="g0.txt="+chr$(34)+"Paused"+chr$(34)
print2 a$;
SERIAL2.BYTE &h1ff, &hff, &hff
return

Time:
t$ = LEFT$(time$, 5)
a$="t0.txt="+chr$(34)+t$+chr$(34)
print2 a$;
SERIAL2.BYTE &h1ff, &hff, &hff
OPTION.WDTRESET

return

Get_Data:
a$=""
a$ = WGET$("10.0.0.200/status", 80, 0)
b$ = JSON$(a$, "state")
amp$ = JSON$(a$, "amp")
b = VAL(b$)
amp = (VAL(amp$) / 1000)
amp$ = STR$(amp)
if b > 0 then f=b
return

Update:
if f = 1 then gosub Not_Connected
if f = 2 then gosub Connected
if f = 3 then gosub Charging
if f = 4 then gosub Error
if f = 254 then gosub Paused
return

SyncTime:
OPTION.NTPSYNC
Return