Meshtastic

Anyone In Italy?

I hope to not be the only Italian? :shushing_face:

1 Like

no you are not the only one

3 Likes

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 iz0dzx@gmail.com

1 Like

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:

1 Like

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

Board: Lora32
Region: EU 868
Fw: 1.1.7

Board: Tbeam
Region: EU 868
Fw: 1.1.7

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.

import meshtastic
import time
from pubsub import pub

def onReceive(packet, interface): # called when a packet arrives
print(f"Received: {packet}")

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
#interface.sendText(“hello mesh”)
while 1:
str = time.strftime("%a, %H:%M:%S", time.gmtime())
interface.sendText(str)
time.sleep(60)

pub.subscribe(onReceive, “meshtastic.receive”)
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.

You could build a simple, but efficient, half-wave dipole antenna, or a sleeve dipole antenna. Examples: https://www.youtube.com/watch?v=KWLTKgrOTZM and https://www.youtube.com/watch?v=wcho1gJ2xEQ

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

1 Like

I’m trying a 1/4 wave ground plane antenna that I built. I hope to have time to make some test.