CMM2 Compagnion with ESP32 and AnneX Wifi

Place your projects here
Post Reply
User avatar
PANNO
Posts: 57
Joined: Thu Feb 25, 2021 4:03 am
Has thanked: 51 times
Been thanked: 9 times

CMM2 Compagnion with ESP32 and AnneX Wifi

Post by PANNO »

HI ,
iam a big fan of the Cmm2 ([External Link Removed for Guests]) and a big fan from ANNEX WIFI.
so i create a COMMAND Bridge over Serial .
first comands are supported :

hope you like it
Last edited by PANNO on Wed May 05, 2021 6:16 pm, edited 1 time in total.
cicciocb
Site Admin
Posts: 309
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 85 times
Been thanked: 197 times
Contact:

Re: CMM2 Compagnion with ESP32 and AnneX Wifi

Post by cicciocb »

Yes, it is interesting.
I know that the CMM2 is a nice "vintage like" computer based on the ARM processor running Basic.

What do you did exactly?
A bridge using the serial port and a massive use of the COMMAND command?
User avatar
PANNO
Posts: 57
Joined: Thu Feb 25, 2021 4:03 am
Has thanked: 51 times
Been thanked: 9 times

Re: CMM2 Compagnion with ESP32 and AnneX Wifi

Post by PANNO »

Yes cicciocb ,
exactly this is what i do. i use serial2.mode here and check every Command in a do:loop such like :

if cmd$="PLAY.ISPLAYING" then
ok = PLAY.ISPLAYING
print2 "PLAY.ISPLAYING: ";ok;eofc$
return
endif

No Command Table at the Moment, but i will optimize the Code later.
An Spi port is also possible (u know) but first i will create a working Solution.
Have you a better Idea for this Project?
btw:
Unfortunately i found the ANNEX WI-FI RDS User Manual Version 1.43 isnt a full description of Annex. No Play.xxx inside.

gtx
cicciocb
Site Admin
Posts: 309
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 85 times
Been thanked: 197 times
Contact:

Re: CMM2 Compagnion with ESP32 and AnneX Wifi

Post by cicciocb »

Hi,
maybe you are mixing with the ESP8266 help that does not contains the PLAY.xxx commands.

The help for the ESP32 can be simply called with the F2 key (in the editor page).

The ESP32 help contains a complete chapter about the sound player

The exact link is : [Local Link Removed for Guests]
User avatar
PANNO
Posts: 57
Joined: Thu Feb 25, 2021 4:03 am
Has thanked: 51 times
Been thanked: 9 times

Re: CMM2 Compagnion with ESP32 and AnneX Wifi

Post by PANNO »

ahh ! nooo -its to easy, hit F2 pfff . :oops:

thanks
cicciocb
Site Admin
Posts: 309
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 85 times
Been thanked: 197 times
Contact:

Re: CMM2 Compagnion with ESP32 and AnneX Wifi

Post by cicciocb »

Hi Panno,
for your information, there is an useful command that can fit for your needs :

the COMMAND cmd$ [Local Link Removed for Guests]


This could be useful for you to run any commands simply specifying it as a string

For example, if you would like to get the free ram available, you could just transfer from the CMM2 the instruction "print2 ramfree"
and, supposing that this string will be received into C$, you could just run

COMMAND C$
User avatar
PANNO
Posts: 57
Joined: Thu Feb 25, 2021 4:03 am
Has thanked: 51 times
Been thanked: 9 times

Re: CMM2 Compagnion with ESP32 and AnneX Wifi

Post by PANNO »

HI cicciocb ,

thanks for your Hint about the "Command" Command . i rewrite my code with it.

thx a lot

gtx
User avatar
PANNO
Posts: 57
Joined: Thu Feb 25, 2021 4:03 am
Has thanked: 51 times
Been thanked: 9 times

Re: CMM2 Compagnion with ESP32 and AnneX Wifi

Post by PANNO »

HI cicciocb ,

command$ problem :

b$= "play.setup 0,32"
command b$ works
b$= "play.mp3 /scatman.mp3"

command b$ <- type mismatch. what do i wrong ?

thx
cicciocb
Site Admin
Posts: 309
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 85 times
Been thanked: 197 times
Contact:

Re: CMM2 Compagnion with ESP32 and AnneX Wifi

Post by cicciocb »

Hi Panno
you must use the string separators because the argument of PLAY.MP3 must be a string

You just need

Code: [Local Link Removed for Guests]

b$= "play.mp3 |/scatman.mp3|"
As Annex accepts both | or " as string delimiters you can also use

Code: [Local Link Removed for Guests]

b$= |play.mp3 "/scatman.mp3"|
Post Reply