Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: Confirmation of sent message #594

Open
brad28b opened this issue Jun 13, 2024 · 8 comments
Open

[Feature Request]: Confirmation of sent message #594

brad28b opened this issue Jun 13, 2024 · 8 comments

Comments

@brad28b
Copy link

brad28b commented Jun 13, 2024

When using:

meshtastic --sendtext --dest xxxxx Text

or

meshtastic -ch-index 0 --sendtext Text

It would be very nice to have a confirmation of the message being received. When sending to a channel, a confirmation that at least one node received the message. When sending direct to a node, either confirmation that the particular node got the message, or at least, confirmation that at least one other node heard the message. In the smartphone app, similar to the little tick that appears when a node gets your message, but in this case outputting it in a parsable CLI format.

Current behaviour is it sends the message, and then exits. And, for whatever reason, the message is often not received, even between two close by nodes. Confirmation that it wasn't received will allow us to deal with that programatically.

@GUVWAF
Copy link
Member

GUVWAF commented Jun 13, 2024

You can add --ack to wait for an acknowledgement.

Which devices do you have? If the nodes are too close, they might get overloaded, especially if they have high transmit power. Put them at least a room away and you should get near 100% success rate.

@ianmcorvidae
Copy link
Contributor

In looking at this bug I did discover that --ack seems to be broken, and it'll also return with only an implicit ack, so there's definitely some improvement to be made. #570 also relevant here, something I'll definitely keep in mind there!

@GUVWAF
Copy link
Member

GUVWAF commented Jun 13, 2024

Oh, sorry, didn't know that. Good to hear you're on it.

@rj45jack
Copy link

I am also having this issue where everything seems to have transmitted just fine in the console, but nothing goes out to the radio or seen by other nodes.

@Phlat
Copy link

Phlat commented Jul 10, 2024

I was curious about that even with my own experiments with the api and trying to setup some simple bot scripts to check the weather by zip code. Sometimes I have to send the command a couple times and can see it coming thru but no response.

@rj45jack
Copy link

I was curious about that even with my own experiments with the api and trying to setup some simple bot scripts to check the weather by zip code. Sometimes I have to send the command a couple times and can see it coming thru but no response.

My issue is the exact same use-case. I am trying to publish weather alerts, and general weather but it's hit or miss with TCP.

@Phlat
Copy link

Phlat commented Jul 10, 2024 via email

@Apfelwurm
Copy link

We managed to finnaly buiild something that seems to handle ack/nak successfully: https://github.com/Apfelwurm/alertmanagermeshtastic/blob/main/src/alertmanagermeshtastic/meshtastic.py#L144-L211 for those interested :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants