This is a MeshCore BLE companion firmware for the Heltec V4. The node also shows on Meshtastic as a presence. You can set the V4's RX amplifier (LNA) from the phone app. A second firmware adds a dual-node mode: press the button five times to change between the companion and a car-node repeater.
This is the standard MeshCore BLE companion for the Heltec V4, with two additions. The node sends a silent Meshtastic presence, and the phone app can set the radio's external RX amplifier.
The Heltec V4 has an external radio front-end with an RX
amplifier (LNA). The repeater firmware sets it with the
radio.fem.rxgain command. A companion does not have a serial
console — this firmware adds the same setting to the phone app.
Open the custom-variables list in the
MeshCore app. Set radio.fem.rxgain to 1 (on) or
0 (off). The default is on.
The value applies to the hardware immediately. The node keeps the value and applies it again at each boot.
1 gives more RX sensitivity and uses more
power. Boards with a switchable TX gain also show
radio.fem.txgain.Set the presence from the same custom-variables list. The firmware makes a check of each value and keeps it on the node.
| Variable | Values | Function |
|---|---|---|
mt.presence | 0 / 1 | Set the presence to on. The default is off. |
mt.interval | 1–1440 | The time between presence messages, in minutes. The default is 30. |
mt.position | 0 / 1 | Set the map point to on or off. |
mt.precision | 0, 10–32 | The location accuracy. 32 is exact. 0 is off. |
mt.region | US, EU_868, and others | The Meshtastic region and band. |
mt.preset | LongFast, and others | The Meshtastic modem preset. |
mt.slot | 0–num. channels | The Meshtastic frequency slot (1-based). 0 is the default slot. |
The node sends a location only when MeshCore shares a location. If MeshCore does not share a location, the node sends the node name only. It does not send a map point.
The node makes the location
less accurate. The Meshtastic client shows a circle, not a point. The
default circle is near 2.9 km. Set mt.precision to change
it.
The Dual-Node firmware is the same idea as the T1000-E Dual-Node, on the Heltec V4. It contains the presence companion above and the car-node repeater. Only one mode operates at a time. To change the mode, press the user button five times.
carnode and
mtbeacon commands, or on the USB serial console.These firmwares are for the Heltec V4 (OLED) only. For a new board, use a -full.bin file. To update a board that has one of these firmwares, use the smaller .bin file.
esptool.py write_flash 0x0 heltec_v4_dualmode_carnode_mtpresence-9f073981-full.bin
esptool.py write_flash 0x10000 heltec_v4_dualmode_carnode_mtpresence-9f073981.bin
mt.presence:1) and the LNA (radio.fem.rxgain).sha256sum -c SHA256SUMS.txt in the folder with
the files. The full image erases the node settings; the update image keeps
them.