mirror of
https://github.com/meshtastic/meshtastic.git
synced 2024-12-28 23:19:47 -08:00
Merge pull request #643 from meshtastic/serial
Serial proto documentation
This commit is contained in:
commit
5f147972b5
|
@ -35,6 +35,7 @@ Available Values:
|
||||||
- `PROTO` Exposes the Protobuf Client API on this serial port. You can use this to connect from another device. [API Reference](/docs/development/device/client-api)
|
- `PROTO` Exposes the Protobuf Client API on this serial port. You can use this to connect from another device. [API Reference](/docs/development/device/client-api)
|
||||||
- `TEXTMSG` Will send the string received over the serial port as a Text Message for Display on the other devices.
|
- `TEXTMSG` Will send the string received over the serial port as a Text Message for Display on the other devices.
|
||||||
- `NMEA` Will output a NMEA 0183 Data stream containing the internal GPS or fixed position and other node locations as Waypoints (WPL).
|
- `NMEA` Will output a NMEA 0183 Data stream containing the internal GPS or fixed position and other node locations as Waypoints (WPL).
|
||||||
|
- `CALTOPO` Will output NMEA 0183 Waypoints (WPL) every 10 seconds for all valid node locations, to be consumed by [CalTopo / SARTopo](https://caltopo.com/)
|
||||||
|
|
||||||
### Receive GPIO Pin
|
### Receive GPIO Pin
|
||||||
|
|
||||||
|
@ -56,6 +57,10 @@ The serial baud rate.
|
||||||
|
|
||||||
The amount of time to wait before we consider your packet as "done".
|
The amount of time to wait before we consider your packet as "done".
|
||||||
|
|
||||||
|
### Override Console Serial Port
|
||||||
|
|
||||||
|
If set to true, this will allow Serial Module to control (set baud rate) and use the primary USB serial bus for output. This is only useful for NMEA and CalTopo modes and may behave strangely or not work at all in other modes. Setting TX/RX pins in the Serial Module config will cause this setting to be ignored.
|
||||||
|
|
||||||
:::tip
|
:::tip
|
||||||
Once module settings are changed, a **reset** is required for them to take effect.
|
Once module settings are changed, a **reset** is required for them to take effect.
|
||||||
:::
|
:::
|
||||||
|
@ -102,11 +107,13 @@ All serial module config options are available in the python CLI. Example comman
|
||||||
| :------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------: |
|
| :------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------: |
|
||||||
| serial.enabled | `true`, `false` | `false` |
|
| serial.enabled | `true`, `false` | `false` |
|
||||||
| serial.echo | `true`, `false` | `false` |
|
| serial.echo | `true`, `false` | `false` |
|
||||||
| serial.mode | `DEFAULT` `SIMPLE` `PROTO` `TEXTMSG`, `NMEA` | `DEFAULT` |
|
| serial.mode | `DEFAULT` `SIMPLE` `PROTO` `TEXTMSG`, `NMEA`, `CALTOPO` | `DEFAULT` |
|
||||||
| serial.rxd | GPIO Pin Number 1-39 | Default of `0` is Unset |
|
| serial.rxd | GPIO Pin Number 1-39 | Default of `0` is Unset |
|
||||||
| serial.txd | GPIO Pin Number 1-33 | Default of `0` is Unset |
|
| serial.txd | GPIO Pin Number 1-33 | Default of `0` is Unset |
|
||||||
| serial.baud | `BAUD_DEFAULT` `BAUD_110` `BAUD_300` `BAUD_600` `BAUD_1200` `BAUD_2400` `BAUD_4800` `BAUD_9600` `BAUD_19200` `BAUD_38400` `BAUD_57600` `BAUD_115200` `BAUD_230400` `BAUD_460800` `BAUD_576000` `BAUD_921600` | `BAUD_DEFAULT` |
|
| serial.baud | `BAUD_DEFAULT` `BAUD_110` `BAUD_300` `BAUD_600` `BAUD_1200` `BAUD_2400` `BAUD_4800` `BAUD_9600` `BAUD_19200` `BAUD_38400` `BAUD_57600` `BAUD_115200` `BAUD_230400` `BAUD_460800` `BAUD_576000` `BAUD_921600` | `BAUD_DEFAULT` |
|
||||||
| serial.timeout | `integer` (milli seconds) | Default of `0` corresponds to 250 ms |
|
| serial.timeout | `integer` (milli seconds) | Default of `0` corresponds to 250 ms |
|
||||||
|
| serial.override_console_serial_port | `true`, `false` | `false` |
|
||||||
|
|
||||||
|
|
||||||
:::tip
|
:::tip
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue