I hope to not be the only Italian?
no you are not the only one
hello you are not alone! I try to develop a mesh net with my actual set of LoRa Meshtastic 1.8 platform.
I would like to exchange some experience about it. If you want write me a PM to email@example.com
I will write you soon, I’m also testing my mesh but I have to figure how send messages from time to time to test the rage. Have you any suggestion how to do with python api?
You might find these posts useful:
I’m starting from the easy task, but i’m stuck in whit this error.
Someone can help me?
import meshtastic interface = meshtastic.SerialInterface() # By default will try to find a meshtastic device, otherwise provide a device path like /dev/ttyUSB0 interface.sendText("hello mesh") # or sendData to send binary data, see documentations for other options.
Traceback (most recent call last):
File “C:/Users/NICCO/Desktop/Prova/Hello mesh.py”, line 3, in
interface.sendText(“hello mesh”) # or sendData to send binary data, see documentations for other options.
File “C:\Users\NICCO\AppData\Local\Programs\Python\Python39\lib\site-packages\meshtastic_init_.py”, line 130, in sendText
return self.sendData(text.encode(“utf-8”), destinationId,
File “C:\Users\NICCO\AppData\Local\Programs\Python\Python39\lib\site-packages\meshtastic_init_.py”, line 146, in sendData
return self.sendPacket(meshPacket, destinationId, wantAck=wantAck)
File “C:\Users\NICCO\AppData\Local\Programs\Python\Python39\lib\site-packages\meshtastic_init_.py”, line 198, in sendPacket
meshPacket.id = self.generatePacketId()
File "C:\Users\NICCO\AppData\Local\Programs\Python\Python39\lib\site-packages\meshtastic_init.py", line 294, in _generatePacketId
raise Exception(“Not connected yet, can not generate packet”)
Exception: Not connected yet, can not generate packet
Region: EU 868
Region: EU 868
What is the outputs of meshtastic --test and meshtastic --info --device /dev/ttyUSB0 (change ttyUSB0 to your connected Meshtastic device)?
I already use meshtastic —info and i see all the stuff. I’m on windows 10 without the path I’m able to talk whit the board.
I find and modified this and seems to work.
from pubsub import pub
def onReceive(packet, interface): # called when a packet arrives
def onConnection(interface, topic=pub.AUTO_TOPIC): # called when we (re)connect to the radio
# defaults to broadcast, specify a destination ID if you wish
str = time.strftime("%a, %H:%M:%S", time.gmtime())
pub.subscribe(onConnection, “meshtastic.connection.established”)# By default will try to find a meshtastic device, otherwise provide a device path like /dev/ttyUSB0
interface = meshtastic.SerialInterface()
Now I have some range issues, but i have to optimize the setup and give a good place for the antenna on my static node and replace the stock one for the mobile node.
I hope to be able to remote it on my balcony and have less things in the way.
NanoVNA can be used to measure the antennas (make the elements a bit bigger, and then cut them accurate according to NanoVNA measurements): Antenna improved range
I’m trying a 1/4 wave ground plane antenna that I built. I hope to have time to make some test.