I woud appreciate some help for a simple school bell project.
The Idea: Running a Catalex serial controlled mp3-Board http://ebay.eu/2uBjGxn on an ESP8266.
The mp3-files are put on a sd-card, and during the day the school bell sound or a chime or whatever is played at certain times, using the Rules-Section of ESP Easy (which gets its time via ntp)
So far I managed to play the sounds remotely in a terminal session using the "Serial Server" PlugIn on the esp.
It's a little bit tricky to get the hex-commands like "0x7E 0xFF 0x06 0x22 0x00 0x1E 0x02 0xEF" through, but it works very good and without any lag.
But I have no clue how to put serial commands in a rules syntax - and if it is possible at all. At least I didn't find any documentation on that.
Somewhere I ran across a command called SerialSend - but I don't know if it works for the serialserver plugin.
Some questions:
1. I assumed, that for this purpose (simple actuator) there's no new plugin-development needed. Am I wrong?
2. How can I use RULES to send a hex-command to the mp3-board on the RX/TX-pins of the esp?
3. Do I need the SerialServer plugin at all for this purpose? Probably only if I wanted to ring the school bell (also) remotely...
Sorry, if some questions are too dumb, but I already spent some hours here and did't get the point.
thx, Markus
serial commands in rules?
Moderators: grovkillen, Stuntteam, TD-er
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: serial commands in rules?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



-
- New user
- Posts: 2
- Joined: 08 Aug 2017, 02:43
Re: serial commands in rules?
Stupid me.
thx for the link!

thx for the link!
Who is online
Users browsing this forum: No registered users and 18 guests