Hi,
I’m working on a projekt(c#), where i read data from meshtastic , but i like to send data from serial too (SerialPort.write(“Send something to mesh”)), is it only possible with python through librarys? or is there something i’m missing?
Thanks for the answer!
Sorry for another possibly stupid question, i’m new in meshtastic… which file / where to change serialplugin_enabled? and is it possible to use serial plugin via usb connection?
Hope you can help me
I already tried this(meshtastic --set serialplugin_enabled 1)… but get:
“Can’t set serialplugin_enabled due to ‘Userpreferences’ object has no attribute ‘serialplugin_enabled’”,
my tbeam have the newest firmware (1.1.48) have tried 1.1.46 too
Is there anything i should do before i try to change the setting?
I am also having problems, as the instructions are not clear. For example, is the time to wait millis?
I’ve verified I am sending/receiving serial message between two esp32s. I also have two meshtastics nodes communicating via the sendtext function in python sdk.
(i got these settings from the defaults in the code)
and get a confirmation.
the esp32 is sending a 5 bytes messages every 10 seconds. it appears the meshtastic node is echoing back. however, i never see the message on the network.
I’ll keep messing with it as I feel it’ s a very essential feature for lots of DIY folks who don’t want to muck around in the lower level firmware code. Would appreciate assistance, though. Thanks.
You’re on a Mac, I used to have problems with the python api on the Mac, but it might be better now.
You don’t need to set serialplugin_timeout unless you have a special need.
If you set your rx pin, then you also should set your tx pin.
serialplugin_echo Turns on a local echo. It just confirms what you entered into the node is then sent out. It doesn’t confirm it was received by another node. Generally you don’t need to set this. It’s mostly useful for debugging.
When you say you don’t see the message, how are you looking for the message? We transmit the serial data over a special port so you can have serial data on the same network as the regular text messages and it won’t clutter the displays. We also wouldn’t want to have text messages get fed into your arduino. If you would prefer that text and serial data go over the same channel, open a feature request and give me the ID. I’m working on another plug-in right now, but I know how to get it sent over the messages port. If you need a workaround sooner, reply here and I can walk you through a workaround.
Depending on your radio configuration, a message ever 10 seconds may be too aggressive. Once every 60 on long slow is a good starting point.
I think you’re the 3rd person I know who has used the plug-in. After you get it working, I’ll update the docs with better usage examples based on your experience.
Instead of opening up another thread pertaining to the same topic, I’ll just message here.
So I am also attempting to use the plugin and I do get the ttgo to confirm the serialplugin is enabled (get a success confirmation on the terminal). However I am sort of confused as to how it exactly operates. I have a arduino device (adafruit feather) and I am able to read messages from the tx pin of the ttgo tbeam v1.0 (this is before enabling the plugin) (baud rate of 921600) and perform actions based on the text messages that I recieve. However, when I was looking at your plugin, it mentions using another baud rate of 38400. Does that baud rate affect both the tx and rx pins of the ttgo or just the rx pin of the ttgo? the reason why I ask is because I only have two serial interfaces on the arduino (usb and rx,tx pins). So, i find using two different baud rates for the purpose sort of bothersome. Is there a way where I can set both pins to operate at the same baud rate?
Also when the ttgo recieves a serial message on the Rx pin, does that message get relayed as a text message to the whole channel?
Sorry, if I am asking too many questions but I am just attempting to better understand this useful plugin.
That’s just the baud rate of the rx and tx pins used by the serial plugin. Both pins will work at 38400. 921600 is the rate used for the debug / usb api port for the device. No relation to the serial plugin.
You got it. Anything received to the RX pin of the serial plugin will be relayed back out for everyone on the network, but not as a “text message”. It’s sent on a special port for just the serial plugin. This is to allow coexistence of the serial plugin with other uses.
You mention this “special port”. Is there a way to access this port and read/look from it? Would the message that’s being forwarded from the Rx pin to everyone appear at the com port on the serial monitor if the TTGO is connected to a computer?
I was messing with the serialplugin earlier and I have a question.
Does the plugin affect the outputs from the USB debug thats seen on a serial monitor? When I recently enabled it using the cmd on windows and set the tx, rx pins to the ones suggested on the documentation; the USB debug console ( I tried it twice) no longer displays “msg = …” when an incoming txt message appears. Furthermore, there was an instance where the power info data was not coming through (usually displays every 20 secs on the usb debug). However, I was able to fix them by just restarting the device.
Also, I will place the link of the thread to the github features. I got stuck up with other tasks and forgot.