Hi @prampec I’ll try pull up resistors. Quick question is there a way to configure the canned messages to accept different input other than rotary encoder control? For example if I were to wire 3 push buttons could I configure
Yes. The Canned Message plugin is designed to accept any kind of input. The only thins is that I was implemented the rotary input exclusively.
Simple key input is much more easy to do, but I cannot do it now.
What about this: I create a new branch, and code all the changes for the simple button input. You can test that branch, if everything fits, we can publish that to the main codebase.
(We might want to discuss the details in Discord tho.)
Should this be a hard-wired list of common phrases or something configurable?
The problem with the first one is to agree in the list of a common phrases. Also there must be some way to translate these phrases.
The problem with to second one is how to synchronize lookup dictionaries over devices. But in the second case I could imagine a configuration, where Canned Message plugin sends #NN codes instead of actual messages.
I think we will keep a fixed list of phrases and also allow users to add custom ones.
As for the language, since we’ll be keeping the list in the phone, the message ID will remain the same but the message that appears on the phone will depend on the user’s language. This can be crowdsourced.
I mean if we’re discussing a “simple button input”, I think the simplest way is the easiest (but I fall wayy short on coding lol).
If users can input 10 or 12 characters phrases assigned to a button, that’ll cover the ability for ham and/or specific languages.
Agreed. What I meant to say was to allow users to configure pre-canned messages. Just as we do now with the rotary, but limited to available pins. I’d be happy w/ just 1.
I think 8 or so ‘hard coded’ messages with additional custom messages would be cool. Maybe throw in a software configuration option to start with the ‘hard coded’ or the user defined when selecting with the encoder.
Anyone have an idea of how much data storage is available on device? From what I remember I think some devices have additional SPI flash memory.
Hi @prampec I trying to test the canned messages with a 3 simple buttons but only work the press button.
Where i can get your branch to test it?
The latest github version 1.3.5 should be work?
If work I 'll buy this type of button to use the canned message
Ok, I wass review the last firmware code 1.3.5 and saw that is implemented yet .
I downloaded the lasted meshtastic-python 1.3.alpha11 version and enable canned_message_module_allow_input_source: upDown1.
And it’s working, but the the meshtastic-python 1.3.alpha11 has a problem to set or get the canned messaged. I’ll open a issue in github.