The Make Controller's OSC Address Space

 

---General Principles---


Address Space format


/[subsystem]/[device]/[property]   [argument]

or

/[subsystem]/[property]   [argument]


Wildcards (*) supported

Bundling supported


Querrying


Most properties can be querried (read) and set (written).  Some properties for inputs are read only.


/ Return Subsystems

/analogin Return Devices for the "/analogin" subsystem

   etc.

/analogin/0 Return properties for "/analogin/0" device

   etc.

/appled/0/state Return current argument (value) for "/appled/0/state"


Autosend


/system/autosend-udp [0-1] Enable autosend over udp over ethernet

/system/autosend-usb [0-1] Enable autosend over usb


/system/autosend-interval [ms(int)] Set autosend interval


/dipswitch/autosend [0-1] Enable dipswitch to autosend

/analogin/[0-7]/autosend [0-1] Enable analogin to autosend

/xbee/autosend [0-1]  Enable xbee to autosend


---Input Subsystems---


Dipswitch (input)

/dipswitch/value Returns 8 bit value [0-255] representing 8 switches

/digitalout/active [0 or 1] locks the value.  Can be read.

/dipswitch/autosend [0-1] Enable dipswitch to autosend. Can be read.

(See Autosend)


Digital Inputs

/digitalin/[1-7]/state [0 or 1] on-off. Can be read.

/digitalin/[1-7]/active [0 or 1] locks input.  Will not report digital values. Can be read.


Analog Inputs

/analogin/[0-7]/value Returns value [0-1023]

/analogin/[0-7]/active [0-1] locks the value.  Can be read.

/analogin/[0-7]/autosend [0-1] Enable analog input to autosend. Can be read.

(See Autosend)


---Output Subsystems---


Appled

/appled/[1-7]/state [0 or 1] App Board LED on-off/ Can be read.

/appled/[1-7]/active [0 or 1] active locks state of LED.  Can be read.


Digital Outputs

/digitalout/[1-7]/state [0 or 1] on-off.  Can be read.

/digitalout/[1-7]/active [0 or 1] locks the state. Can be read.


Motor Outputs (Use Digital Outputs)

/motor/[0-3]/speed [0-1023] Speed.  Can be querried.

/motor/[0-3]/direction [0-1] Direction.  0=backwards, 1=forwards.  Can be read.

/motor/[0-3]/active [0-1] locks motor (locks 2 d out ports).  Can be read.


Servo Outputs

/servo/[0-3]/position [-512 to 1536] Position.  [0-1023] is the safe range.  Can be read.

/motor/[0-3]/speed [0-1023] Speed between positions.  Can be read.

/motor/[0-3]/active [0-1] locks servo.  Can be read.


PWM Outputs (Use Digital Outputs)

/pwmout/[1-4]/duty [0-1023] 0 = 0% of the time.  1023 = 100%.  Can be read.

/pwmout/[1-4]/invA [0-1] Invert the A channel of PWM.  Can be read.

/pwmout/[1-4]/invB [0-1] Invert the B channel of PWM.  Can be read.

/pwmout/[1-4]/duty [0-1023] 0 = 0% of the time.  1023 = 100%.  Can be read.

/pwmout/[1-4]/active [0-1] locks PWM.  (locks t d out ports).  Can be read.

See PWM (Pulse Width Modulation) for complete info on PWM and complete address space.


Stepper Motor 

See Stepper - OSC for info.


Xbee

See XBee - OSC and XBee Configuration - OSC for info.



---ADVANCED---


Debug (all properties can be read)

/debug/active [0-1]  If debug is inactive (0), it will not respond to any other messages.

/debug/level [0-4]  0 = most detail, 1 = least detail.

/debug/usb [0-1]  turns debug reporting on over USB

/debug/udp [0-1]  turns debug reporting on over udp/ethernet


IO

See IO - OSC for info.  Reprograms the board pins.


Network Settings

See Network - OSC for info.  Anything to do with network configuration.


Serial Port Configuration

See Serial - OSC for info.  Anything to do with network configuration.


System Configuration

See System - OSC for info.  Anything to do with system configuration.