Hoplimit increase question

Hi, sorry I searched the forum and couldn’t find a definitive answer based on “the current releases”.

Is it possible to increase the hopcount limit with the python api?

Or do we have to recompile?

No matter how I slice it, we are not going to be able to do this network without increasing it.

Thanks a bunch

Hello,

This works (no error message)

import meshtastic
interface = meshtastic.SerialInterface()
interface.sendText(“hello mesh”, hopLimit=6)
interface.close()

BUT when i go in debug mode after the ‘send’ action, i see a Hoplimit=4…

Strange :slight_smile:

Fabrice

or this one with a question mark for the message

import meshtastic
Name = input("Message to send : ")
interface = meshtastic.SerialInterface()
interface.sendText(Name, hopLimit=6)
interface.close()

I thought it could be changed via the python interface as a command line option. Changing the setting should be very close to how it was changed in previous versions.

A programmer friend of mine modified the source and rebuilt the firmware for me. We hardcoded the bluetooth pin (device will be inaccessible to see the screen or mash the buttons). And we changed the hop count to 7.

1 Like

Is it possible to share this interesting version (mine is in a tree :slight_smile: )

Thx

Fabrice

I can share a diff of the changes made. Keep in mind, that everytime a new version of meshtastic comes out, it will need to be recompiled with these changes if you choose. I don’t think it would be a good idea to share the compiled version as you’d have issues when trying to upgrade automatically as the changes would be nuked.

1 Like