Custom EP3321/40 project #71
Replies: 2 comments
-
The differentiation between short and long presses does not happen in the display unit but rather on the main board side. The display is simply sending, which button is currently pressed. When pressing a button, that "command" (i.e. information about which button is currently pressed) is sent repeatedly until the user releases the button. To prevent this behaviour in this codebase, forwarding of messages from the display to the Mainboard is temporarily stopped. All user input during the injection of a virtual button press is dropped. Thus, the Mainboard only sees a constant (3 second long) stream of the desired button pressed command.
Depending on your implementation, this may or may not work. A common issue is that such a loop may generate the desired output but, that the microcontroller doesn't actually write anything to the bus because the send buffer is not flushed.
I don't know if the EP3321 supports power on without a cleaning cycle. If I were to take a guess, I would say yes since the machines are pretty similar. Some machines can perform an internal cleaning cycle (AFAIK), where they clean during start-up but don't dispense water via the coffee outlet. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your answer, I retry with a simple loop but this time I add the flush function and it works !! Now, commands list is complete =) Commands
Message from mainboard
About the starting without purge water, I will try to found the right command later. You can add this infos in your project, it will enrich your code to be compatible with more machines ;) |
Beta Was this translation helpful? Give feedback.
-
Hello,
Thanks for your works.
I purchase an EP3321/40 and start my own project to manage the coffee machine. I use a D1 mini and a local webserver to handle the front page with websocket between.
As I'd like to improve my knowledge in coding with esp8266, so I 'm not using ESPHome.
I make a little debug webpage to see every command which is on RX/TX link, and I found almost every command but have issue for 3 things, the selection of AquaClean, Calc/NCalc and pre-ground coffee.
As mentionned in the user guide, for these functionalites, you have to do a long press (> 3s). When I done it manually, I saw many times the same command so I think it's the right one.
For the pre-ground coffee, I try differents ways to simulate a long press but it doesn't work.
I try :
Can you resume the way you have handled the long press? I'm not familiar with espHome code, sorry.
Another question, can you tell me if you think this model normally have a command to start it without purge water ? In my first analyse, when I start the machine manually after a long period, and after a short one, I have the same commands. Maybe for the starting, it's now the main program which decides to purge water or not ?
So far, I found these commands :
Next steps for me :
Beta Was this translation helpful? Give feedback.
All reactions