Meshtastic

Use as a transparent serial bridge?

I’m wondering if anyone has used Meshtastic to create a serial bridge between nodes. Similar to what can be done with an XBee3.

Specifically, I’m looking to configure these to send Mavlink messages between several ArduPilot vehicles. I know that it won’t be a high speed link, I’m just looking to get some basic telemetry at a long range.

Most people use the “SiK Telemetry Radio” with Ardupilot right now, but they’re pretty crude. It’s just a simple 57600 baud serial radio.

Doing what I want is totally possible with the python API, but I wanted to see if anyone else has done something similar first.

3 Likes

heh! I know mavlink well. I used to do a substantial amount of software work for the ardupilot project (I wrote the original dronekit.io, droneshare and andropilot, and did a fair amount of futzing inside mavproxy). I also did some code inside the SiK microcontrollers for their RF95 usage.

Alas - I was chatting about this recently with Tridge and I think the latency and super low bandwidth of LoRa (but also super low power draw and high range) are not ideal for most ardupilot applications. But for a very low speed backup/long range link I think it might be useful. Especially because these radios are tiny tiny and need virtually no power. But if you did want to do this, you’d probably want to put MAVLINK on as datagrams, not as a serial stream - and filter to only send a few critical packets and limit to a max of about one packet every few seconds.

3 Likes

Wow! What a coincidence.

I was planning on only sending the “high latency” messages which are intended for low bandwidth / high latency links. Primarily Iridium.

HIGH_LATENCY2 is supported in QGroundControl and PX4, but not ArduPilot yet.

I’m working with a surface vessel, so a position update every minute would be sufficient.

2 Likes

then I bet it might be a good fit. I’m happy to help with any questions if you start futzing with the code.

I too would like a serial bridge over LoRa/meshtastic like that. Lots of technical equipment I come in contact with at work use serial, usually 9600,8,n,1 for status messages/log printing etc. I’d love a cheap way to aggregate these outputs without depending on very expensive GSM units with subscriptions. If anyone knows of a plug and play solution, please let me know.

1 Like

Alas - meshtastic is probably not a great fit for that (because very datagram based).

Perhaps a bit late, but the EByte UART Modules are working fine 1:1.
T20D Series.

2 Likes

Interesting, I’ll have a look.
What I need is a rs232 and rs485 input to lora mesh and back to rs232.
the mesh part is imporant, as there is a lot of geography in the way in my area.

Ideally I would like to combine my private meshtastic interests with my proffessional interest (so my work can co finance and expand my network)

We used 2 T20D to connect a Raspi (serial console) to PC. The T20 takes the serial stream, wraps it in packages of i believe 56 bytes and sends it over the air. On the receiving end it takes the LoRa packets and outputs Serial data (UART). You have 2way communication if you connect all tx/rx to Raspi/PC.

You even can take a 868 T20D, connect the serial RX/TX to TX/RX of a 433 T20D and have a bridge to another frequency. What doesnt work so well imho is the mesh part you required. In the sense of meshtastic mesh,

The T20D are made to be transparent. You can setup some settings but its not like you get a mesh out of the box. You can hardwire groups, and you can use stations of 2 T20D to have a relais network.