Myro Control   |   Myro:Air   |   Myro:Bridge   |   Myro:Home   |   Contact   |   Support

Author Topic: RS232 Control Protocol  (Read 25581 times)

0 Members and 1 Guest are viewing this topic.

Myro Control

  • Administrator
  • Full Member
  • *****
  • Posts: 208
  • Karma: +1/-0
  • Onwards and Upwards!
    • View Profile
RS232 Control Protocol
« on: February 16, 2014, 11:24:20 am »
Here is the version 1.0 of the RS232 commands for Myro:Bridge/Sonos Firmware (v2.2.0 and above):

Baud Rate: 9600
Data Bits: 8
Parity: None
Stop Bits: 1

REQ = Request
RES = Response

[TRANSPORT_STATUS] Types:  Unknown = 0, Stopped = 3, Playing = 1, Paused = 2
[MEDIA_TYPE] Types: Music Library =3, Radio = 1, Pandora = 2, Rhapsody = 4, XM = 5, Windows Media Music Library Server = 6

-----

REQ: *IP_ADDRESS<cr>
RES: #4372|XXX.XXX.XXX.XXX<cr>
       
REQ: *VER<cr>
RES: #522|2.2.0<cr>
       
REQ: *NEXT_TRACK<cr>
RES: #4385|OK<cr>
       
REQ: *PREV_TRACK<cr>
RES: #4364|OK<cr>
       
REQ: *PAUSE<cr>
RES: #1220|OK<cr>
       
REQ: *PLAY<cr>
RES: #848|OK<cr>
       
REQ: *ALBUM<cr>
RES: #1218|[ALBUM TITLE]<cr>
       
REQ: *ARTIST<cr>
RES: #1783|[ARTIST TITLE]<cr>
       
REQ: *SONG<cr>
RES: #824|[SONG TITLE]<cr>
       
REQ: *STREAM_TYPE<cr>
RES: #5413|[STREAM_TYPE]<cr>
             
REQ: *ALL_META<cr>
RES: #2849|[STATUS_TEXT]|[ALBUM]|[ARTIST]|[SONG]<cr>

REQ: *STATUS<cr>
RES: #1796|[STREAM_TYPE]|[STATUS_TEXT]|[TRANSPORT_STATUS]<cr>  (example: #2A|Initializing...|3<cr>)   

REQ: *DEVICE_NAME<cr>
RES: #5064|[DEVICE_NAME]<cr>
       
REQ: *MEM<cr>
RES: #498|[FREE MEM]<cr>

REQ: *ID<cr>
RES: #258|[ID]<cr>

EVENT WHEN METADATA/STATUS CHANGES:
RES: @[STREAM_TYPE]|[STATUS_TEXT]|[TRANSPORT_STATUS]|[ALBUM]|[ARTIST]|[SONG]<cr>
« Last Edit: February 16, 2014, 11:38:41 am by Myro Control »

Myro Control

  • Administrator
  • Full Member
  • *****
  • Posts: 208
  • Karma: +1/-0
  • Onwards and Upwards!
    • View Profile
Re: RS232 Control Protocol
« Reply #1 on: February 17, 2014, 09:19:12 am »
Attached is the pinout for RS-232 cable.