1. Power on your node in the morning. It is not connected to any smartphone or PC via BT/USB/HTTP;
  2. In the evening, connect to it via BT/USB/HTTP;
  3. Access all messages received in Primary channel and/or DMs.

Is it possible? How many messages does a node store in it's internal memory? How to access them via terminal? If node is restarted, are they erased?

I have a Heltec V3. In Meshtatsic CLI there's --listen option, but it's about receiving new packages in real time.

all 13 comments

sorted by: hot top controversial new old
[–] 7 points 7 months ago

The radio will store a small amount of packets (around 30) in its memory for when it's not connected to a client app. If it's full, it will replace the oldest packets with newly incoming text messages only.

https://meshtastic.org/docs/overview/

And yes, they persist if you restart the node. Not sure what you mean by “terminal”, there are a couple of CLI tools for meshtastic, including a practically complete chat app.

  • source
  • [–] 3 points 7 months ago

    As far as I can tell my RAK stores them. Feels like it stores more than 30 but I'm unsure.

  • source
  • [–] 3 points 7 months ago (2 children)

    Try running 'meshmonitor'. It'll keep a history for you.

  • source
  • hideshow 2 child comments
  • [–] 2 points 7 months ago (5 children)

    This is from memory and anecdotal, so take it with a grain of salt.

    On firmwares below 2.7, I think it only stored the last-received message on the node itself. 2.7+ may store the latest message from up to a few different contacts, but not more than that (if even that). Either way, it's not really meant to operate as a "mailbox" where you can retrieve the messages later; they basically need to go somewhere as they're received.

    There's a store-and-forward mode that can be enabled, but it stores all messages for everyone and is more of an infrastructure node role. It also requires hardware that has PSRAM which the Heltec V3's don't have.

  • source
  • hideshow 5 child comments
  • [–] [S] 2 points 7 months ago (4 children)

    it’s not really meant to operate as a “mailbox” where you can retrieve the messages later

    Why not, where's bottleneck? Internal memory is too small? Packets are 255 bytes each, doesn't seem like there's much to store.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 1 point 7 months ago (3 children)

    AFAIK, yes, memory. There are a lot more packets than just text messages. Telemetry, node info, positions/waypoints, etc.

  • source
  • parent
  • hideshow 3 child comments
  • [–] [S] 0 points 7 months ago* (2 children)

    There are standalone devices with integrated keyboard for typing messages. I'd expect them to be able to store a lot of messages, regardless of firmware version. Imagine someone sent 7 "test" messages to Primary channel and thus wiped your DM's. Doesn't feel right.

    What about MeshCore, can it operate as a mailbox? Mailbox mode will be extremely convenient.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 7 months ago (1 child)

    No, it's a hardware limitation. There's only so much memory on these little devices, and once it's full, it starts replacing old messages.

  • source
  • parent
  • hideshow 1 child comment
  • [–] [S] 1 point 7 months ago

    I wonder how many messages can it store. I will try leaving my node for a day and will see timestamp of earliest messages and how many there are. Also, maybe it worth checking out firmware source code. Different devices can have different limit.

  • source
  • parent
  • [–] [S] 1 point 7 months ago* (last edited 7 months ago)
    [–] [S] 1 point 7 months ago* (last edited 7 months ago)

    Hmm maybe this is what I want: https://github.com/brad28b/meshtastic-cli-receive-text But I can't install it currently, I get python stack trace instead...

    UPD. Fail. I've managed to launch it, but it is same as "listen", it receives only new messages in real time.

  • source