Companions - Regionalization and path.hash.mode ?? #93

Closed
opened 2026-10-27 09:32:46 +01:00 by adam · 5 comments
Owner

Hi,
The case concerns companions. I can't find the option to set 1/2/3b for companion. I also can't set regions for specific channels (#) - where?

Hi, The case concerns companions. I can't find the option to set 1/2/3b for companion. I also can't set regions for specific channels (#) - where? <!-- github-sync-id:4485548723 -->
adam closed this issue 2026-10-27 09:32:46 +01:00
Author
Owner

Bytes and regions is set via a companion app and you would connect to the pymc companion directly to make those changes. there are no settings for that currently in PYMC ui to change.

Bytes and regions is set via a companion app and you would connect to the pymc companion directly to make those changes. there are no settings for that currently in PYMC ui to change. <!-- github-comment-id:4498657335 -->
Author
Owner

Yes, I know that you can configure bytes and regions via companion app or physical companion. But, when using pyMC Repeater UI or PyMC Console, It should be possible to configure bytes and regions also.

Please consider adding this options to pyMC Repeater web interface of pyMC Console. Without regions, companion via pyMC UI is useless (ie. in Poland, because we have regions in almost all channels).

Yes, I know that you can configure bytes and regions via companion app or physical companion. But, when using pyMC Repeater UI or PyMC Console, It should be possible to configure bytes and regions also. Please consider adding this options to pyMC Repeater web interface of pyMC Console. Without regions, companion via pyMC UI is useless (ie. in Poland, because we have regions in almost all channels). <!-- github-comment-id:4500463526 -->
Author
Owner

feel free to jump on discord to discuss further. the option in on the todo list, but just has not been done yet.
https://discord.gg/4tYsXmCN

feel free to jump on discord to discuss further. the option in on the todo list, but just has not been done yet. https://discord.gg/4tYsXmCN <!-- github-comment-id:4500497633 -->
Author
Owner

I've had luck manually updating this in the database

SQLite version 3.46.1 2024-08-13 09:16:08
Enter ".help" for usage hints.
sqlite> .tables
adverts companion_messages noise_floor transport_keys
api_tokens companion_prefs packets
companion_channels crc_errors room_client_sync
companion_contacts migrations room_messages
sqlite> select * from companion_prefs
...> ;
0x3b|{"node_name": "MyBot", "adv_type": 1, "tx_power_dbm": 22, "frequency_hz": 910525000, "bandwidth_hz": 62500, "spreading_factor": 7, "coding_rate": 5, "latitude": 0.0, "longitude": 0.0, "advert_loc_policy": 0, "multi_acks": 0, "telemetry_mode_base": 0, "telemetry_mode_location": 0, "telemetry_mode_environment": 0, "manual_add_contacts": 0, "autoadd_config": 0, "rx_delay_base": 0.0, "airtime_factor": 0.0, "client_repeat": 0, "path_hash_mode": 1, "default_scope_name": "", "default_scope_key": ""}

Note that the path_hash_mode enumerator 0=1 byte 1=2 byte 2=3 byte

I've had luck manually updating this in the database SQLite version 3.46.1 2024-08-13 09:16:08 Enter ".help" for usage hints. sqlite> .tables adverts companion_messages noise_floor transport_keys api_tokens companion_prefs packets companion_channels crc_errors room_client_sync companion_contacts migrations room_messages sqlite> select * from companion_prefs ...> ; 0x3b|{"node_name": "MyBot", "adv_type": 1, "tx_power_dbm": 22, "frequency_hz": 910525000, "bandwidth_hz": 62500, "spreading_factor": 7, "coding_rate": 5, "latitude": 0.0, "longitude": 0.0, "advert_loc_policy": 0, "multi_acks": 0, "telemetry_mode_base": 0, "telemetry_mode_location": 0, "telemetry_mode_environment": 0, "manual_add_contacts": 0, "autoadd_config": 0, "rx_delay_base": 0.0, "airtime_factor": 0.0, "client_repeat": 0, "path_hash_mode": 1, "default_scope_name": "", "default_scope_key": ""} Note that the path_hash_mode enumerator 0=1 byte 1=2 byte 2=3 byte <!-- github-comment-id:5117036646 -->
Author
Owner

The only safe way currently is to change in the Companion app.

The only safe way currently is to change in the Companion app. <!-- github-comment-id:5315193158 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/pyMC_Repeater#93