meshcore-cli 1.6.1__tar.gz → 1.6.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: meshcore-cli
3
- Version: 1.6.1
3
+ Version: 1.6.2
4
4
  Summary: Command line interface to meshcore companion radios and repeaters
5
5
  Project-URL: Homepage, https://github.com/fdlamotte/meshcore-cli
6
6
  Project-URL: Issues, https://github.com/fdlamotte/meshcore-cli/issues
@@ -11,7 +11,7 @@ Classifier: Operating System :: OS Independent
11
11
  Classifier: Programming Language :: Python :: 3
12
12
  Requires-Python: >=3.10
13
13
  Requires-Dist: bleak>=0.22
14
- Requires-Dist: meshcore>=2.3.8
14
+ Requires-Dist: meshcore>=2.3.9
15
15
  Requires-Dist: prompt-toolkit>=3.0.50
16
16
  Requires-Dist: requests>=2.28.0
17
17
  Description-Content-Type: text/markdown
@@ -136,6 +136,8 @@ Commands are given after arguments, they can be chained and some have shortcuts.
136
136
  clock : get current time
137
137
  clock sync : sync device clock st
138
138
  node_discover <filter> : discovers nodes based on their type nd
139
+ cli <cmd> : executes cli command cmd
140
+ send_raw <pkt> : sends a raw packet (hex string)
139
141
  Contacts
140
142
  contacts / list : gets contact list lc
141
143
  reload_contacts : force reloading all contacts rc
@@ -118,6 +118,8 @@ Commands are given after arguments, they can be chained and some have shortcuts.
118
118
  clock : get current time
119
119
  clock sync : sync device clock st
120
120
  node_discover <filter> : discovers nodes based on their type nd
121
+ cli <cmd> : executes cli command cmd
122
+ send_raw <pkt> : sends a raw packet (hex string)
121
123
  Contacts
122
124
  contacts / list : gets contact list lc
123
125
  reload_contacts : force reloading all contacts rc
@@ -17,12 +17,12 @@
17
17
 
18
18
  meshcore = python3Packages.buildPythonPackage rec {
19
19
  pname = "meshcore";
20
- version = "2.3.8";
20
+ version = "2.3.9";
21
21
  pyproject = true;
22
22
 
23
23
  src = python3Packages.fetchPypi {
24
24
  inherit pname version;
25
- sha256 = "sha256-ItV9u1kYavbtIwP9FJY1AimJpPjchnxymm8KvDStOqs=";
25
+ sha256 = "sha256-sX0ozXspS6kGKp46RseoYdpBgQ8dfCBXBgO9GO3aXr0=";
26
26
  };
27
27
 
28
28
  build-system = [ python3Packages.hatchling ];
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "meshcore-cli"
7
- version = "1.6.1"
7
+ version = "1.6.2"
8
8
  authors = [
9
9
  { name="Florent de Lamotte", email="florent@frizoncorrea.fr" },
10
10
  ]
@@ -17,7 +17,7 @@ classifiers = [
17
17
  ]
18
18
  license = "MIT"
19
19
  license-files = ["LICEN[CS]E*"]
20
- dependencies = [ "meshcore >= 2.3.8",
20
+ dependencies = [ "meshcore >= 2.3.9",
21
21
  "bleak >= 0.22",
22
22
  "prompt_toolkit >= 3.0.50",
23
23
  "requests >= 2.28.0" ]
@@ -34,7 +34,7 @@ except ImportError:
34
34
  from meshcore import MeshCore, EventType, logger
35
35
 
36
36
  # Version
37
- VERSION = "v1.6.1"
37
+ VERSION = "v1.6.2"
38
38
 
39
39
  # default ble address is stored in a config file
40
40
  MCCLI_CONFIG_DIR = os.path.expanduser("~/.config/meshcore/")
@@ -114,6 +114,9 @@ HANDLERS = { # dicts that will be indexed by numbers
114
114
  LAST_HANDLER_ID = 0
115
115
  HANDLER_QUEUE_SIZE = 100
116
116
 
117
+ # is the companion supposed to have cli
118
+ HAS_CLI_CMD = False
119
+
117
120
  def enqueue_handler_event(handler_type, payload):
118
121
  message = json.dumps(payload) + "\n"
119
122
  for handler in HANDLERS[handler_type].values():
@@ -566,6 +569,7 @@ def make_completion_dict(contacts, pending=None, to=None, channels=None):
566
569
  "infos" : None,
567
570
  "advert" : None,
568
571
  "floodadv" : None,
572
+ "cli" : None,
569
573
  "msg" : contact_list,
570
574
  "wait_ack" : None,
571
575
  "time" : None,
@@ -618,7 +622,7 @@ def make_completion_dict(contacts, pending=None, to=None, channels=None):
618
622
  "apply_to": None,
619
623
  "at": None,
620
624
  "scope": None,
621
- "shell": None,
625
+ "send_raw": None,
622
626
  "set" : {
623
627
  "name" : None,
624
628
  "pin" : None,
@@ -1234,7 +1238,9 @@ async def process_line(mc, line, contact=None, scope="*", prev_contact=None, pre
1234
1238
  if line.startswith("$$") :
1235
1239
  try :
1236
1240
  args = shlex.split(line[2:], posix=True)
1237
- await process_cmds(mc, args, json_output=json_output, sink=sink)
1241
+ res = await process_cmds(mc, args, json_output=json_output, sink=sink)
1242
+ if not res:
1243
+ logger.error(f"Problem while executing {args}")
1238
1244
  except ValueError:
1239
1245
  logger.error(f"Error parsing line {line[1:]}")
1240
1246
 
@@ -1242,6 +1248,9 @@ async def process_line(mc, line, contact=None, scope="*", prev_contact=None, pre
1242
1248
 
1243
1249
  line = line.rstrip("\r\n")
1244
1250
 
1251
+ if line in ["~", "/"]:
1252
+ line = "/to ~"
1253
+
1245
1254
  if line.startswith("/scope") or\
1246
1255
  line.startswith("scope") and contact is None:
1247
1256
  if not scope is None:
@@ -1345,8 +1354,17 @@ async def process_line(mc, line, contact=None, scope="*", prev_contact=None, pre
1345
1354
  # commands are passed through if at root
1346
1355
  elif contact is None or line.startswith(".") :
1347
1356
  try:
1348
- args = shlex.split(line, posix=True)
1349
- await process_cmds(mc, args, json_output=json_output, sink=sink,end=end)
1357
+ if line.startswith(":"):
1358
+ args = ["cli", line[1:].strip()]
1359
+ res = await process_cmds(mc, args, json_output=json_output, sink=sink,end=end)
1360
+ else:
1361
+ args = shlex.split(line, posix=True)
1362
+ res = await process_cmds(mc, args, json_output=json_output, sink=sink,end=end)
1363
+ if not res and HAS_CLI_CMD: # if command was not found, try cli
1364
+ args = ["cli", line[1:].strip()]
1365
+ res = await process_cmds(mc, args, json_output=json_output, sink=sink,end=end)
1366
+ if not res :
1367
+ logger.error(f"Problem while running {args}")
1350
1368
  except ValueError:
1351
1369
  logger.error(f"Error processing {line}")
1352
1370
 
@@ -1368,7 +1386,10 @@ async def process_line(mc, line, contact=None, scope="*", prev_contact=None, pre
1368
1386
  if line.startswith("send") :
1369
1387
  line = line[5:].strip()
1370
1388
  line = strip_outer_quotes(line)
1371
- last_ack = await msg_ack(mc, contact, line)
1389
+ if contact["type"] == 0 : # channel, send msg to channel
1390
+ await send_chan_msg(mc, contact["chan_nb"], strip_outer_quotes(line))
1391
+ else:
1392
+ last_ack = await msg_ack(mc, contact, line)
1372
1393
 
1373
1394
  elif contact["type"] == 0 : # channel, send msg to channel
1374
1395
  await send_chan_msg(mc, contact["chan_nb"], strip_outer_quotes(line))
@@ -2209,6 +2230,7 @@ async def next_cmd(mc, cmds, json_output=False, sink=sys.stdout, end="\n"):
2209
2230
  if res.payload["fw ver"] >= 3:
2210
2231
  output_str += f" Model: {res.payload['model']}\n"
2211
2232
  output_str += f" Version: {res.payload['ver']}\n"
2233
+ output_str += f" Comp. radio protocol: {res.payload['fw ver']}\n"
2212
2234
  output_str += f" Build date: {res.payload['fw_build']}\n"
2213
2235
  if "repeat" in res.payload :
2214
2236
  output_str += f" Repeat: {'on' if res.payload['repeat'] else 'off'}{end}"
@@ -3019,14 +3041,9 @@ async def next_cmd(mc, cmds, json_output=False, sink=sys.stdout, end="\n"):
3019
3041
  argnum = 2
3020
3042
  dest = None
3021
3043
 
3022
- if len(cmds[1]) >= 12: # possibly an hex prefix
3023
- try:
3024
- dest = bytes.fromhex(cmds[1])
3025
- except ValueError:
3026
- dest = None
3027
-
3028
- if dest is None:
3029
- dest = await get_contact_from_arg(mc, cmds[1])
3044
+ # force getting contacts, as we don't know the type
3045
+ # might add rpt_cmd that assumes the contact is a repeater
3046
+ dest = await get_contact_from_arg(mc, cmds[1])
3030
3047
 
3031
3048
  if dest is None:
3032
3049
  if json_output :
@@ -3676,7 +3693,7 @@ async def next_cmd(mc, cmds, json_output=False, sink=sys.stdout, end="\n"):
3676
3693
  else:
3677
3694
  output_str += f"Unknown contact {cmds[1]}{end}"
3678
3695
  else:
3679
- res = await mc.commands.change_contact_flags(contact, int(cmds[2]))
3696
+ res = await mc.commands.change_contact_flags(contact, int(cmds[2], 0))
3680
3697
  logger.debug(res)
3681
3698
  if res.type == EventType.ERROR:
3682
3699
  output_str += f"Error setting path: {res}{end}"
@@ -3882,6 +3899,24 @@ async def next_cmd(mc, cmds, json_output=False, sink=sys.stdout, end="\n"):
3882
3899
  else:
3883
3900
  output_str += f"Advert sent{end}"
3884
3901
 
3902
+ case "cli":
3903
+ argnum = 1
3904
+ res = await mc.commands.run_cli_command(cmds[1])
3905
+ logger.debug(res)
3906
+ if res.type == EventType.ERROR:
3907
+ output_str += f"Error sending cli command: {res}{end}"
3908
+ elif json_output:
3909
+ output_str += json.dumps(res.payload) + end
3910
+ else:
3911
+ output_str += res.payload['text'] + end
3912
+
3913
+ case "send_raw":
3914
+ argnum = 1
3915
+ res = await mc.commands.send_raw_packet(cmds[1])
3916
+ logger.debug(res)
3917
+ if res.type == EventType.ERROR:
3918
+ output_str += f"Error sending raw packet [{cmds[1]}]: {res}{end}"
3919
+
3885
3920
  case "flood_advert" | "floodadv":
3886
3921
  res = await mc.commands.send_advert(flood=True)
3887
3922
  logger.debug(res)
@@ -4084,7 +4119,7 @@ async def next_cmd(mc, cmds, json_output=False, sink=sys.stdout, end="\n"):
4084
4119
  pass
4085
4120
 
4086
4121
  case _ :
4087
- logger.error(f"Unknown command : {cmd}, {cmds} not executed ...")
4122
+ logger.debug(f"Unknown command : {cmd}, {cmds} not executed ...")
4088
4123
  return (None, output_str)
4089
4124
 
4090
4125
  logger.debug(f"cmd {cmds[0:argnum+1]} processed ...")
@@ -4092,14 +4127,14 @@ async def next_cmd(mc, cmds, json_output=False, sink=sys.stdout, end="\n"):
4092
4127
 
4093
4128
  except IndexError:
4094
4129
  logger.error("Error in parameters")
4095
- return (None, "")
4130
+ return ([], "")
4096
4131
  except (EOFError, KeyboardInterrupt):
4097
4132
  logger.error("Cancelled")
4098
- return (None, "")
4133
+ return ([], "")
4099
4134
  except Exception as e:
4100
4135
  logger.error(f"Unexpected error while processing '{cmds[0]}': {e}")
4101
4136
  logger.debug(traceback.format_exc())
4102
- return (None, "")
4137
+ return ([], "")
4103
4138
 
4104
4139
  async def process_cmds (mc, cmds, json_output=False, sink=sys.stdout, end="\n") :
4105
4140
  while cmds and len(cmds) > 0 :
@@ -4107,7 +4142,9 @@ async def process_cmds (mc, cmds, json_output=False, sink=sys.stdout, end="\n")
4107
4142
  if not cur_output is None:
4108
4143
  sink.write(cur_output)
4109
4144
  sink.flush()
4110
- return
4145
+ if cmds is None:
4146
+ return False
4147
+ return True
4111
4148
 
4112
4149
  async def process_script(mc, file, json_output=False, sink=sys.stdout):
4113
4150
  output_str = ""
@@ -4131,7 +4168,9 @@ async def process_script(mc, file, json_output=False, sink=sys.stdout):
4131
4168
  logger.debug(f"processing {line}")
4132
4169
  try :
4133
4170
  cmds = shlex.split(line, posix=True)
4134
- await process_cmds(mc, cmds, json_output=json_output, sink=sink)
4171
+ res = await process_cmds(mc, cmds, json_output=json_output, sink=sink)
4172
+ if not res:
4173
+ logger.error(f"Problem executing {cmds}")
4135
4174
  except ValueError:
4136
4175
  logger.error(f"Error processing {line}")
4137
4176
  return output_str
@@ -4180,6 +4219,8 @@ def command_help():
4180
4219
  clock : get current time
4181
4220
  clock sync : sync device clock st
4182
4221
  node_discover <filter> : discovers nodes based on their type nd
4222
+ cli <cmd> : executes cli command cmd
4223
+ send_raw <pkt> : sends a raw packet (hex string)
4183
4224
  Contacts
4184
4225
  contacts / list : gets contact list lc
4185
4226
  reload_contacts : force reloading all contacts rc
@@ -4957,6 +4998,7 @@ async def repeater_loop(ser):
4957
4998
 
4958
4999
  async def main(argv):
4959
5000
  """ Do the job """
5001
+ global HAS_CLI_CMD
4960
5002
  json_output = JSON
4961
5003
  debug = False
4962
5004
  address = ADDRESS
@@ -5222,8 +5264,10 @@ async def main(argv):
5222
5264
  if (json_output or quiet) :
5223
5265
  logger.setLevel(logging.ERROR)
5224
5266
  else :
5267
+ if res.payload["fw ver"] >= 14 :
5268
+ HAS_CLI_CMD = True
5225
5269
  if res.payload["fw ver"] > 2 :
5226
- logger.info(f"Connected to {mc.self_info['name']} running on a {res.payload['ver']} fw.")
5270
+ logger.info(f"Connected to {mc.self_info['name']} running on a {res.payload['ver']} ({res.payload['fw ver']}) fw.")
5227
5271
  else :
5228
5272
  logger.info(f"Connected to {mc.self_info['name']}.")
5229
5273
 
@@ -5242,7 +5286,9 @@ async def main(argv):
5242
5286
  if args[-1] == "interactive" or args[-1] == "chat" or args[-1] == "im":
5243
5287
  force_interactive = True
5244
5288
 
5245
- await process_cmds(mc, args, json_output=json_output, sink=sys.stdout)
5289
+ res = await process_cmds(mc, args, json_output=json_output, sink=sys.stdout)
5290
+ if not res :
5291
+ logger.error(f"Problem while executing {args}")
5246
5292
 
5247
5293
  if len(args) == 0 or force_interactive :
5248
5294
  await interactive_loop(mc, json_output=json_output)
@@ -1,292 +0,0 @@
1
- # Repeater Commands Reference
2
-
3
- meshcore-cli can interact with repeaters through two fundamentally different paths, each exposing a different set of commands.
4
-
5
- ## Connection Paths
6
-
7
- ### Serial direct (`-r -s <port>`)
8
-
9
- Connects USB directly to the repeater hardware. The CLI talks to the firmware's text CLI — raw text in, raw text out over UART. This gives access to the firmware's full serial command set.
10
-
11
- ### Client mode (`to <repeater>`)
12
-
13
- Connects to your companion client node (via BLE, TCP or serial without `-r`), then sends commands to the repeater over the mesh radio network using encrypted MeshCore `cmd` messages. The repeater firmware processes these through its mesh command handler, which is more limited than the serial interface.
14
-
15
- The transport between you and your companion node (BLE, TCP or serial) does not matter — all three use the same MeshCore API and the same mesh protocol to reach the repeater.
16
-
17
- <pre>
18
- +------------------+
19
- -r -s (serial) ------->| Firmware text CLI | (raw UART)
20
- | on repeater |
21
- +------------------+
22
-
23
- +--------------+ +-------------------+
24
- BLE -----+ | | mesh | Firmware mesh cmd |
25
- TCP -----+--> MeshCore --> Companion +------->| handler on |
26
- Serial --+ (same API) | node | radio | repeater |
27
- +--------------+ +-------------------+
28
- </pre>
29
-
30
- ## Commands Available in Both Modes
31
-
32
- The following commands work regardless of how you connect to the repeater. In serial mode they are sent as raw text. In client mode they are wrapped in a `cmd` message and sent over the mesh.
33
-
34
- ### Information
35
-
36
- <pre>
37
- ver - Firmware version
38
- board - Board name
39
- clock - Show current time
40
- </pre>
41
-
42
- ### Statistics
43
-
44
- <pre>
45
- stats-core - Core stats (uptime, battery, queue)
46
- stats-radio - Radio stats (RSSI, SNR, noise floor)
47
- stats-packets - Packet statistics (sent/recv counts)
48
- clear stats - Reset all statistics
49
- </pre>
50
-
51
- ### Network
52
-
53
- <pre>
54
- neighbors - Show neighboring repeaters (zero-hop)
55
- neighbor.remove <n> - Remove a specific neighbor
56
- discover.neighbors - Actively discover neighbors
57
- advert - Send advertisement now
58
- </pre>
59
-
60
- ### Logging
61
-
62
- <pre>
63
- log start - Enable packet logging
64
- log stop - Disable packet logging
65
- </pre>
66
-
67
- Note: after `log start` in client mode, log data streams back as `RX_LOG_DATA` events and is processed with rich packet parsing (headers, routes, paths, channel/advert echoes). In serial mode, log data is printed as raw firmware text.
68
-
69
- ### Configuration (get/set)
70
-
71
- <pre>
72
- get name - Node name
73
- get role - Node role
74
- get radio - Radio params (freq,bw,sf,cr)
75
- get freq - Frequency
76
- get tx - TX power (dBm)
77
- get af - Antenna factor
78
- get repeat - Repeat mode on/off
79
- get public.key - Node public key
80
- get lat - Latitude
81
- get lon - Longitude
82
- get advert.interval - Advertisement interval (minutes)
83
- get flood.advert.interval - Flood advertisement interval
84
- get flood.max - Maximum flood hops
85
- get guest.password - Guest password
86
- get allow.read.only - Read-only access mode
87
- get owner.info - Owner information
88
- get acl - Access control list
89
- get rxdelay - RX delay
90
- get txdelay - TX delay
91
- get direct.txdelay - Direct TX delay
92
-
93
- set name <name> - Set node name
94
- set radio f,bw,sf,cr - Set radio params (reboot to apply)
95
- set freq <freq> - Set frequency
96
- set tx <power> - Set TX power (dBm)
97
- set af <value> - Set antenna factor
98
- set repeat on|off - Enable/disable repeating
99
- set lat <value> - Set latitude
100
- set lon <value> - Set longitude
101
- set advert.interval <min> - Set advert interval (60-240 min)
102
- set flood.advert.interval <min> - Set flood advert interval
103
- set flood.max <value> - Set max flood hops
104
- set guest.password <pwd> - Set guest password
105
- set allow.read.only on|off - Set read-only access
106
- set owner.info <info> - Set owner information
107
- set rxdelay <value> - Set RX delay
108
- set txdelay <value> - Set TX delay
109
- set direct.txdelay <val> - Set direct TX delay
110
- </pre>
111
-
112
- ### Bridge Configuration (get/set)
113
-
114
- <pre>
115
- get bridge.enabled - Bridge enabled state
116
- get bridge.delay - Bridge delay
117
- get bridge.source - Bridge source
118
- get bridge.baud - Bridge baud rate
119
- get bridge.secret - Bridge secret
120
-
121
- set bridge.enabled on|off - Enable/disable bridge
122
- set bridge.delay <value> - Set bridge delay
123
- set bridge.source <value> - Set bridge source
124
- set bridge.baud <value> - Set bridge baud rate
125
- set bridge.secret <value> - Set bridge secret
126
- </pre>
127
-
128
- ### Region Management
129
-
130
- <pre>
131
- region - Display currently configured regions
132
- region save - Save current region config to flash
133
- region home - Get/set home region
134
- region get - Get info (and parent) for a region
135
- region put - Add or update a region
136
- region remove - Remove a region definition
137
- region allowf - Give flood permission to a region
138
- region denyf - Remove flood permission from a region
139
- </pre>
140
-
141
- ### GPS
142
-
143
- <pre>
144
- gps on|off - Enable/disable GPS
145
- gps sync - Sync GPS
146
- gps setloc - Set location from GPS
147
- gps advert none|share|prefs - GPS advertisement mode
148
- </pre>
149
-
150
- ### Sensors
151
-
152
- <pre>
153
- sensor list - List sensors
154
- sensor get - Get sensor value
155
- sensor set - Set sensor value
156
- </pre>
157
-
158
- ### Other
159
-
160
- <pre>
161
- password <pwd> - Set admin password
162
- powersaving on|off - Toggle power saving mode
163
- setperm <key> <perm> - Set permissions for a node
164
- time <epoch> - Set time to given epoch
165
- reboot - Reboot device
166
- erase - Erase filesystem
167
- </pre>
168
-
169
- ## Commands Available Only in Serial Mode (`-r`)
170
-
171
- These commands only work over the serial text CLI. They return "Unknown command" when sent via mesh `cmd`.
172
-
173
- ### Logging (serial only)
174
-
175
- <pre>
176
- log - Dump stored log file to console
177
- log erase - Erase log file
178
- </pre>
179
-
180
- The bare `log` command streams stored log data over the serial output, which doesn't fit the mesh command request/response model. `log erase` is similarly a serial-only operation.
181
-
182
- ### Region File Transfer (serial only)
183
-
184
- These are meshcore-cli convenience commands that handle file I/O over the serial link:
185
-
186
- <pre>
187
- region upload <file> - Upload regions config from local file to node
188
- region load <file> - Alias for region upload
189
- region download <file> - Download regions config from node to local file
190
- region list - List allowed/denied regions
191
- </pre>
192
-
193
- ### Other Serial-Only Commands
194
-
195
- <pre>
196
- tempradio - Temporary radio configuration
197
- script <file> - Execute a local script file (lines sent one by one)
198
- clock sync - Sync repeater clock to host time (alias: st, sync_time)
199
- </pre>
200
-
201
- Note: `clock sync` in serial mode is intercepted by meshcore-cli, which reads the host clock and sends `time <epoch>` to the firmware. In client mode, `clock sync` is available as a meshcore-cli command on the companion node (not sent to the repeater).
202
-
203
- ## Commands Available Only in Client Mode (`to <repeater>`)
204
-
205
- These are meshcore-cli commands that use the MeshCore protocol to query repeaters. They are not raw firmware commands — they use dedicated binary protocol messages.
206
-
207
- ### Repeater Management
208
-
209
- <pre>
210
- login <pwd> - Log into repeater with password l
211
- logout - Log out of repeater
212
- req_status - Request status from repeater rs
213
- req_neighbours - Request neighbours in binary form rn
214
- req_regions - Request regions list rr
215
- req_owner - Request owner information ro
216
- req_clock - Request repeater timestamp (for sync)
217
- req_acl - Request access control list ra
218
- trace - Run a trace to this repeater tr
219
- dtrace - Discover path and trace dt
220
- </pre>
221
-
222
- ### Contact Operations (on the repeater contact)
223
-
224
- <pre>
225
- contact_info - Print contact info for this repeater ci
226
- path - Display path to this repeater
227
- disc_path - Discover new path and display dp
228
- reset_path - Reset path to flood rp
229
- change_path <path> - Change the path to this repeater cp
230
- change_flags <flags> - Change contact flags cf
231
- share_contact - Share this repeater's contact sc
232
- export_contact - Export this repeater's URI ec
233
- req_telemetry - Request telemetry data rt
234
- forget_password - Remove stored password for repeater fp
235
- set timeout <value> - Set command timeout for this repeater
236
- get timeout - Get command timeout for this repeater
237
- </pre>
238
-
239
- ### Special Operations
240
-
241
- <pre>
242
- clkreboot - Clock-aware reboot
243
- start ota - Start OTA (over-the-air) update
244
- get telemetry - Alias for req_telemetry
245
- get status - Alias for req_status
246
- get acl - Alias for req_acl
247
- </pre>
248
-
249
- ### Prefix Shortcuts
250
-
251
- <pre>
252
- : <cmd> - Force send as raw cmd (e.g. ":ver")
253
- send <msg> / "<msg> - Send a text message to repeater (room)
254
- </pre>
255
-
256
- ## Quick Reference Table
257
-
258
- | Command | Serial (`-r`) | Client (`to`) | Notes |
259
- | --- | :---: | :---: | --- |
260
- | ver, board, clock | Yes | Yes | |
261
- | stats-core/radio/packets | Yes | Yes | |
262
- | clear stats | Yes | Yes | |
263
- | neighbors | Yes | Yes | |
264
- | neighbor.remove | Yes | Yes | |
265
- | discover.neighbors | Yes | Yes | |
266
- | advert | Yes | Yes | |
267
- | log start / log stop | Yes | Yes | Client receives data via RX_LOG_DATA events |
268
- | log (dump) | Yes | **No** | Serial streaming, no mesh equivalent |
269
- | log erase | Yes | **No** | Serial only |
270
- | get/set (all params) | Yes | Yes | |
271
- | region (get/put/remove/save/home/allowf/denyf) | Yes | Yes | |
272
- | region upload/download | Yes | **No** | Requires serial file transfer |
273
- | region list | Yes | **No** | Serial only |
274
- | gps | Yes | Yes | |
275
- | sensor | Yes | Yes | |
276
- | password | Yes | Yes | |
277
- | powersaving | Yes | Yes | |
278
- | setperm | Yes | Yes | Client mode resolves contact names to keys |
279
- | time, reboot, erase | Yes | Yes | |
280
- | tempradio | Yes | **No** | Serial only |
281
- | clock sync | Yes | **No** | CLI intercepts and sends `time <epoch>` |
282
- | script | Yes | **No** | Reads local file, sends lines over serial |
283
- | login/logout | **No** | Yes | MeshCore protocol commands |
284
- | req_status | **No** | Yes | Binary protocol request |
285
- | req_neighbours | **No** | Yes | Binary protocol request |
286
- | req_regions | **No** | Yes | Binary protocol request |
287
- | req_owner | **No** | Yes | Binary protocol request |
288
- | req_clock | **No** | Yes | Binary protocol request |
289
- | req_acl | **No** | Yes | Binary protocol request |
290
- | trace/dtrace | **No** | Yes | Path tracing via mesh |
291
- | contact management | **No** | Yes | CLI-level operations on companion node |
292
- | clkreboot, start ota | **No** | Yes | Mesh protocol commands |
File without changes
File without changes
File without changes