Skip to content

Commit

Permalink
SSMP MIB - initial skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
twystd committed Jul 29, 2024
1 parent 8493753 commit 334bc66
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 0 deletions.
1 change: 1 addition & 0 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
### SSMP
- [x] disable print/println in SMP mode
- [x] SYN-SYN-ENQ/SYN-SYN-ACK
- [ ] MIB
- [ ] usb_init
- [ ] Enable FIFO
- [ ] pico: txrx/uart conflict
Expand Down
20 changes: 20 additions & 0 deletions documentation/ssmp/SSMP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Simple Serial Management Protocol (SSMP)

## ENQ

Establishes connection, switching serial port from CLI to SSMP if necessary.

```
REQUEST: SYN SYN ENQ
RESPONSE: SYN SYN ACK
```

## GetRequest

Requests a PDU by MIB OID.

```
REQUEST: SYN SYN SOH ... STX GET <OID><ETX>
RESPONSE: SYN SYN ACK ... STX <value> <ETX>
```

46 changes: 46 additions & 0 deletions documentation/ssmp/SSMP.mib
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
UHPPOTED-SSMP-MIB DEFINITIONS ::= BEGIN

IMPORTS
MODULE-IDENTITY, OBJECT-TYPE, enterprises, Integer32
FROM SNMPv2-SMI
MODULE-COMPLIANCE, OBJECT-GROUP
FROM SNMPv2-CONF;

uhppotedSSMP MODULE-IDENTITY
LAST-UPDATED "202407290000Z"
ORGANIZATION "github.com/uhppoted"
CONTACT-INFO
"email: uhppoted.development@gmail.com"
DESCRIPTION
"MIB objects for the uhppoted breakout board"
REVISION "202407290000Z"
DESCRIPTION "First draft"
::= { enterprises 65536 }

system OBJECT IDENTIFIER ::= { uhppotedSSMP 1 }
controller OBJECT IDENTIFIER ::= { system 1 }

controllerId OBJECT-TYPE
SYNTAX Integer32 (0..2147483647)
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"An integer object representing the controller ID."
::= { controller 1 }

controllerGroup OBJECT-GROUP
OBJECTS { controllerId }
STATUS current
DESCRIPTION
"Controller configuration information."
::= { system 2 }

compliance MODULE-COMPLIANCE
STATUS current
DESCRIPTION
"The compliance statement for the controllerId object."
MODULE -- this module
MANDATORY-GROUPS { controllerGroup }
::= { system 3 }

END

0 comments on commit 334bc66

Please sign in to comment.