# Add command to set port-out PIN

**URL:** <https://hub.soprani.ca/t/add-command-to-set-port-out-pin/516>\
**Category:** Issues\
**Tags:** implemented, sgx-bwmsgsv2\
**Created:** [July 15, 2024, 11:40pm UTC](https://hub.soprani.ca/t/add-command-to-set-port-out-pin/516 "2024-07-15T23:40:17Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![ossguy](https://hub.soprani.ca/letter_avatar_proxy/v4/letter/o/6f9a4e/32.png) [@ossguy](https://hub.soprani.ca/u/ossguy)\
**Post date:** [July 15, 2024, 11:40pm UTC](https://hub.soprani.ca/t/add-command-to-set-port-out-pin/516/1 "2024-07-15T23:40:17Z")

</div>

Currently the port-out PIN needs to be set manually with support, so it would ease support burden if we had a command to do it instead.

---

<div class="post-metadata">

**Author:** ![singpolyma](https://hub.soprani.ca/user_avatar/hub.soprani.ca/singpolyma/32/11_2.png) [@singpolyma](https://hub.soprani.ca/u/singpolyma)\
**Post date:** [May 14, 2025, 6:34pm UTC](https://hub.soprani.ca/t/add-command-to-set-port-out-pin/516/2 "2025-05-14T18:34:53Z")

</div>

- Build command in bwmsgsv2
- Command should only show if user’s number support port out pin with bandwidth

---

<div class="post-metadata">

**Author:** ![singpolyma](https://hub.soprani.ca/user_avatar/hub.soprani.ca/singpolyma/32/11_2.png) [@singpolyma](https://hub.soprani.ca/u/singpolyma)\
**Post date:** [May 14, 2025, 6:35pm UTC](https://hub.soprani.ca/t/add-command-to-set-port-out-pin/516/3 "2025-05-14T18:35:58Z")

</div>

Either write a stub command in sgx-jmp that passes through or (more likely) allow passing through commands from backend if sgx-jmp doesn’t have that already (it probably doesn’t only cheogram does IIRC) – if the latter open a new ticket to describe that work.

---

<div class="post-metadata">

**Author:** ![amolith](https://hub.soprani.ca/user_avatar/hub.soprani.ca/amolith/32/12_2.png) [@amolith](https://hub.soprani.ca/u/amolith)\
**Post date:** [May 21, 2025, 11:23pm UTC](https://hub.soprani.ca/t/add-command-to-set-port-out-pin/516/4 "2025-05-21T23:23:30Z")

</div>

~singpolyma `sgx-jmp` does not have generic command pass-through from what I can tell. Should I look into implementing that similarly to how it’s done in cheogram? What all should the ticket include?

---

<div class="post-metadata">

**Author:** ![amolith](https://hub.soprani.ca/user_avatar/hub.soprani.ca/amolith/32/12_2.png) [@amolith](https://hub.soprani.ca/u/amolith)\
**Post date:** [May 21, 2025, 11:23pm UTC](https://hub.soprani.ca/t/add-command-to-set-port-out-pin/516/5 "2025-05-21T23:23:30Z")

</div>

~singpolyma `sgx-jmp` does not have generic command pass-through from what I can tell. Should I look into implementing that similarly to how it’s done in cheogram? What all should the ticket include?

---

<div class="post-metadata">

**Author:** ![amolith](https://hub.soprani.ca/user_avatar/hub.soprani.ca/amolith/32/12_2.png) [@amolith](https://hub.soprani.ca/u/amolith)\
**Post date:** [September 29, 2025, 8:11pm UTC](https://hub.soprani.ca/t/add-command-to-set-port-out-pin/516/6 "2025-09-29T20:11:58Z")

</div>

RP for the sgx-bwmsgsv2 portion of the implementation is here  
[https://lists.sr.ht/~singpolyma/dev/\<DD5JXQAFXZRS.3TYG2K0QZ22SJ@secluded.site\>](https://lists.sr.ht/~singpolyma/dev/%3CDD5JXQAFXZRS.3TYG2K0QZ22SJ@secluded.site%3E)

---

<div class="post-metadata">

**Author:** ![amolith](https://hub.soprani.ca/user_avatar/hub.soprani.ca/amolith/32/12_2.png) [@amolith](https://hub.soprani.ca/u/amolith)\
**Post date:** [October 11, 2025, 3:37am UTC](https://hub.soprani.ca/t/add-command-to-set-port-out-pin/516/7 "2025-10-11T03:37:10Z")

</div>

RP for the sgx-jmp portion of the implementation is here  
[https://lists.sr.ht/~singpolyma/dev/\<DDF6G1Z59I46.2LOFRDT9H6Z2C@secluded.site\>](https://lists.sr.ht/~singpolyma/dev/%3CDDF6G1Z59I46.2LOFRDT9H6Z2C@secluded.site%3E)

---

<div class="post-metadata">

**Author:** ![amolith](https://hub.soprani.ca/user_avatar/hub.soprani.ca/amolith/32/12_2.png) [@amolith](https://hub.soprani.ca/u/amolith)\
**Post date:** [October 16, 2025, 11:22pm UTC](https://hub.soprani.ca/t/add-command-to-set-port-out-pin/516/8 "2025-10-16T23:22:38Z")

</div>

sgx-bwmsgsv2 RP for only showing the command if the TN is eligible  
[https://lists.sr.ht/~singpolyma/dev/\<DDK4RIQAIECP.3TE5Z6GMYNEAX@secluded.site\>](https://lists.sr.ht/~singpolyma/dev/%3CDDK4RIQAIECP.3TE5Z6GMYNEAX@secluded.site%3E)

---

<div class="post-metadata">

**Author:** ![singpolyma](https://hub.soprani.ca/user_avatar/hub.soprani.ca/singpolyma/32/11_2.png) [@singpolyma](https://hub.soprani.ca/u/singpolyma)\
**Post date:** [October 22, 2025, 2:50pm UTC](https://hub.soprani.ca/t/add-command-to-set-port-out-pin/516/9 "2025-10-22T14:50:50Z")

</div>

all bwmsgsv2 changes deployed

---

<div class="post-metadata">

**Author:** ![singpolyma](https://hub.soprani.ca/user_avatar/hub.soprani.ca/singpolyma/32/11_2.png) [@singpolyma](https://hub.soprani.ca/u/singpolyma)\
**Post date:** [October 27, 2025, 2:25pm UTC](https://hub.soprani.ca/t/add-command-to-set-port-out-pin/516/10 "2025-10-27T14:25:25Z")

</div>

sgx-jmp changes many rubocop failures

---

<div class="post-metadata">

**Author:** ![singpolyma](https://hub.soprani.ca/user_avatar/hub.soprani.ca/singpolyma/32/11_2.png) [@singpolyma](https://hub.soprani.ca/u/singpolyma)\
**Post date:** [November 12, 2025, 9:18pm UTC](https://hub.soprani.ca/t/add-command-to-set-port-out-pin/516/11 "2025-11-12T21:18:53Z")

</div>

tests don’t pass, I’m going to fix it

---

<div class="post-metadata">

**Author:** ![singpolyma](https://hub.soprani.ca/user_avatar/hub.soprani.ca/singpolyma/32/11_2.png) [@singpolyma](https://hub.soprani.ca/u/singpolyma)\
**Post date:** [November 12, 2025, 9:34pm UTC](https://hub.soprani.ca/t/add-command-to-set-port-out-pin/516/12 "2025-11-12T21:34:50Z")

</div>

```
     unless pin.match?(/\A[\w\d]{4,10}\Z/)                                                                                                                               
        raise "PIN must be between 4 and 10 alphanumeric characters."                                                                                                    
     end                                                                                                                                                                 
                                                                                                                                                                         
     raise "PIN and confirm PIN must match." unless pin == confirm_pin 

```

why are we validating this in sgx-jmp? is it not validated in sgxbwmsgsv2?

---

<div class="post-metadata">

**Author:** ![singpolyma](https://hub.soprani.ca/user_avatar/hub.soprani.ca/singpolyma/32/11_2.png) [@singpolyma](https://hub.soprani.ca/u/singpolyma)\
**Post date:** [November 12, 2025, 9:53pm UTC](https://hub.soprani.ca/t/add-command-to-set-port-out-pin/516/13 "2025-11-12T21:53:02Z")

</div>

_Amolith referenced this ticket in commit [a18b326](https://git.sr.ht/~singpolyma/sgx-jmp/commit/a18b326 "feat: add command to set port-out PIN")._

---

<div class="post-metadata">

**Author:** ![system](https://hub.soprani.ca/user_avatar/hub.soprani.ca/system/32/18_2.png) [@system](https://hub.soprani.ca/u/system)\
**Post date:** [October 19, 2026, 6:28pm UTC](https://hub.soprani.ca/t/add-command-to-set-port-out-pin/516/14 "2026-10-19T18:28:33Z")

</div>


