(→Command line) |
(→Get list of contexts) |
||
(11 intermediate revisions by the same user not shown) | |||
Line 35: | Line 35: | ||
<pre> | <pre> | ||
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ | dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ | ||
− | me.burnaway.BrandMeister.invokeCommand string:'CBridge CC-CC Link' string:'connect 87.106.84.53' | + | me.burnaway.BrandMeister.invokeCommand string:'CBridge CC-CC Link' string:'connect 87.106.84.53 2502 0 1' |
− | # | + | # C-Bridge Address-| | | |- Location ID |
+ | # Network ID-| |- mode | ||
</pre> | </pre> | ||
Line 43: | Line 44: | ||
<pre> | <pre> | ||
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ | dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ | ||
− | me.burnaway.BrandMeister.invokeCommand string:'D-Extra Link' string:'connect 250 D XRF250 D xrf250.dstar.su' | + | me.burnaway.BrandMeister.invokeCommand string:'D-Extra Link' string:'connect 250 D XRF250 D xrf250.dstar.su 1' |
− | # Group ID-| | |-XRF--| |-XRF Address-| | + | # Group ID-| | |-XRF--| |-XRF Address-| |- mode |
# Local Module-+ | # Local Module-+ | ||
</pre> | </pre> | ||
+ | |||
+ | ==== Connect to D-STAR DCS reflector ==== | ||
+ | |||
+ | <pre> | ||
+ | dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ | ||
+ | me.burnaway.BrandMeister.invokeCommand string:'DCS Link' string:'connect 250 D XRF250 D xrf250.dstar.su example.com 1' | ||
+ | # Group ID-| | |-DCS--| |-DCS Address-| | |- mode | ||
+ | # Local Module-+ + CCS Address | ||
+ | </pre> | ||
+ | |||
==== Connect to WIRES-X Room ==== | ==== Connect to WIRES-X Room ==== | ||
Line 52: | Line 63: | ||
<pre> | <pre> | ||
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ | dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ | ||
− | me.burnaway.BrandMeister.invokeCommand string:'WIRES-X Link' string:'connect 250 44.11.22.33' | + | me.burnaway.BrandMeister.invokeCommand string:'WIRES-X Link' string:'connect 250 250 44.11.22.33' |
− | # Talkgoup-| |-room | + | # Talkgoup-| | |-room |
+ | # +Application ID | ||
</pre> | </pre> | ||
Line 60: | Line 72: | ||
<pre> | <pre> | ||
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ | dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ | ||
− | me.burnaway.BrandMeister.invokeCommand string:'YSF Client' string:'connect 250 44.11.22.33 42000' | + | me.burnaway.BrandMeister.invokeCommand string:'YSF Client' string:'connect 250 44.11.22.33 42000 1' |
− | # Group ID-| |- | + | # Group ID-| | Port-| |-mode |
+ | # address + | ||
+ | </pre> | ||
+ | |||
+ | ==== Connect to NXDN Reflector ==== | ||
+ | |||
+ | <pre> | ||
+ | dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ | ||
+ | me.burnaway.BrandMeister.invokeCommand string:'NXDN Client' string:'connect 25001 192.0.2.1 41400 1' | ||
+ | # talkgroup-| | port-| |- mode | ||
+ | # address + | ||
+ | </pre> | ||
+ | |||
+ | ==== Connect to NXCore ==== | ||
+ | |||
+ | <pre> | ||
+ | dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ | ||
+ | me.burnaway.BrandMeister.invokeCommand string:'NXCore' string:'connect 25001 192.0.2.1 41300' | ||
+ | # number-| | |-port | ||
+ | # address + | ||
+ | </pre> | ||
+ | |||
+ | ==== Connect to an OpenBridge peer ==== | ||
+ | |||
+ | <pre> | ||
+ | dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ | ||
+ | me.burnaway.BrandMeister.invokeCommand string:'OpenBridge' string:'connect 250000050 192.0.2.1 62035' | ||
+ | # number-| | |-port | ||
+ | # address + | ||
</pre> | </pre> | ||
Line 83: | Line 123: | ||
<pre> | <pre> | ||
+ | |||
+ | # returns first 4096 contexts | ||
+ | # use getCustomList if your server has more. | ||
+ | |||
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ | dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ | ||
me.burnaway.BrandMeister.getContextList | me.burnaway.BrandMeister.getContextList | ||
Line 147: | Line 191: | ||
me.burnaway.BrandMeister.invokeCommand string:'15bb100a-a08e-11e4-9ef2-52540089c90b' string:'subscribe 1 1' | me.burnaway.BrandMeister.invokeCommand string:'15bb100a-a08e-11e4-9ef2-52540089c90b' string:'subscribe 1 1' | ||
# |- Context UUID -| Link ID-| |-Group ID | # |- Context UUID -| Link ID-| |-Group ID | ||
− | |||
− | |||
− | |||
− | |||
</pre> | </pre> | ||
Line 157: | Line 197: | ||
<pre> | <pre> | ||
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ | dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ | ||
− | me.burnaway.BrandMeister.invokeCommand string:' | + | me.burnaway.BrandMeister.invokeCommand string:'15bb100a-a08e-11e4-9ef2-52540089c90b' string:'subscribe 4001 2501' |
# |- Context UUID -| Module -| |-Group ID | # |- Context UUID -| Module -| |-Group ID | ||
</pre> | </pre> | ||
− | |||
==== Remove context (disconnect from server / repeater) ==== | ==== Remove context (disconnect from server / repeater) ==== | ||
Line 200: | Line 239: | ||
me.burnaway.BrandMeister.publishExternalEvent string:'configuration changed' | me.burnaway.BrandMeister.publishExternalEvent string:'configuration changed' | ||
</pre> | </pre> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Full list and descriptions can be retrieved using D-BUS Introspection
Keep in mind these examples are for master id 2501 if used please change N2501 to NXXX for you master.
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.invokeCommand string:'CBridge CC-CC Link' string:'connect 87.106.84.53 2502 0 1' # C-Bridge Address-| | | |- Location ID # Network ID-| |- mode
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.invokeCommand string:'D-Extra Link' string:'connect 250 D XRF250 D xrf250.dstar.su 1' # Group ID-| | |-XRF--| |-XRF Address-| |- mode # Local Module-+
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.invokeCommand string:'DCS Link' string:'connect 250 D XRF250 D xrf250.dstar.su example.com 1' # Group ID-| | |-DCS--| |-DCS Address-| | |- mode # Local Module-+ + CCS Address
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.invokeCommand string:'WIRES-X Link' string:'connect 250 250 44.11.22.33' # Talkgoup-| | |-room # +Application ID
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.invokeCommand string:'YSF Client' string:'connect 250 44.11.22.33 42000 1' # Group ID-| | Port-| |-mode # address +
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.invokeCommand string:'NXDN Client' string:'connect 25001 192.0.2.1 41400 1' # talkgroup-| | port-| |- mode # address +
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.invokeCommand string:'NXCore' string:'connect 25001 192.0.2.1 41300' # number-| | |-port # address +
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.invokeCommand string:'OpenBridge' string:'connect 250000050 192.0.2.1 62035' # number-| | |-port # address +
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.invokeCommand string:'RP2C Link' string:'register 2509 gate.dstar.su' # Network ID-| |-Gateway Address
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.invokeCommand string:'XLX Interlink' string:'connect 192.0.2.1 1' # XLX Address -| |-options
# returns first 4096 contexts # use getCustomList if your server has more. dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.getContextList Optional parameters: #1 (optional) string:<name> - specific name #1 (optional) uint32:<mask> - specific type, where bit 0 - applications, bit 1 - repeaters, bit 2 - networks #2 (optional) uint32:<number> - identifier of link dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.getContextList uint32:2 dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.getContextList uint32:2 uint32:250301 dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.getContextList string:'XLX Interlink'
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.getContextData string:'15bb100a-a08e-11e4-9ef2-52540089c90b' # |- Context UUID -|
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.getRepeaterData string:'15bb100a-a08e-11e4-9ef2-52540089c90b' # |- Context UUID -|
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.invokeCommand string:'15bb100a-a08e-11e4-9ef2-52540089c90b' string:'clear alarms' # |- Context UUID -|
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.invokeCommand string:'15bb100a-a08e-11e4-9ef2-52540089c90b' string:'turn repeater on' # |- Context UUID -|
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.invokeCommand string:'15bb100a-a08e-11e4-9ef2-52540089c90b' string:'turn repeater off' # |- Context UUID -|
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.invokeCommand string:'15bb100a-a08e-11e4-9ef2-52540089c90b' string:'subscribe 1 1' # |- Context UUID -| Link ID-| |-Group ID
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.invokeCommand string:'15bb100a-a08e-11e4-9ef2-52540089c90b' string:'subscribe 4001 2501' # |- Context UUID -| Module -| |-Group ID
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.removeContext string:'15bb100a-a08e-11e4-9ef2-52540089c90b' # |- Context UUID -|
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.dropCallRoute string:'15bb100a-a08e-11e4-9ef2-52540089c90b' uint32:1 # |- Context UUID -| Slot -|
Please note: this method can be applied to channels having channel lock such as repeaters, SmartPTT, etc.
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.getSubscriptionList string:'15bb100a-a08e-11e4-9ef2-52540089c90b' # |- Context UUID -|
List contains four numbers per record:
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.publishExternalEvent string:'configuration changed'
Full list and descriptions can be retrieved using D-BUS Introspection
Keep in mind these examples are for master id 2501 if used please change N2501 to NXXX for you master.
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.invokeCommand string:'CBridge CC-CC Link' string:'connect 87.106.84.53' # |-C-Bridge Address
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.invokeCommand string:'D-Extra Link' string:'connect 250 D XRF250 D xrf250.dstar.su' # Group ID-| | |-XRF--| |-XRF Address-| # Local Module-+
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.invokeCommand string:'WIRES-X Link' string:'connect 250 44.11.22.33' # Talkgoup-| |-room
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.invokeCommand string:'YSF Client' string:'connect 250 44.11.22.33 42000' # Group ID-| |-Address |-Port
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.invokeCommand string:'RP2C Link' string:'register 2509 gate.dstar.su' # Network ID-| |-Gateway Address
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.invokeCommand string:'XLX Interlink' string:'connect 192.0.2.1 1' # XLX Address -| |-options
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.getContextList Optional parameters: #1 (optional) string:<name> - specific name #1 (optional) uint32:<mask> - specific type, where bit 0 - applications, bit 1 - repeaters, bit 2 - networks #2 (optional) uint32:<number> - identifier of link dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.getContextList uint32:2 dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.getContextList uint32:2 uint32:250301 dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.getContextList string:'XLX Interlink'
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.getContextData string:'15bb100a-a08e-11e4-9ef2-52540089c90b' # |- Context UUID -|
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.getRepeaterData string:'15bb100a-a08e-11e4-9ef2-52540089c90b' # |- Context UUID -|
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.invokeCommand string:'15bb100a-a08e-11e4-9ef2-52540089c90b' string:'clear alarms' # |- Context UUID -|
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.invokeCommand string:'15bb100a-a08e-11e4-9ef2-52540089c90b' string:'turn repeater on' # |- Context UUID -|
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.invokeCommand string:'15bb100a-a08e-11e4-9ef2-52540089c90b' string:'turn repeater off' # |- Context UUID -|
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.invokeCommand string:'15bb100a-a08e-11e4-9ef2-52540089c90b' string:'subscribe 1 1' # |- Context UUID -| Link ID-| |-Group ID dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.invokeCommand string:'15bb100a-a08e-11e4-9ef2-52540089c90b' string:'transmit configuration' # |- Context UUID -|
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.invokeCommand string:'ccd1bca2-596f-4e70-9622-00263bfad37e' string:'subscribe 4001 2501' # |- Context UUID -| Module -| |-Group ID
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.removeContext string:'15bb100a-a08e-11e4-9ef2-52540089c90b' # |- Context UUID -|
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.dropCallRoute string:'15bb100a-a08e-11e4-9ef2-52540089c90b' uint32:1 # |- Context UUID -| Slot -|
Please note: this method can be applied to channels having channel lock such as repeaters, SmartPTT, etc.
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.getSubscriptionList string:'15bb100a-a08e-11e4-9ef2-52540089c90b' # |- Context UUID -|
List contains four numbers per record:
dbus-send --system --dest=me.burnaway.BrandMeister.N2501 --type=method_call --print-reply /me/burnaway/BrandMeister \ me.burnaway.BrandMeister.publishExternalEvent string:'configuration changed'
<syntaxhighlight lang="php"> <?php
$array = array();
$connection = new DBus(DBus::BUS_SYSTEM, true); $proxy = $connection->createProxy("me.burnaway.BrandMeister.N2501", "/me/burnaway/BrandMeister", "me.burnaway.BrandMeister");
$result = $proxy->getContextList(); if ((is_object($result)) && (get_class($result) == "DbusArray")) { $list = $result->getData(); foreach ($list as $banner) { $result = $proxy->getContextData($banner); if ((is_object($result)) && (get_class($result) == "DbusSet")) { $set = $result->getData(); $values = $set[6]->getData(); $address = $set[4];
$array[] = array( "banner" => $set[0], "name" => $set[1], "type" => $set[2], "number" => $set[3], "state" => $set[5], "values" => $values); } } }
$data = json_encode($array);
if (array_key_exists("callback", $_GET)) { header("Content-Type: application/javascript"); print($_GET["callback"] . "(" . $data . ")"); } else { header("Content-Type: application/json"); print($data); }
?> </syntaxhighlight>