CMM2 Compagnion with ESP32 and AnneX Wifi

Place your projects here
User avatar
PANNO
Posts: 114
Joined: Thu Feb 25, 2021 4:03 am
Has thanked: 121 times
Been thanked: 25 times

CMM2 Compagnion with ESP32 and AnneX Wifi

Post by PANNO »

HI ,
iam a big fan of the Cmm2 (https://geoffg.net/maximite.html) 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.
User avatar
cicciocb
Site Admin
Posts: 1899
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 407 times
Been thanked: 1269 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: 114
Joined: Thu Feb 25, 2021 4:03 am
Has thanked: 121 times
Been thanked: 25 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
User avatar
cicciocb
Site Admin
Posts: 1899
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 407 times
Been thanked: 1269 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: 114
Joined: Thu Feb 25, 2021 4:03 am
Has thanked: 121 times
Been thanked: 25 times

Re: CMM2 Compagnion with ESP32 and AnneX Wifi

Post by PANNO »

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

thanks
User avatar
cicciocb
Site Admin
Posts: 1899
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 407 times
Been thanked: 1269 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: 114
Joined: Thu Feb 25, 2021 4:03 am
Has thanked: 121 times
Been thanked: 25 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: 114
Joined: Thu Feb 25, 2021 4:03 am
Has thanked: 121 times
Been thanked: 25 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
User avatar
cicciocb
Site Admin
Posts: 1899
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 407 times
Been thanked: 1269 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"|
@t vW
Posts: 12
Joined: Tue Feb 23, 2021 8:00 pm
Location: Hoorn (Netherlands)
Has thanked: 87 times
Been thanked: 3 times

Re: CMM2 Compagnion with ESP32 and AnneX Wifi

Post by @t vW »

Hello Panno,

How is your COMMAND Bridge project going?
I think it's a usefull Idea.

Greetings, At.
Post Reply