E1.20 RDM (Remote Device Management) Protocol Forums  

Go Back   E1.20 RDM (Remote Device Management) Protocol Forums > RDM Developer Forums > RDM General Implementation Discussion

RDM General Implementation Discussion General Discussion and questions relating to implementing RDM in a product.

Reply
 
Thread Tools Search this Thread Display Modes
Old August 27th, 2006   #1
sblair
Administrator
 
Join Date: Feb 2006
Posts: 419
Send a message via AIM to sblair Send a message via MSN to sblair
Lightbulb RDM Appendix A #define header file attached

Appendix A #define file attached

I'm posting a complete .h file for all the #defines in Appendix A. The easiest place to make a mistake in implementing RDM is entering the wrong #define.

Every entry in Appendix A is listed in here. In order to avoid #define duplicates in existing code, all the defines are prefixed with E120_ to keep it clear.

This file can now be downloaded from here: http://www.rdmprotocol.org/developer...ces/downloads/

If you have any questions or catch a discrepancy, let me know.


Revision History
9/18/06 Added Copyright and usage permissions.
9/21/06 Removed some non-ASCII characters in the comments.
10/01/06 Added Protocol Version define. Removed some stray spaces breaking GCC compliles
2/14/12 Added E1.37-1 defines.
10/24/2014 Added E1.37-2 defines
__________________
Scott M. Blair
RDM Protocol Forums Admin

Last edited by sblair; October 24th, 2014 at 09:04 PM.
sblair is offline   Reply With Quote
Old September 18th, 2006   #2
sjackman
Task Group Member
 
Join Date: Sep 2006
Posts: 26
Default

Thanks, Scott! I'd like to update the Wireshark (previously known as Ethereal) protocol decoder. Could you please add a copyright and license statement to the header file? For the license statement, I would suggest...

Permission to use, copy, modify, and distribute this software
is freely granted, provided that this notice is preserved.

Alternatively, you could simply put the file in the public domain.

Thanks!
Shaun Jackman
sjackman is offline   Reply With Quote
Old September 18th, 2006   #3
sblair
Administrator
 
Join Date: Feb 2006
Posts: 419
Send a message via AIM to sblair Send a message via MSN to sblair
Default

Shaun,

I've added the information you need and updated the attached file above.

Let me know how it works out.
__________________
Scott M. Blair
RDM Protocol Forums Admin
sblair is offline   Reply With Quote
Old September 19th, 2006   #4
sjackman
Task Group Member
 
Join Date: Sep 2006
Posts: 26
Default

Thanks, Scott. Looks great.

Cheers,
Shaun
sjackman is offline   Reply With Quote
Old September 19th, 2006   #5
sjackman
Task Group Member
 
Join Date: Sep 2006
Posts: 26
Default

Scott,

One more note. The header file is either corrupted or non-ASCII/non-ISO/non-UTF. It contains the character 150 (0x96), which I suspect should be a hyphen or a dash, and the character 146 (0x92), which I suspect should be an apostrophe.

Cheers,
Shaun

Code:
$ diff /tmp/RDM.h rdm-e120.h |cat -v
26c26
< /* RDM Protocol Data Structure IDM-^Rs (Slot 1)                                                                                   */
---
> /* RDM Protocol Data Structure ID's (Slot 1)                                                                                   */
29c29
< /* Broadcast Device UIDM-^Rs                                                                                                      */     
---
> /* Broadcast Device UID's                                                                                                      */     
168c168
< /* Fixture Accessories M-^V add-ons to fixtures or projectors                                                                      */
---
> /* Fixture Accessories - add-ons to fixtures or projectors                                                                      */
245c245
< #define E120_PRODUCT_CATEGORY_OTHER                       0x7FFF /* For devices that arenM-^Rt described within this table.        */
---
> #define E120_PRODUCT_CATEGORY_OTHER                       0x7FFF /* For devices that aren't described within this table.        */
sjackman is offline   Reply With Quote
Old September 21st, 2006   #6
sblair
Administrator
 
Join Date: Feb 2006
Posts: 419
Send a message via AIM to sblair Send a message via MSN to sblair
Default

Shaun,

I think I got them all out now.

Scott
__________________
Scott M. Blair
RDM Protocol Forums Admin
sblair is offline   Reply With Quote
Old September 27th, 2006   #7
sjackman
Task Group Member
 
Join Date: Sep 2006
Posts: 26
Default

The header file is missing a */ to end a comment on line 545, which annoys GCC.

../rdm-e120.h:546:1: error: "/*" within comment

Cheers,
Shaun

--- rdm-e120.h 19 Sep 2006 19:51:24 -0000 1.1
+++ rdm-e120.h 27 Sep 2006 19:59:26 -0000
@@ -542,7 +542,7 @@
#define E120_DS_UNSIGNED_WORD 0x05 /* Data is an array of unsigned 16-bit words */
#define E120_DS_SIGNED_WORD 0x06 /* Data is an array of signed 16-bit words */
#define E120_DS_UNSIGNED_DWORD 0x07 /* Data is an array of unsigned 32-bit words */
-#define E120_DS_SIGNED_DWORD 0x08 /* Data is an array of signed 32-bit words
+#define E120_DS_SIGNED_DWORD 0x08 /* Data is an array of signed 32-bit words */
/* Manufacturer-Specific Data Types 0x80-
0xDF */
sjackman is offline   Reply With Quote
Old September 29th, 2006   #8
sjackman
Task Group Member
 
Join Date: Sep 2006
Posts: 26
Default

This patch adds the protocol version used by the device info parameter.

Cheers,
Shaun

Code:
--- rdm-e120.h	27 Sep 2006 20:01:00 -0000	1.2
+++ rdm-e120.h	29 Sep 2006 19:08:45 -0000
@@ -20,6 +20,9 @@
 /*****************************************************************/
 
 
+/* Protocol version. */
+#define E120_PROTOCOL_VERSION 0x100
+
 /* RDM START CODE (Slot 0)                                                                                                     */
 #define	E120_SC_RDM 									  0xCC
sjackman is offline   Reply With Quote
Old September 30th, 2006   #9
sjackman
Task Group Member
 
Join Date: Sep 2006
Posts: 26
Default

There is a stray space in `E120_STATUS_GET_LAST_ MESSAGE' (sic).

Code:
150c150
< #define E120_STATUS_GET_LAST_ MESSAGE                     0x01
---
> #define E120_STATUS_GET_LAST_MESSAGE                      0x01
Cheers,
Shaun
sjackman is offline   Reply With Quote
Old October 1st, 2006   #10
sblair
Administrator
 
Join Date: Feb 2006
Posts: 419
Send a message via AIM to sblair Send a message via MSN to sblair
Default

Shaun,

I added the Protocol Version and fixed the stray space and GCC line wrap issue.

Scott
__________________
Scott M. Blair
RDM Protocol Forums Admin
sblair is offline   Reply With Quote
Old November 17th, 2006   #11
sjackman
Task Group Member
 
Join Date: Sep 2006
Posts: 26
Default

There is a stray space in `E120_PRODUCT_DETAIL_NOT DECLARED'.

Code:
258c258
< #define E120_PRODUCT_DETAIL_NOT DECLARED                  0x0000
---
> #define E120_PRODUCT_DETAIL_NOT_DECLARED                  0x0000
Cheers,
Shaun
sjackman is offline   Reply With Quote
Old November 20th, 2006   #12
sjackman
Task Group Member
 
Join Date: Sep 2006
Posts: 26
Default Control field of mute/un-mute

This patch adds constants for the control field of the mute/un-mute messages.

Cheers,
Shaun

Code:
diff -u -p -r1.4 rdm-e120.h
--- rdm-e120.h	17 Oct 2006 19:22:06 -0000	1.4
+++ rdm-e120.h	20 Nov 2006 18:16:02 -0000
@@ -68,6 +68,12 @@
 #define E120_PROXIED_DEVICE_COUNT                         0x0011
 #define E120_COMMS_STATUS                                 0x0015
 												       
+/* Discovery Mute/Un-Mute Messages Control Field. See Table 7-3. */
+#define E120_CONTROL_PROXIED_DEVICE 0x0008
+#define E120_CONTROL_BOOT_LOADER    0x0004
+#define E120_CONTROL_SUB_DEVICE     0x0002
+#define E120_CONTROL_MANAGED_PROXY  0x0001
+
 /* Category - Status Collection    */			       
 #define E120_QUEUED_MESSAGE                               0x0020 /* See Table A-4                                              */
 #define E120_STATUS_MESSAGES                              0x0030 /* See Table A-4                                              */
sjackman is offline   Reply With Quote
Old August 1st, 2012   #13
LaurentG
Junior Member
 
Join Date: May 2012
Location: Rennes, FRANCE
Posts: 8
Default Appendix B & C

Hello !

I'm currently implementing RDM and today, I've needed some definitions from appendix C.
If it can be of any help to somebody, here is a copy of the rdm.h I'm using, with appendix B & C implemented.

Cheers !

Laurent

Last edited by sblair; October 24th, 2014 at 09:05 PM.
LaurentG is offline   Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 03:56 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.