serial developer documentation #138
Replies: 4 comments 1 reply
-
Also Im wondering about this line: https://github.com/meshtastic/firmware/blob/master/src/SerialConsole.cpp#L75 as I understand, the client will disconnect if I dont send a message to the device (keep alive), but that has not been my experience, where I am able to read data without doing that (unless the connection drops after running it for long time, which is not something that Ive tried yet) |
Beta Was this translation helpful? Give feedback.
-
is there a way to send binary data from the device? |
Beta Was this translation helpful? Give feedback.
-
is there a way to completely disable functionality that its not needed? |
Beta Was this translation helpful? Give feedback.
-
If you are seeing these 'DEBUG' messages, suggest you connected to the 'primary' serial connection, which is normally encapsulated via USB for taking to a host computer. I dont think those debug messages are intended for programmatic consumption as such, they well for developer debugging! The 'Serial' Module you link to, controls a separate UART, eg so can connect it to another MCU. On this seperate Serial, if you want to send/recieve binary messages, probably best to wrap in proto messages. If you really are trying to interact with the primary serial connection, suggest the python client is the best reference |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'm writing tiny modules to interact with the serial on a RAK device.
So far I was not able to find any documentation other than this: https://meshtastic.org/docs/configuration/module/serial/
I'm able to read data but I'm wondering on some technical details on how the whole thing works.
From a small log sample the structure of each log looks like this:
DEBUG|INFO| possibly more? hh:mm:ss SOME_CODE_3_DIGIT_NUMBER [Power | DeviceTelemetry | Router | GPS | possibly more] MSG
is there any documentation on the structure of a log? (eg: what is that 3 digit number, how do categories translate to functionality like connections metadata or messages, why do certain logs miss a category, how does log severity translate to the log type etc)
Is it possible to only get a certain category or log severity of logs? (eg: I only care about getting messages and node connections metadata or I only want to see info or error logs)
Beta Was this translation helpful? Give feedback.
All reactions