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 7th, 2012   #1
LaurentG
Junior Member
 
Join Date: May 2012
Location: Rennes, FRANCE
Posts: 8
Default Trying to run the automated tests

Hi everybody !

I'm currently implementing a RDM responder. I've been developping my system using the Enttec DMXpro interface. Everything seems to work fine with their software, and I'm now trying to test my device with the automated rdm test tool developped by Simon.

My only problem is that I can't discover my device (so I can't run the tests...). Here is the sequence of events I have, I would be glad if anybody could tell me what I'm doing wrong.
1 - the DMXpro is well patched to universe 1 : I can send DMX.
2 - when running a discover (ola_rdm_discover -u 1 -f), it is apparently correctly running : it sends DUB packet until the end of tree ("223: sending DUB packet 0102:03040506 - 0102:03040506" / "382: end of tree reached !")
3 - The discovery process is stuck here. No other packet is sent (the last one on the scope is a discovery one).
4 - If I try to run another discovery, I get the message "128 : Discovery procedure already running"

I feel like something is going wrong among the DISCOVER_MUTE/UNMUTE process, but I don't see any of these packet coming from the controller on my oscilloscope...
LaurentG is offline   Reply With Quote
Old August 7th, 2012   #2
LaurentG
Junior Member
 
Join Date: May 2012
Location: Rennes, FRANCE
Posts: 8
Default

I forgot to add one info : yes, I've updated the USBpro firmware. I'm using v2.4.
LaurentG is offline   Reply With Quote
Old August 7th, 2012   #3
sblair
Administrator
 
Join Date: Feb 2006
Posts: 438
Send a message via AIM to sblair Send a message via MSN to sblair
Default

Simon will probably best be able to guide you. Are you returning in the DUB packet the UID properly encoded? Not sure what Simon does when he gets to the bottom of the tree and can't decode the UID as to whether he tries to do a Mute anyway.

Have you tried using the discovery software with the Enttec or other controllers and been able to discover your responder?
__________________
Scott M. Blair
RDM Protocol Forums Admin
sblair is offline   Reply With Quote
Old August 7th, 2012   #4
LaurentG
Junior Member
 
Join Date: May 2012
Location: Rennes, FRANCE
Posts: 8
Default

Everything is working fine with the Enttec controller.
I'm assuming the UID is properly encoded in the DUB packet, but I'm gonna check that again.

The last packet visible on my oscilloscope is a DISCOVER_UNIQUE_BRANCH, which I am responding to. There is no mute coming from the controller.

Simon, if you see this message, do you have any idea about what's going wrong ?
LaurentG is offline   Reply With Quote
Old August 7th, 2012   #5
ericthegeek
Task Group Member
 
Join Date: Aug 2008
Posts: 379
Default

Quote:
Originally Posted by LaurentG View Post
Everything is working fine with the Enttec controller.
I'm assuming the UID is properly encoded in the DUB packet, but I'm gonna check that again.
That's not necessarily a valid assumption. I don't recall how the Enttec software handles discovery, but there are controllers out there that will add a responder to the table of discovered devices based solely on a DUB request with a single UID range (the same UID in both the lower and upper bounds).

Some controllers will even add a device if the mute request times out.

Both of these are undesirable behavior, but they do exist.
ericthegeek is offline   Reply With Quote
Old August 7th, 2012   #6
LaurentG
Junior Member
 
Join Date: May 2012
Location: Rennes, FRANCE
Posts: 8
Default

Ok folks, I've found my mistake.

When sending a discovery response packet, my buffer size was altered. It resulted in the sending of one extra random byte after the encoded checksum.

As a result, the packet was broken and ignored by the controller.

Thank you anyway for your help, checking the encoded UID led me to the solution.
__________________
Laurent GROSBOIS
www.LInnova.fr
LaurentG is offline   Reply With Quote
Old August 7th, 2012   #7
sblair
Administrator
 
Join Date: Feb 2006
Posts: 438
Send a message via AIM to sblair Send a message via MSN to sblair
Default

Glad you found it!

In general when a controller gets to the bottom branch it should just try sending a MUTE. What Simon has built is more for testing compliance to the standard so while most controllers may have just kept drilling until it got to the bottom and then done a MUTE you wouldn't have realized your code was actually broken.

I agree with Eric though, adding a device as discovered when it has NOT done a successful MUTE is a bad idea.
__________________
Scott M. Blair
RDM Protocol Forums Admin
sblair is offline   Reply With Quote
Old August 8th, 2012   #8
nomis52
Task Group Member
 
Join Date: May 2010
Location: San Franciscio
Posts: 57
Default

Hi Laurent,

As you've discovered, OLA is pretty strict about what it will accept. It's designed this way so people discover problems early. That said, there was a bug where the discovery process wouldn't restart if it hit the case you described. That's now fixed in the git repo and the fix will be out with 0.8.22 in a few days.

If you find any other problems do let us know. If it's an OLA specific problem then your best bet is to ask on https://groups.google.com/group/open-lighting since you'll get a faster response time.

Simon
nomis52 is offline   Reply With Quote
Old August 9th, 2012   #9
LaurentG
Junior Member
 
Join Date: May 2012
Location: Rennes, FRANCE
Posts: 8
Default

Thank you for your reply, and your speed to fix the bug.

Anyway, this test routine is a wonderfull debug tool, and I strongly recommand anybody who wish to develop RDM to use it.
Thank you for your work !
__________________
Laurent GROSBOIS
www.LInnova.fr
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
RDM Responder Tests are Ready nomis52 RDM General Implementation Discussion 2 March 17th, 2011 07:41 PM


All times are GMT -6. The time now is 01:01 AM.


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