E1.31 Protocol Disc...
 
Notifications
Clear all

E1.31 Protocol Discussions

63 Posts
18 Users
0 Reactions
37.3 K Views
David_AVD
Posts: 991
(@david-avd)
Noble Member
Joined: 17 years ago

The priority idea would work, but only if the E1.31 receiver implements it. I don't think any of the current (Christmas style) controllers do?


Reply
Posts: 1249
(@jstjohnz)
Noble Member
Joined: 17 years ago
timon wrote:Having the background monitor traffic would work but the processor in the home automation system might not be able to handle the load. Even when it's sending E1.31 packets it would be not sending at the rate a show would run so it it had to monitor full traffic speed the processor might get overloaded. I'm not sure what the minimum speed you have to send is but I expect the HA would only send a background update one a second or so then speed up to a full 40 frames per second when changing the intensity of a channel.

BTW, do the E1.31 controllers work like the intelligent DMX controllers and keep sending the last set of data they received from the source to the DMX output or is it one E1.31 packet to one DMX output sequence like a dumb DMX controller? I haven't got that far in the specs to figure that out yet.

Since the landscape lighting will all be P-DMX, either RJ45 or Ray's waterproof connectors, it might be an interesting project to layout a modified PCB using RPM's design and set it up for P-DMX. I like this rather than two boards. Shouldn't take much modification of RPM's code to add in the priority feature.

I was going make an intelligent DMX splitter that took in two DMX universes and switch them based on one of the channels and then drive it from a RPM's USB Dongle but E1.31 has a lot of advantages.

This is so much fun:biggrin2:

John

As far as my controllers, the currently buffered data is sent out continuously to the DMX outputs, regardless of how fast it's coming in. In theory E1.31 isn't supposed to be sent at a higher rate packet rate than the 250kbps serial DMX, but sometimes a sender will exceeed that rate. It's common to have an option to turn the outputs off if the sender stops sending data for a period of time.

I have not implemented priority checking yet, but it's fairly trivial. You just need to maintain a variable that contains the current highest priority for each universe, and a timer with elapsed time since the last packet was received at that priority. If a lower priority packet comes along it's ignored. If a higher priority packet comes along that becomes the new highest priority value and the timer gets reset. The spec doesn't get into the detail of timeout of priority.


Reply
Posts: 1249
(@jstjohnz)
Noble Member
Joined: 17 years ago
mschell wrote:I believe Neil's reference to commercial market meant that HTP is expected to be included and supported in commercial products. Most folks in the hobby controller market aren't expecting to have multiple E1.31/sACN sources driving the network, and therefore the "need" for HTP isn't as great.

HTP means, I believe, that the highest value for a given channel takes precedence on any lower values sent out for that channel. So if your home automation controller was sending a command to have a given channel for your flowerbed to be at 25%, any commands from your show computer to have the light go lower than 25% would be ignored. There's also LTP, which is Lower Takes Precedence, and probably some other variations that I can't recall at the moment.

The problem with HTP, or any other non-trivial algorithm, is that it only makes sense for single channel lights. If I have one sender sending GREEN to a pixel, and another sending RED to the same pixel, HTP is going to give me a YELLOW pixel, probably not what was intended.


Reply
Posts: 311
(@neilric99)
Reputable Member
Joined: 17 years ago

I did think about this last year when I was playing with LSP controlling Madrix and I wanted to get madrix to release its control of the sACN output so that I could send a sequence from LSP instead. Turns out I could not stop Madrix from sending out output (even though it was black, 0 value) to the channels on that universe. I believe having HTP would have helped in this case as Madrix would be sending 0 values for those channels and LSP would take presedance as they were sending an higher value for that channel. I do take your point though that this was really designed with single channel fixtures in mind and 3 / 4 channel RGB/W sort of breaks that.


Reply
rokkett
Posts: 441
(@rokkett)
Reputable Member
Joined: 17 years ago

As we have pointed out, using the HTP channel data resolution is problematic and is probably not what we want to do. What we really want to be looking at and processing is the data at the universe level, based on priorities.

When discussing universe priorities, the E1.31 documentation is referring to how we, the receiver, should decide which sender's packets will be processed by the device. In the case of multiple senders, e.i. the device detects two different sources of packets identifying themselves as containing data for Universe 1, the device should select the data from the E1.31 packet with highest priority. There is a one byte field in the E1.31 packet header, priority, that is used to send this data. The device is not be looking at the channel data, but rather this priority field.

So to implement the Christmas light show vs. landscape lighting:

Set the landscape lighting source set at priority of 50.
Set the Christmas light display at a priority of 100 (most software is defaulting to a value of 100, by the way.)

While the Christmas light show packets are not being sent, the priority of 50 is the highest, so the device should handle that traffic.

When the device detects the Christmas light show packets start showing up with the higher priority of 100, the device should stop processing the landscape lighting data and begin handling the Christmas light show data.

The E1.31 protocol requires a refresh packet be sent by a sender every 2.5 seconds, so once the device detects the sender with a higher priority has not sent an update for greater then 2.5 seconds, the device should then re-evaluate which senders data is at the highest priority, and begin processing that sender's data. There is no data merging going on here, only one senders data is processes at a time, based on priority.

The HTP conversation only comes into play when we detect two senders at the same priority for the same universe, but with the proper use of the universe priority, we can eliminate the data merging/HTP conversation completely.

So the question of the day - do the E68x devices handle E1.31 priority processing? If coding changes had to happen and I had a choice, I would want universe priority implemented first over data merging/HTP coding.

Technical details: The priority byte is located in byte location 108 of the header and can have a values ranging from a minimum of 0 to a maximum of 200.


Reply
Posts: 311
(@neilric99)
Reputable Member
Joined: 17 years ago

good thinking Rokkett, it looks like the priority attribute in the e1.31 data packet could be used by the controller to determine what is being processed. And in the example of landscape lighting you could have you landscape lighting controller always on the produce a background and let the christmas lighting controller take over with a higher priority.

So what do youu think about this Ed at J1sys and Jim at Sandevices?


Reply
David_AVD
Posts: 991
(@david-avd)
Noble Member
Joined: 17 years ago

As an aside, my da_E131 software has the priority set to 100 normally, but you can change it in the settings. This would allow you to test receivers for priority based processing.


Reply
mrpackethead
Posts: 2289
(@mrpackethead)
Famed Member
Joined: 19 years ago

For what its worth, HTP will be included in the version 4.0 release of the Software that runs on the Stellascpaes E16..


Reply
Posts: 311
(@neilric99)
Reputable Member
Joined: 17 years ago

thats good to hear Andrew, what is your valued opinion on the subject that we have been discussing on HTP and priority adn their use in the hobby market?


Reply
mrpackethead
Posts: 2289
(@mrpackethead)
Famed Member
Joined: 19 years ago
neilric99 wrote:thats good to hear Andrew, what is your valued opinion on the subject that we have been discussing on HTP and priority adn their use in the hobby market?

Redundancy.


Reply
Page 6 / 7
Share: